Re: [viewvc-dev] [PATCH] new "nav_path_start" template variable
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.devel |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
Christian Schoenebeck wrote:
> Hi!
>
> I know viewcvs is outdated, etc, I'm just sending this patch for completeness.
> Probably it won't be useful for anybody, but who knows ...
>
> I needed a way to show informations depending on which CVS module the user is
> currently navigating in. The supplied patch adds a template
> variable "nav_path_start" to viewcvs which can be used in ones own
> template(s), e.g. to do the following (e.g. in ones directory.ezt template
> file):
>
> [is nav_path_start "libfoo"]
> <tr><td>Description:</td><td>this is foo library, written in C++</td></tr>
> <tr><td>License:</td><td><b>libfoo</b> is released under the terms of the
> <a href="http://www.gnu.org/licenses/lgpl.html">
> <b>GNU Lesser General Public License</b></a></td></tr>
> [end]
> [is nav_path_start "fooapp"]
> <tr><td>Description:</td><td>this is the famous foo application</td></tr>
> <tr><td>License:</td><td><b>libfoo</b> is released under the terms of the
> <a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html">
> <b>GNU General Public License</b></a></td></tr>
> [end]
>
> So that way one can easily show customized informations for the respective
> project / CVS module.
Is this just the same as:
[for nav_path]
[if-index nav_path first]
[is nav_path.name "libfoo"]
<tr><td>Description:</td>
<td>this is foo library, written in C++</td>
</tr>
<tr><td>License:</td>
<td><b>libfoo</b> is released under the terms
of the <a href="http://www.gnu.org/licenses/lgpl.html">
<b>GNU Lesser General Public License</b></a></td>
</tr>
[end]
[is nav_path.start "fooapp"]
<tr><td>Description:</td>
<td>this is the famous foo application</td>
</tr>
<tr><td>License:</td>
<td><b>libfoo</b> is released under the terms of the
<a href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html">
<b>GNU General Public License</b></a></td>
</tr>
[end]
[end]
[end]
?
--
C. Michael Pilato <[email protected]>
CollabNet <> www.collab.net <> Distributed Development On Demand
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHsu8wokEGqRcG/W4RAsnBAKC6HFWBLHZs/0Uj22ZYuSeffD+iGACeLbnz 6Wis6C6fAP4sWq3MUBD6OfE= =Jt5A -----END PGP SIGNATURE-----