From 200b8194e8d22c944a80625b6101389b687e5832 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Wed, 30 Dec 2020 03:09:35 +0300 Subject: Add arxiv feed --- bh20simplewebuploader/main.py | 1 + bh20simplewebuploader/static/main.css | 2 ++ bh20simplewebuploader/templates/home.html | 22 ++++++++++++++++++++-- 3 files changed, 23 insertions(+), 2 deletions(-) (limited to 'bh20simplewebuploader') diff --git a/bh20simplewebuploader/main.py b/bh20simplewebuploader/main.py index de3ba3f..b620946 100644 --- a/bh20simplewebuploader/main.py +++ b/bh20simplewebuploader/main.py @@ -277,6 +277,7 @@ def send_home(): tweets=get_feed_items("bh20-tweet-score:"), commits=get_feed_items("bh20-commit-score:"), pubmed_articles=get_feed_items("bh20-pubmed-score:"), + arxiv_articles=get_feed_items("bh20-arxiv-score:"), load_map=True) diff --git a/bh20simplewebuploader/static/main.css b/bh20simplewebuploader/static/main.css index b6c900c..fbc721e 100644 --- a/bh20simplewebuploader/static/main.css +++ b/bh20simplewebuploader/static/main.css @@ -523,6 +523,7 @@ div.status { #feed ul { list-style-type: none; + width: 30em; } #feed ul li { @@ -567,6 +568,7 @@ input[name="feed-tabs"] ~ .tab { } #tab-pubmed-articles:checked ~ .tab.content-pubmed-articles, +#tab-arxiv-articles:checked ~ .tab.content-arxiv-articles, #tab-tweets:checked ~ .tab.content-tweets, #tab-commits:checked ~ .tab.content-commits { display: block; diff --git a/bh20simplewebuploader/templates/home.html b/bh20simplewebuploader/templates/home.html index 7d5d89f..a880f81 100644 --- a/bh20simplewebuploader/templates/home.html +++ b/bh20simplewebuploader/templates/home.html @@ -29,12 +29,30 @@
Authors: {{ article['authors'] }}
+Abstract: {{ article['abstract']}}...
+Submitted: {{ article['submission']}}
+