Adds styles to proposals summary
This commit is contained in:
@@ -794,6 +794,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.proposals-summary {
|
||||||
|
|
||||||
|
.panel {
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 05. Featured
|
// 05. Featured
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
|||||||
4
app/views/proposals/_popular.html.erb
Normal file
4
app/views/proposals/_popular.html.erb
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<div class="sidebar-divider"></div>
|
||||||
|
<h3 class="sidebar-title"><%= t("proposals.index.top") %></h3>
|
||||||
|
<br>
|
||||||
|
<%= link_to t("proposals.index.top_link"), "/proposals/summary", class: "small" %>
|
||||||
@@ -56,6 +56,7 @@
|
|||||||
<%= render "shared/tag_cloud", taggable: 'proposal' %>
|
<%= render "shared/tag_cloud", taggable: 'proposal' %>
|
||||||
<%= render 'categories' %>
|
<%= render 'categories' %>
|
||||||
<%= render 'geozones' %>
|
<%= render 'geozones' %>
|
||||||
|
<%= render 'popular' %>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,57 @@
|
|||||||
<section role="main">
|
<section role="main">
|
||||||
<div class="wrap row">
|
<div class="wrap row proposals-summary">
|
||||||
<div id="proposals" class="proposals-list small-12 medium-9 column">
|
<div id="proposals" class="proposals-list small-12 medium-9 column margin-top">
|
||||||
|
|
||||||
|
<%= link_to :back, class: 'back left' do %>
|
||||||
|
<i class="icon-angle-left left"></i>
|
||||||
|
<%= t("proposals.show.back_link") %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% @proposals.each do |group_name, proposals| %>
|
<% @proposals.each do |group_name, proposals| %>
|
||||||
<div><strong><%= group_name %></strong></div><br/>
|
|
||||||
|
<h2 class="margin-top"><%= group_name %></h2>
|
||||||
|
|
||||||
<% proposals[0..2].each do |proposal| %>
|
<% proposals[0..2].each do |proposal| %>
|
||||||
<div><strong><%= proposal.title %></strong></div>
|
<div class="proposal clear">
|
||||||
<div><%= proposal.description %></div>
|
<div class="panel">
|
||||||
|
<div class="row">
|
||||||
|
<div class="small-12 medium-9 column">
|
||||||
|
<div class="proposal-contenta">
|
||||||
|
<h3><%= link_to proposal.title, namespaced_proposal_path(proposal) %></h3>
|
||||||
|
|
||||||
|
<p class="proposal-info">
|
||||||
|
<% if proposal.author.hidden? || proposal.author.erased? %>
|
||||||
|
<span class="author"><%= t("proposals.show.author_deleted") %></span>
|
||||||
|
<% else %>
|
||||||
|
<span class="author"><%= proposal.author.name %></span>
|
||||||
|
<% if proposal.author.official? %>
|
||||||
|
<span class="label round level-<%= proposal.author.official_level %>">
|
||||||
|
<%= proposal.author.official_position %>
|
||||||
|
</span>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="proposal-description">
|
||||||
|
<%= link_to proposal.description, namespaced_proposal_path(proposal) %>
|
||||||
|
<div class="truncate"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="small-12 medium-3 column">
|
||||||
|
<aside class="sidebar" role="complementary">
|
||||||
|
<%= link_to t("proposals.index.start_proposal"), new_proposal_path, class: 'button radius expand' %>
|
||||||
|
<%#= render "shared/tag_cloud", taggable: 'proposal' %>
|
||||||
|
<%#= render 'categories' %>
|
||||||
|
<%= render 'geozones' %>
|
||||||
|
</aside>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -108,7 +108,7 @@ en:
|
|||||||
select_order: Order by
|
select_order: Order by
|
||||||
start_debate: Start a debate
|
start_debate: Start a debate
|
||||||
title: Debates
|
title: Debates
|
||||||
share_debate: "Share a link"
|
share_debate: "Share a link"
|
||||||
new:
|
new:
|
||||||
back_link: Go back
|
back_link: Go back
|
||||||
form:
|
form:
|
||||||
@@ -142,7 +142,7 @@ en:
|
|||||||
debate_link: "Link"
|
debate_link: "Link"
|
||||||
new:
|
new:
|
||||||
start_new: "Share a link"
|
start_new: "Share a link"
|
||||||
recommendations_title: "Recommendations for sharing a link"
|
recommendations_title: "Recommendations for sharing a link"
|
||||||
form:
|
form:
|
||||||
submit_button: "Share link"
|
submit_button: "Share link"
|
||||||
create:
|
create:
|
||||||
@@ -301,6 +301,8 @@ en:
|
|||||||
select_order_long: 'You are viewing proposals according to:'
|
select_order_long: 'You are viewing proposals according to:'
|
||||||
start_proposal: Create a proposal
|
start_proposal: Create a proposal
|
||||||
title: Proposals
|
title: Proposals
|
||||||
|
top: Weekly selection
|
||||||
|
top_link: See the best proposals
|
||||||
new:
|
new:
|
||||||
back_link: Go back
|
back_link: Go back
|
||||||
form:
|
form:
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ es:
|
|||||||
debate_link: "Enlace"
|
debate_link: "Enlace"
|
||||||
new:
|
new:
|
||||||
start_new: "Compartir un enlace"
|
start_new: "Compartir un enlace"
|
||||||
recommendations_title: "Recomendaciones para compartir un enlace"
|
recommendations_title: "Recomendaciones para compartir un enlace"
|
||||||
form:
|
form:
|
||||||
submit_button: "Comparte un enlace"
|
submit_button: "Comparte un enlace"
|
||||||
create:
|
create:
|
||||||
@@ -302,6 +302,8 @@ es:
|
|||||||
select_order_long: Estas viendo las propuestas
|
select_order_long: Estas viendo las propuestas
|
||||||
start_proposal: Crea una propuesta
|
start_proposal: Crea una propuesta
|
||||||
title: Propuestas ciudadanas
|
title: Propuestas ciudadanas
|
||||||
|
top: Selección semanal
|
||||||
|
top_link: Ver las mejores propuestas
|
||||||
new:
|
new:
|
||||||
back_link: Volver
|
back_link: Volver
|
||||||
form:
|
form:
|
||||||
|
|||||||
Reference in New Issue
Block a user