Dashboard routes have been refactored. Now instead of having resources for dashboard and routes inside a dashboard namespace the proposal routes contain a dashboar singleton containing everything related to it.
21 lines
763 B
Plaintext
21 lines
763 B
Plaintext
<div class=proposal-created>
|
|
<div id="<%= dom_id(@proposal) %>" class="row">
|
|
<div class="small-12 medium-12 column">
|
|
<h1><%= t("proposals.created.title") %></h1>
|
|
|
|
<%= raw t("proposals.created.motivation_html") %>
|
|
|
|
<%= link_to t("proposals.created.dashboard"), proposal_dashboard_path(@proposal), class: "button" if can?(:dashboard, @proposal) %>
|
|
<%= link_to t("proposals.created.publish"), publish_proposal_path(@proposal), method: :patch, class: "button" if can?(:publish, @proposal) %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="small-12 column">
|
|
<h3><%= t("proposals.created.preview_title") %></h3>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render file: "proposals/show.html.erb", locals: { preview: true } %>
|