Changeset 1148
- Timestamp:
- 09/26/06 19:17:16 (2 years ago)
- Files:
-
- peasantonline/app/views/catalog/_product_paginate.rhtml (modified) (1 diff)
- peasantonline/app/views/catalog/browse_by_category.rhtml (modified) (1 diff)
- peasantonline/app/views/catalog/browse_by_designer.rhtml (modified) (1 diff)
- peasantonline/app/views/catalog/browse_by_gender.rhtml (modified) (1 diff)
- peasantonline/public/stylesheets/catalog.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
peasantonline/app/views/catalog/_product_paginate.rhtml
r1146 r1148 1 1 <div id="prev_next"> 2 2 <div id="prev_page"><%= link_to 'Previous page', { :page => @product_pages.current.previous } if @product_pages.current.previous %> </div> 3 <div id="page_numbers"> 4 <% 5 @product_pages.each do |page| 6 if @product_pages.current == page 7 %> 8 <%= page.number.to_s %> 9 <% else %> 10 <%= link_to page.number.to_s, {:page => page.number.to_s }%> 11 <% end %> 12 13 <% end %> 14 </div> 3 15 <div id="next_page"><%= link_to 'Next page', { :page => @product_pages.current.next } if @product_pages.current.next %> </div> 4 16 </div> peasantonline/app/views/catalog/browse_by_category.rhtml
r1146 r1148 1 1 <% @page_title = "Peasant Online: ", @category %> 2 2 <h1><%= @category %></h1> 3 <%= render(:partial => "product_paginate") %> 3 4 <%= render(:partial => "product_list") %> 4 5 <%= render(:partial => "product_paginate") %> peasantonline/app/views/catalog/browse_by_designer.rhtml
r1146 r1148 5 5 6 6 <h1> <%= @designer %> </h1> 7 <%= render(:partial => "product_paginate") %> 7 8 <%= render(:partial => "product_list") %> 8 9 <%= render(:partial => "product_paginate") %> peasantonline/app/views/catalog/browse_by_gender.rhtml
r1146 r1148 2 2 3 3 <h1> <%= @gender %> </h1> 4 <%= render(:partial => "product_paginate") %> 4 5 <%= render(:partial => "product_list") %> 5 6 <%= render(:partial => "product_paginate") %> peasantonline/public/stylesheets/catalog.css
r1147 r1148 184 184 185 185 #prev_next { 186 width: 5 00px;186 width: 550px; 187 187 font-weight: bold; 188 clear: both; 188 189 } 189 190 190 #prev_page, #next_page {191 width: 250px;191 #prev_page, #next_page, #page_numbers { 192 width: 150px; 192 193 float: left; 193 194 text-align: center; 194 195 margin-bottom: 6px; 195 196 } 197 #page_numbers { 198 width: 250px; 199 }