summaryrefslogtreecommitdiffstats
path: root/webui_templates/repo_list.tmpl
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-14 14:59:29 -0400
committerMichael DeHaan <mdehaan@mdehaan.rdu.redhat.com>2007-09-14 14:59:29 -0400
commit9fce10e7cf0a616b14c031d7b03c78f58a887c56 (patch)
treedabbb05b0eee7ec6f57ab943ee767cd5e98c016e /webui_templates/repo_list.tmpl
parent522f4a9573db3443b6fdba095a97daf7755bbaf3 (diff)
downloadthird_party-cobbler-9fce10e7cf0a616b14c031d7b03c78f58a887c56.tar.gz
third_party-cobbler-9fce10e7cf0a616b14c031d7b03c78f58a887c56.tar.xz
third_party-cobbler-9fce10e7cf0a616b14c031d7b03c78f58a887c56.zip
Repos are now added to the WebUI.
Diffstat (limited to 'webui_templates/repo_list.tmpl')
-rw-r--r--webui_templates/repo_list.tmpl33
1 files changed, 33 insertions, 0 deletions
diff --git a/webui_templates/repo_list.tmpl b/webui_templates/repo_list.tmpl
new file mode 100644
index 0000000..0aff65c
--- /dev/null
+++ b/webui_templates/repo_list.tmpl
@@ -0,0 +1,33 @@
+#extends cobbler.webui.master
+#attr $title = "Cobbler: List of Repositories"
+
+#block body
+<table class="sortable">
+ <thead>
+ <caption>Cobbler Repos</caption>
+ <tr>
+ <th class="text">Name</th>
+ <th class="text">Mirror</th>
+ </tr>
+ </thead>
+ <tbody>
+ #set $evenodd = 1
+ #for $repo in $repos
+ #if $evenodd % 2 == 0
+ #set $tr_class = "roweven"
+ #else
+ #set $tr_class = "rowodd"
+ #end if
+ #set $evenodd += 1
+
+ <tr class="$tr_class">
+ <td>
+ <a href="$base_url/repo_edit?name=$repo.name">$repo.name</a>
+ </td>
+ <td>$repo.mirror</td>
+ </tr>
+ #end for
+ </tbody>
+</table>
+#end block body
+