~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/revisioninfo.pt

Merge Francesco's fix for bug #820065. Don't break when annotating a zero-sized file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<div class="infoContainer">
2
2
    <div id="infTxt">
3
 
        <div class="committer" tal:content="python:', '.join(util.hide_emails(change.authors))"></div>
4
 
        <div class="timer" tal:content="python:util.date_time(change.date)"></div>
5
 
        <div class="mfrom" tal:repeat="parent python:change.parents[1:]">
6
 
            <a tal:attributes="title string:Merged From ${parent/revno};
7
 
                               href python:url(['/revision', parent.revno], clear=1)"
8
 
               tal:content="python:revno_with_nick(parent)"></a>
9
 
        </div>
10
 
        <div class="mto" tal:repeat="merge_point change/merge_points">
11
 
            <a tal:attributes="title string:Merged In ${merge_point/revno};
12
 
                               href python:url(['/revision', merge_point.revno], clear=1)"
13
 
               tal:content="python:revno_with_nick(merge_point)"></a>
14
 
        </div>
15
 
        <div class="mto" tal:condition="merged_in">
16
 
          This revision was merged to the branch mainline in
17
 
          <a tal:attributes="href python:url(['/revision', merged_in], clear=1)">revision
18
 
            <tal:b content="merged_in"/></a>.
19
 
        </div>
20
 
        <div class="revid" tal:content="string:Revision ID: ${change/revid}"></div>
 
3
        <ul>
 
4
            <li class="committer">
 
5
                <strong>Committer:</strong>
 
6
                <span tal:content="python:util.hide_email(change.committer)"></span>
 
7
            </li>
 
8
            <li class="authors" tal:condition="python:len(change.authors) > 1 or change.authors[0] != change.committer">
 
9
                <strong>Author(s):</strong>
 
10
                <span tal:content="python:', '.join(util.hide_emails(change.authors))"></span>
 
11
            </li>
 
12
            <li class="timer">
 
13
                <strong>Date:</strong>
 
14
                <span tal:content="python:util.date_time(change.date)"></span>
 
15
            </li>
 
16
            <li class="mfrom" tal:condition="python:change.parents[1:]">
 
17
                <strong>mfrom:</strong>
 
18
                <span tal:repeat="parent python:change.parents[1:]">
 
19
                    <a tal:attributes="title string:Merged From ${parent/revno};
 
20
                                       href python:url(['/revision', parent.revno], clear=1)"
 
21
                       tal:content="python:revno_with_nick(parent)"></a>
 
22
                </span>
 
23
            </li>
 
24
            <li class="mto" tal:condition="change/merge_points">
 
25
                <strong>mto:</strong>
 
26
                <span tal:repeat="merge_point change/merge_points">
 
27
                    <a tal:attributes="title string:Merged In ${merge_point/revno};
 
28
                                       href python:url(['/revision', merge_point.revno], clear=1)"
 
29
                       tal:content="python:revno_with_nick(merge_point)"></a>
 
30
                </span>
 
31
            </li>
 
32
            <li class="mto" tal:condition="merged_in">
 
33
                <strong>mto:</strong>
 
34
                  This revision was merged to the branch mainline in
 
35
                  <a tal:attributes="href python:url(['/revision', merged_in], clear=1)">revision
 
36
                    <tal:b content="merged_in"/></a>.
 
37
            </li>
 
38
            <li class="revid">
 
39
                <strong>Revision ID:</strong>
 
40
                <span tal:content="change/revid"></span>
 
41
            </li>
 
42
        </ul>
21
43
        <div tal:attributes="class string:foreign-${change/foreign_vcs}"
22
44
             tal:condition="change/foreign_vcs" 
23
45
             tal:repeat="revid_part python:change.foreign_revid.keys()"