~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/inventory.pt

  • Committer: Matt Nordhoff
  • Date: 2009-04-30 10:39:05 UTC
  • mto: This revision was merged to the branch mainline in revision 406.
  • Revision ID: mnordhoff@mattnordhoff.com-20090430103905-10si14h2i325htrj
Strip trailing whitespace

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    </metal:block>
10
10
  </head>
11
11
  <body>
12
 
      <tal:block metal:fill-slot="backlink">
13
 
          <tal:has-link condition="branch/branch_link">
14
 
            <div class="black-link">
15
 
                <a tal:attributes="href branch/branch_link">
16
 
                  &#8592; Back to branch summary
17
 
                </a>
18
 
            </div>
19
 
          </tal:has-link>
20
 
      </tal:block>
21
 
      <tal:block metal:fill-slot="branchname" tal:content="string:${branch/friendly_name}" />
22
 
          <tal:block metal:fill-slot="heading">
23
 
          <div id="breadcrumbs">
24
 
          <tal:has-link condition="branch/branch_link">
25
 
            <a tal:attributes="href branch/branch_link"
26
 
               tal:content="branch/friendly_name">
27
 
              nice/branch/name
28
 
            </a>
29
 
          </tal:has-link>
30
 
          <tal:no-link condition="not: branch/branch_link">
31
 
            <span metal:use-macro="breadcrumbs/directory"></span>
32
 
          </tal:no-link>
33
 
          <span>: <span metal:use-macro="breadcrumbs/branch" /> (revision <tal:revno content="change/revno"></tal:revno>)</span>
34
 
        </div>
35
 
      </tal:block>
 
12
 
 
13
    <h1 metal:fill-slot="heading">
 
14
      <tal:has-link condition="branch/branch_link">
 
15
        <a tal:attributes="href branch/branch_link"
 
16
           tal:content="branch/friendly_name">
 
17
          nice/branch/name
 
18
        </a>
 
19
      </tal:has-link>
 
20
      <span tal:condition="not: branch/branch_link">
 
21
        <span metal:use-macro="breadcrumbs/directory" />
 
22
      </span>
 
23
      <tal:block condition="python:change">
 
24
        : viewing
 
25
        <span metal:use-macro="breadcrumbs/branch" />
 
26
        for revision <span tal:content="change/revno"/>
 
27
      </tal:block>
 
28
    </h1>
36
29
 
37
30
    <div metal:fill-slot="content">
38
31
        <tal:branch-info replace="structure python:branchinfo(branch)" />
84
77
                                                     title string:Show revision ${file/change/revno}"
85
78
                                     tal:content="file/change/revno"></a>
86
79
                 </td>
87
 
                 <td class="date" tal:content="python:util.date_time(file.change.utc_date)"></td>
 
80
                 <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
88
81
                 <td class="timedate2"></td>
89
82
                 <td class="expcell"><a tal:attributes="href python:url(['/changes'], start_revid=start_revid, filter_file_id=file.file_id);
90
83
                                                     title string:Show revision ${file/change/revno}">
96
89
 
97
90
            <!-- Show this if it's a symlink -->
98
91
            <tr tal:attributes="class string:blueRow${repeat/file/even}" tal:condition="python:file.kind=='symlink'">
99
 
                <td class="autcell"><a tal:attributes="href python:url(['/view', change.revno, file.absolutepath])">
100
 
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_flecha.gif')" alt="Symlink" />
 
92
                <td class="autcell"><a tal:attributes="href python:url(['/annotate', change.revno, file.absolutepath])">
 
93
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_flecha.gif')" alt="Symlink" />
101
94
                    </a>
102
95
 
103
 
                 <a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])"
 
96
                 <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])"
104
97
                                        tal:content="file/filename" class="link"></a>
105
98
                 </td>
106
99
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
107
100
                                                     title string:Show revision ${file/change/revno}"
108
101
                                     tal:content="file/change/revno"></a>
109
102
                 </td>
110
 
                 <td class="date" tal:content="python:util.date_time(file.change.utc_date)"></td>
 
103
                 <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
111
104
                 <td class="timedate2">.</td>
112
105
                 <td class="expcell"><a tal:attributes="href python:url(['/changes'], start_revid=start_revid, filter_file_id=file.file_id);
113
106
                                                        title string:Show revision ${file/change/revno}">
120
113
 
121
114
            <!-- Show this if it's a regular file -->
122
115
            <tr tal:attributes="class string:blueRow${repeat/file/even}" tal:condition="python:file.kind=='file'">
123
 
                <td class="autcell"><a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])">
 
116
                <td class="autcell"><a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])">
124
117
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file.gif');
125
 
                                             title string:View ${file/filename}"
 
118
                                             title string:Annotate ${file/filename}"
126
119
                             tal:condition="python:file.executable is False" />
127
120
                        <!-- Show a different icon id the file executable -->
128
121
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_modify.gif');
129
 
                                             title string:View ${file/filename}"
 
122
                                             title string:Annotate ${file/filename}"
130
123
                             tal:condition="python:file.executable is True" alt="File" />
131
124
                    </a>
132
125
 
133
 
              <a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])"
 
126
              <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])"
134
127
                                     tal:content="file/filename" class="link"></a></td>
135
128
              <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
136
129
                                                  title string:Show revision ${file/change/revno}"
137
130
                                  tal:content="file/change/revno"></a>
138
131
              </td>
139
 
              <td class="date" tal:content="python:util.date_time(file.change.utc_date)"></td>
 
132
              <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
140
133
              <td class="timedate2" tal:content="python:util.human_size(file.size)"></td>
141
 
              <td class="expcell"><a tal:attributes="href python:url(['/view', revno_url, file.absolutepath]);
142
 
                                                     title string:View ${file/filename}">
 
134
              <td class="expcell"><a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath]);
 
135
                                                     title string:Annotate ${file/filename}">
143
136
                                      <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif')" alt="Diff" />
144
137
                                     </a>
145
138
              </td>