diff options
| author | Luc Donnet | 2012-04-27 17:29:16 +0200 |
|---|---|---|
| committer | Luc Donnet | 2012-04-27 17:29:16 +0200 |
| commit | d59e99401695d12b28f917bdc6cdf09922fd488c (patch) | |
| tree | 6b2e8f97ee9dbef44ecbf60ac505976f96b95e19 /app/views | |
| parent | 1419f9623556da9f3e805a62ba13a4c428352316 (diff) | |
| download | chouette-core-d59e99401695d12b28f917bdc6cdf09922fd488c.tar.bz2 | |
Add counter to list objects for index
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/companies/index.html.erb | 12 | ||||
| -rw-r--r-- | app/views/connection_links/index.html.erb | 11 | ||||
| -rw-r--r-- | app/views/lines/index.html.erb | 12 | ||||
| -rw-r--r-- | app/views/networks/index.html.erb | 12 | ||||
| -rw-r--r-- | app/views/stop_areas/index.html.erb | 11 | ||||
| -rw-r--r-- | app/views/time_tables/index.html.erb | 11 |
6 files changed, 56 insertions, 13 deletions
diff --git a/app/views/companies/index.html.erb b/app/views/companies/index.html.erb index b6ed91aff..257e1a945 100644 --- a/app/views/companies/index.html.erb +++ b/app/views/companies/index.html.erb @@ -8,11 +8,19 @@ <%= link_to t("cancel"), referential_companies_path(@referential) %> <% end %> -<%= will_paginate @companies %> +<div class="pagination"> + <div class="page_info"> + <%= page_entries_info @companies %> + </div> + <%= will_paginate @companies, :container => false %> +</div> <div class="companies paginated_content"> <%= render :partial => "company", :collection => @companies %> </div> -<%= will_paginate @companies %> +<div class="pagination"> + <%= will_paginate @companies, :container => false %> +</div> + <% content_for :sidebar do %> diff --git a/app/views/connection_links/index.html.erb b/app/views/connection_links/index.html.erb index fdbd28021..2b8bdfe5b 100644 --- a/app/views/connection_links/index.html.erb +++ b/app/views/connection_links/index.html.erb @@ -8,11 +8,18 @@ <%= link_to t("cancel"), referential_connection_links_path(@referential) %> <% end %> -<%= will_paginate @connection_links %> +<div class="pagination"> + <div class="page_info"> + <%= page_entries_info @connection_links %> + </div> + <%= will_paginate @connection_links, :container => false %> +</div> <div class="connection_links paginated_content"> <%= render :partial => "connection_link", :collection => @connection_links %> </div> -<%= will_paginate @connection_links %> +<div class="pagination"> + <%= will_paginate @connection_links, :container => false %> +</div> <% content_for :sidebar do %> <ul class="actions"> diff --git a/app/views/lines/index.html.erb b/app/views/lines/index.html.erb index 49c6de226..26b97e0b3 100644 --- a/app/views/lines/index.html.erb +++ b/app/views/lines/index.html.erb @@ -23,11 +23,19 @@ </p> <% end %> -<%= will_paginate @lines %> + +<div class="pagination"> + <div class="page_info"> + <%= page_entries_info @lines %> + </div> + <%= will_paginate @lines, :container => false %> +</div> <div class="lines paginated_content"> <%= render :partial => "line", :collection => @lines %> </div> -<%= will_paginate @lines %> +<div class="pagination"> + <%= will_paginate @lines, :container => false %> +</div> <% content_for :sidebar do %> <ul class="actions"> diff --git a/app/views/networks/index.html.erb b/app/views/networks/index.html.erb index 4514939f1..825bb3dcb 100644 --- a/app/views/networks/index.html.erb +++ b/app/views/networks/index.html.erb @@ -8,12 +8,18 @@ <%= link_to t("cancel"), referential_networks_path(@referential) %> <% end %> -<%= will_paginate @networks %> +<div class="pagination"> + <div class="page_info"> + <%= page_entries_info @networks %> + </div> + <%= will_paginate @networks, :container => false %> +</div> <div class="networks paginated_content"> <%= render :partial => "network", :collection => @networks %> </div> -<%= will_paginate @networks %> - +<div class="pagination"> + <%= will_paginate @networks, :container => false %> +</div> <% content_for :sidebar do %> <ul class="actions"> diff --git a/app/views/stop_areas/index.html.erb b/app/views/stop_areas/index.html.erb index deb5b1643..57617f559 100644 --- a/app/views/stop_areas/index.html.erb +++ b/app/views/stop_areas/index.html.erb @@ -8,11 +8,18 @@ <%= link_to t("cancel"), referential_stop_areas_path(@referential) %> <% end %> -<%= will_paginate @stop_areas %> +<div class="pagination"> + <div class="page_info"> + <%= page_entries_info @stop_areas %> + </div> + <%= will_paginate @stop_areas, :container => false %> +</div> <div class="stop_areas paginated_content"> <%= render :partial => "stop_area", :collection => @stop_areas %> </div> -<%= will_paginate @stop_areas %> +<div class="pagination"> + <%= will_paginate @stop_areas, :container => false %> +</div> <% content_for :sidebar do %> <ul class="actions"> diff --git a/app/views/time_tables/index.html.erb b/app/views/time_tables/index.html.erb index 90225446a..26e484554 100644 --- a/app/views/time_tables/index.html.erb +++ b/app/views/time_tables/index.html.erb @@ -8,11 +8,18 @@ <%= link_to t("cancel"), referential_time_tables_path(@referential) %> <% end %> -<%= will_paginate @time_tables %> +<div class="pagination"> + <div class="page_info"> + <%= page_entries_info @time_tables %> + </div> + <%= will_paginate @time_tables, :container => false %> +</div> <div class="time_tables paginated_content"> <%= render :partial => "time_table", :collection => @time_tables %> </div> -<%= will_paginate @time_tables %> +<div class="pagination"> + <%= will_paginate @time_tables, :container => false %> +</div> <% content_for :sidebar do %> |
