~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/inventory.pt

  • Committer: Michael Hudson
  • Date: 2009-02-10 01:57:06 UTC
  • mto: This revision was merged to the branch mainline in revision 267.
  • Revision ID: michael.hudson@canonical.com-20090210015706-kjmo79xghst7kzga
convert tests to TestCaseWithTransport subclasses runnable with trial

Show diffs side-by-side

added added

removed removed

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