~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/browse.pt

  • Committer: Martin Albisetti
  • Date: 2008-07-25 02:06:37 UTC
  • mto: (157.1.3 loggerhead)
  • mto: This revision was merged to the branch mainline in revision 187.
  • Revision ID: argentina@gmail.com-20080725020637-05or95legtq2l174
s/RevisionID/RevisionĀ ID

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
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">
 
2
<html xmlns="http://www.w3.org/1999/xhtml" metal:use-macro="macros/main">
3
3
  <head>
4
 
    <title>loggerhead branches</title>
5
 
    <link rel="stylesheet"
6
 
          tal:attributes="href python:branch.static_url('/static/css/global.css')" />
 
4
    <title metal:fill-slot="title">
 
5
      loggerhead branches
 
6
    </title>
7
7
  </head>
8
8
 
9
9
  <body>
10
 
   <div id="loggerheadCont">
11
 
    <div>
 
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">
12
19
      <div class="browse-project"
13
20
           tal:repeat="project projects">
14
 
        <h1 tal:content="project/friendly_name" />
 
21
        <div class="browse-project-name"
 
22
             tal:content="project/friendly_name"></div>
 
23
 
15
24
        <div class="browse-project-description"
16
25
             tal:condition="python:len(project.long_description) > 0"
17
26
             tal:content="structure project/long_description"></div>
18
27
 
19
 
          <table id="logentries">
20
 
            <tr class="logheader">
21
 
              <th class="summarycell" colspan="2">Name</th>
22
 
              <th class="summarycell">Description</th>
23
 
              <th class="datecell" colspan="2">Last change</th>
 
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 />
24
35
            </tr>
25
36
            <tal:block repeat="view python:views_by_project[project]">
26
 
              <tr tal:attributes="class string:blueRow1">
27
 
                <td class="icocell">
28
 
                  <img tal:attributes="src python:branch.static_url('/static/images/ico_branch.gif')" alt="Branch" />
29
 
                </td>
30
 
                <td class="autcell">
31
 
                    <a tal:attributes="href python:branch.static_url(project.name + '/' +  view.name)" 
32
 
                       tal:content="view/friendly_name" />
33
 
                </td>
34
 
                <td class="autcell"
35
 
                    tal:content="view/description" />
36
 
                <td class="date"
37
 
                    tal:content="python:view.get_history().has_revisions and util._approximatedate(view.last_updated()) or '(no revisions)'" />
38
 
                <td class="icocell">
 
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">
39
51
                  <a tal:attributes="href python:branch.static_url(project.name + '/' +  view.name + '/atom')"
40
52
                     title="atom feed">
41
 
                    <img tal:attributes="src python:branch.static_url('/static/images/ico_rss.gif')"
 
53
                    <img tal:attributes="src python:branch.static_url('/static/images/feed-icon-16x16.gif')"
42
54
                         alt="atom feed" />
43
55
                  </a>
44
56
                </td>
45
57
              </tr>
46
 
              <tr tal:condition="view/served_url">
 
58
              <tr tal:condition="view/branch_url">
47
59
                <td class="name">
48
60
                </td>
49
61
                <td class="description url" colspan="2">
50
 
                  <a tal:attributes="href view/served_url"
51
 
                     tal:content="view/served_url" />
 
62
                  <a tal:attributes="href view/branch_url"
 
63
                     tal:content="view/branch_url">
 
64
                    ${view.branch_url}
 
65
                  </a>
52
66
                </td>
53
67
              </tr>
54
68
            </tal:block>
55
69
          </table>
 
70
        </div>
 
71
 
56
72
      </div>
57
73
    </div>
58
 
  </div>
59
74
  </body>
60
75
</html>