From 6e060269c8eef4bde87291770c3fa26726c4a1a1 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Wed, 23 Dec 2020 16:08:44 +0300 Subject: Add tabbed content for commits, tweets and pubmed content * bh20simplewebuploader/templates/home.html: Add tab panes for commits, tweets and pubmed content. Use dummy place holder content for commits and tweets. * bh20simplewebuploader/static/main.css: Add basic styling for tabbed content. --- bh20simplewebuploader/templates/home.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'bh20simplewebuploader/templates/home.html') diff --git a/bh20simplewebuploader/templates/home.html b/bh20simplewebuploader/templates/home.html index be948f6..8a9c27b 100644 --- a/bh20simplewebuploader/templates/home.html +++ b/bh20simplewebuploader/templates/home.html @@ -27,8 +27,18 @@
@@ -41,6 +51,9 @@
{{ tweet.tweet|urlize(40, target="_blank") }}
--
cgit v1.2.3
From 6a2dbbc003e5adcf885b41674d9ca80fba7fd55b Mon Sep 17 00:00:00 2001
From: BonfaceKilz
Date: Wed, 23 Dec 2020 19:55:46 +0300
Subject: Add commits and pubmed articles to feed
---
bh20simplewebuploader/main.py | 9 ++++---
bh20simplewebuploader/templates/home.html | 42 +++++++++++++++++++++++++++++--
2 files changed, 46 insertions(+), 5 deletions(-)
(limited to 'bh20simplewebuploader/templates/home.html')
diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py
index b70f49a..de3ba3f 100644
--- a/bh20simplewebuploader/main.py
+++ b/bh20simplewebuploader/main.py
@@ -272,9 +272,12 @@ def send_home():
"""
Send the front page.
"""
- return render_template('home.html', menu='HOME',
- tweets=get_feed_items("bh20-tweet-score:"),
- load_map=True)
+ return render_template(
+ 'home.html', menu='HOME',
+ tweets=get_feed_items("bh20-tweet-score:"),
+ commits=get_feed_items("bh20-commit-score:"),
+ pubmed_articles=get_feed_items("bh20-pubmed-score:"),
+ load_map=True)
@app.route('/upload')
diff --git a/bh20simplewebuploader/templates/home.html b/bh20simplewebuploader/templates/home.html
index b1e52be..7d5d89f 100644
--- a/bh20simplewebuploader/templates/home.html
+++ b/bh20simplewebuploader/templates/home.html
@@ -36,9 +36,24 @@
Summary: {{ article['summary'] }}
+Full Authors: {{ article['full-authors'] }}
+Short Authors: {{ article['short-authors'] }}
+Citation: {{ article['citation'] }}
+Short Journal Citation: {{ article['short-journal-citation'] }}
+@@ -50,9 +65,32 @@
+ + {{ commit.hash.split(":")[-1][:7] }}:{{ commit.content}} + + +
+ + {{ commit.author }}/{{ commit.repository }} + on {{ commit.timeposted}} + +