Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/browse/revision-log.html
Show All 16 Lines | |||||
{% block swh-browse-content %} | {% block swh-browse-content %} | ||||
{% if snapshot_context %} | {% if snapshot_context %} | ||||
{% include "includes/top-navigation.html" %} | {% include "includes/top-navigation.html" %} | ||||
{% endif %} | {% endif %} | ||||
{% if snapshot_context and snapshot_context.is_empty %} | {% if snapshot_context and snapshot_context.is_empty %} | ||||
{% include "includes/empty-snapshot.html" %} | {% include "includes/empty-snapshot.html" %} | ||||
{% else %} | {% else %} | ||||
<hr class="mt-1 mb-1"> | |||||
<div class="text-center"> | |||||
<div class="form-check form-check-inline" > | |||||
<input class="form-check-input" type="radio" name="revs-ordering" id="revs-ordering-date" | |||||
value="" onclick="swh.revision.revsOrderingTypeClicked(event)" checked> | |||||
<label class="form-check-label active" for="revs-ordering-date">Commit date ordering</label> | |||||
</div> | |||||
<div class="form-check form-check-inline"> | |||||
<input class="form-check-input" type="radio" name="revs-ordering" id="revs-ordering-dfs" | |||||
value="dfs" onclick="swh.revision.revsOrderingTypeClicked(event)"> | |||||
<label class="form-check-label" for="revs-ordering-dfs">DFS ordering</label> | |||||
</div> | |||||
<div class="form-check form-check-inline"> | |||||
<input class="form-check-input" type="radio" name="revs-ordering" id="revs-ordering-dfs-post" | |||||
value="dfs_post" onclick="swh.revision.revsOrderingTypeClicked(event)"> | |||||
<label class="form-check-label" for="revs-ordering-dfs-post">DFS post ordering</label> | |||||
</div> | |||||
<div class="form-check form-check-inline"> | |||||
<input class="form-check-input" type="radio" name="revs-ordering" id="revs-ordering-bfs" | |||||
value="bfs" onclick="swh.revision.revsOrderingTypeClicked(event)"> | |||||
<label class="form-check-label" for="revs-ordering-bfs">BFS ordering</label> | |||||
</div> | |||||
</div> | |||||
<div class="table-responsive mb-3"> | <div class="table-responsive mb-3"> | ||||
<table class="table swh-table swh-table-striped"> | <table class="table swh-table swh-table-striped"> | ||||
<thead> | <thead> | ||||
<tr> | <tr> | ||||
<th><i class="octicon octicon-git-commit fa-fw"></i>Revision</th> | <th><i class="octicon octicon-git-commit fa-fw"></i>Revision</th> | ||||
<th>Author</th> | <th>Author</th> | ||||
<th>Message</th> | |||||
<th>Date</th> | <th>Date</th> | ||||
<th></th> | <th>Message</th> | ||||
<th>Commit Date</th> | |||||
</tr> | </tr> | ||||
</thead> | </thead> | ||||
<tbody> | <tbody> | ||||
{% for log in revision_log %} | {% for log in revision_log %} | ||||
<tr class="swh-revision-log-entry"> | <tr class="swh-revision-log-entry"> | ||||
<td class="swh-revision-log-entry-id"><i class="octicon octicon-git-commit fa-fw"></i>{{ log.revision }}</td> | <td class="swh-revision-log-entry-id"><i class="octicon octicon-git-commit fa-fw"></i>{{ log.revision }}</td> | ||||
<td class="swh-revision-log-entry-author">{{ log.author }}</td> | <td class="swh-revision-log-entry-author">{{ log.author }}</td> | ||||
<td class="swh-log-entry-message swh-table-cell-text-overflow" title="{{ log.message }}">{{ log.message }}</td> | |||||
<td class="swh-revision-log-entry-date">{{ log.date }}</td> | <td class="swh-revision-log-entry-date">{{ log.date }}</td> | ||||
<td>{{ log.directory }}</td> | <td class="swh-log-entry-message swh-table-cell-text-overflow" title="{{ log.message }}">{{ log.message }}</td> | ||||
<td class="swh-revision-log-entry-commit-date">{{ log.commit_date }}</td> | |||||
</tr> | </tr> | ||||
{% endfor %} | {% endfor %} | ||||
</tbody> | </tbody> | ||||
</table> | </table> | ||||
</div> | </div> | ||||
<script> | |||||
swh.revision.initRevisionsLog(); | |||||
</script> | |||||
{% endif %} | {% endif %} | ||||
{% endblock %} | {% endblock %} | ||||
{% block swh-browse-after-content %} | {% block swh-browse-after-content %} | ||||
{% if not snapshot_context or not snapshot_context.is_empty %} | {% if not snapshot_context or not snapshot_context.is_empty %} | ||||
<ul class="pagination justify-content-center"> | <ul class="pagination justify-content-center"> | ||||
{% if next_log_url %} | {% if next_log_url %} | ||||
<li class="page-item"><a class="page-link" href="{{ next_log_url }}">Newer</a></li> | <li class="page-item"><a class="page-link" href="{{ next_log_url }}">Newer</a></li> | ||||
Show All 11 Lines |