Some more ViewCVS fixes and tweaks.

* viewcvs/templates/diff.ezt
  Setup template defines before include header.ezt.

* viewcvs/lib/viewcvs.py
  (view_revision_svn): Add 'rev' to the diff_href.

* viewcvs/templates/dir_alternate.ezt
  Fix the filename links to go to the log view again (apparently I
  accidentally clobbered these recently, though I must say, the
  navigation seems entirely unintuitive to me this way...).

* viewcvs/templates/revision.ezt
  Tweak the display of the log message a little big.


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@836 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
cmpilato 2004-04-24 17:38:31 +00:00
parent da21434ef0
commit 5995f83c4c
4 changed files with 13 additions and 5 deletions

View File

@ -2448,7 +2448,7 @@ def view_revision_svn(request, data):
change.diff_href = request.get_url(view_func=view_diff,
where=change.filename,
pathtype=change.pathtype,
params={})
params={'rev' : str(rev)})
elif change.pathtype is vclib.DIR:
change.type = 'dir'
change.view_href = request.get_url(view_func=view_directory,

View File

@ -1,3 +1,9 @@
[# setup page definitions]
[define location][rootname][if-any where]: [where][end][end]
[define page_title][cfg.general.main_title] - diff - [location][end]
[define help_href][docroot]/help_root.html[end]
[# end]
[include "include/header.ezt" "diff"]
<h3 align=center>Diff for /[where] between version [rev1] and [rev2]</h3>

View File

@ -74,10 +74,10 @@
[is rows.state "error"]
<td>&nbsp;</td> [# revision ]
[else]
<td>&nbsp;[is roottype "svn"]<a href="[rows.rev_href]"><b>[rows.rev]</b></a>[end]</td>
<td>&nbsp;[is roottype "svn"]<a href="[rows.href]"><b>[rows.rev]</b></a>[end]</td>
[end]
<td [is cfg.options.use_cvsgraph "1"]colspan=2[end]>
<a name="[rows.anchor]" href="[rows.href]">
<a name="[rows.anchor]" href="[rows.rev_href]">
<img src="[icons]/small/dir.gif" alt="(dir)" border=0 width=16 height=16>
[rows.name]/</a>
[is roottype "cvs"]
@ -121,7 +121,7 @@
<i>CVS information is unreadable</i>
</td>
[else]
<td>&nbsp;<a href="[rows.rev_href]"><b>[rows.rev]</b></a></td>
<td>&nbsp;<a href="[rows.href]"><b>[rows.rev]</b></a></td>
<td><a name="[rows.anchor]" href="[rows.rev_href]">
<img src="[icons]/small/text.gif" alt="(file)" border=0
width=16 height=16>

View File

@ -29,7 +29,9 @@
</tr>
</table>
<p><pre>[log]</pre></p>
<p><b>Log Message:</b><br/>
<pre>[log]</pre>
</p>
<hr noshade>