~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/revision.pt

  • Committer: Martin Albisetti
  • Date: 2008-06-26 22:59:24 UTC
  • mto: (157.1.3 loggerhead)
  • mto: This revision was merged to the branch mainline in revision 187.
  • Revision ID: argentina@gmail.com-20080626225924-526f9xc4vgzm18vs
 * Ads expand/collapse all to revision view
 * Cleanup javascript

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        </tal:we-are-comparing>
55
55
        
56
56
        <tal:revision-info replace="structure python:revisioninfo(url, branch, change, modified_file_link_rev)" />
57
 
        <!-- FIXME: This doesn't work yet -->
58
 
        <p class="expand"><a href="#"><img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png')" 
59
 
                             alt="collapse all" /> collapse all</a></p>
60
 
                        <p class="codin"><img tal:attributes="src python:branch.static_url('/static/images/newCode.gif')" 
61
 
                           alt="added" /> added</p>
 
57
        <p class="expand" id="expand_all" style="display:none;"><a tal:attributes="href string:javascript:toggle_expand_all_revisionview('open')">
 
58
            <img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png')"
 
59
                  alt="expand all" /> expand all</a>
 
60
        </p>
 
61
        <p class="expand" id="collapse_all"><a tal:attributes="href string:javascript:toggle_expand_all_revisionview('close')">
 
62
            <img tal:attributes="src python:branch.static_url('/static/images/treeExpanded.png')"
 
63
                  alt="collapse all" /> collapse all</a>
 
64
        </p>
 
65
        <!-- Table -->        
 
66
        <p class="codin"><img tal:attributes="src python:branch.static_url('/static/images/newCode.gif')" alt="added" /> added</p>
62
67
        <p class="codin"><img tal:attributes="src python:branch.static_url('/static/images/deleteCode.gif')" alt="removed" /> removed</p>
63
68
        <div class="clear"><!-- --></div>
64
69
 
72
77
          <tal:block repeat="item change/changes/modified">
73
78
 
74
79
              <tal:u define="u python:util.uniq(uniqs, item.file_id)">
75
 
                      <div class="diffBox"><img tal:attributes="src python:branch.static_url('/static/images/treeCollapsed.png');
76
 
                                                                title python:branch.static_url('/static/images/treeExpanded.png');
77
 
                                                                alt python:branch.static_url('/static/images/treeCollapsed.png')"
 
80
                      <div class="diffBox"><img tal:attributes="src python:branch.static_url('/static/images/treeExpanded.png');
 
81
                                                                title python:branch.static_url('/static/images/treeCollapsed.png');
 
82
                                                                alt python:branch.static_url('/static/images/treeExpanded.png')"
78
83
                                                                class="expand_diff" />
79
84
                                           <a tal:attributes="href python:url(['/annotate', change.revno], clear=1, file_id=item.file_id);
80
85
                                                              id string:${item/filename}-s;