~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/browse.pt

  • Committer: Martin Albisetti
  • Date: 2008-08-06 20:05:20 UTC
  • mfrom: (201.1.1 fix_1.6)
  • Revision ID: argentina@gmail.com-20080806200520-0q9va543yo1486nw
Added both methods to fix API break in 1.6. Bug #253520

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
  <body>
10
10
 
11
11
    <h1 metal:fill-slot="heading" style="padding-bottom: 1em">
12
 
      <tal:title condition="title" content="title">
13
 
        ${title}
14
 
      </tal:title>
 
12
      <tal:title condition="title" content="title" />
15
13
      <tal:no-title condition="not:title">
16
14
        bazaar branches in loggerhead
17
15
      </tal:no-title>
21
19
      <div class="browse-project"
22
20
           tal:repeat="project projects">
23
21
        <div class="browse-project-name"
24
 
             tal:content="project/friendly_name">
25
 
          ${project.friendly_name}
26
 
        </div>
 
22
             tal:content="project/friendly_name"></div>
27
23
 
28
24
        <div class="browse-project-description"
29
25
             tal:condition="python:len(project.long_description) > 0"
30
 
             tal:content="structure project/long_description">
31
 
          ${XML(project.long_description)}
32
 
        </div>
 
26
             tal:content="structure project/long_description"></div>
33
27
 
34
28
        <div class="browse-view">
35
29
          <table>
36
30
            <tr class="heading">
37
 
              <th>
38
 
                Name
39
 
              </th>
40
 
              <th>
41
 
                Description
42
 
              </th>
43
 
              <th>
44
 
                Last change
45
 
              </th>
 
31
              <th>Name</th>
 
32
              <th>Description</th>
 
33
              <th>Last change</th>
46
34
              <th />
47
35
            </tr>
48
 
            <tal:block repeat="view project/views">
 
36
            <tal:block repeat="view python:views_by_project[project]">
49
37
              <tr>
50
38
                <td class="name">
51
 
                  <a tal:attributes="href python:tg.url(['/' + project.name, view.name])"
 
39
                  <a tal:attributes="href python:branch.static_url(project.name + '/' +  view.name)"
52
40
                     tal:content="view/friendly_name">
53
41
                    ${view.friendly_name}
54
42
                  </a>
60
48
                <td class="last-update"
61
49
                    tal:content="python:view.get_history().has_revisions and util._approximatedate(view.last_updated()) or '(no revisions)'"></td>
62
50
                <td class="feed">
63
 
                  <a tal:attributes="href python:tg.url(['/' + project.name, view.name, 'atom'])"
 
51
                  <a tal:attributes="href python:branch.static_url(project.name + '/' +  view.name + '/atom')"
64
52
                     title="atom feed">
65
 
                    <img tal:attributes="src python:tg.url('/static/images/feed-icon-16x16.gif')"
 
53
                    <img tal:attributes="src python:branch.static_url('/static/images/feed-icon-16x16.gif')"
66
54
                         alt="atom feed" />
67
55
                  </a>
68
56
                </td>
69
57
              </tr>
70
 
              <tr tal:condition="python:view.branch_url is not None">
 
58
              <tr tal:condition="view/branch_url">
71
59
                <td class="name">
72
60
                </td>
73
61
                <td class="description url" colspan="2">