aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/request/_sidebar.rhtml
blob: e4e2e53a6e302e84e48de504fc314f4153e79277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<div id="request_sidebar">
    <h2>Track this request</h2>
     <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => @info_request.user == @user, :location => 'sidebar' } %>

    <h2>Act on what you've learnt</h2>
    <div class="act_link">
        <%= link_to '<img src="/images/helpmeinvestigate.png" alt="" class="rss">', "http://helpmeinvestigate.com/"%> 
        <%= link_to 'Get help investigating', "http://helpmeinvestigate.com/"%>
    </div>
    <div class="act_link">
        <%= link_to '<img src="/images/writetothem.png" alt="" class="rss">', "http://www.writetothem.com"%> 
        <%= link_to 'Write to your politician', "http://www.writetothem.com"%>
    </div>
    <div class="act_link">
        <%= link_to '<img src="/images/pledgebank.png" alt="" class="rss">', "http://www.pledgebank.com"%> 
        <%= link_to 'Pledge with others', "http://www.pledgebank.com"%>
    </div>
    <!-- <div class="act_link">
        <%= link_to '<img src="/images/petitions.png" alt="" class="rss">', "http://petitions.number10.gov.uk"%> 
        <%= link_to 'Petition the PM', "http://petitions.number10.gov.uk"%>
    </div> -->
    <div class="act_link">
        <%= link_to '<img src="/images/wordpress.png" alt="" class="rss">', "http://wordpress.com/"%> 
        <%= link_to 'Start your own blog', "http://wordpress.com/"%>
    </div>


    <% view_cache :ttl => 1.day, :tag => ['similar', @info_request.id] do %>
     <% if !@xapian_similar.nil? && @xapian_similar.results.size > 0 %>
        <h2>Similar requests</h2>
        <% for result in @xapian_similar.results %>
            <%= render :partial => 'request/request_listing_short_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
        <% end %>
        <% if @xapian_similar_more %>
            <p><%= link_to "More similar requests", request_similar_url(@info_request) %></p>
        <% end %>
        <!-- Important terms: <%= @xapian_similar.important_terms.join(" ") %>  -->
     <% end %>
    <% end %>

    <p><%= link_to "Event history details", request_details_url(@info_request) %></p>

    <!-- this link with this wording is here for legal reasons, discuss with
    board and our lawyer before changing or removing it -->
    <p><small><a href="/help/about#commercial">Are you the owner of
            any commercial copyright on this page?</a></small></p>

</div>