[b6dba6]: Allura / allura / templates / widgets / repo / revision.html Maximize Restore History

Download this file

revision.html    57 lines (51 with data), 2.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{% from 'allura:templates/jinja_master/lib.html' import email_gravatar, abbr_date with context %}
<div class="commit-details">
<div class="commit-message">
<div class="first-line">{{g.markdown.convert(h.really_unicode(value.message.split('\n')[0]))}}</div>
{{g.markdown.convert(h.really_unicode('\n'.join(value.message.split('\n')[1:])))}}
</div>
<div class="commit-details">
<div class="commit-authorship">
<p>
<label>Authored by:</label>
{% if value.author_url %}
<a href="{{value.author_url}}">{{email_gravatar(value.authored.email, title=h.really_unicode(value.authored.name), size=16)}}</a>
<a href="{{value.author_url}}">{{h.really_unicode(value.authored.name)}}</a>
{% else %}
{{email_gravatar(value.authored.email, title=h.really_unicode(value.authored.name), size=16)}} {{h.really_unicode(value.authored.name)}}
{% endif %}
{% if value.authored.date %}{{abbr_date(value.authored.date)}}{% endif %}
</p>
{% if value.committed.email != value.authored.email %}
<p>
<label>Committed by:</label>
{% if value.committer_url %}
<a href="{{value.committer_url}}">{{email_gravatar(value.committed.email, title=h.really_unicode(value.committed.name), size=16)}}</a>
<a href="{{value.committer_url}}">{{h.really_unicode(value.committed.name)}}</a>
{% else %}
{{email_gravatar(value.committed.email, title=h.really_unicode(value.committed.name), size=16)}} {{h.really_unicode(value.committed.name)}}
{% endif %}
{% if value.committed.date %}{{abbr_date(value.committed.date)}}{% endif %}
</p>
{% endif %}
</div>
<div class="commit-links">
<a class="commit-tree-link" href="{{value.url()}}tree/">Tree</a>
<div class="commit-ancestry">
{% if prev %}
<p class="commit-parents">
Parent(s):
{% for ci in prev %}<a href="{{ci.url()}}">{{ci.shorthand_id()}}</a>{% endfor %}
</p>
{% endif %}
{% if next %}
<p class="commit-children">
Child(ren):
{% for ci in next %}<a href="{{ci.url()}}">{{ci.shorthand_id()}}</a>{% endfor %}
</p>
{% endif %}
</div>
</div>
<div class="clearfix"></div>
</div>
</div>