Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

candidates search pagination layout

  • Loading branch information...
commit 4c6086bc083afbe05f99cd1e2d6f99fce4c87233 1 parent 388e679
Rafael Lisboa authored
View
8 app/assets/stylesheets/estilos.css
@@ -212,9 +212,11 @@ h3.candidatos {
.siglas{text-decoration:underline; margin-right:20px; width:55px; float:left; font-weight:bold;}
.nomedopartido{float:left; width:325px; text-decoration:none}
-.abc{width:870px; margin-bottom:5px; margin-left:20px; padding-left:15px; padding-right:15px; padding-top:2px; background-image:url('/assets/bg_abc.jpg'); height:48px; letter-spacing:2px; color:#fff; font-size:26px;}
-.abc_ativo{font-weight:bold; color:#ccc; font-size:26px}
-.abc A{font-size:26px; letter-spacing:2px; color:#fff;}
+.abc {width:870px; margin-bottom:5px; margin-left:20px; padding-left:15px; padding-right:15px; padding-top:2px; background-image:url('/assets/bg_abc.jpg'); height:48px; color:#fff; font-size:20px;}
+.abc .current, .abc .disabled { color:#ccc; }
+.abc A, .abc .gap { color:#fff;}
+.abc .next_page, .abc .previous_page { font-size: 16px; }
+
.filtro_candidatos UL{width:290px; margin:auto}
.filtro_candidatos LI{display: inline; padding-right:15px;}
.filtro_candidatos LI.selecionado{font-size:16px; color:#000;}
View
3  app/views/candidates/index.html.slim
@@ -2,7 +2,7 @@
p
= text_field_tag :query, params[:query]
= submit_tag t('common.search'), :short_name => nil
- = will_paginate @candidates
+ = will_paginate @candidates, { :class => "abc", :link_separator => " - " }
table
thead
tr
@@ -15,3 +15,4 @@
td= link_to candidate.short_name, candidate_path(candidate)
td= candidate.party
td= candidate.role
+ = will_paginate @candidates, { :class => "abc", :link_separator => " - " }
Please sign in to comment.
Something went wrong with that request. Please try again.