~loggerhead-team/loggerhead/1.18

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="macros/main">
  <head>
    <title metal:fill-slot="title"
           tal:content="string:${branch/friendly_name} : files for revision ${change/revno}"></title>
    <metal:block fill-slot="header_extras">
        <link rel="stylesheet" type="text/css" media="all"
              tal:attributes="href python:branch.static_url('/static/css/files.css')"/>
    </metal:block>
  </head>
  <body>

    <h1 metal:fill-slot="heading">
      <tal:has-link condition="branch/branch_link">
        <a tal:attributes="href branch/branch_link"
           tal:content="branch/friendly_name">
          nice/branch/name
        </a>
      </tal:has-link>
      <span tal:condition="not: branch/branch_link">
        <span metal:use-macro="breadcrumbs/directory" />
      </span>
      <tal:block condition="python:change">
        : viewing
        <span metal:use-macro="breadcrumbs/branch" />
        for revision <span tal:content="change/revno"/>
      </tal:block>
    </h1>

    <div metal:fill-slot="content">
        <tal:branch-info replace="structure python:branchinfo(branch)" />

        <p tal:condition="python:not change">
          No revisions!
        </p>
        <p tal:condition="python:change">
          <ul id="submenuTabs">
              <li id="first">
                  <a tal:attributes="href python:url(['/revision', change.revno], clear=1, start_revid=change.revno)">view revision</a>
              </li>
              <li id="last">
                  <a tal:attributes="href python:url(['/changes', change.revno], clear=1, start_revid=change.revno)">view branch changes</a>
              </li>
          </ul>

          <tal:revision-info replace="structure python:revisioninfo(url, branch, change)" />

          <table id="logentries">
            <tr class="logheader">
              <th class="summarycell"><a tal:attributes="href python:url(['/files', revid], sort='filename')">Filename</a></th>
              <th class="datecell">Latest Rev</th>
              <th class="datecell"><a tal:attributes="href python:url(['/files', revid], sort='date')">Last Changed</a></th>
              <th class="timedate"><a tal:attributes="href python:url(['/files', revid], sort='size')">Size</a></th>
              <th class="expandcell"></th>
              <th class="expandcell"></th>
            </tr>

            <tr class="blueRow0" tal:condition="python:updir is not None">
                <td class="summcell" colspan="6">
                    <a tal:attributes="href python:url(['/files', revno_url, updir])" class="link">
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_folder_up.gif')" />..</a>
                </td>
            </tr>

            <!-- Show this if it's a directory -->
            <tal:block repeat="file filelist">
            <tr tal:attributes="class string:blueRow${repeat/file/even}" tal:condition="python:file.kind=='directory'">
                <td class="autcell"><a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])">
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_folder.gif');
                                             title string:Go to ${file/filename}" />
                    </a>

                 <a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])"
                                        tal:content="file/filename" class="link"></a>
                 </td>
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
                                                     title string:Show revision ${file/change/revno}"
                                     tal:content="file/change/revno"></a>
                 </td>
                 <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
                 <td class="timedate2"></td>
                 <td class="expcell"><a tal:attributes="href python:url(['/changes'], start_revid=start_revid, filter_file_id=file.file_id);
                                                     title string:Show revision ${file/change/revno}">
                                      <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif')" alt="Diff" />
                                     </a>
              </td>
                <td class="expcell"></td>
            </tr>

            <!-- Show this if it's a symlink -->
            <tr tal:attributes="class string:blueRow${repeat/file/even}" tal:condition="python:file.kind=='symlink'">
                <td class="autcell"><a tal:attributes="href python:url(['/annotate', change.revno, file.absolutepath])">
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_flecha.gif')" alt="Symlink" />
                    </a>

                 <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])"
                                        tal:content="file/filename" class="link"></a>
                 </td>
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
                                                     title string:Show revision ${file/change/revno}"
                                     tal:content="file/change/revno"></a>
                 </td>
                 <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
                 <td class="timedate2">.</td>
                 <td class="expcell"><a tal:attributes="href python:url(['/changes'], start_revid=start_revid, filter_file_id=file.file_id);
                                                        title string:Show revision ${file/change/revno}">
                                          <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif');
                                                               title string:Show revision ${file/change/revno}" />
                                     </a>
              </td>
                <td class="expcell"></td>
            </tr>

            <!-- Show this if it's a regular file -->
            <tr tal:attributes="class string:blueRow${repeat/file/even}" tal:condition="python:file.kind=='file'">
                <td class="autcell"><a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])">
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file.gif');
                                             title string:Annotate ${file/filename}"
                             tal:condition="python:file.executable is False" />
                        <!-- Show a different icon id the file executable -->
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_modify.gif');
                                             title string:Annotate ${file/filename}"
                             tal:condition="python:file.executable is True" alt="File" />
                    </a>

              <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])"
                                     tal:content="file/filename" class="link"></a></td>
              <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
                                                  title string:Show revision ${file/change/revno}"
                                  tal:content="file/change/revno"></a>
              </td>
              <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
              <td class="timedate2" tal:content="python:util.human_size(file.size)"></td>
              <td class="expcell"><a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath]);
                                                     title string:Annotate ${file/filename}">
                                      <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif')" alt="Diff" />
                                     </a>
              </td>
              <td class="expcell">
                 <a tal:attributes="href python:url(['/download', file.revid, file.file_id, file.filename]);
                                    title string:Download ${file/filename} at revision ${file/change/revno}">
                   <img tal:attributes="src python:branch.static_url('/static/images/ico_file_download.gif')" alt="Download File" />
                 </a>
              </td>
           </tr>
          </tal:block>
        </table>
      </p>
    </div>
  </body>
</html>