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