viewvc-4intranet/templates/revision.ezt

92 lines
2.6 KiB
Plaintext
Raw Normal View History

Some bug fixes as suggested (in great detail, just short of a patch) by Dirk Lemstra <dirk.lemstra@atosorigin.com>. Also, add some stuff to the generally-available-to-all-templates dataset. And finally, re-work all the templates for consistent look and feel. I can die now. * viewcvs/lib/viewcvs.py (common_template_data): Expose the 'where', 'roottype', and 'rootname' Request members, and the 'nav_path', to all views. Also, do the root selection stuffs ('roots', 'change_root_action', 'change_root_hidden_values'). (nav_header_data): No longer explicitly add 'nav_path' to the data dictionary. (_dir_url): For Subversion, supply the revision number to the generated links. (view_directory): Include the revision when generating log view URLs. Also, expose a 'tree_rev_href' data item for linking to the revision view. No longer explicitly add 'roottype', 'where', and 'current_root' to the data dictionary. No longer do the root selection stuff here, either. (view_log): No longer explicitly add 'roottype', 'where', and 'current_root' to the data dictionary. (human_readable_diff): No longer explicitly add 'where' to the data dictionary. (view_markup, view_revision): No longer explicitly add 'roottype' to the data dictionary. * viewcvs/website/upgrading.html Document the changes. * viewcvs/website/help_rootview.html Add a missing "<br>". * viewcvs/templates/annotate.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt Beat the heck outta these templates until they all reference header.ezt and footer.ezt (except for error.ezt), and they all present a basically consistent interface across all views. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@835 8cb11bc2-c004-0410-86c3-e597b4017df7
2004-04-22 19:40:01 +04:00
[# setup page definitions]
[define location][rootname][if-any where]: [where][end][end]
[define page_title][cfg.general.main_title] - revision - [location][end]
[define help_href][docroot]/help_rootview.html[end]
Some bug fixes as suggested (in great detail, just short of a patch) by Dirk Lemstra <dirk.lemstra@atosorigin.com>. Also, add some stuff to the generally-available-to-all-templates dataset. And finally, re-work all the templates for consistent look and feel. I can die now. * viewcvs/lib/viewcvs.py (common_template_data): Expose the 'where', 'roottype', and 'rootname' Request members, and the 'nav_path', to all views. Also, do the root selection stuffs ('roots', 'change_root_action', 'change_root_hidden_values'). (nav_header_data): No longer explicitly add 'nav_path' to the data dictionary. (_dir_url): For Subversion, supply the revision number to the generated links. (view_directory): Include the revision when generating log view URLs. Also, expose a 'tree_rev_href' data item for linking to the revision view. No longer explicitly add 'roottype', 'where', and 'current_root' to the data dictionary. No longer do the root selection stuff here, either. (view_log): No longer explicitly add 'roottype', 'where', and 'current_root' to the data dictionary. (human_readable_diff): No longer explicitly add 'where' to the data dictionary. (view_markup, view_revision): No longer explicitly add 'roottype' to the data dictionary. * viewcvs/website/upgrading.html Document the changes. * viewcvs/website/help_rootview.html Add a missing "<br>". * viewcvs/templates/annotate.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt Beat the heck outta these templates until they all reference header.ezt and footer.ezt (except for error.ezt), and they all present a basically consistent interface across all views. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@835 8cb11bc2-c004-0410-86c3-e597b4017df7
2004-04-22 19:40:01 +04:00
[# end]
[include "include/header.ezt" "revision"]
<hr noshade>
<table border="0" cellspacing="1" cellpadding="2">
<tr align=left>
<th>Jump to revision:</td>
<td>
<form method=get action="[jump_rev_action]">
[jump_rev_hidden_values]
<input type="text" name="rev" value="[jump_rev]">
<input type=submit value="Go">
[if-any prev_href]
<a href="[prev_href]"><img src="[icons]/back.gif" border="0" alt="Previous"></a>[end]
[if-any next_href] <a href="[next_href]"><img src="[icons]/forward.gif" border="0" alt="Next"></a>[end]
</form>
</td>
</tr>
<tr align=left>
<th>Author:</th>
<td>[author]</td>
</tr>
<tr align=left>
<th>Date:</th>
<td>[date_str] <i>([ago] ago)</i></td>
</tr>
</table>
<p><b>Log Message:</b><br/>
<pre class="vc_log">[log]</pre>
</p>
<hr noshade>
<p><b>Changed paths:</b></p>
<table border="0" cellspacing="1" cellpadding="2">
<thead>
<tr align=left>
<th class="vc_header_sort">Path</th>
<th class="vc_header">Action</th>
<th class="vc_header">Text Changes</th>
<th class="vc_header">Prop Changes</th>
<th class="vc_header">Diff to Previous</th>
</tr>
</thead>
<tbody>
[if-any changes]
[for changes]
<tr class="vc_row_[if-index changes even]even[else]odd[end]">
<td>
[is changes.pathtype "dir"]
<img src="[icons]/small/dir.gif">
[else]
<img src="[icons]/small/text.gif">
[end]
[is changes.action "deleted"]
[changes.filename]
[else]
<a href="[changes.view_href]">[changes.filename]</a>
[end]
</td>
<td align=center>[changes.action]</td>
[is changes.action "deleted"]
<td align=center>&nbsp;</td>
<td align=center>&nbsp;</td>
[else]
<td align=center>[is changes.text_mods "1"]X[else]&nbsp;[end]</td>
<td align=center>[is changes.prop_mods "1"]X[else]&nbsp;[end]</td>
[end]
[if-any changes.diff_href]
<td align=center><a href="[changes.diff_href]&amp;r1=[rev]&amp;r2=[changes.prev_rev]&amp;p1=[changes.filename]&amp;p2=[changes.prev_path]">(diff to previous)</a></td>
[else]
<td align=center>&nbsp;</td>
[end]
</tr>
[end]
[else]
<tr>
<td colspan="5">No changed paths.</td>
</tr>
[end]
</tbody>
</table>
Some bug fixes as suggested (in great detail, just short of a patch) by Dirk Lemstra <dirk.lemstra@atosorigin.com>. Also, add some stuff to the generally-available-to-all-templates dataset. And finally, re-work all the templates for consistent look and feel. I can die now. * viewcvs/lib/viewcvs.py (common_template_data): Expose the 'where', 'roottype', and 'rootname' Request members, and the 'nav_path', to all views. Also, do the root selection stuffs ('roots', 'change_root_action', 'change_root_hidden_values'). (nav_header_data): No longer explicitly add 'nav_path' to the data dictionary. (_dir_url): For Subversion, supply the revision number to the generated links. (view_directory): Include the revision when generating log view URLs. Also, expose a 'tree_rev_href' data item for linking to the revision view. No longer explicitly add 'roottype', 'where', and 'current_root' to the data dictionary. No longer do the root selection stuff here, either. (view_log): No longer explicitly add 'roottype', 'where', and 'current_root' to the data dictionary. (human_readable_diff): No longer explicitly add 'where' to the data dictionary. (view_markup, view_revision): No longer explicitly add 'roottype' to the data dictionary. * viewcvs/website/upgrading.html Document the changes. * viewcvs/website/help_rootview.html Add a missing "<br>". * viewcvs/templates/annotate.ezt * viewcvs/templates/graph.ezt * viewcvs/templates/log.ezt * viewcvs/templates/log_table.ezt * viewcvs/templates/markup.ezt * viewcvs/templates/query.ezt * viewcvs/templates/revision.ezt * viewcvs/templates/include/dir_header.ezt * viewcvs/templates/include/footer.ezt * viewcvs/templates/include/header.ezt Beat the heck outta these templates until they all reference header.ezt and footer.ezt (except for error.ezt), and they all present a basically consistent interface across all views. git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@835 8cb11bc2-c004-0410-86c3-e597b4017df7
2004-04-22 19:40:01 +04:00
[include "include/footer.ezt"]