diff options
Diffstat (limited to 'webui_templates/repo_list.tmpl')
-rw-r--r-- | webui_templates/repo_list.tmpl | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/webui_templates/repo_list.tmpl b/webui_templates/repo_list.tmpl index e363138..f28369b 100644 --- a/webui_templates/repo_list.tmpl +++ b/webui_templates/repo_list.tmpl @@ -4,32 +4,8 @@ #block body ## ==== BEGIN PAGE NAVIGATION ==== - #set what="repo" - 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/> + #set global what="repo" + #include "/usr/share/cobbler/webui_templates/paginate.tmpl" ## ==== END PAGE NAVIGATION ==== |