From 743940ce6075c1a1b547915a33ad8874094ae762 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 6 Jun 2019 00:17:16 -0700 Subject: experiment with entity view tabs --- python/fatcat_web/templates/entity_base.html | 70 ++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 python/fatcat_web/templates/entity_base.html (limited to 'python/fatcat_web/templates/entity_base.html') diff --git a/python/fatcat_web/templates/entity_base.html b/python/fatcat_web/templates/entity_base.html new file mode 100644 index 00000000..aa32ac3b --- /dev/null +++ b/python/fatcat_web/templates/entity_base.html @@ -0,0 +1,70 @@ +{% extends "base.html" %} + +{% macro entity_tab(name, text, url_suffix) %} +{{ text }} +{% endmacro %} + +{% block fullmain %} +
+
+
+
+

+ {% if entity_type == "release" %} + {{ entity.title }} + {% if entity.subtitle %} +
{{ entity.subtitle }} + {% endif %} + {% endif %} + + {{ entity_type }}_{{ entity.ident }} + +

+ {% if entity_type == "release" %} +

+ {% if authors and authors != [] %} by + {% for contrib in authors[:12] %} + {% if contrib.creator_id %} + {{ contrib.raw_name }}{% if not loop.last %}, {% endif %} + {% else %} + {% if contrib.raw_name != None %}{{ contrib.raw_name }}{% else %}Unknown{% endif %}{% if not loop.last %}, {% endif %} + {% endif %} + {% endfor %} + {% if authors|count > 12 %} (+{{ authors|length - 12 }} others) + {% endif %} +
+ {% endif %} + {% endif %} +

+ + +
+
+
+
+
+ +
+
+
+ {% block entity_main %}{% endblock %} +
+
+
+{% endblock %} + +{% block postscript %} + +{% endblock %} -- cgit v1.2.3