From 5d9d3b5985991167f53cc07ba3b33b560db9bcac Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 27 Jun 2019 12:22:16 -0700 Subject: webface UI tweaks, mostly for mobile --- python/fatcat_web/templates/base.html | 16 ++++++++++------ python/fatcat_web/templates/entity_base.html | 5 ++++- python/fatcat_web/templates/home.html | 3 +++ python/fatcat_web/templates/stats.html | 6 +++--- 4 files changed, 20 insertions(+), 10 deletions(-) (limited to 'python/fatcat_web/templates') diff --git a/python/fatcat_web/templates/base.html b/python/fatcat_web/templates/base.html index ba62eaba..b853f413 100644 --- a/python/fatcat_web/templates/base.html +++ b/python/fatcat_web/templates/base.html @@ -2,7 +2,8 @@ - + + {%- block title -%} {%- if config.FATCAT_DOMAIN.startswith('qa.') -%} @@ -12,14 +13,17 @@ {%- endif -%} fatcat! {%- endblock -%} - - + {% block extra_head %}{% endblock %} @@ -44,9 +48,9 @@ fatcat! - About - Guide - Changelog + About + Guide + Changelog diff --git a/python/fatcat_web/templates/home.html b/python/fatcat_web/templates/home.html index 84899c8d..0aced300 100644 --- a/python/fatcat_web/templates/home.html +++ b/python/fatcat_web/templates/home.html @@ -119,6 +119,8 @@
+{# this div makes the table scrollable on mobile #} +
Entity Type @@ -237,6 +239,7 @@ {% endif %}
+
diff --git a/python/fatcat_web/templates/stats.html b/python/fatcat_web/templates/stats.html index f11ca820..eaff8f8d 100644 --- a/python/fatcat_web/templates/stats.html +++ b/python/fatcat_web/templates/stats.html @@ -13,7 +13,7 @@ You can also fetch these numbers as JSON. - + @@ -29,14 +29,14 @@ You can also fetch these numbers as JSON. - + - + -- cgit v1.2.3
"Papers"
"Papers" Total {{ "{:,}".format(stats.papers.total) }}
On web, not in Keepers {{ "{:,}".format(stats.papers.in_web_not_kbart) }}
Releases
Releases Total {{ "{:,}".format(stats.release.total) }}
References (raw, unlinked) {{ "{:,}".format(stats.release.refs_total) }}
Containers
Containers Total {{ "{:,}".format(stats.container.total) }}