diff options
author | Peter Kozak <spag@golwen.net> | 2013-04-29 15:25:06 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-04-29 15:25:06 +0200 |
commit | 92fd1b2e6611aaf0910b9c5a80908e9160559bcc (patch) | |
tree | deaf6ddc268bd1f0643b04130d6d013102d5c192 /app | |
parent | 0317faf79380e706b72290939c6a0d46644b0ffe (diff) |
omit pagination for embedded views
Diffstat (limited to 'app')
-rw-r--r-- | app/views/users/_index_core.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/users/_index_core.html.haml b/app/views/users/_index_core.html.haml index c994997..d741282 100644 --- a/app/views/users/_index_core.html.haml +++ b/app/views/users/_index_core.html.haml @@ -1,6 +1,7 @@ - cache(['user_table_row_inner_td', I18n.locale, current_user, users.reorder(:updated_at).last, users.count, GsParameter.get('NUMBER_OF_SHOWN_ITEMS')]) do .pagination - = will_paginate users, :renderer => BootstrapPagination::Rails + - if defined?(users.total_pages) + = will_paginate users, :renderer => BootstrapPagination::Rails %table.table.table-striped %thead %tr |