~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-04-22 18:18:02 UTC
  • mto: This revision was merged to the branch mainline in revision 448.
  • Revision ID: jstpierre@mecheye.net-20110422181802-7y2yambz9iscfa17
Make breadcrumbs consistent

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
          <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>
29
36
 
30
37
    <div metal:fill-slot="content">
 
38
        <tal:branch-info replace="structure python:branchinfo(branch)" />
 
39
 
31
40
        <p tal:condition="python:not change">
32
41
          No revisions!
33
42
        </p>
62
71
 
63
72
            <!-- Show this if it's a directory -->
64
73
            <tal:block repeat="file filelist">
65
 
            <tr tal:attributes="class string:blueRow${file/parity}" tal:condition="python:file.kind=='directory'">
 
74
            <tr tal:attributes="class string:blueRow${repeat/file/even}" tal:condition="python:file.kind=='directory'">
66
75
                <td class="autcell"><a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])">
67
76
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_folder.gif');
68
77
                                             title string:Go to ${file/filename}" />
69
78
                    </a>
70
79
 
71
 
                 <a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])" 
 
80
                 <a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])"
72
81
                                        tal:content="file/filename" class="link"></a>
73
82
                 </td>
74
83
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
86
95
            </tr>
87
96
 
88
97
            <!-- Show this if it's a symlink -->
89
 
            <tr tal:attributes="class string:blueRow${file/parity}" tal:condition="python:file.kind=='symlink'">
90
 
                <td class="autcell"><a tal:attributes="href python:url(['/annotate', change.revno, file.absolutepath])">
91
 
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_flecha.gif')" alt="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" />
92
101
                    </a>
93
102
 
94
 
                 <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])" 
 
103
                 <a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])"
95
104
                                        tal:content="file/filename" class="link"></a>
96
105
                 </td>
97
106
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
110
119
            </tr>
111
120
 
112
121
            <!-- Show this if it's a regular file -->
113
 
            <tr tal:attributes="class string:blueRow${file/parity}" tal:condition="python:file.kind=='file'">
114
 
                <td class="autcell"><a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])">
 
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])">
115
124
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file.gif');
116
 
                                             title string:Annotate ${file/filename}"
 
125
                                             title string:View ${file/filename}"
117
126
                             tal:condition="python:file.executable is False" />
118
127
                        <!-- Show a different icon id the file executable -->
119
 
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_modify.gif'); 
120
 
                                             title string:Annotate ${file/filename}"
 
128
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_modify.gif');
 
129
                                             title string:View ${file/filename}"
121
130
                             tal:condition="python:file.executable is True" alt="File" />
122
131
                    </a>
123
132
 
124
 
              <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])"
 
133
              <a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])"
125
134
                                     tal:content="file/filename" class="link"></a></td>
126
135
              <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
127
136
                                                  title string:Show revision ${file/change/revno}"
129
138
              </td>
130
139
              <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
131
140
              <td class="timedate2" tal:content="python:util.human_size(file.size)"></td>
132
 
              <td class="expcell"><a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath]);
133
 
                                                     title string:Annotate ${file/filename}">
 
141
              <td class="expcell"><a tal:attributes="href python:url(['/view', revno_url, file.absolutepath]);
 
142
                                                     title string:View ${file/filename}">
134
143
                                      <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif')" alt="Diff" />
135
144
                                     </a>
136
145
              </td>