Base legislation processes and draft versions page structure for public site
This commit is contained in:
12
app/views/legislation/draft_versions/changes.html.erb
Normal file
12
app/views/legislation/draft_versions/changes.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="row">
|
||||
<h2><%= @process.title %></h2>
|
||||
<h2><%= @draft_version.title %></h2>
|
||||
|
||||
<div>
|
||||
<%= link_to t('.see_text'), legislation_process_draft_version_path(@process, @draft_version) %>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<%= markdown @draft_version.changelog %>
|
||||
</div>
|
||||
</div>
|
||||
12
app/views/legislation/draft_versions/show.html.erb
Normal file
12
app/views/legislation/draft_versions/show.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="row">
|
||||
<h2><%= link_to @process.title, @process %></h2>
|
||||
<h2><%= @draft_version.title %></h2>
|
||||
|
||||
<div>
|
||||
<%= link_to t('.see_changes'), legislation_process_draft_version_changes_path(@process, @draft_version) %>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<%= @draft_version.body_in_html.html_safe %>
|
||||
</div>
|
||||
</div>
|
||||
5
app/views/legislation/processes/index.html.erb
Normal file
5
app/views/legislation/processes/index.html.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="row">
|
||||
<% @processes.each do |process| %>
|
||||
<%= link_to process.title, process %><br/>
|
||||
<% end %>
|
||||
</div>
|
||||
9
app/views/legislation/processes/show.html.erb
Normal file
9
app/views/legislation/processes/show.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<div class="row">
|
||||
|
||||
<h1><%= @process.title %></h1>
|
||||
|
||||
<% @process.draft_versions.each do |draft_version| %>
|
||||
<%= link_to draft_version.title, legislation_process_draft_version_path(@process, draft_version) %>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
@@ -11,6 +11,11 @@
|
||||
<li>
|
||||
<%= link_to t("layouts.header.proposal_ballot"), proposal_ballots_path, class: ("active" if controller_name == "proposal_ballots"), accesskey: "v" %>
|
||||
</li>
|
||||
<% if feature?(:legislation) %>
|
||||
<li>
|
||||
<%= link_to t("layouts.header.collaborative_legislation"), legislation_processes_path, class: ("active" if controller.class.parent == Legislation ), accesskey: "l" %>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if feature?(:spending_proposals) %>
|
||||
<li>
|
||||
<%= link_to t("layouts.header.spending_proposals"), spending_proposals_path, class: ("active" if controller_name == "spending_proposals"), accesskey: "s" %>
|
||||
|
||||
Reference in New Issue
Block a user