summaryrefslogtreecommitdiffstats
path: root/webui_templates/profile_list.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'webui_templates/profile_list.tmpl')
-rw-r--r--webui_templates/profile_list.tmpl28
1 files changed, 2 insertions, 26 deletions
diff --git a/webui_templates/profile_list.tmpl b/webui_templates/profile_list.tmpl
index 07775e5..047714a 100644
--- a/webui_templates/profile_list.tmpl
+++ b/webui_templates/profile_list.tmpl
@@ -3,32 +3,8 @@
#block body
## ==== BEGIN PAGE NAVIGATION ====
- #set what="profile"
- Page: 
- #if $page != 0
- #set $previous_page = $page - 1
- <A HREF="${base_url}/${what}_list?page=${previous_page}&limit=${results_per_page}">&lt;</A>&nbsp;
- #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>&nbsp;
- #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}">&gt;</A>
- #else
- ]
- #end if
-
- <br/>
- <br/>
+ #set global what="profile"
+ #include "/usr/share/cobbler/webui_templates/paginate.tmpl"
## ==== END PAGE NAVIGATION ====