~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/revisioninfo.pt

  • Committer: Michael Hudson
  • Date: 2008-06-25 06:18:13 UTC
  • mfrom: (174.1.8 streaming)
  • Revision ID: michael.hudson@canonical.com-20080625061813-3cr5iax8sdz0e67s
merge my streaming branch which:
 * most importantly, streams the pages as they render to the client, which 
   reduces memory usage on large pages and feels better for the user
 * makes the stuff in controller/ have a more wsgi-ish interface
 * restores the stripping of excess whitespace from the output

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<div class="infoContainer">
2
 
    <div id="infTxt">
3
 
        <div class="committer" tal:content="python:', '.join(util.hide_emails(change.authors))"></div>
4
 
        <div class="timer" tal:content="python:util.date_time(change.date)"></div>
5
 
        <div class="mfrom" tal:repeat="parent python:change.parents[1:]">
6
 
            <a tal:attributes="title string:Merged From ${parent/revno};
7
 
                               href python:url(['/revision', parent.revno], clear=1)"
8
 
               tal:content="python:revno_with_nick(parent)"></a>
9
 
        </div>
10
 
        <div class="mto" tal:repeat="merge_point change/merge_points">
11
 
            <a tal:attributes="title string:Merged In ${merge_point/revno};
12
 
                               href python:url(['/revision', merge_point.revno], clear=1)"
13
 
               tal:content="python:revno_with_nick(merge_point)"></a>
14
 
        </div>
15
 
        <div class="mto" tal:condition="merged_in">
16
 
          This revision was merged to the branch mainline in
17
 
          <a tal:attributes="href python:url(['/revision', merged_in], clear=1)">revision
18
 
            <tal:b content="merged_in"/></a>.
19
 
        </div>
20
 
        <div class="revid" tal:content="string:Revision ID: ${change/revid}"></div>
21
 
        <div class="tags" tal:condition="change/tags" tal:content="string:Tags: ${change/tags}"></div>
22
 
        <div class="clear"><!-- --></div>
23
 
        <div class="bug" tal:repeat="bug change/bugs">
24
 
            <a tal:attributes="href bug" tal:content="bug"></a>
25
 
        </div>
26
 
        <div class="information" tal:content="structure python:util.fixed_width(change.comment)"></div>
27
 
    </div>
28
 
    <ul id="list-files" tal:condition="file_changes">
29
 
      <tal:block content="structure python:file_change_summary(url, change, file_changes, 'fragment', currently_showing)" />
30
 
    </ul>
31
 
    <div class="clear"><!-- --></div>
 
1
<div class="revision-info">
 
2
  <table>
 
3
    <tr>
 
4
      <th class="author">
 
5
        committed by:
 
6
      </th>
 
7
      <td class="author"
 
8
          tal:content="python:util.hide_email(change.author)">
 
9
        author@email
 
10
      </td>
 
11
    </tr>
 
12
    <tr>
 
13
      <th class="date">
 
14
        date:
 
15
      </th>
 
16
      <td class="date"
 
17
          tal:content="python:util.date_time(change.date)">
 
18
        date
 
19
      </td>
 
20
    </tr>
 
21
 
 
22
    <tr tal:repeat="merge_point change/merge_points">
 
23
      <th class="children">
 
24
        <tal:block condition="repeat/merge_point/start">
 
25
          merged in:
 
26
        </tal:block>
 
27
      </th>
 
28
      <td class="children">
 
29
        <a title="Show history"
 
30
           tal:attributes="title string:Show revision ${merge_point/revno};
 
31
                                        href python:url(['/revision', merge_point.revno], clear=1,
 
32
                                                        start_revid=merge_point.revid)"
 
33
           tal:content="python:revno_with_nick(merge_point)">
 
34
          ${text}
 
35
        </a>
 
36
      </td>
 
37
    </tr>
 
38
 
 
39
    <tr tal:repeat="parent python:change.parents[1:]">
 
40
      <th class="parents">
 
41
        <tal:block condition="repeat/parent/start">
 
42
          merged from:
 
43
        </tal:block>
 
44
      </th>
 
45
      <td class="parents">
 
46
        <a title="Show history"
 
47
           tal:attributes="title string:Show revision ${parent/revno};
 
48
                           href python:url(['/revision', parent.revno], clear=1, start_revid=parent.revno)"
 
49
           tal:content="python:revno_with_nick(parent)">
 
50
          class="revlink">
 
51
          ${text}
 
52
        </a>
 
53
      </td>
 
54
    </tr>
 
55
 
 
56
    <tr>
 
57
      <th class="description">
 
58
        description:
 
59
      </th>
 
60
      <td class="description">
 
61
        <span tal:repeat="line change/comment_clean">
 
62
          <tal:line replace="structure line" />
 
63
          <br />
 
64
        </span>
 
65
      </td>
 
66
    </tr>
 
67
 
 
68
    <tr>
 
69
      <th class="revid">
 
70
        revision id:
 
71
      </th>
 
72
      <td class="revid">
 
73
          <span tal:content="python:change.revid">
 
74
              revid
 
75
        </span>
 
76
      </td>
 
77
    </tr>
 
78
 
 
79
    <tal:block condition="nocall:modified_file_link">
 
80
      <tr class="divider">
 
81
        <th>
 
82
        </th>
 
83
        <td>
 
84
        </td>
 
85
      </tr>
 
86
      <tal:block content="structure python:file_change_summary(url, change, modified_file_link)" />
 
87
    </tal:block>
 
88
  </table>
32
89
</div>