diff options
Diffstat (limited to 'webui_templates/distro_list.tmpl')
-rw-r--r-- | webui_templates/distro_list.tmpl | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/webui_templates/distro_list.tmpl b/webui_templates/distro_list.tmpl index d4082029..3d54a62a 100644 --- a/webui_templates/distro_list.tmpl +++ b/webui_templates/distro_list.tmpl @@ -2,6 +2,37 @@ #attr $title = "Cobbler: List of Distributions" #block body + + ## ==== BEGIN PAGE NAVIGATION ==== + #set what="distro" + Page: + #if $page != 0 + #set $previous_page = $page - 1 + <A HREF="${base_url}/${what}_list?page=${previous_page}&limit=${results_per_page}"><</A> + #else + [ + #end if + + #for $this_page in range(0,$pages+1) + #if $this_page != $page + <A HREF="${base_url}/${what}_list?page=${this_page}&limit=${results_per_page}">${this_page}</A> + #else + ${this_page} + #end if + #end for + + #if $page != $pages + #set $next_page = $page + 1 + <A HREF="${base_url}/${what}_list?page=${next_page}&limit=${results_per_page}">></A> + #else + ] + #end if + + <br/> + <br/> + ## ==== END PAGE NAVIGATION ==== + + <table class="sortable"> <thead> <caption>Cobbler Distributions</caption> |