aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/entity_base.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-10 17:46:47 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-13 14:36:59 -0700
commit210f39a845e676e162eaa73d7ca401a8d3d89bcf (patch)
treeddeea7c9f1785a5f9553d942ede30645bf133a77 /python/fatcat_web/templates/entity_base.html
parent682f263e8053aab9ecce427eee9f3c589816941b (diff)
downloadfatcat-210f39a845e676e162eaa73d7ca401a8d3d89bcf.tar.gz
fatcat-210f39a845e676e162eaa73d7ca401a8d3d89bcf.zip
entity view tweaks
Diffstat (limited to 'python/fatcat_web/templates/entity_base.html')
-rw-r--r--python/fatcat_web/templates/entity_base.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/fatcat_web/templates/entity_base.html b/python/fatcat_web/templates/entity_base.html
index aa32ac3b..6b64dfdf 100644
--- a/python/fatcat_web/templates/entity_base.html
+++ b/python/fatcat_web/templates/entity_base.html
@@ -1,14 +1,14 @@
{% extends "base.html" %}
-{% macro entity_tab(name, text, url_suffix) %}
-<a href ="/{{ entity_type }}/{{ entity.ident }}{{ url_suffix }}" class="{% if entity_view == name %}active{% endif %} item">{{ text }}</a>
+{% macro entity_tab(name, text, url_suffix, count=None) %}
+<a href ="/{{ entity_type }}/{{ entity.ident }}{{ url_suffix }}" class="{% if entity_view == name %}active{% endif %} item" style="padding: 0em 1.2em;">{{ text }}{% if count != None %} ({{ count }}){% endif %}</a>
{% endmacro %}
{% block fullmain %}
<div class="ui vertical stripe segment" style="background-color: #EEE; padding-top: 5em; padding-bottom: 0px; border-bottom: 0px;">
<div class="ui container">
<div class="ui centered grid">
- <div class="fourteen wide column" style="padding-bottom: 0px;">
+ <div class="fifteen wide large screen sixteen wide column" style="padding-bottom: 0px;">
<h1 class="ui header">
{% if entity_type == "release" %}
<span itemprop="headline"><span itemprop="name">{{ entity.title }}</span></span>
@@ -39,8 +39,8 @@
<div class="ui small tabular compact menu">
{{ entity_tab("overview", "Overview", "") }}
{% if entity_type == "release" %}
- {{ entity_tab("files", "Files", "/files") }}
- {{ entity_tab("references", "References", "/references") }}
+ {{ entity_tab("contribs", "Authors", "/contribs", authors|count ) }}
+ {{ entity_tab("references", "References", "/references", entity.refs|count) }}
{% endif %}
{{ entity_tab("metadata", "Metadata", "/metadata") }}
</div>
@@ -56,7 +56,7 @@
<div class="ui container" style="padding-top: 3em;">
<div class="ui centered grid">
- <div class="fourteen wide column" style="padding-bottom: 0px;">
+ <div class="fifteen wide large screen sixteen wide column" style="padding-bottom: 0px;">
{% block entity_main %}{% endblock %}
</div>
</div>