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_root.html[end]
[# end]
[include "include/header.ezt" "revision"]
2003-10-22 22:23:01 +04:00
2003-10-24 23:27:02 +04:00
<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">
</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>
2003-10-22 22:23:01 +04:00
<p><pre>[log]</pre></p>
<hr noshade>
<p><b>Changed paths:</b></p>
<table border=0 cellspacing=1 cellpadding=2>
<tr align=left>
<th align=left bgcolor="#88ff88">Path</th>
<th align=left bgcolor="#cccccc">Action</th>
<th align=left bgcolor="#cccccc">Text Changes</th>
<th align=left bgcolor="#cccccc">Prop Changes</th>
<th align=left bgcolor="#cccccc">Diff to Previous</th>
</tr>
[if-any changes]
[for changes]
<tr bgcolor="[if-index changes even]#ffffff[else]#ccccee[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> </td>
<td align=center> </td>
[else]
<td align=center>[is changes.text_mods "1"]X[else] [end]</td>
<td align=center>[is changes.prop_mods "1"]X[else] [end]</td>
[end]
[if-any changes.diff_href]
2003-10-22 22:35:56 +04:00
<td align=center><a href="[changes.diff_href]&r1=[rev]&r2=[changes.prev_rev]&p1=[changes.filename]&p2=[changes.prev_path]">(diff to previous)</a></td>
[else]
<td align=center> </td>
2003-10-22 22:23:01 +04:00
[end]
</tr>
[end]
[else]
<tr>
<td colspan="5">No changed paths.</td>
</tr>
[end]
</table>
2003-10-22 00:04:30 +04:00
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"]