summaryrefslogtreecommitdiff
path: root/app/views/kaminari/gitlab/_last_page.html.haml
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-03-22 00:09:56 +0200
committerrandx <dmitriy.zaporozhets@gmail.com>2012-03-22 00:09:56 +0200
commit755a894c911d6eb5604b97bee758306c41cd8d4a (patch)
tree9010b581e346128b2cdacc08987b37136355b01b /app/views/kaminari/gitlab/_last_page.html.haml
parent1fefd7cbd3ef65d34c36f2b4dd8cedb29200c569 (diff)
downloadgitlab-ce-755a894c911d6eb5604b97bee758306c41cd8d4a.tar.gz
Issues pagination
Diffstat (limited to 'app/views/kaminari/gitlab/_last_page.html.haml')
-rw-r--r--app/views/kaminari/gitlab/_last_page.html.haml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/kaminari/gitlab/_last_page.html.haml b/app/views/kaminari/gitlab/_last_page.html.haml
new file mode 100644
index 00000000000..6e41d232b51
--- /dev/null
+++ b/app/views/kaminari/gitlab/_last_page.html.haml
@@ -0,0 +1,9 @@
+-# Link to the "Last" page
+-# available local variables
+-# url: url to the last page
+-# current_page: a page object for the currently displayed page
+-# num_pages: total number of pages
+-# per_page: number of items to fetch per page
+-# remote: data-remote
+%span.last
+ = link_to_unless current_page.last?, raw(t 'views.pagination.last'), url, {:remote => remote}