mirror of https://gitlab.com/bashrc2/epicyon
Hashtag histogram title
parent
b5d34baecc
commit
d241fb146c
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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": "أصول الهاشتاق"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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": "हैशटैग की उत्पत्ति"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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": "ハッシュタグの起源"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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": "Происхождение хэштегов"
|
||||
}
|
||||
|
|
|
@ -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": "标签起源"
|
||||
}
|
||||
|
|
|
@ -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 = '<br><center>\n'
|
||||
histogramHeaderStr += ' <h1>' + translate['Hashtag origins'] + '</h1>\n'
|
||||
histogramHeaderStr += ' <table class="domainHistogram">\n'
|
||||
histogramHeaderStr += ' <colgroup>\n'
|
||||
histogramHeaderStr += ' <col span="1" class="domainHistogramLeft">\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 + '</a>\n'
|
||||
ctr += 1
|
||||
tagSwarmHtml = tagSwarmStr.strip() + '\n'
|
||||
tagSwarmHtml += getHashtagDomainHistogram(domainHistogram)
|
||||
tagSwarmHtml += getHashtagDomainHistogram(domainHistogram, translate)
|
||||
return tagSwarmHtml
|
||||
|
|
|
@ -372,7 +372,7 @@ def htmlSearch(cssCache: {}, translate: {},
|
|||
'name="submitSearch">' + translate['Submit'] + '</button>\n'
|
||||
followStr += ' </form>\n'
|
||||
followStr += ' <p class="hashtagswarm">' + \
|
||||
htmlHashTagSwarm(baseDir, actor) + '</p>\n'
|
||||
htmlHashTagSwarm(baseDir, actor, translate) + '</p>\n'
|
||||
followStr += ' </center>\n'
|
||||
followStr += ' </div>\n'
|
||||
followStr += '</div>\n'
|
||||
|
|
Loading…
Reference in New Issue