From b0a3ce5ae0da2bbbc39ee2ebad57cd22393d1f5c Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 5 Jan 2021 20:00:38 +0300 Subject: Add extra tab to display all items --- bh20simplewebuploader/static/main.css | 1 + bh20simplewebuploader/templates/home.html | 71 ++++++++++++++++++++++++++++++- 2 files changed, 71 insertions(+), 1 deletion(-) diff --git a/bh20simplewebuploader/static/main.css b/bh20simplewebuploader/static/main.css index fbc721e..e2f0c83 100644 --- a/bh20simplewebuploader/static/main.css +++ b/bh20simplewebuploader/static/main.css @@ -567,6 +567,7 @@ input[name="feed-tabs"] ~ .tab { display: none; } +#tab-all-items:checked ~ .tab.content-all-items, #tab-pubmed-articles:checked ~ .tab.content-pubmed-articles, #tab-arxiv-articles:checked ~ .tab.content-arxiv-articles, #tab-tweets:checked ~ .tab.content-tweets, diff --git a/bh20simplewebuploader/templates/home.html b/bh20simplewebuploader/templates/home.html index a880f81..23f48bf 100644 --- a/bh20simplewebuploader/templates/home.html +++ b/bh20simplewebuploader/templates/home.html @@ -29,7 +29,9 @@
+ [arxiv]
+
+ {{item['title']}}
+
+
+ Authors: {{ item['authors'] }}
+
+ Abstract: {{ item['abstract']}}...
+
+ Submitted: {{ item['submission']}}
+
[Pubmed]:
+ Summary:
+ {{ item['summary'] }}
+
+ Full Authors: {{ item['full-authors'] }}
+ Short Authors: {{ item['short-authors'] }}
+ Citation: {{ item['citation'] }}
+ Short Journal Citation: {{ item['short-journal-citation'] }}
+
+ [Tweet]:
+ {{ item['tweet']|urlize(40, target="_blank")}}
+
+ source
+
+ by {{ item['author'] }}
+
+ {{ item['timeposted'] }}
+
+ [Commit]:
+
+ {{ item.hash.split(":")[-1][:7] }}: {{ item.content }}
+
+
+
+ {{ item.author }}/{{ item.repository }}
+ on {{ item.timeposted }}
+
+