diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-03-01 15:48:10 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-03-01 15:48:10 -0800 |
commit | ec0d7f3b50390c2b9140ea954787d365b8d225ae (patch) | |
tree | f95261e7ace1898abf9256d520b086f54e257bdc /python/fatcat_web/templates/work_view.html | |
parent | ddd5912a825ef42670cf164cf64989072bb57e5f (diff) | |
download | fatcat-ec0d7f3b50390c2b9140ea954787d365b8d225ae.tar.gz fatcat-ec0d7f3b50390c2b9140ea954787d365b8d225ae.zip |
make 'Fatcat Bits' a macro
Diffstat (limited to 'python/fatcat_web/templates/work_view.html')
-rw-r--r-- | python/fatcat_web/templates/work_view.html | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/python/fatcat_web/templates/work_view.html b/python/fatcat_web/templates/work_view.html index 9a560ae4..b81293ce 100644 --- a/python/fatcat_web/templates/work_view.html +++ b/python/fatcat_web/templates/work_view.html @@ -1,4 +1,7 @@ +{% set entity = work %} +{% import "entity_macros.html" as entity_macros %} {% extends "base.html" %} + {% block fullbody %} <div class="ui stackable mobile reversed grid centered"> @@ -65,19 +68,10 @@ pre-print and a published article may contain small differences, but still reference the same underlying "work". </div> -<div class="five wide column"> -<div class="ui segment top attached"> -<b>Fatcat Bits</b> -<p>State is "{{ work.state }}". Revision: -<br><small><code>{{ work.revision }}</code></small> -<br><a href="https://api.{{ config.FATCAT_DOMAIN }}/v0/work/{{ work.ident }}">As JSON object via API</a> +<div class="five wide column"> -</div> -<div class="two ui buttons bottom attached"> - <a href="/work/{{ work.ident }}/edit" class="ui blue button">Edit Metadata</a> - <a href="/work/{{ work.ident }}/history" class="ui button">View History</a> -</div> +{{ entity_macros.fatcat_bits(entity, "work", "") }} </div> </div> |