Creates the basic layout for the dashboard
This commit is contained in:
Juan Salvador Pérez García
2018-06-08 13:12:43 +02:00
parent 1db5a00eae
commit 212c088d35
13 changed files with 312 additions and 8 deletions

View File

@@ -27,14 +27,16 @@
description: @proposal.summary
} %>
<div class="callout light">
<p class="centered">
<strong><%= t '.improve_it' %></strong>
</p>
<div class="centered">
<%= link_to t('.dashboard'), '#', class: 'button' %>
<% if can? :dashboard, @proposal %>
<div class="callout light">
<p class="centered">
<strong><%= t '.improve_it' %></strong>
</p>
<div class="centered">
<%= link_to t('.dashboard'), proposal_dashboard_index_path(@proposal), class: 'button' %>
</div>
</div>
</div>
<% end %>
<% if @proposal_improvement_path.present? %>
<div class="callout highlight margin-top text-center">