Moves featured debates and proposals
This commit is contained in:
@@ -511,8 +511,7 @@ header {
|
|||||||
color: $text;
|
color: $text;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-right: $line-height;
|
margin-right: $line-height/2;
|
||||||
margin-right: 12px\9;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
|
||||||
|
|||||||
@@ -824,7 +824,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.featured-debates-container, .featured-proposals-container {
|
.featured-debates-container, .featured-proposals-container {
|
||||||
margin: 0 !important;
|
margin: $line-height 0 !important;
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-size: rem-calc(24);
|
font-size: rem-calc(24);
|
||||||
|
|||||||
@@ -24,16 +24,16 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<% unless @tag_filter || @search_terms %>
|
||||||
|
<%= render "featured_debates_static" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<%= render 'shared/order_links', i18n_namespace: "debates.index" %>
|
<%= render 'shared/order_links', i18n_namespace: "debates.index" %>
|
||||||
|
|
||||||
<div class="show-for-small-only">
|
<div class="show-for-small-only">
|
||||||
<%= link_to t("debates.index.start_debate"), new_debate_path, class: 'button radius expand' %>
|
<%= link_to t("debates.index.start_debate"), new_debate_path, class: 'button radius expand' %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% unless @tag_filter || @search_terms %>
|
|
||||||
<%= render "featured_debates_static" %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render @debates %>
|
<%= render @debates %>
|
||||||
<%= paginate @debates %>
|
<%= paginate @debates %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -24,12 +24,6 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</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? %>
|
<% if @featured_proposals.present? %>
|
||||||
<div id="featured-proposals" class="row featured-proposals-container">
|
<div id="featured-proposals" class="row featured-proposals-container">
|
||||||
<div class="small-12 medium-3 column">
|
<div class="small-12 medium-3 column">
|
||||||
@@ -48,6 +42,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% 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 %>
|
<%= render partial: 'proposals/proposal', collection: @proposals %>
|
||||||
<%= paginate @proposals %>
|
<%= paginate @proposals %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user