| {#- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| -#} |
| {% from 'allura:templates/jinja_master/lib.html' import email_gravatar, abbr_date with context %} |
| <div> |
| {%if is_file%} |
| <div class="grid-19"><input type="button" value="Compare" class="compare_revision"></div> |
| {%endif%} |
| <table style="clear:both"> |
| <thead> |
| <tr> |
| <th style="text-align:left">Commit</th> |
| <th style="text-align:left">Date</th> |
| <th> </th> |
| </tr> |
| </thead> |
| <tbody> |
| {% for commit in value %} |
| <tr class="rev"> |
| <td> |
| <div> |
| {%if is_file%} |
| <div class="grid-1"><input type="checkbox" class="revision" revision="{{commit._id.split(':')[-1]}}" url_commit="{{commit.url()}}"></div> |
| {%endif%} |
| <a href="{{c.app.repo.url_for_commit(commit)}}">{{commit.shorthand_id()}}</a> |
| {% if c.app.repo.symbolics_for_commit(commit)[1] %} |
| ({% for tag in c.app.repo.symbolics_for_commit(commit)[1] -%} |
| <a href="{{c.app.repo.url_for_commit(tag)}}">{{tag}}</a>{% if not loop.last %} {% endif %} |
| {%- endfor %}) |
| {% endif %} |
| {%if is_file%} |
| ({{commit.tree.get_obj_by_path(request.params.get('path')).size|filesizeformat}}) |
| {%endif%} |
| by |
| {{email_gravatar(commit.authored.email, title=commit.authored.name, size=16)}} {{commit.authored.name}}{%if commit.committed.email != commit.authored.email %}, pushed by |
| {% if commit.committer_url %} |
| <a href="{{commit.committer_url}}">{{email_gravatar(commit.committed.email, title=commit.committed.name, size=16)}} |
| {{commit.committed.name}}</a> |
| {% else %} |
| {{email_gravatar(commit.committed.email, title=commit.committed.name, size=16)}} {{commit.committed.name}} |
| {% endif %} |
| {% endif %} |
| {{g.markdown.convert(commit.message)}} |
| </div> |
| </td> |
| <td style="vertical-align: text-top"> |
| {% if commit.committed.date %}{{commit.committed.date|datetimeformat}}{% endif %} |
| </td> |
| <td style="text-align: left; vertical-align: text-top"> |
| <a href="{{commit.url()}}tree{{request.params.get('path')}}"> |
| {%if is_file%} |
| View |
| {% else %} |
| Tree |
| {%endif%} |
| </a> |
| {%if is_file%} |
| <br/> |
| <a href="{{commit.url()}}tree{{request.params.get('path')}}?format=raw">Download</a> |
| {%endif%} |
| </td> |
| </tr> |
| {% endfor %} |
| </tbody> |
| </table> |
| {% if show_paging and next_commit %} |
| <a class="page_list" href="{{next_commit.url()}}log{{tg.url(params=request.params)}}">Older ></a> |
| {% endif %} |
| </div> |