~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/inventory.pt

  • Committer: Jasper St. Pierre
  • Date: 2011-03-12 17:15:08 UTC
  • mto: This revision was merged to the branch mainline in revision 434.
  • Revision ID: jstpierre@mecheye.net-20110312171508-o1nywoqskaq2r04u
Add fix for 569358

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    </metal:block>
10
10
  </head>
11
11
  <body>
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>
 
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
          <span tal:condition="not: branch/branch_link">
 
31
            <span metal:use-macro="breadcrumbs/directory" />
 
32
          </span>
 
33
          <tal:block condition="python:change">
 
34
            &#187; Viewing
 
35
            <span metal:use-macro="breadcrumbs/branch" />
 
36
            for revision <span tal:content="change/revno"/>
 
37
          </tal:block>
 
38
        </div>
 
39
      </tal:block>
29
40
 
30
41
    <div metal:fill-slot="content">
31
42
        <tal:branch-info replace="structure python:branchinfo(branch)" />
70
81
                                             title string:Go to ${file/filename}" />
71
82
                    </a>
72
83
 
73
 
                 <a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])" 
 
84
                 <a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])"
74
85
                                        tal:content="file/filename" class="link"></a>
75
86
                 </td>
76
87
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
89
100
 
90
101
            <!-- Show this if it's a symlink -->
91
102
            <tr tal:attributes="class string:blueRow${repeat/file/even}" tal:condition="python:file.kind=='symlink'">
92
 
                <td class="autcell"><a tal:attributes="href python:url(['/annotate', change.revno, file.absolutepath])">
 
103
                <td class="autcell"><a tal:attributes="href python:url(['/view', change.revno, file.absolutepath])">
93
104
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_flecha.gif')" alt="Symlink" />
94
105
                    </a>
95
106
 
96
 
                 <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])" 
 
107
                 <a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])"
97
108
                                        tal:content="file/filename" class="link"></a>
98
109
                 </td>
99
110
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
113
124
 
114
125
            <!-- Show this if it's a regular file -->
115
126
            <tr tal:attributes="class string:blueRow${repeat/file/even}" tal:condition="python:file.kind=='file'">
116
 
                <td class="autcell"><a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])">
 
127
                <td class="autcell"><a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])">
117
128
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file.gif');
118
 
                                             title string:Annotate ${file/filename}"
 
129
                                             title string:View ${file/filename}"
119
130
                             tal:condition="python:file.executable is False" />
120
131
                        <!-- 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}"
 
132
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_modify.gif');
 
133
                                             title string:View ${file/filename}"
123
134
                             tal:condition="python:file.executable is True" alt="File" />
124
135
                    </a>
125
136
 
126
 
              <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])"
 
137
              <a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])"
127
138
                                     tal:content="file/filename" class="link"></a></td>
128
139
              <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
129
140
                                                  title string:Show revision ${file/change/revno}"
131
142
              </td>
132
143
              <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
133
144
              <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}">
 
145
              <td class="expcell"><a tal:attributes="href python:url(['/view', revno_url, file.absolutepath]);
 
146
                                                     title string:View ${file/filename}">
136
147
                                      <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif')" alt="Diff" />
137
148
                                     </a>
138
149
              </td>