diff --git a/epicyon-search.css b/epicyon-search.css index 81a4dc3e..16ae3fb4 100644 --- a/epicyon-search.css +++ b/epicyon-search.css @@ -35,6 +35,8 @@ --focus-color: white; --search-banner-height: 30vh; --search-banner-height-mobile: 20vh; + --title-color: #999; + --header-font: 'Arial, Helvetica, sans-serif'; } @font-face { @@ -62,6 +64,11 @@ body, html { min-width: 600px; } +h1 { + font-family: var(--header-font); + color: var(--title-color); +} + a, u { color: var(--main-fg-color); } diff --git a/translations/ar.json b/translations/ar.json index 3d19e6d5..8f8b5401 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "اختر العناصر الإخبارية المشار إليها في مقالتك", "RSS feed for your blog": "تغذية RSS لمدونتك", "Create a new shared item": "إنشاء عنصر مشترك جديد", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "أصول الهاشتاق" } diff --git a/translations/ca.json b/translations/ca.json index 741887da..0d4859f5 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "Trieu articles de newswire als quals faci referència el vostre article", "RSS feed for your blog": "Feed RSS del vostre bloc", "Create a new shared item": "Creeu un element compartit nou", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "Orígens de hashtag" } diff --git a/translations/cy.json b/translations/cy.json index 8f16d596..0ff025d0 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "Dewiswch eitemau newyddion y cyfeirir atynt yn eich erthygl", "RSS feed for your blog": "Porthiant RSS ar gyfer eich blog", "Create a new shared item": "Creu eitem newydd a rennir", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "Gwreiddiau Hashtag" } diff --git a/translations/de.json b/translations/de.json index e0bb78ea..d8072410 100644 --- a/translations/de.json +++ b/translations/de.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "Wählen Sie Newswire-Artikel aus, auf die in Ihrem Artikel verwiesen wird", "RSS feed for your blog": "RSS-Feed für Ihr Blog", "Create a new shared item": "Erstellen Sie ein neues freigegebenes Element", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "Hashtag-Ursprünge" } diff --git a/translations/en.json b/translations/en.json index 74ffd65d..aac88026 100644 --- a/translations/en.json +++ b/translations/en.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "Choose newswire items referenced in your article", "RSS feed for your blog": "RSS feed for your blog", "Create a new shared item": "Create a new shared item", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "Hashtag origins" } diff --git a/translations/es.json b/translations/es.json index 427ce582..9bedd363 100644 --- a/translations/es.json +++ b/translations/es.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "Elija elementos de Newswire a los que se hace referencia en su artículo", "RSS feed for your blog": "Fuente RSS para tu blog", "Create a new shared item": "Crea un nuevo elemento compartido", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "Orígenes del hashtag" } diff --git a/translations/fr.json b/translations/fr.json index d9e10c0a..f6751c25 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "Choisissez les éléments de fil d'actualité référencés dans votre article", "RSS feed for your blog": "Flux RSS pour votre blog", "Create a new shared item": "Créer un nouvel élément partagé", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "Origines des hashtags" } diff --git a/translations/ga.json b/translations/ga.json index cbfe07da..96610433 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "Roghnaigh míreanna sreanga nuachta dá dtagraítear i d’alt", "RSS feed for your blog": "Fotha RSS do do bhlag", "Create a new shared item": "Cruthaigh mír nua roinnte", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "Bunús Hashtag" } diff --git a/translations/hi.json b/translations/hi.json index 8875da63..fff80d94 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "अपने लेख में संदर्भित newswire आइटम चुनें", "RSS feed for your blog": "RSS आपके ब्लॉग के लिए फ़ीड करता है", "Create a new shared item": "एक नया साझा आइटम बनाएं", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "हैशटैग की उत्पत्ति" } diff --git a/translations/it.json b/translations/it.json index e72c14aa..799fca7b 100644 --- a/translations/it.json +++ b/translations/it.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "Scegli gli articoli del newswire a cui fa riferimento il tuo articolo", "RSS feed for your blog": "Feed RSS per il tuo blog", "Create a new shared item": "Crea un nuovo elemento condiviso", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "Origini hashtag" } diff --git a/translations/ja.json b/translations/ja.json index 1d088131..f26fe9c0 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "あなたの記事で参照されているニュースワイヤーアイテムを選択してください", "RSS feed for your blog": "ブログのRSSフィード", "Create a new shared item": "新しい共有アイテムを作成する", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "ハッシュタグの起源" } diff --git a/translations/oc.json b/translations/oc.json index 3e954109..6e1ae44d 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -325,5 +325,6 @@ "Choose newswire items referenced in your article": "Choose newswire items referenced in your article", "RSS feed for your blog": "RSS feed for your blog", "Create a new shared item": "Create a new shared item", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "Hashtag origins" } diff --git a/translations/pt.json b/translations/pt.json index fc9c721a..6f8a999a 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "Escolha os itens de notícias mencionados em seu artigo", "RSS feed for your blog": "Feed RSS para o seu blog", "Create a new shared item": "Crie um novo item compartilhado", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "Origens de hashtag" } diff --git a/translations/ru.json b/translations/ru.json index e8a39c26..f736bb5e 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "Выберите элементы ленты новостей, на которые есть ссылки в вашей статье", "RSS feed for your blog": "RSS-канал для вашего блога", "Create a new shared item": "Создать новый общий элемент", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "Происхождение хэштегов" } diff --git a/translations/zh.json b/translations/zh.json index d0e26f6f..b4945223 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -329,5 +329,6 @@ "Choose newswire items referenced in your article": "选择文章中引用的新闻专栏文章", "RSS feed for your blog": "您博客的RSS供稿", "Create a new shared item": "创建一个新的共享项目", - "Rc3": "Rc3" + "Rc3": "Rc3", + "Hashtag origins": "标签起源" } diff --git a/webapp_hashtagswarm.py b/webapp_hashtagswarm.py index cb31d8ab..16d3a3ae 100644 --- a/webapp_hashtagswarm.py +++ b/webapp_hashtagswarm.py @@ -23,7 +23,7 @@ def getHashtagDomainMax(domainHistogram: {}) -> str: return maxDomain -def getHashtagDomainHistogram(domainHistogram: {}) -> str: +def getHashtagDomainHistogram(domainHistogram: {}, translate: {}) -> str: """Returns the html for a histogram of domains from which hashtags are coming """ @@ -35,6 +35,7 @@ def getHashtagDomainHistogram(domainHistogram: {}) -> str: htmlStr = '' histogramHeaderStr = '
\n' + histogramHeaderStr += '

' + translate['Hashtag origins'] + '

\n' histogramHeaderStr += ' \n' histogramHeaderStr += ' \n' histogramHeaderStr += ' \n' @@ -69,7 +70,7 @@ def getHashtagDomainHistogram(domainHistogram: {}) -> str: return htmlStr -def htmlHashTagSwarm(baseDir: str, actor: str) -> str: +def htmlHashTagSwarm(baseDir: str, actor: str, translate: {}) -> str: """Returns a tag swarm of today's hashtags """ currTime = datetime.utcnow() @@ -137,5 +138,5 @@ def htmlHashTagSwarm(baseDir: str, actor: str) -> str: '" class="hashtagswarm">' + tagName + '\n' ctr += 1 tagSwarmHtml = tagSwarmStr.strip() + '\n' - tagSwarmHtml += getHashtagDomainHistogram(domainHistogram) + tagSwarmHtml += getHashtagDomainHistogram(domainHistogram, translate) return tagSwarmHtml diff --git a/webapp_search.py b/webapp_search.py index c50773cf..d3418d40 100644 --- a/webapp_search.py +++ b/webapp_search.py @@ -372,7 +372,7 @@ def htmlSearch(cssCache: {}, translate: {}, 'name="submitSearch">' + translate['Submit'] + '\n' followStr += ' \n' followStr += '

' + \ - htmlHashTagSwarm(baseDir, actor) + '

\n' + htmlHashTagSwarm(baseDir, actor, translate) + '

\n' followStr += ' \n' followStr += ' \n' followStr += '\n'