diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2010-03-24 10:36:13 -0500 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2010-03-24 10:36:13 -0500 |
commit | 897971068fad0d2ab7dcb52e94712c448686fb0d (patch) | |
tree | b0d511ddb2a6baa8d424cf1a9828a24305998a28 | |
parent | update header to use gentoo branding (diff) | |
download | gentoo-viewvc-templates-897971068fad0d2ab7dcb52e94712c448686fb0d.tar.gz gentoo-viewvc-templates-897971068fad0d2ab7dcb52e94712c448686fb0d.tar.bz2 gentoo-viewvc-templates-897971068fad0d2ab7dcb52e94712c448686fb0d.zip |
Distinguish between CVS and SVN repos
-rw-r--r-- | roots.ezt | 56 |
1 files changed, 48 insertions, 8 deletions
@@ -5,25 +5,65 @@ [include "include/header.ezt" "directory"] -<table cellspacing="1" cellpadding="2"> -<thead> -<tr> - <th class="vc_header_sort">Name</th> -</tr> -</thead> - <tbody> +[define cvs_roots][end] +[define svn_roots][end] +[define cvs_line][end] +[define svn_line][end] +[define cvs_line]0[end] +[define svn_line]0[end] [for roots] - <tr class="vc_row_[if-index roots even]even[else]odd[end]"> + [is roots.type "cvs"] + [define cvs_roots] + [cvs_roots] + <tr class="vc_row_[is cvs_line "0"]even[else]odd[end]"> + <td> + <a href="[roots.href]"> + <img src="[docroot]/images/dir.png" alt="" class="vc_icon" />[roots.name]</a> + </td> + </tr> + [is cvs_line "0"][define cvs_line]1[end][else][define cvs_line]0[end][end] + [end] + [else] + [is roots.type "svn"] + [define svn_roots] + [svn_roots] + <tr class="vc_row_[is svn_line "0"]even[else]odd[end]"> <td> <a href="[roots.href]"> <img src="[docroot]/images/dir.png" alt="" class="vc_icon" /> [roots.name]</a> </td> </tr> + [is svn_line "0"][define svn_line]1[end][else][define svn_line]0[end][end] + [end] + [end] + [end] [end] + [is cvs_roots ""][else] + <H3>CVS Repositories</H3> +<table cellspacing="1" cellpadding="2"> +<thead> +<tr> + <th class="vc_header_sort">Name</th> +</tr> +</thead> + [cvs_roots] +</tbody> +</table> + [end] + [is svn_roots ""][else] + <H3>Subversion Repositories</H3> +<table cellspacing="1" cellpadding="2"> +<thead> +<tr> + <th class="vc_header_sort">Name</th> +</tr> +</thead> + [svn_roots] </tbody> </table> + [end] [include "include/footer.ezt"] |