diff options
Diffstat (limited to 'webui_templates/distro_list.tmpl')
-rw-r--r-- | webui_templates/distro_list.tmpl | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/webui_templates/distro_list.tmpl b/webui_templates/distro_list.tmpl new file mode 100644 index 0000000..4654972 --- /dev/null +++ b/webui_templates/distro_list.tmpl @@ -0,0 +1,35 @@ +#extends cobbler.webui.master +#attr $title = "Cobbler: List of Distributions" + +#block body +<table class="sortable"> + <thead> + <caption>Cobbler Distributions</caption> + <tr> + <th class="text">Name</th> + <th class="text">Breed</th> + <th class="text">Arch</th> + </tr> + </thead> + <tbody> + #set $evenodd = 1 + #for $distro in $distros + #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/distro_view?distribution=$distro.name">$distro.name</a> + </td> + <td>$distro.breed</td> + <td>$distro.arch</td> + </tr> + #end for + </tbody> +</table> +#end block body + |