~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/inventory.pt

  • Committer: Jelmer Vernooij
  • Date: 2011-11-02 09:19:25 UTC
  • mfrom: (457.1.4 trunk)
  • Revision ID: jelmer@samba.org-20111102091925-c6g0yvs2fvc907n6
Merge support for BranchWSGIApp controller hook.

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">
31
38
        <tal:branch-info replace="structure python:branchinfo(branch)" />
70
77
                                             title string:Go to ${file/filename}" />
71
78
                    </a>
72
79
 
73
 
                 <a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])" 
 
80
                 <a tal:attributes="href python:url(['/files', revno_url, file.absolutepath])"
74
81
                                        tal:content="file/filename" class="link"></a>
75
82
                 </td>
76
83
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
89
96
 
90
97
            <!-- Show this if it's a symlink -->
91
98
            <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])">
93
 
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_flecha.gif')" alt="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" />
94
101
                    </a>
95
102
 
96
 
                 <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])" 
 
103
                 <a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])"
97
104
                                        tal:content="file/filename" class="link"></a>
98
105
                 </td>
99
106
                 <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
113
120
 
114
121
            <!-- Show this if it's a regular file -->
115
122
            <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])">
 
123
                <td class="autcell"><a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])">
117
124
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file.gif');
118
 
                                             title string:Annotate ${file/filename}"
 
125
                                             title string:View ${file/filename}"
119
126
                             tal:condition="python:file.executable is False" />
120
127
                        <!-- 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}"
 
128
                        <img tal:attributes="src python:branch.static_url('/static/images/ico_file_modify.gif');
 
129
                                             title string:View ${file/filename}"
123
130
                             tal:condition="python:file.executable is True" alt="File" />
124
131
                    </a>
125
132
 
126
 
              <a tal:attributes="href python:url(['/annotate', revno_url, file.absolutepath])"
 
133
              <a tal:attributes="href python:url(['/view', revno_url, file.absolutepath])"
127
134
                                     tal:content="file/filename" class="link"></a></td>
128
135
              <td class="date"><a tal:attributes="href python:url(['/revision', file.change.revno]);
129
136
                                                  title string:Show revision ${file/change/revno}"
131
138
              </td>
132
139
              <td class="date" tal:content="python:util.date_time(file.change.date)"></td>
133
140
              <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}">
 
141
              <td class="expcell"><a tal:attributes="href python:url(['/view', revno_url, file.absolutepath]);
 
142
                                                     title string:View ${file/filename}">
136
143
                                      <img tal:attributes="src python:branch.static_url('/static/images/ico_planilla.gif')" alt="Diff" />
137
144
                                     </a>
138
145
              </td>