Moves featured debates and proposals

This commit is contained in:
Alberto Garcia Cabeza
2016-01-07 17:05:21 +01:00
parent b84730aac0
commit 4ff27d3d16
4 changed files with 12 additions and 13 deletions

View File

@@ -511,8 +511,7 @@ header {
color: $text;
display: inline-block;
font-weight: bold;
margin-right: $line-height;
margin-right: 12px\9;
margin-right: $line-height/2;
position: relative;
text-align: left;

View File

@@ -824,7 +824,7 @@
}
.featured-debates-container, .featured-proposals-container {
margin: 0 !important;
margin: $line-height 0 !important;
h2 {
font-size: rem-calc(24);

View File

@@ -24,16 +24,16 @@
<% end %>
</div>
<% unless @tag_filter || @search_terms %>
<%= render "featured_debates_static" %>
<% end %>
<%= render 'shared/order_links', i18n_namespace: "debates.index" %>
<div class="show-for-small-only">
<%= link_to t("debates.index.start_debate"), new_debate_path, class: 'button radius expand' %>
</div>
<% unless @tag_filter || @search_terms %>
<%= render "featured_debates_static" %>
<% end %>
<%= render @debates %>
<%= paginate @debates %>
</div>

View File

@@ -24,12 +24,6 @@
<% end %>
</div>
<%= render 'shared/order_links', i18n_namespace: "proposals.index" %>
<div class="show-for-small-only">
<%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button radius expand' %>
</div>
<% if @featured_proposals.present? %>
<div id="featured-proposals" class="row featured-proposals-container">
<div class="small-12 medium-3 column">
@@ -48,6 +42,12 @@
</div>
<% end %>
<%= render 'shared/order_links', i18n_namespace: "proposals.index" %>
<div class="show-for-small-only">
<%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button radius expand' %>
</div>
<%= render partial: 'proposals/proposal', collection: @proposals %>
<%= paginate @proposals %>
</div>