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-e597b4017df7remotes/tags/1.0.0-rc1
parent
da21434ef0
commit
5995f83c4c
|
@ -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,
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -74,10 +74,10 @@
|
|||
[is rows.state "error"]
|
||||
<td> </td> [# revision ]
|
||||
[else]
|
||||
<td> [is roottype "svn"]<a href="[rows.rev_href]"><b>[rows.rev]</b></a>[end]</td>
|
||||
<td> [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> <a href="[rows.rev_href]"><b>[rows.rev]</b></a></td>
|
||||
<td> <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>
|
||||
|
|
|
@ -29,7 +29,9 @@
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<p><pre>[log]</pre></p>
|
||||
<p><b>Log Message:</b><br/>
|
||||
<pre>[log]</pre>
|
||||
</p>
|
||||
|
||||
<hr noshade>
|
||||
|
||||
|
|
Loading…
Reference in New Issue