-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changelog page to review all proposal changes
- Loading branch information
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{% from "_formhelpers.html" import render_field %} | ||
{% extends "cfp_review/base.html" %} | ||
{% block body %} | ||
<table class="table table-condensed"> | ||
<tr> | ||
<th>ID</th> | ||
<th>Type</th> | ||
<th>Title</th> | ||
<th>Modified</th> | ||
<th>User</th> | ||
</tr> | ||
{% for version in versions %} | ||
<tr> | ||
<td>{{ version.id }}-{{ version.transaction_id }}</td> | ||
<td>{{ version.type }}</td> | ||
<td> | ||
<a href="{{ url_for('.proposal_version', proposal_id=version.id, txn_id=version.transaction_id) }}"> | ||
{{ version.title }} | ||
</a> | ||
</td> | ||
<td>{{ version.modified.strftime("%Y-%m-%d %H:%M") }}</td> | ||
<td>{{ version.user.name }} ({{ version.user.email }}</td> | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
|
||
{% if versions.pages > 1 %} | ||
<div> | ||
{{ versions.first }} - {{ versions.last }} of {{ versions.total }} | ||
</div> | ||
|
||
<nav aria-label="Version navigation"> | ||
<ul class="pagination"> | ||
{% if versions.has_prev %} | ||
<li class="page-item"><a class="page-link" href="{{url_for('.proposal_versions', page=versions.prev_num, size=versions.per_page )}}"> | ||
<span aria-hidden="true">«</span> | ||
<span class="sr-only">Previous</span> | ||
</a></li> | ||
{% endif %} | ||
<li class="page-item active"><a class="page-link" href="#">{{ versions.page }}</a></li> | ||
{% if versions.has_next %} | ||
<li class="page-item"><a class="page-link" href="{{url_for('.proposal_versions', page=versions.next_num, size=versions.per_page)}}"> | ||
<span aria-hidden="true">»</span> | ||
<span class="sr-only">Next</span> | ||
</a></li> | ||
{% endif %} | ||
</ul> | ||
</nav> | ||
{% endif %} | ||
{% endblock %} |