~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/browse.pt

  • Committer: Russ Brown
  • Date: 2008-08-07 04:04:22 UTC
  • mto: (201.2.8 full_paths)
  • mto: This revision was merged to the branch mainline in revision 220.
  • Revision ID: pickscrape@gmail.com-20080807040422-fe58lpnhl8iq9jd7
Styled up the breadcrumbs in the file view

It now looks identical to how it looked before. The list had to be removed
because I could not get it to render inline, so it now uses simpler spans.
They have to be on the same line to get the whitespace to look correct.

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
39
                  <a tal:attributes="href python:branch.static_url(project.name + '/' +  view.name)"
58
46
                  ${view.description}
59
47
                </td>
60
48
                <td class="last-update"
61
 
                    tal:content="python:view.history.has_revisions and util._approximatedate(view.last_updated()) or '(no revisions)'"></td>
 
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
51
                  <a tal:attributes="href python:branch.static_url(project.name + '/' +  view.name + '/atom')"
64
52
                     title="atom feed">