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]
2004-05-12 05:46:43 +04:00
[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"]
2003-10-22 22:23:01 +04:00
2003-10-24 23:27:02 +04:00
<hr noshade>
2004-05-12 05:46:43 +04:00
<table border="0" cellspacing="1" cellpadding="2">
2003-10-24 23:27:02 +04:00
<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">
2004-04-28 18:53:22 +04:00
[if-any prev_href]
2004-05-12 05:46:43 +04:00
<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]
2003-10-24 23:27:02 +04:00
</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>
2004-04-24 21:38:31 +04:00
<p><b>Log Message:</b><br/>
2004-07-22 14:08:29 +04:00
<pre class="vc_log">[log]</pre>
2004-04-24 21:38:31 +04:00
</p>
2003-10-22 22:23:01 +04:00
<hr noshade>
<p><b>Changed paths:</b></p>
2004-05-12 05:46:43 +04:00
<table border="0" cellspacing="1" cellpadding="2">
2004-07-23 13:55:50 +04:00
<thead>
2003-10-22 22:23:01 +04:00
<tr align=left>
2004-05-12 05:46:43 +04:00
<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>
2003-10-22 22:23:01 +04:00
</tr>
2004-07-23 13:55:50 +04:00
</thead>
<tbody>
2003-10-22 22:23:01 +04:00
[if-any changes]
[for changes]
2004-05-12 05:46:43 +04:00
<tr class="vc_row_[if-index changes even]even[else]odd[end]">
2003-10-22 22:23:01 +04:00
<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]
2004-07-23 13:55:50 +04:00
</tbody>
2003-10-22 22:23:01 +04:00
</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"]