~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/browse.pt

  • Committer: Michael Hudson
  • Date: 2008-06-16 23:50:29 UTC
  • mto: This revision was merged to the branch mainline in revision 164.
  • Revision ID: michael.hudson@canonical.com-20080616235029-2wfu8fdh3q55uoca
redirect from /directory to /directory/

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