~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/inventory.pt

  • Committer: Martin Albisetti
  • Date: 2008-08-05 19:27:32 UTC
  • mfrom: (198.1.1 whitespace_fix)
  • Revision ID: argentina@gmail.com-20080805192732-jg5z44pvscca3fco
Respect whitespace and line breaks in commit messages. Bug #252872

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
      <tal:no-link condition="not: branch/branch_link">
 
21
        <tal:branch-name replace="branch/friendly_name" />
 
22
      </tal:no-link>
 
23
      : viewing
 
24
      <span tal:content="path" /> for revision <span tal:content="change/revno"/>
 
25
    </h1>
36
26
 
37
27
    <div metal:fill-slot="content">
38
 
        <tal:branch-info replace="structure python:branchinfo(branch)" />
39
 
 
40
 
        <p tal:condition="python:not change">
41
 
          No revisions!
42
 
        </p>
43
 
        <p tal:condition="python:change">
44
 
          <ul id="submenuTabs">
45
 
              <li id="first">
46
 
                  <a tal:attributes="href python:url(['/revision', change.revno], clear=1, start_revid=change.revno)">view revision</a>
47
 
              </li>
48
 
              <li id="last">
49
 
                  <a tal:attributes="href python:url(['/changes', change.revno], clear=1, start_revid=change.revno)">view branch changes</a>
50
 
              </li>
51
 
          </ul>
52
 
 
53
 
          <tal:revision-info replace="structure python:revisioninfo(url, branch, change)" />
54
 
 
55
 
          <table id="logentries">
56
 
            <tr class="logheader">
57
 
              <th class="summarycell"><a tal:attributes="href python:url(['/files', revid], sort='filename')">Filename</a></th>
58
 
              <th class="datecell">Latest Rev</th>
59
 
              <th class="datecell"><a tal:attributes="href python:url(['/files', revid], sort='date')">Last Changed</a></th>
60
 
              <th class="timedate"><a tal:attributes="href python:url(['/files', revid], sort='size')">Size</a></th>
61
 
              <th class="expandcell"></th>
62
 
              <th class="expandcell"></th>
63
 
            </tr>
64
 
 
65
 
            <tr class="blueRow0" tal:condition="python:updir is not None">
66
 
                <td class="summcell" colspan="6">
67
 
                    <a tal:attributes="href python:url(['/files', revno_url, updir])" class="link">
68
 
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_folder_up.gif')" />..</a>
69
 
                </td>
70
 
            </tr>
71
 
 
72
 
            <!-- Show this if it's a directory -->
73
 
            <tal:block repeat="file filelist">
74
 
            <tr tal:attributes="class string:blueRow${repeat/file/even}" tal:condition="python:file.kind=='directory'">
75
 
                <td class="autcell"><a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])">
76
 
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_folder.gif');
77
 
                                             title string:Go to ${file/filename}" />
78
 
                    </a>
79
 
 
80
 
                 <a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])"
81
 
                                        tal:content="file/filename" class="link"></a>
82
 
                 </td>
83
 
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
84
 
                                                     title string:Show revision ${file/change/revno}"
85
 
                                     tal:content="file/change/revno"></a>
86
 
                 </td>
87
 
                 <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
88
 
                 <td class="timedate2"></td>
89
 
                 <td class="expcell"><a tal:attributes="href python:url(['/changes'], start_revid=start_revid, filter_file_id=file.file_id);
90
 
                                                     title string:Show revision ${file/change/revno}">
91
 
                                      <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif')" alt="Diff" />
92
 
                                     </a>
93
 
              </td>
94
 
                <td class="expcell"></td>
95
 
            </tr>
96
 
 
97
 
            <!-- Show this if it's a symlink -->
98
 
            <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" />
101
 
                    </a>
102
 
 
103
 
                 <a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])"
104
 
                                        tal:content="file/filename" class="link"></a>
105
 
                 </td>
106
 
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
107
 
                                                     title string:Show revision ${file/change/revno}"
108
 
                                     tal:content="file/change/revno"></a>
109
 
                 </td>
110
 
                 <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
111
 
                 <td class="timedate2">.</td>
112
 
                 <td class="expcell"><a tal:attributes="href python:url(['/changes'], start_revid=start_revid, filter_file_id=file.file_id);
113
 
                                                        title string:Show revision ${file/change/revno}">
114
 
                                          <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif');
115
 
                                                               title string:Show revision ${file/change/revno}" />
116
 
                                     </a>
117
 
              </td>
118
 
                <td class="expcell"></td>
119
 
            </tr>
120
 
 
121
 
            <!-- Show this if it's a regular file -->
122
 
            <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])">
124
 
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file.gif');
125
 
                                             title string:View ${file/filename}"
126
 
                             tal:condition="python:file.executable is False" />
127
 
                        <!-- Show a different icon id the file executable -->
128
 
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_modify.gif');
129
 
                                             title string:View ${file/filename}"
130
 
                             tal:condition="python:file.executable is True" alt="File" />
131
 
                    </a>
132
 
 
133
 
              <a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])"
134
 
                                     tal:content="file/filename" class="link"></a></td>
135
 
              <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
136
 
                                                  title string:Show revision ${file/change/revno}"
137
 
                                  tal:content="file/change/revno"></a>
138
 
              </td>
139
 
              <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
140
 
              <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}">
143
 
                                      <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif')" alt="Diff" />
144
 
                                     </a>
145
 
              </td>
146
 
              <td class="expcell">
147
 
                 <a tal:attributes="href python:url(['/download', file.revid, file.file_id, file.filename]);
148
 
                                    title string:Download ${file/filename} at revision ${file/change/revno}">
149
 
                   <img tal:attributes="src python:branch.static_url('/static/images/ico_file_download.gif')" alt="Download File" />
150
 
                 </a>
151
 
              </td>
152
 
           </tr>
153
 
          </tal:block>
154
 
        </table>
155
 
      </p>
 
28
        <ul id="submenuTabs">
 
29
            <li id="first">
 
30
                <a tal:attributes="href python:url(['/revision', change.revno], clear=1, start_revid=change.revno)">view revision</a>
 
31
            </li>
 
32
            <li id="last">
 
33
                <a tal:attributes="href python:url(['/changes', change.revno], clear=1, start_revid=change.revno)">view branch changes</a>
 
34
            </li>
 
35
        </ul>
 
36
 
 
37
      <tal:revision-info replace="structure python:revisioninfo(url, branch, change)" />
 
38
 
 
39
      <table id="logentries">
 
40
          <tr class="logheader">
 
41
            <th class="summarycell"><a tal:attributes="href python:url(['/files', revid], sort='filename')">Filename</a></th>
 
42
            <th class="datecell">Latest Rev</th>
 
43
            <th class="datecell"><a tal:attributes="href python:url(['/files', revid], sort='date')">Last Changed</a></th>
 
44
            <th class="timedate"><a tal:attributes="href python:url(['/files', revid], sort='size')">Size</a></th>
 
45
            <th class="expandcell"></th>
 
46
            <th class="expandcell"></th>
 
47
          </tr>
 
48
 
 
49
          <tr class="blueRow0" tal:condition="python:updir">
 
50
              <td class="summcell" colspan="6">
 
51
                  <a tal:attributes="href python:url(['/files', revid], file_id=updir_file_id)" class="link">
 
52
                      <img tal:attributes="src python:branch.static_url('/static/images/ico_folder_up.gif')" />..</a>
 
53
              </td>
 
54
          </tr>
 
55
          
 
56
          <!-- Show this if it's a directory --> 
 
57
          <tal:block repeat="file filelist">
 
58
          <tr tal:attributes="class string:blueRow${file/parity}" tal:condition="python:file.kind=='directory'">
 
59
              <td class="autcell"><a tal:attributes="href python:url(['/files', change.revno], file_id=file.file_id)">
 
60
                      <img tal:attributes="src python:branch.static_url('/static/images/ico_folder.gif');
 
61
                                           title string:Go to ${file/filename}" />
 
62
                  </a>
 
63
 
 
64
               <a tal:attributes="href python:url(['/files', change.revno], file_id=file.file_id)" 
 
65
                                      tal:content="file/filename" class="link"></a>
 
66
               </td>
 
67
               <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno], filter_file_id=file.file_id);
 
68
                                                   title string:Show revision ${file/change/revno}"
 
69
                                   tal:content="file/change/revno"></a>
 
70
               </td>
 
71
               <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
 
72
               <td class="timedate2"></td>
 
73
               <td class="expcell"><a tal:attributes="href python:url(['/changes'], start_revid=start_revid, filter_file_id=file.file_id);
 
74
                                                   title string:Show revision ${file/change/revno}">
 
75
                                    <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif')" alt="Diff" />
 
76
                                   </a>
 
77
            </td>
 
78
              <td class="expcell"></td>
 
79
          </tr>
 
80
          
 
81
          <!-- Show this if it's a symlink --> 
 
82
          <tr tal:attributes="class string:blueRow${file/parity}" tal:condition="python:file.kind=='symlink'">
 
83
              <td class="autcell"><a tal:attributes="href python:url(['/annotate', change.revno], file_id=file.file_id)">
 
84
                      <img tal:attributes="src python:branch.static_url('/static/images/ico_flecha.gif')" alt="Symlink" />
 
85
                  </a>
 
86
 
 
87
               <a tal:attributes="href python:url(['/annotate', change.revno], file_id=file.file_id)" 
 
88
                                      tal:content="file/filename" class="link"></a>
 
89
               </td>
 
90
               <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno], filter_file_id=file.file_id);
 
91
                                                   title string:Show revision ${file/change/revno}"
 
92
                                   tal:content="file/change/revno"></a>
 
93
               </td>
 
94
               <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
 
95
               <td class="timedate2">.</td>
 
96
               <td class="expcell"><a tal:attributes="href python:url(['/changes'], start_revid=start_revid, filter_file_id=file.file_id);
 
97
                                                      title string:Show revision ${file/change/revno}">
 
98
                                        <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif');
 
99
                                                             title string:Show revision ${file/change/revno}" />
 
100
                                   </a>
 
101
            </td>
 
102
              <td class="expcell"></td>
 
103
          </tr>
 
104
 
 
105
          <!-- Show this if it's a regular file --> 
 
106
          <tr tal:attributes="class string:blueRow${file/parity}" tal:condition="python:file.kind=='file'">
 
107
              <td class="autcell"><a tal:attributes="href python:url(['/annotate', change.revno], file_id=file.file_id)">
 
108
                      <img tal:attributes="src python:branch.static_url('/static/images/ico_file.gif');
 
109
                                           title string:Annotate ${file/filename}"
 
110
                           tal:condition="python:file.executable is False" />
 
111
                      <!-- Show a different icon id the file executable -->
 
112
                      <img tal:attributes="src python:branch.static_url('/static/images/ico_file_modify.gif'); 
 
113
                                           title string:Annotate ${file/filename}"
 
114
                           tal:condition="python:file.executable is True" alt="File" />
 
115
                  </a>
 
116
 
 
117
            <a tal:attributes="href python:url(['/annotate', change.revno], file_id=file.file_id)"
 
118
                                   tal:content="file/filename" class="link"></a></td>
 
119
            <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno], filter_file_id=file.file_id);
 
120
                                                title string:Show revision ${file/change/revno}"
 
121
                                tal:content="file/change/revno"></a>
 
122
            </td>
 
123
            <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
 
124
            <td class="timedate2" tal:content="python:util.human_size(file.size)"></td>
 
125
            <td class="expcell"><a tal:attributes="href python:url(['/annotate', change.revno], file_id=file.file_id);
 
126
                                                   title string:Annotate ${file/filename}">
 
127
                                    <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif')" alt="Diff" />
 
128
                                   </a>
 
129
            </td>
 
130
            <td class="expcell">
 
131
               <a tal:attributes="href python:url(['/download', file.revid, file.file_id, file.filename]);
 
132
                                  title string:Download ${file/filename} at revision ${file/change/revno}">
 
133
                 <img tal:attributes="src python:branch.static_url('/static/images/ico_file_download.gif')" alt="Download File" />
 
134
               </a>
 
135
            </td>
 
136
         </tr>
 
137
        </tal:block>
 
138
      </table>
156
139
    </div>
157
140
  </body>
158
141
</html>