aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-07-28 14:48:03 +0100
committerrubenwardy <rw@rubenwardy.com>2018-07-28 14:48:03 +0100
commit8c3b1c8c9550c9fec9a82a9afa1c4670fcf42e07 (patch)
treed6797742e580a555aca511ccc50dc757ab93bc38 /app/templates
parentecdb755dd3632a6c64c8d189b19255ba45e08cb7 (diff)
downloadcheatdb-8c3b1c8c9550c9fec9a82a9afa1c4670fcf42e07.tar.xz
Add commit hash to releases
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/packages/release_edit.html4
-rw-r--r--app/templates/packages/view.html3
2 files changed, 6 insertions, 1 deletions
diff --git a/app/templates/packages/release_edit.html b/app/templates/packages/release_edit.html
index a201a38..faa475e 100644
--- a/app/templates/packages/release_edit.html
+++ b/app/templates/packages/release_edit.html
@@ -21,6 +21,10 @@
Url: <a href="{{ release.url }}">{{ release.url }}</a><br />
{% endif %}
+ {% if release.commit_hash %}
+ Commit Hash: {{ release.commit_hash }}<br />
+ {% endif %}
+
{% if release.task_id %}
Importing... <a href="{ url_for('check_task', id=release.task_id, r=release.getEditURL()) }}">view task</a><br />
{% if package.checkPerm(current_user, "CHANGE_RELEASE_URL") %}
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html
index b118046..181ae99 100644
--- a/app/templates/packages/view.html
+++ b/app/templates/packages/view.html
@@ -188,7 +188,8 @@
<li>
{% if not rel.approved %}<i>{% endif %}
- <a href="{{ rel.url }}">{{ rel.title }}</a>,
+ <a href="{{ rel.url }}">{{ rel.title }}</a>{% if rel.commit_hash %}
+ [{{ rel.commit_hash | truncate(5, end='') }}]{% endif %},
created {{ rel.releaseDate | datetime }}.
{% if rel.task_id %}
<a href="{{ url_for('check_task', id=rel.task_id, r=package.getDetailsURL()) }}">Importing...</a>