~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/browse.pt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2007-11-19 09:08:46 UTC
  • mfrom: (140.2.2 merge-robey)
  • Revision ID: launchpad@pqm.canonical.com-20071119090846-klavrflav0efak7g
[r=jamesh] merge from upstream (small stuff only, no major changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
 
<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="macros/main">
3
 
  <head>
4
 
    <title metal:fill-slot="title">
5
 
      loggerhead branches
6
 
    </title>
7
 
  </head>
8
 
 
9
 
  <body>
10
 
 
11
 
    <h1 metal:fill-slot="heading" style="padding-bottom: 1em">
12
 
      <tal:title condition="title" content="title" />
13
 
      <tal:no-title condition="not:title">
14
 
        bazaar branches in loggerhead
15
 
      </tal:no-title>
16
 
    </h1>
17
 
 
18
 
    <div metal:fill-slot="content">
19
 
      <div class="browse-project"
20
 
           tal:repeat="project projects">
21
 
        <div class="browse-project-name"
22
 
             tal:content="project/friendly_name"></div>
23
 
 
24
 
        <div class="browse-project-description"
25
 
             tal:condition="python:len(project.long_description) > 0"
26
 
             tal:content="structure project/long_description"></div>
27
 
 
28
 
        <div class="browse-view">
29
 
          <table>
30
 
            <tr class="heading">
31
 
              <th>Name</th>
32
 
              <th>Description</th>
33
 
              <th>Last change</th>
34
 
              <th />
35
 
            </tr>
36
 
            <tal:block repeat="view python:views_by_project[project]">
37
 
              <tr>
38
 
                <td class="name">
39
 
                  <a tal:attributes="href python:branch.static_url(project.name + '/' +  view.name)"
40
 
                     tal:content="view/friendly_name">
41
 
                    ${view.friendly_name}
42
 
                  </a>
43
 
                </td>
44
 
                <td class="description"
45
 
                    tal:content="view/description">
46
 
                  ${view.description}
47
 
                </td>
48
 
                <td class="last-update"
49
 
                    tal:content="python:view.get_history().has_revisions and util._approximatedate(view.last_updated()) or '(no revisions)'"></td>
50
 
                <td class="feed">
51
 
                  <a tal:attributes="href python:branch.static_url(project.name + '/' +  view.name + '/atom')"
52
 
                     title="atom feed">
53
 
                    <img tal:attributes="src python:branch.static_url('/static/images/feed-icon-16x16.gif')"
54
 
                         alt="atom feed" />
55
 
                  </a>
56
 
                </td>
57
 
              </tr>
58
 
              <tr tal:condition="view/branch_url">
59
 
                <td class="name">
60
 
                </td>
61
 
                <td class="description url" colspan="2">
62
 
                  <a tal:attributes="href view/branch_url"
63
 
                     tal:content="view/branch_url">
64
 
                    ${view.branch_url}
65
 
                  </a>
66
 
                </td>
67
 
              </tr>
68
 
            </tal:block>
69
 
          </table>
70
 
        </div>
71
 
 
72
 
      </div>
73
 
    </div>
74
 
  </body>
75
 
</html>