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.tmpl31
1 files changed, 31 insertions, 0 deletions
diff --git a/webui_templates/profile_list.tmpl b/webui_templates/profile_list.tmpl
index 1ccbf31..07775e5 100644
--- a/webui_templates/profile_list.tmpl
+++ b/webui_templates/profile_list.tmpl
@@ -1,6 +1,37 @@
#extends cobbler.webui.master
#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/>
+ ## ==== END PAGE NAVIGATION ====
+
+
<table class="sortable">
<thead>
<caption>Cobbler Profiles</caption>