summaryrefslogtreecommitdiffstats
path: root/webui_templates
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-10-31 14:38:03 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-10-31 14:38:03 -0400
commitb3adf4b142fba6108d2bdcd61ba2345ec48bf337 (patch)
tree63f0a77ff98f3277433def7caadab1e05d5bfadc /webui_templates
parent850ebbce022c688d1924c64fa6dc28a6b85d5647 (diff)
Changelog cleanup + shorten the pagination parameters
Diffstat (limited to 'webui_templates')
-rw-r--r--webui_templates/system_list.tmpl15
1 files changed, 6 insertions, 9 deletions
diff --git a/webui_templates/system_list.tmpl b/webui_templates/system_list.tmpl
index 1a6e178..4298a38 100644
--- a/webui_templates/system_list.tmpl
+++ b/webui_templates/system_list.tmpl
@@ -2,23 +2,19 @@
#block body
- ## navigation for pages
-
- <!-- DEBUG: num pages is $pages<br/> -->
- <!-- DEBUG: current page is $page<br/> -->
- <!-- DEBUG: results per page is $results_per_page</br> -->
-
+ ## ==== BEGIN PAGE NAVIGATION ====
+ #set what="system"
Page:&nbsp;
#if $page != 0
#set $previous_page = $page - 1
- <A HREF="${base_url}/system_list?page=${previous_page}&results_per_page=${results_per_page}">&lt;</A>&nbsp;
+ <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}/system_list?page=${this_page}&results_per_page=${results_per_page}">${this_page}</A>&nbsp;
+ <A HREF="${base_url}/${what}_list?page=${this_page}&limit=${results_per_page}">${this_page}</A>&nbsp;
#else
${this_page}
#end if
@@ -26,13 +22,14 @@
#if $page != $pages
#set $next_page = $page + 1
- <A HREF="${base_url}/system_list?page=${next_page}&results_per_page=${results_per_page}">&gt;</A>
+ <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">