~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/changelog.pt

  • Committer: Matt Nordhoff
  • Date: 2009-05-13 14:03:48 UTC
  • mto: (389.2.2 pep8-2009-10)
  • mto: This revision was merged to the branch mainline in revision 392.
  • Revision ID: mnordhoff@mattnordhoff.com-20090513140348-yn43gztulksm62e9
Always use a tuple in string formatting

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
  </head>
17
17
 
18
18
  <body>
19
 
      <tal:block metal:fill-slot="backlink">
20
 
          <tal:has-link condition="branch/branch_link">
21
 
            <div class="black-link">
22
 
                <a tal:attributes="href branch/branch_link">
23
 
                  &#8592; Back to branch summary
24
 
                </a>
25
 
            </div>
26
 
          </tal:has-link>
27
 
      </tal:block>
28
 
    <tal:block metal:fill-slot="branchname" tal:content="string:${branch/friendly_name}" />
29
19
    <tal:block metal:fill-slot="heading">
30
 
        <div id="breadcrumbs">
31
 
            <tal:has-link condition="branch/branch_link">
32
 
              <a tal:attributes="href branch/branch_link"
33
 
                 tal:content="branch/friendly_name">
34
 
                nice/branch/name
35
 
              </a>
36
 
            </tal:has-link>
37
 
            <tal:no-link condition="not: branch/branch_link">
38
 
              <span metal:use-macro="breadcrumbs/directory"></span>
39
 
            </tal:no-link>
40
 
            <tal:block condition="changes">
41
 
              &#187; Changes
42
 
              <tal:block condition="filter_file_id">to <span tal:content="python:history.get_path(revid, filter_file_id)" /></tal:block>
43
 
              <tal:block condition="start_revid">from revision
44
 
                <span tal:content="python:history.get_revno(start_revid)"/>
45
 
              </tal:block>
46
 
              <tal:block condition="query">matching <tal:block content="query" /></tal:block>
47
 
            </tal:block>
48
 
        </div>
 
20
      <h1>
 
21
        <tal:has-link condition="branch/branch_link">
 
22
          <a tal:attributes="href branch/branch_link"
 
23
             tal:content="branch/friendly_name">
 
24
            nice/branch/name
 
25
          </a>
 
26
        </tal:has-link>
 
27
        <tal:no-link condition="not: branch/branch_link">
 
28
          <span metal:use-macro="breadcrumbs/directory"></span>
 
29
        </tal:no-link>
 
30
        <tal:block condition="changes">
 
31
          : changes
 
32
          <tal:block condition="filter_file_id">to <span tal:content="python:history.get_path(revid, filter_file_id)" /></tal:block>
 
33
          <tal:block condition="start_revid">from revision
 
34
            <span tal:content="python:history.get_revno(start_revid)"/>
 
35
          </tal:block>
 
36
          <tal:block condition="query">matching <tal:block content="query" /></tal:block>
 
37
        </tal:block>
 
38
      </h1>
49
39
    </tal:block>
50
40
 
51
41
    <div metal:fill-slot="content">
79
69
      <!-- Table -->
80
70
      <table id="logentries">
81
71
        <tr class="logheader">
82
 
          <th class="revisionnumber">Rev</th>
83
 
          <th class="expandcell show_if_js">&nbsp;</th>
84
 
          <th class="summarycell">Summary</th>
85
 
          <th class="authorcell">Authors</th>
86
 
          <th tal:condition="show_tag_col" class="tagscell">Tags</th>
87
 
          <th class="datecell">Date</th>
88
 
          <th class="diffcell">Diff</th>
89
 
          <th class="downloadcell">Files</th>
 
72
          <td class="revisionnumber">Rev</td>
 
73
          <td class="expandcell show_if_js">&nbsp;</td>
 
74
          <td class="summarycell">Summary</td>
 
75
          <td class="authorcell">Authors</td>
 
76
          <td class="datecell">Date</td>
 
77
          <td class="diffcell">Diff</td>
 
78
          <td class="downloadcell">Files</td>
90
79
        </tr>
91
80
        <tal:block tal:repeat="entry changes">
92
81
          <a tal:attributes="name string:entry-${entry/revno}"/>
105
94
            </td>
106
95
            <td class="summcell">
107
96
              <div class="short_description">
108
 
                <img tal:condition="python:entry.parents[1:]"
109
 
                     tal:attributes="src python:branch.static_url('/static/images/ico_mergefrom.gif')" />
110
97
                <a tal:attributes="title python:'Show revision '+entry.revno;
111
98
                                   href  python:url(['/revision', entry.revno], clear=1);
112
99
                                   class string:link"
113
100
                   tal:content="entry/short_comment"></a>
114
101
              </div>
115
102
              <div class="long_description" style="display: none">
116
 
                <img tal:condition="python:entry.parents[1:]"
117
 
                     tal:attributes="src python:branch.static_url('/static/images/ico_mergefrom.gif')" />
118
103
                <a tal:attributes="title python:'Show revision '+entry.revno;
119
104
                                   href  python:url(['/revision', entry.revno], clear=1);
120
105
                                   class string:link"
126
111
            </td>
127
112
            <td tal:content="python:util.trunc(util.hide_email(entry.authors[0]), 20)"
128
113
                class="autcell"></td>
129
 
            <td tal:condition="show_tag_col" tal:content="string:${entry/tags}"
130
 
                class="tagcell"></td>
131
114
            <td class="date">
132
115
              <span tal:attributes="title python:util.date_time(entry.date)"
133
116
                    tal:content="python:util._approximatedate(entry.date)"></span>