diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-02-26 10:29:57 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-02-26 12:03:32 -0800 |
commit | d280b1b4fdc57bfd4c0c9cb56fd836d2ae80dbb5 (patch) | |
tree | 74ec3a50b361b3c4b3d3035780c2c0a25bc9d586 /python/fatcat_web/templates/entity_macros.html | |
parent | 96db9d510a6891594271af7c284c46335b4d7502 (diff) | |
download | fatcat-d280b1b4fdc57bfd4c0c9cb56fd836d2ae80dbb5.tar.gz fatcat-d280b1b4fdc57bfd4c0c9cb56fd836d2ae80dbb5.zip |
web: generic view improvements (entities, lists)
Diffstat (limited to 'python/fatcat_web/templates/entity_macros.html')
-rw-r--r-- | python/fatcat_web/templates/entity_macros.html | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index e8a763d2..e68254de 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -5,15 +5,15 @@ <div class="ui segment pink inverted attached"> {% if editgroup.changelog_index %} <b>Accepted Edit Version</b> - <p>This is the version of the entity as of a specific merged editgroup: + <p>This is the version of the entity as of a specific point in time: {% elif editgroup.submitted %} <b>Submitted Edit Version</b> - <p>This is a version of the entity that has been submitted for approval as part of an editgroup: + <p>This is a version of the entity that has been submitted for approval as part of: {% else %} <b>Edit In Progress</b> - <p>This is a version of the entity that has not yet been submitted for approval, part of an editgroup: + <p>This is a version of the entity that has not yet been submitted for approval. Part of: {% endif %} - <b><a href="/editgroup/{{ editgroup.editgroup_id }}" style="color: white; font-weight: bold;">{{ editgroup.editgroup_id }}</a></b> + <a href="/editgroup/{{ editgroup.editgroup_id }}" style="color: white; font-weight: bold; font-size: smaller;"><code>editgroup_{{ editgroup.editgroup_id }}</code></a> </div> {% elif entity.state == None and entity.ident == None %} <div class="ui segment pink inverted attached"> @@ -27,17 +27,15 @@ </div> {% endif %} -<div class="ui segment attached"> - <b>Fatcat Bits</b> - <p> - {% if entity.state %} - State is "{{ entity.state }}". +<div class="ui segment attached" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"> + <b>Catalog Record</b> + {% if entity.state and entity.state != "active" %} + <br>State: <code>{{ entity.state }}</code> {% endif %} {% if entity.revision %} - Revision: - <br><small><code><a href="/{{ entity_type }}/rev/{{ entity.revision }}">{{ entity.revision }}</a></code></small> + <br>Revision: <small><code><a href="/{{ entity_type }}/rev/{{ entity.revision }}">{{ entity.revision }}</a></code></small> {% endif %} - <br><a href=" + <br>API URL: <a href=" {%- if config.FATCAT_DOMAIN == 'dev.fatcat.wiki' -%} http://localhost:9411 {%- else -%} @@ -52,7 +50,7 @@ /{{ entity_type }}/rev/{{ entity.revision }} {% endif %} {% if expand %}?expand={{ expand}}{% endif %}"> - As JSON object via API + JSON </a> </div> |