Re: [viewvc-dev] Making repos URL obvious in ViewVC.
Karl Fogel <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.devel |
|---|---|
| Message-ID | <87fy04hvz7.fsf__846.78844218633$1193010419$gmane$org@red-bean.com> |
"C. Michael Pilato" <[email protected]> writes: > Karl, you can do this kind of thing already by simply modifying the > templates. For example, you might tweak templates/include/dir_header.ezt to > contain text something like this: > > <p>You can checkout a copy of the directory you are current viewing by > doing the following:</p> > > <blockquote><pre> > svn co http://svn.collab.net/repos/[rootname][if-any where]/[where][end] > </pre></blockquote> > > In the "my repository URLs don't map very easily to their disk location" > case, I admit that the EZT language won't be quite as graceful as having > some kind of custom configury magic in viewvc.conf. But what you wish to do > should still be doable in any case. > > For kicks, I quickly added a "Checkout URL" row to the headers on the ViewVC > instance at http://svn.collab.net/viewvc/svn. I did so with the following > EZT stuffs: > > [define checkout_url]http://svn.collab.net/repos/[rootname][if-any > where]/[where]/[end][end] > <tr> > <td>Checkout URL</td> > <td><a href="[checkout_url]">[checkout_url]</a></td> > </tr> > > Maybe you could do the same in the places you need this information? Terrific! That's the main place I would have wanted to do it anyway. I might also try something like that on the red-bean.com repositories, but it's less urgent there. Thanks for the tip, -Karl --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]