~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/browse.pt

  • Committer: Tres Seaver
  • Date: 2010-03-23 15:44:51 UTC
  • mto: This revision was merged to the branch mainline in revision 405.
  • Revision ID: tseaver@agendaless.com-20100323154451-enjul7pa2crkk18b
Add Sphinx-based documentation.

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" metal:use-macro="macros/main">
 
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
3
  <head>
4
 
    <title metal:fill-slot="title">
5
 
      loggerhead branches
6
 
    </title>
 
4
    <title>loggerhead branches</title>
 
5
    <link rel="stylesheet"
 
6
          tal:attributes="href python:branch.static_url('/static/css/global.css')" />
7
7
  </head>
8
8
 
9
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">
 
10
   <div id="loggerheadCont">
 
11
    <div>
21
12
      <div class="browse-project"
22
13
           tal:repeat="project projects">
23
 
        <div class="browse-project-name"
24
 
             tal:content="project/friendly_name">
25
 
          ${project.friendly_name}
26
 
        </div>
27
 
 
 
14
        <h1 tal:content="project/friendly_name" />
28
15
        <div class="browse-project-description"
29
16
             tal:condition="python:len(project.long_description) > 0"
30
 
             tal:content="structure project/long_description">
31
 
          ${XML(project.long_description)}
32
 
        </div>
 
17
             tal:content="structure project/long_description"></div>
33
18
 
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 />
 
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>
47
24
            </tr>
48
 
            <tal:block repeat="view project/views">
49
 
              <tr>
50
 
                <td class="name">
51
 
                  <a tal:attributes="href python:branch.static_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.history.has_revisions and util._approximatedate(view.last_updated()) or '(no revisions)'"></td>
62
 
                <td class="feed">
 
25
            <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">
63
39
                  <a tal:attributes="href python:branch.static_url(project.name + '/' +  view.name + '/atom')"
64
40
                     title="atom feed">
65
 
                    <img tal:attributes="src python:branch.static_url('/static/images/feed-icon-16x16.gif')"
 
41
                    <img tal:attributes="src python:branch.static_url('/static/images/ico_rss.gif')"
66
42
                         alt="atom feed" />
67
43
                  </a>
68
44
                </td>
69
45
              </tr>
70
 
              <tr tal:condition="view/branch_url">
 
46
              <tr tal:condition="view/served_url">
71
47
                <td class="name">
72
48
                </td>
73
49
                <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>
 
50
                  <a tal:attributes="href view/served_url"
 
51
                     tal:content="view/served_url" />
78
52
                </td>
79
53
              </tr>
80
54
            </tal:block>
81
55
          </table>
82
 
        </div>
83
 
 
84
56
      </div>
85
57
    </div>
 
58
  </div>
86
59
  </body>
87
60
</html>