Permalink
Browse files

add email subscription to unified agenda page and move up [#560]

  • Loading branch information...
1 parent 7ce720c commit b672987118f6265e1daba212a7f318aca07ad08e @andrewcarpenter andrewcarpenter committed May 11, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 app/views/regulatory_plans/_sidebar.html.erb
@@ -1,4 +1,9 @@
<% aside_tag(:id => 'sidebar') do %>
+ <div class='aside_box subscribe'>
+ <%= link_to 'Subscribe', new_subscription_path(:subscription => {:search_conditions => {:regulation_id_number => regulatory_plan.regulation_id_number}}), :class => 'subscription' %>
+ <%= add_template('subscription_modal', 'subscription-modal') %>
+ </div>
+
<% section_tag(:id => 'metadata') do %>
<div class="aside_box">
<div class="download_separator">
@@ -21,10 +26,6 @@
</div>
<% end -%>
- <div class='aside_box subscribe'>
- <%= link_to 'Subscribe', regulatory_plan_url(regulatory_plan, :format => :rss), :class => 'rss' %>
- </div>
-
<% if regulatory_plan.agencies.present? %>
<% section_tag(:id => 'agencies') do %>
<h1 class="title_bar">Agencies</h1>

0 comments on commit b672987

Please sign in to comment.