Maybe clearer help. Hmmm.

Maybe clearer help. Hmmm.

<% @show_tips = @xapian_requests.nil? || (@total_hits == 0) %>

<% if @query.nil? %>
    <% @title = "Search Freedom of Information requests, public authorities and users" %>

<%=@title%>

<% elsif @total_hits == 0 %>
    <% @title = "Nothing found for '" + h(@query) + "'" %>
<% else %>
    <% @title = "Results page " + @page.to_s %>
<% end%>

<% if @bodies && (@page == 1 || @xapian_bodies.results.size > 0) %>

Next, select the public authority you'd like to make the request from.

Can't find it?  <%= link_to "Browse all", list_public_bodies_default %> or
            ask us to add it.

<% end %>

<% form_tag({:action => "search_redirect"}, {:id => "search_form"}) do %>

       <%= text_field_tag 'query', @query, { :size => 40 } %>
       <%= hidden_field_tag 'sortby', @sortby %>
       <% if @bodies %>
           <%= hidden_field_tag 'bodies', 1 %>
       <% end %>
       <%= submit_tag "Search" %>
       <% if not @show_tips %>
             Advanced tips
       <% end %>

<% end %>

<% if !@query.nil? %>

    <%=link_to_unless @sortby.nil?, "Show most relevant results first", search_url(@query, nil) %>
    |
    <%=link_to_unless @sortby == 'newest', "Newest results first", search_url(@query, 'newest') %>
    <% if @sortby == 'described' %>
    | Recently described results first
    <% end %>

<% end %>

<% if @bodies && !@query.nil? && @xapian_bodies.results.size == 0 && @page == 1 %>

No public authorities found

    <% if @spelling_correction %>

Did you mean: <%= search_link(@spelling_correction, @postfix) %>

    <% end %>

<%=link_to "Browse all", list_public_bodies_default %> or ask us to add one.

<% end %>

<% if @total_hits == 0 %>

<%=@title %>

<% end %>

<% if not @query.nil? %>
    <% if @spelling_correction %>

Did you mean: <%= search_link(@spelling_correction, @postfix) %>

    <% end %>

    <% if (!@bodies || @xapian_requests.results.size == 0) && @track_thing && (@xapian_bodies.results.size > 0 || @xapian_users.results.size > 0 || @total_hits == 0)%>
        <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>
    <% end %>

    <% if @xapian_bodies.results.size > 0 %>

<%= "Public authorities " + ((@page-1)*@bodies_per_page+1).to_s + "-" + [@page*@bodies_per_page, @xapian_bodies.matches_estimated].min.to_s + " of " + @xapian_bodies.matches_estimated.to_s + " for '" + h(@query) + "'" %>

        <% for result in @xapian_bodies.results %>
            <%= render :partial => 'body/body_listing_single', :locals => { :public_body => result[:model] }  %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @bodies_per_page, @xapian_bodies.matches_estimated) %>
    <% end %>

    <% if @xapian_users.results.size > 0 %>

<%= "People " + ((@page-1)*@users_per_page+1).to_s + "-" + [@page*@users_per_page, @xapian_users.matches_estimated].min.to_s + " of " + @xapian_users.matches_estimated.to_s + " for '" + h(@query) + "'" %>

        <% for result in @xapian_users.results %>
            <%= render :partial => 'user/user_listing_single', :locals => { :display_user => result[:model] } %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @users_per_page, @xapian_users.matches_estimated) %>
    <% end %>

    <% if @xapian_requests.results.size > 0 %>

<%= "FOI requests " + ((@page-1)*@requests_per_page+1).to_s + "-" + [@page*@requests_per_page, @xapian_requests.matches_estimated].min.to_s + " of " + @xapian_requests.matches_estimated.to_s + " for '" + h(@query) + "'" %>

        <% if @track_thing %>
            <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>
        <% end %>

        <% for result in @xapian_requests.results %>
            <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @requests_per_page, @xapian_requests.matches_estimated) %>
        <% if @track_thing %>

            <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>
        <% end %>
    <% end %>
<% end %>

<% if @show_tips %>

Search tips

Enter words that you want to find separated by spaces, e.g. <%=search_link('climbing lane')%>

Use OR (in capital letters) where you don't mind which word,  e.g. <%=search_link('commons OR lords')%>

Use quotes when you want to find an exact phrase, e.g. <%=search_link('"Liverpool City Council"')%>

variety: to select type of thing to search for, see the table of varieties below.

status: to select based on the status or historical status of the request, see the table of statuses below.

<%=search_link('requested_from:home_office')%> to search requests from the <%= link_to "Home Office", show_public_body_url(:url_name => 'home_office') %>, typing the name as in the URL.

<%=search_link('requested_by:julian_todd')%> to search requests made by <%= link_to "Julian Todd", show_user_url(:url_name => 'julian_todd') %>, typing the name as in the URL.

<%=search_link('commented_by:tony_bowden')%> to search annotations made by <%= link_to "Tony Bowden", show_user_url(:url_name => 'tony_bowden') %>, typing the name as in the URL.

request: to restrict to a specific request, typing the title as in the URL.

<%=search_link('filetype:pdf')%> to find all responses with PDF attachments. Or try these: <%= IncomingMessage.get_all_file_extentions%>.

Type <%=search_link('01/01/2008..14/01/2008')%> to only show things that happened in the first two weeks of January.

Read about advanced search operators, such as proximity and wildcards.

Table of varieties

<%=search_link('variety:sent')%>	 Original request sent

<%=search_link('variety:followup_sent')%>	 Follow up message sent by requester

<%=search_link('variety:response')%>	 Response from a public authority

<%=search_link('variety:comment')%>	 Annotation added to request

<%=search_link('variety:authority')%>	 A public authority

<%=search_link('variety:user')%>	 A WhatDoTheyKnow user

Table of statuses

<%=search_link('status:waiting_response')%>	 Waiting for the public authority to reply

<%=search_link('status:not_held')%>	 The public authority does not have the information requested

<%=search_link('status:rejected')%>	 The request was rejected by the public authority

<%=search_link('status:partially_successful')%>	 Some of the information requested has been received

<%=search_link('status:successful')%>	 All of the information requested has been received

<%=search_link('status:waiting_clarification')%>	 The public authority would like part of the request explained

<%=search_link('status:gone_postal')%>	 The public authority would like to / has responded by post

<%=search_link('status:internal_review')%>	 Waiting for the public authority to complete an internal review of their handling of the request

<%=search_link('status:requires_admin')%>	 A strange reponse, required attention by the WhatDoTheyKnow team

<% end %>

<% @show_tips = @xapian_requests.nil? || (@total_hits == 0) %>

<% if @query.nil? %>
    <% @title = "Search Freedom of Information requests, public authorities and users" %>

<%=@title%>

<% elsif @total_hits == 0 %>
    <% @title = "Nothing found for '" + h(@query) + "'" %>
<% else %>
    <% @title = "Results page " + @page.to_s %>
<% end%>

<% if @bodies && (@page == 1 || @xapian_bodies.results.size > 0) %>

Next, select the public authority you'd like to make the request from.

Can't find it?  <%= link_to "Browse all", list_public_bodies_default %> or
            ask us to add it.

<% end %>

<% form_tag({:action => "search_redirect"}, {:id => "search_form"}) do %>

       <%= text_field_tag 'query', @query, { :size => 40 } %>
       <%= hidden_field_tag 'sortby', @sortby %>
       <% if @bodies %>
           <%= hidden_field_tag 'bodies', 1 %>
       <% end %>
       <%= submit_tag "Search" %>
       <% if not @show_tips %>
             Advanced tips
       <% end %>

<% end %>

<% if !@query.nil? %>

    <%=link_to_unless @sortby.nil?, "Show most relevant results first", search_url(@query, nil) %>
    |
    <%=link_to_unless @sortby == 'newest', "Newest results first", search_url(@query, 'newest') %>
    <% if @sortby == 'described' %>
    | Recently described results first
    <% end %>

<% end %>

<% if @bodies && !@query.nil? && @xapian_bodies.results.size == 0 && @page == 1 %>

No public authorities found

    <% if @spelling_correction %>

Did you mean: <%= search_link(@spelling_correction, @postfix) %>

    <% end %>

<%=link_to "Browse all", list_public_bodies_default %> or ask us to add one.

<% end %>

<% if @total_hits == 0 %>

<%=@title %>

<% end %>

<% if not @query.nil? %>
    <% if @spelling_correction %>

Did you mean: <%= search_link(@spelling_correction, @postfix) %>

    <% end %>

    <% if (!@bodies || @xapian_requests.results.size == 0) && @track_thing && (@xapian_bodies.results.size > 0 || @xapian_users.results.size > 0 || @total_hits == 0)%>
        <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>
    <% end %>

    <% if @xapian_bodies.results.size > 0 %>

<%= "Public authorities " + ((@page-1)*@bodies_per_page+1).to_s + "-" + [@page*@bodies_per_page, @xapian_bodies.matches_estimated].min.to_s + " of " + @xapian_bodies.matches_estimated.to_s + " for '" + h(@query) + "'" %>

        <% for result in @xapian_bodies.results %>
            <%= render :partial => 'body/body_listing_single', :locals => { :public_body => result[:model] }  %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @bodies_per_page, @xapian_bodies.matches_estimated) %>
    <% end %>

    <% if @xapian_users.results.size > 0 %>

<%= "People " + ((@page-1)*@users_per_page+1).to_s + "-" + [@page*@users_per_page, @xapian_users.matches_estimated].min.to_s + " of " + @xapian_users.matches_estimated.to_s + " for '" + h(@query) + "'" %>

        <% for result in @xapian_users.results %>
            <%= render :partial => 'user/user_listing_single', :locals => { :display_user => result[:model] } %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @users_per_page, @xapian_users.matches_estimated) %>
    <% end %>

    <% if @xapian_requests.results.size > 0 %>

<%= "FOI requests " + ((@page-1)*@requests_per_page+1).to_s + "-" + [@page*@requests_per_page, @xapian_requests.matches_estimated].min.to_s + " of " + @xapian_requests.matches_estimated.to_s + " for '" + h(@query) + "'" %>

        <% if @track_thing %>
            <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>
        <% end %>

        <% for result in @xapian_requests.results %>
            <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @requests_per_page, @xapian_requests.matches_estimated) %>
        <% if @track_thing %>

            <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>
        <% end %>
    <% end %>
<% end %>

<% if @show_tips %>

Search tips

Enter words that you want to find separated by spaces, e.g. <%=search_link('climbing lane')%>

Use OR (in capital letters) where you don't mind which word,  e.g. <%=search_link('commons OR lords')%>

Use quotes when you want to find an exact phrase, e.g. <%=search_link('"Liverpool City Council"')%>

variety: with value sent, followup_sent, response, comment, authority or user to select type of thing to search for.

status: to select based on the status or historical status of the request, see table below.

<%=search_link('requested_from:home_office')%> to search requests from the <%= link_to "Home Office", show_public_body_url(:url_name => 'home_office') %>, typing the name as in the URL.

<%=search_link('requested_by:julian_todd')%> to search requests made by <%= link_to "Julian Todd", show_user_url(:url_name => 'julian_todd') %>, typing the name as in the URL.

<%=search_link('commented_by:tony_bowden')%> to search annotations made by <%= link_to "Tony Bowden", show_user_url(:url_name => 'tony_bowden') %>, typing the name as in the URL.

request: to restrict to a specific request, typing the title as in the URL.

<%=search_link('filetype:pdf')%> to find all responses with PDF attachments. Or try these: <%= IncomingMessage.get_all_file_extentions%>.

Type <%=search_link('01/01/2008..14/01/2008')%> to only show things that happened in the first two weeks of January.

Read about advanced search operators, such as proximity and wildcards.

Table of statuses

<%=search_link('status:waiting_response')%>	 Waiting for the public authority to reply

<%=search_link('status:not_held')%>	 The public authority does not have the information requested

<%=search_link('status:rejected')%>	 The request was rejected by the public authority

<%=search_link('status:partially_successful')%>	 Some of the information requested has been received

<%=search_link('status:successful')%>	 All of the information requested has been received

<%=search_link('status:waiting_clarification')%>	 The public authority would like part of the request explained

<%=search_link('status:gone_postal')%>	 The public authority would like to / has responded by post

<%=search_link('status:internal_review')%>	 Waiting for the public authority to complete an internal review of their handling of the request

<%=search_link('status:requires_admin')%>	 A strange reponse, required attention by the WhatDoTheyKnow team

<% end %>


Whoops

Whoops

<%= error_messages_for :task_list %>

    <%= :name.l %>: *
    <%= text_field 'task_list', 'name', :id => 'taskListFormName', :class => 'long' %>

    <%= :priority.l %>: *
    <%= text_field 'task_list', 'priority', :id => 'taskListPriority', :class => 'long' %>

    <%= :description.l %>:
    <%= text_area 'task_list', 'description', :id => 'taskListFormDescription', :class => 'short', :rows => 10, :cols => 40 %>

    <%= :milestone.l %>:
    <%= select 'task_list', 'milestone_id', ProjectMilestone.select_list(@active_project), {}, {:class => 'select_milestone', :id => 'taskListFormMilestone'} %>

<% if @logged_user.member_of_owner? %>

    <%= :is_private_list.l %>: <%= :is_private_list_info.l %>
    <%= yesno_toggle 'task_list', 'is_private', :id => 'taskListFormIsPrivate', :class => 'yes_no'  %>

<% end %>

     <%= :tags.l %>:
     <%= text_field 'task_list', 'tags', :id => 'taskListFormTags', :class => 'long' %>
<%=:tags_info.l %>

<% end %>


Translate task duration tooltip on edit form

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/evinoca/clockingit.git/'


Include requested by in task created email


git-svn-id: http://butlerpress.com/var/repos/racing_on_rails/trunk@912 2d86388d-c40f-0410-ad6a-a69da6a65d20

<p class="notice">
<%= flash[:notice] %>
</p>

<%= link_to 'Back to BAR homepage', {:action => 'index', :year => nil, :discipline => nil, :category => nil}, :class => 'obvious' %>

error: pathspec 'app/views/bar/not_found.rhtml' did not match any file(s) known to git


Don't fail when a banner is completely absent.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="<%= I18n.locale %>">

        <title>
        <% if @title %>
            <%=@title%> - <%= site_name %>
        <% else %>
            <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
        <% end %>
        </title>

        <link rel="shortcut icon" href="/favicon.ico">

	<%= render :partial => 'general/stylesheet_includes' %>
	<% if is_admin? %>
          <%= stylesheet_link_tag "/adminbootstraptheme/stylesheets/admin", :title => "Main", :rel => "stylesheet" %>
	<% end %>

        <%= javascript_include_tag 'jquery.js', 'jquery-ui.min','jquery.cookie.js', 'general.js' %>
        <% if @profile_photo_javascript %>

            <link rel="stylesheet" href="/stylesheets/jquery.Jcrop.css" type="text/css" >
        <% end %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
                <% if feed[:has_json] %>
                    <link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
                <% end %>
            <% end %>
        <% end %>
        <% if @has_json %>
            <link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h main_url(request.request_uri, '.json') %>">
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

        <%= render :partial => 'general/before_head_end' %>

    <body class="<%= 'admin' if is_admin? %> <%= 'front' if params[:action] == 'frontpage' %>">
    <% if force_registration_on_new_request && !@user %>
    <%= javascript_include_tag 'jquery.fancybox-1.3.4.pack' %>

    <% end %>

<% if session[:using_admin] %>
  <%= render :partial => 'admin_general/admin_navbar' %>
<% end %>

<% if !@popup_banner.blank? %>

<%= _('Close') %>

  <%= @popup_banner %>

<%= _('Close') %>

<% end %>

<%= render :partial => 'general/locale_switcher' %>

        <% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

          <% if @user %>
              <%= _('Hello, {{username}}!', :username => h(@user.name))%>

                <% if @user %>
                    <%=link_to _("My requests"), show_user_requests_path(:url_name => @user.url_name) %>
                    <%=link_to _("My profile"), show_user_profile_path(:url_name => @user.url_name) %>
                    <%=link_to _("My wall"), show_user_wall_path(:url_name => @user.url_name) %>
                <% end %>

              <%= link_to _("Sign out"), signout_url(:r => request.request_uri) %>
          <% else %>
              <%= link_to _("Sign in or sign up"), signin_url(:r => request.request_uri) %>
          <% end %>

        <% end %>

            <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "navigation_search_form"}) do %>

                   <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %>
                   <%= image_submit_tag('search-button.png') %>

            <% end %>

        <%= render :partial => 'general/orglink' %>

        <%= render :partial => 'general/topnav' %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
            <%= yield :layout %>

    <%= render :partial => 'general/footer' %>

X
<%= _("Paste this link into emails, tweets, and anywhere else:") %>

<input type="text">

    <%
      ga_code = MySociety::Config.get('GA_CODE', '')

      unless ga_code.empty? %>

      <% end %>

      <%= render :partial => 'general/before_body_end' %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="<%= I18n.locale %>">

        <title>
        <% if @title %>
            <%=@title%> - <%= site_name %>
        <% else %>
            <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
        <% end %>
        </title>

        <link rel="shortcut icon" href="/favicon.ico">

	<%= render :partial => 'general/stylesheet_includes' %>
	<% if is_admin? %>
          <%= stylesheet_link_tag "/adminbootstraptheme/stylesheets/admin", :title => "Main", :rel => "stylesheet" %>
	<% end %>

        <%= javascript_include_tag 'jquery.js', 'jquery-ui.min','jquery.cookie.js', 'general.js' %>
        <% if @profile_photo_javascript %>

            <link rel="stylesheet" href="/stylesheets/jquery.Jcrop.css" type="text/css" >
        <% end %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
                <% if feed[:has_json] %>
                    <link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
                <% end %>
            <% end %>
        <% end %>
        <% if @has_json %>
            <link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h main_url(request.request_uri, '.json') %>">
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

        <%= render :partial => 'general/before_head_end' %>

    <body class="<%= 'admin' if is_admin? %> <%= 'front' if params[:action] == 'frontpage' %>">
    <% if force_registration_on_new_request && !@user %>
    <%= javascript_include_tag 'jquery.fancybox-1.3.4.pack' %>

    <% end %>

<% if session[:using_admin] %>
  <%= render :partial => 'admin_general/admin_navbar' %>
<% end %>

<% if !@popup_banner.empty? %>

<%= _('Close') %>

  <%= @popup_banner %>

<%= _('Close') %>

<% end %>

<%= render :partial => 'general/locale_switcher' %>

        <% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

          <% if @user %>
              <%= _('Hello, {{username}}!', :username => h(@user.name))%>

                <% if @user %>
                    <%=link_to _("My requests"), show_user_requests_path(:url_name => @user.url_name) %>
                    <%=link_to _("My profile"), show_user_profile_path(:url_name => @user.url_name) %>
                    <%=link_to _("My wall"), show_user_wall_path(:url_name => @user.url_name) %>
                <% end %>

              <%= link_to _("Sign out"), signout_url(:r => request.request_uri) %>
          <% else %>
              <%= link_to _("Sign in or sign up"), signin_url(:r => request.request_uri) %>
          <% end %>

        <% end %>

            <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "navigation_search_form"}) do %>

                   <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %>
                   <%= image_submit_tag('search-button.png') %>

            <% end %>

        <%= render :partial => 'general/orglink' %>

        <%= render :partial => 'general/topnav' %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
            <%= yield :layout %>

    <%= render :partial => 'general/footer' %>

X
<%= _("Paste this link into emails, tweets, and anywhere else:") %>

<input type="text">

    <%
      ga_code = MySociety::Config.get('GA_CODE', '')

      unless ga_code.empty? %>

      <% end %>

      <%= render :partial => 'general/before_body_end' %>


Write copyright message in small.

Write copyright message in small.

Track this request

     <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => @info_request.user == @user, :location => 'sidebar' } %>

Act on what you've learnt

        <%= link_to '', "http://www.writetothem.com"%>
        <%= link_to 'Write to your politician', "http://www.writetothem.com"%>

        <%= link_to '', "http://www.pledgebank.com"%>
        <%= link_to 'Pledge with others', "http://www.pledgebank.com"%>

        <%= link_to '', "http://petitions.number10.gov.uk"%>
        <%= link_to 'Petition the PM', "http://petitions.number10.gov.uk"%>

        <%= link_to '', "http://wordpress.com/"%>
        <%= link_to 'Start your own blog', "http://wordpress.com/"%>

    <% view_cache :ttl => 1.day, :tag => ['similar', @info_request.id] do %>
     <% if !@xapian_similar.nil? && @xapian_similar.results.size > 0 %>

Similar requests

        <% for result in @xapian_similar.results %>
            <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
        <% end %>
        <% if @xapian_similar_more %>

<%= link_to "More similar requests", request_similar_url(@info_request) %>

        <% end %>

     <% end %>
    <% end %>

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

Are you the owner of
    any commercial copyright on this page?


Add view_email as not translated

Add view_email as not translated

<% @title = _("FOI email address for {{public_body}}", :public_body => h(@public_body.name)) %>

<%= _('FOI email address for {{public_body}}',:public_body=> public_body_link(@public_body))%>

<% if @public_body.is_requestable? %>
<%= _('{{site_name}} sends new requests to {{request_email}} for this authority.', :site_name=>site_name, :request_email=> h(@public_body.request_email))%>
<% else %>
    <% if @public_body.not_requestable_reason == 'not_apply' %>

<%= _('Freedom of Information law no longer applies to this authority.Follow up messages to existing requests are sent to ')%><%=h @public_body.request_email%>.

    <% elsif @public_body.not_requestable_reason == 'defunct' %>

<%=h @public_body.name %> no longer exists.
        <%= _('Follow up messages to existing requests are sent to ')%><%=h @public_body.request_email%>.

    <% elsif @public_body.not_requestable_reason == 'bad_contact' %>

<%= _('We do not have a working request email address for this authority.')%>

    <% else %>
        <% raise "unknown reason " + @reason %>
    <% end %>

<% end %>

    <% if @public_body.is_requestable? || @public_body.not_requestable_reason != 'bad_contact' %>
        <%= _('If the address is wrong, or you know a better address, please contact us.')% [help_contact_path]%>
    <% else %>
       <%= _(' If you know the address to use, then please send it to us.
        You may be able to find the address on their website, or by phoning them up and asking.')% [help_contact_path] %>
    <% end %>

        <% if @public_body.eir_only? %>
        <%= link_to "Make a new EIR request", new_request_to_body_url(:url_name => @public_body.url_name)%>
        <% else %>
        <%= link_to "Make a new OIA request", new_request_to_body_url(:url_name => @public_body.url_name)%>
        <% end %>
        to <%= h(@public_body.name) %>

error: pathspec 'lib/views/public_body/view_email.rhtml' did not match any file(s) known to git


Remove "in development" link

Remove "in development" link

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

        <%= javascript_include_tag :defaults %>

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - file and explore Freedom of Information (FOI) requests
        <% end %>
        </title>
        <%
            # Angie, just change this to true / false :)
            yucky = false
        %>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green", :rel => yucky ? "stylesheet" : "alternate stylesheet" %>
        <%= stylesheet_link_tag 'main', :title => "Main", :rel => yucky ? "alternate stylesheet" : "stylesheet"  %>

            WhatDoTheyKnow?

            Make and explore Freedom of Information requests

		a site by mysociety.org

        <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "navigation_search_form"}) do %>

               <%= text_field_tag 'query', params[:query], { :size => 25, :id => "navigation_search_query" } %>
               <%= submit_tag "Search" %>

        <% end %>

Make request

<%= link_to "View requests", request_list_url(:view => nil) %>

<%= link_to "View authorities", list_public_bodies_url(:tag => 'department') %>

			<% if @user %>

<%=link_to "My requests", user_url(@user) %>

			<% end %>

<%= link_to "About", about_url %>

		<% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

			<% if @user %>
				Hello, <%=h(@user.name)%>!
				(<%= link_to "Sign out", signout_url(:r => request.request_uri) %>)
			<% else %>
				Hello! (<%= link_to "Sign in or sign up", signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>">
            <%= yield :layout %>

        Built by mySociety ... and you.
        Get the source code (is on Rails).
        Dedicated to Chris Lightfoot.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

        <%= javascript_include_tag :defaults %>

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - file and explore Freedom of Information (FOI) requests
        <% end %>
        </title>
        <%
            # Angie, just change this to true / false :)
            yucky = false
        %>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green", :rel => yucky ? "stylesheet" : "alternate stylesheet" %>
        <%= stylesheet_link_tag 'main', :title => "Main", :rel => yucky ? "alternate stylesheet" : "stylesheet"  %>

            WhatDoTheyKnow?
            (<%= link_to "in development", about_url %>)

            Make and explore Freedom of Information requests

		a site by mysociety.org

        <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "navigation_search_form"}) do %>

               <%= text_field_tag 'query', params[:query], { :size => 25, :id => "navigation_search_query" } %>
               <%= submit_tag "Search" %>

        <% end %>

Make request

<%= link_to "View requests", request_list_url(:view => nil) %>

<%= link_to "View authorities", list_public_bodies_url(:tag => 'department') %>

			<% if @user %>

<%=link_to "My requests", user_url(@user) %>

			<% end %>

<%= link_to "About", about_url %>

		<% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

			<% if @user %>
				Hello, <%=h(@user.name)%>!
				(<%= link_to "Sign out", signout_url(:r => request.request_uri) %>)
			<% else %>
				Hello! (<%= link_to "Sign in or sign up", signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>">
            <%= yield :layout %>

        Built by mySociety ... and you.
        Get the source code (is on Rails).
        Dedicated to Chris Lightfoot.


If you want to combine stylesheets, they must have the same 'title' attribute

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="<%= I18n.locale %>">

        <% if @profile_photo_javascript %>

            <link rel="stylesheet" href="/stylesheets/jquery.Jcrop.css" type="text/css" >
        <% end %>

        <title>
        <% if @title %>
            <%=@title%> - <%= site_name %>
        <% else %>
            <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
        <% end %>
        </title>

        <link rel="shortcut icon" href="/favicon.ico">

        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet"  %>

        <%= stylesheet_link_tag 'custom', :title => "Main", :rel => "stylesheet"  %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
                <% if feed[:has_json] %>
                    <link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
                <% end %>
            <% end %>
        <% end %>
        <% if @has_json %>
            <link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h main_url(request.request_uri) %>.json">
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

<% # code for popup advert for a campaign etc.
=begin

=end
%>

<% # code for popup advert for a campaign etc.
=begin

Close

    [ message goes here ]

Close

=end
%>

            <%= link_to site_name, frontpage_url %>

            <%= _('Make and explore Freedom of Information requests') %>

	  <%= render :partial => 'general/locale_switcher' %>

	  <%= render :partial => 'general/orglink' %>

        <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "navigation_search_form"}) do %>

               <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %>
               <%= submit_tag _("Search") %>

        <% end %>

<%= link_to _("Make request"), frontpage_url %>

<%= link_to _("View requests"), request_list_successful_url %>

<%= link_to _("View authorities"), list_public_bodies_default %>

			<% if @user %>

<%=link_to _("My requests"), user_url(@user) %>

			<% end %>

<%= link_to _("Read blog"), blog_url %>

<%= link_to _("Help"), help_about_url %>

		<% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

			<% if @user %>
				<%= _('Hello, {{username}}!', :username => h(@user.name))%>
				(<%= link_to _("Sign out"), signout_url(:r => request.request_uri) %>)
			<% else %>
			        <%= _('Hello!') %>
				(<%= link_to _("Sign in or sign up"), signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
            <%= yield :layout %>

        <%= link_to _("Contact {{site_name}}", :site_name => site_name), help_contact_url %>
	<%= render :partial => 'general/credits' %>

	<%= render :partial => 'general/before_body_end' %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="<%= I18n.locale %>">

        <% if @profile_photo_javascript %>

            <link rel="stylesheet" href="/stylesheets/jquery.Jcrop.css" type="text/css" >
        <% end %>

        <title>
        <% if @title %>
            <%=@title%> - <%= site_name %>
        <% else %>
            <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
        <% end %>
        </title>

        <link rel="shortcut icon" href="/favicon.ico">

        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet"  %>

        <%= stylesheet_link_tag 'custom', :title => "Custom", :rel => "stylesheet"  %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
                <% if feed[:has_json] %>
                    <link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
                <% end %>
            <% end %>
        <% end %>
        <% if @has_json %>
            <link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h main_url(request.request_uri) %>.json">
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

<% # code for popup advert for a campaign etc.
=begin

=end
%>

<% # code for popup advert for a campaign etc.
=begin

Close

    [ message goes here ]

Close

=end
%>

            <%= link_to site_name, frontpage_url %>

            <%= _('Make and explore Freedom of Information requests') %>

	  <%= render :partial => 'general/locale_switcher' %>

	  <%= render :partial => 'general/orglink' %>

        <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "navigation_search_form"}) do %>

               <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %>
               <%= submit_tag _("Search") %>

        <% end %>

<%= link_to _("Make request"), frontpage_url %>

<%= link_to _("View requests"), request_list_successful_url %>

<%= link_to _("View authorities"), list_public_bodies_default %>

			<% if @user %>

<%=link_to _("My requests"), user_url(@user) %>

			<% end %>

<%= link_to _("Read blog"), blog_url %>

<%= link_to _("Help"), help_about_url %>

		<% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

			<% if @user %>
				<%= _('Hello, {{username}}!', :username => h(@user.name))%>
				(<%= link_to _("Sign out"), signout_url(:r => request.request_uri) %>)
			<% else %>
			        <%= _('Hello!') %>
				(<%= link_to _("Sign in or sign up"), signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
            <%= yield :layout %>

        <%= link_to _("Contact {{site_name}}", :site_name => site_name), help_contact_url %>
	<%= render :partial => 'general/credits' %>

	<%= render :partial => 'general/before_body_end' %>


Remove the capture group

Remove the capture group

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/mhsjlw/minecraft-buildpack.git/'


Better wording about zip file

Better wording about zip file

<%= _('Things to do with this request') %>

        <%= _('Anyone:') %>

			<%= _('Add an annotation (to help the requester or others)') % [new_comment_url(:url_title => @info_request.url_title)] %>

        <% if @old_unclassified %>

                <%= link_to _('Update the status of this request'), '#describe_state_form_1' %>

        <% end %>

		<%= _('{{info_request_user_name}} only:',:info_request_user_name=>h(@info_request.user.name)) %>

          <% if @last_response.nil? %>
              <%= link_to _("Write a reply"), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "#followup" %>
          <% else %>
              <%= link_to _("Write a reply"), show_response_url(:id => @info_request.id, :incoming_message_id => @last_response.id) + "#followup" %>
          <% end %>

      <% if !@old_unclassified %>

          <%= link_to _("Update the status of this request"), request_url(@info_request, :update_status => 1) %>

      <% end %>

          <%= link_to _("Request an internal review"), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %>

          <%= link_to _("Download a zip file of all correspondence"), download_entire_request_url(:url_title => @info_request.url_title) %>

		<%= _('{{public_body_name}} only:',:public_body_name=>h(@info_request.public_body.name) ) %>

          <%= link_to _("Respond to request"), upload_response_url(:url_title => @info_request.url_title) %>

          <%= link_to _("Download a zip file of all correspondence"), download_entire_request_url(:url_title => @info_request.url_title) %>

<%= _('Things to do with this request') %>

        <%= _('Anyone:') %>

			<%= _('Add an annotation (to help the requester or others)') % [new_comment_url(:url_title => @info_request.url_title)] %>

        <% if @old_unclassified %>

                <%= link_to _('Update the status of this request'), '#describe_state_form_1' %>

        <% end %>

		<%= _('{{info_request_user_name}} only:',:info_request_user_name=>h(@info_request.user.name)) %>

          <% if @last_response.nil? %>
              <%= link_to _("Write a reply"), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "#followup" %>
          <% else %>
              <%= link_to _("Write a reply"), show_response_url(:id => @info_request.id, :incoming_message_id => @last_response.id) + "#followup" %>
          <% end %>

      <% if !@old_unclassified %>

          <%= link_to _("Update the status of this request"), request_url(@info_request, :update_status => 1) %>

      <% end %>

          <%= link_to _("Request an internal review"), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %>

          <%= link_to _("Download a zip file containing all the above correspondence"), download_entire_request_url(:url_title => @info_request.url_title) %>

		<%= _('{{public_body_name}} only:',:public_body_name=>h(@info_request.public_body.name) ) %>

          <%= link_to _("Respond to request"), upload_response_url(:url_title => @info_request.url_title) %>

          <%= link_to _("Download a zip file containing all the above correspondence"), download_entire_request_url(:url_title => @info_request.url_title) %>


- Show todo-form, don't toggle

- Show todo-form, don't toggle


Remember the variety of a search when changing the sort order

<% @show_tips = @xapian_requests.nil? || (@total_hits == 0) %>

<% @include_request_link_in_authority_listing = true %>

<%= render :partial => 'localised_datepicker'  %>

<% if @query.nil? %>
    <% @title = _("Search Freedom of Information requests, public authorities and users") %>
<% elsif @total_hits == 0 %>
    <% @title = _('There were no requests matching your query.') %>
<% else %>
    <% @title = _("Results page {{page_number}}", :page_number => @page.to_s) %>
<% end%>

  <% if @query.nil? %>

Search

  <% else %>

Search results

  <% end%>

  <% if @advanced %>

<%= _('To use the advanced search, combine phrases and labels as described in the search tips below.') %>

    <% form_tag(advanced_search_url, :method => "get") do %>

         <%= text_field_tag :query, params[:query], { :size => 40 } %>
         <%= hidden_field_tag 'sortby', @inputted_sortby %>
         <% if @bodies %>
             <%= hidden_field_tag 'bodies', 1 %>
         <% end %>
         <%= submit_tag _("Search") %>
               <%= link_to _('Simple search'), search_redirect_path %>

    <% end %>
  <% else %>
    <% form_tag(request.url, {:method => "get", :id => "search_form"}) do %>

         <%= text_field_tag 'query', params[:query], { :size => 40 } %>
         <%= hidden_field_tag 'sortby', @inputted_sortby %>
         <% if @bodies %>
             <%= hidden_field_tag 'bodies', 1 %>
         <% end %>
         <%= submit_tag _("Search") %>
        <%= link_to(_("Advanced search"), advanced_search_url) %>

<%= _("Showing") %>

     <% labels = [
	      ["requests", _("requests")],
        ["users", _("users")],
        ["bodies", _("authorities")],
	["all", _("everything")]]%>
     <% for variety, label in labels %>
       <% if @variety_postfix != variety %>
        <% if variety != "users" %>
         <%=  link_to label, search_url([params[:query], @common_query], variety, @sort_postfix), :method => :get  %>
	<% else %>
         <%=  link_to label, search_url(params[:query], variety, @sort_postfix), :method => :get  %>
	<% end %>
       <% else %>
         <%= label %>
       <% end %>
       <%= "|" unless variety == labels.last[0]%>
     <% end %>

<% if false %>
<%-# Commented out for now as tags are of limited use when users can't see them.  This will change in the future! -%>
<% if @variety_postfix != "users" %>

   <%= label_tag(:query, _("Tags (separated by a space):")) %><%= text_field_tag(:tags, params[:tags], { :size => 20 }) %>
   <% for tag in InfoRequest.get_tags %>
     <%= tag.name_and_value %>
   <% end %>

<% end %>
<% end %>

<% if @variety_postfix == "requests" %>

<%= _("Restrict to") %>

     <% [["successful", _("successful requests")],
        ["unsuccessful", _("unsuccessful requests")],
        ["awaiting", _("unresolved requests")],
        ["internal_review", _("internal reviews")]].each_with_index do |item, index|
	   status, title = item %>

      <%= check_box_tag "latest_status[]", status, params[:latest_status].nil? ? false : params[:latest_status].include?(status), :id => "latest_status_#{index}" %>
      <%= label_tag("latest_status_#{index}", title) %>

    <% end %>

<%= _("Search in") %>

  <% [["sent", _("messages from users")],
     ["response", _("messages from authorities")],
     ["comment", _("comments")]].each_with_index do |item, index|
     variety, title = item %>

   <%= check_box_tag "request_variety[]", variety, params[:request_variety].nil? ? true : params[:request_variety].include?(variety), :id => "request_variety_#{index}" %>
   <%= label_tag("request_variety_#{index}", title) %>

  <% end %>

   Made between
   <%= text_field_tag(:request_date_after, params[:request_date_after], {:class => "use-datepicker", :size => 10}) %>
    and
   <%= text_field_tag(:request_date_before, params[:request_date_before], {:class => "use-datepicker", :size => 10}) %>

<% end %>

   <%= submit_tag("Filter") if @variety_postfix == "requests"%>

  <% end %>
<% end %>

  <% if !@query.nil? %>

      <%=link_to_unless @sortby == 'relevant', _("Show most relevant results first"), search_url(@query, @variety_postfix, 'relevant') %>
      |
      <%=link_to_unless @sortby == 'newest', _("Newest results first"), search_url(@query, @variety_postfix, 'newest') %>
      <% if @sortby == 'described' %>
      | <%= _('Recently described results first') %>
      <% end %>

  <% end %>

<% if @track_thing  && (@xapian_bodies_hits > 0 || @xapian_users_hits > 0 || @total_hits == 0)%>

Track this search

    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>

<% end %>

<% if @total_hits == 0 %>

<%=@title %>

<% end %>

<% if not @query.nil? %>

      <% if @xapian_bodies_hits > 0 %>
          <% if @xapian_bodies_hits == 1 && @page == 1 %>

<%= _('One public authority found') %>

          <% else %>

<%= _('Public authorities {{start_count}} to {{end_count}} of {{total_count}}', :start_count => ((@page-1)*@bodies_per_page+1).to_s, :end_count => [@page*@bodies_per_page, @xapian_bodies.matches_estimated].min.to_s, :total_count => @xapian_bodies.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_bodies.results %>
                <%= render :partial => 'public_body/body_listing_single', :locals => { :public_body => result[:model] }  %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @bodies_per_page, @xapian_bodies.matches_estimated) %>
      <% elsif @bodies && !@query.nil? && @xapian_bodies.results.size == 0 && @page == 1 %>

<%= _('No public authorities found') %>

        <% if @spelling_correction %>

<%= _('Did you mean: {{correction}}', :correction => search_link(@spelling_correction, @postfix)) %>

        <% end %>

<%= _('Browse all or ask us to add one.') % [list_public_bodies_default, help_requesting_path + '#missing_body'] %>

      <% end %>

      <% if @xapian_users_hits > 0 %>
          <% if @xapian_users_hits == 1 && @page == 1 %>

<%= _("One person found") %>

          <% else %>

<%= _("People {{start_count}} to {{end_count}} of {{total_count}}", :start_count => ((@page-1)*@users_per_page+1).to_s, :end_count =>  [@page*@users_per_page, @xapian_users.matches_estimated].min.to_s, :total_count =>  @xapian_users.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_users.results %>
                <%= render :partial => 'user/user_listing_single', :locals => { :display_user => result[:model] } %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @users_per_page, @xapian_users.matches_estimated) %>
      <% end %>

      <% if @xapian_requests_hits > 0 %>
          <% if @xapian_requests_hits == 1 && @page == 1 %>

<%= _("One FOI request found") %>

          <% else %>

<%= _("FOI requests {{start_count}} to {{end_count}} of {{total_count}}", :start_count => ((@page-1)*@requests_per_page+1).to_s, :end_count => [@page*@requests_per_page, @xapian_requests.matches_estimated].min.to_s, :total_count =>  @xapian_requests.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_requests.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @requests_per_page, @xapian_requests.matches_estimated) %>
      <% end %>

<% end %>

<% if @advanced %>

<%= _("Advanced search tips")%>

<%= _("Enter words that you want to find separated by spaces, e.g. climbing lane") %>

<%= _('Use OR (in capital letters) where you don\'t mind which word,  e.g. commons OR lords') %>

<%= _('Use quotes when you want to find an exact phrase, e.g. "Liverpool City Council"') %>

<%= _('status: to select based on the status or historical status of the request, see the table of statuses below.', :statuses_url => "#statuses") %>

<%= _('variety: to select type of thing to search for, see the table of varieties below.', :varieties_url => "#varieties") %>

<%= _('requested_from:home_office to search requests from the Home Office, typing the name as in the URL.')%>

<%= _('requested_by:julian_todd to search requests made by Julian Todd, typing the name as in the URL.') %>

<%= _('commented_by:tony_bowden to search annotations made by Tony Bowden, typing the name as in the URL.')%>

<%= _('request: to restrict to a specific request, typing the title as in the URL.')%>

<%= _('filetype:pdf to find all responses with PDF attachments. Or try these: {{list_of_file_extensions}}', :list_of_file_extensions => IncomingMessage.get_all_file_extensions)%>

<%= _('Type 01/01/2008..14/01/2008 to only show things that happened in the first two weeks of January.')%>

<%= _('tag:charity to find all public bodies or requests with a given tag. You can include multiple tags,
    and tag values, e.g. tag:openlylocal AND tag:financial_transaction:335633. Note that by default any of the tags
    can be present, you have to put AND explicitly if you only want results them all present.')%>

<%= _('Read about advanced search operators, such as proximity and wildcards.', :advanced_search_url => "http://www.xapian.org/docs/queryparser.html") %>

<%= _('Table of statuses') %>

<%=search_link('status:waiting_response', nil, nil, true)%>	<%= _('Waiting for the public authority to reply') %>

<%=search_link('status:not_held', nil, nil, true)%>	<%= _('The public authority does not have the information requested') %>

<%=search_link('status:rejected', nil, nil, true)%>	<%= _('The request was refused by the public authority') %>

<%=search_link('status:partially_successful', nil, nil, true)%>	<%= _('Some of the information requested has been received') %>

<%=search_link('status:successful', nil, nil, true)%>	<%= _('All of the information requested has been received') %>

<%=search_link('status:waiting_clarification', nil, nil, true)%>	<%= _('The public authority would like part of the request explained') %>

<%=search_link('status:gone_postal', nil, nil, true)%>	<%= _('The public authority would like to / has responded by post') %>

<%=search_link('status:internal_review', nil, nil, true)%>	<%= _('Waiting for the public authority to complete an internal review of their handling of the request') %>

<%=search_link('status:error_message', nil, nil, true)%>	<%= _('Received an error message, such as delivery failure.') %>

<%=search_link('status:requires_admin', nil, nil, true)%>	<%= _('A strange reponse, required attention by the {{site_name}} team', :site_name=>site_name) %>

<%=search_link('status:user_withdrawn', nil, nil, true)%>	<%= _('The requester has abandoned this request for some reason') %>

<%= _('Table of varieties') %>

<%=search_link('variety:sent', nil, nil, true)%>	<%= _('Original request sent') %>

<%=search_link('variety:followup_sent', nil, nil, true)%>	<%= _('Follow up message sent by requester') %>

<%=search_link('variety:response', nil, nil, true)%>	<%= _('Response from a public authority') %>

<%=search_link('variety:comment', nil, nil, true)%>	<%= _('Annotation added to request') %>

<%=search_link('variety:authority', nil, nil, true)%>	<%= _('A public authority') %>

<%=search_link('variety:user', nil, nil, true)%>	<%= _('A {{site_name}} user', :site_name=>site_name) %>

<% end %>

<% @show_tips = @xapian_requests.nil? || (@total_hits == 0) %>

<% @include_request_link_in_authority_listing = true %>

<%= render :partial => 'localised_datepicker'  %>

<% if @query.nil? %>
    <% @title = _("Search Freedom of Information requests, public authorities and users") %>
<% elsif @total_hits == 0 %>
    <% @title = _('There were no requests matching your query.') %>
<% else %>
    <% @title = _("Results page {{page_number}}", :page_number => @page.to_s) %>
<% end%>

  <% if @query.nil? %>

Search

  <% else %>

Search results

  <% end%>

  <% if @advanced %>

<%= _('To use the advanced search, combine phrases and labels as described in the search tips below.') %>

    <% form_tag(advanced_search_url, :method => "get") do %>

         <%= text_field_tag :query, params[:query], { :size => 40 } %>
         <%= hidden_field_tag 'sortby', @inputted_sortby %>
         <% if @bodies %>
             <%= hidden_field_tag 'bodies', 1 %>
         <% end %>
         <%= submit_tag _("Search") %>
               <%= link_to _('Simple search'), search_redirect_path %>

    <% end %>
  <% else %>
    <% form_tag(request.url, {:method => "get", :id => "search_form"}) do %>

         <%= text_field_tag 'query', params[:query], { :size => 40 } %>
         <%= hidden_field_tag 'sortby', @inputted_sortby %>
         <% if @bodies %>
             <%= hidden_field_tag 'bodies', 1 %>
         <% end %>
         <%= submit_tag _("Search") %>

<%= _("Showing") %>

     <% labels = [
	      ["requests", _("requests")],
        ["users", _("users")],
        ["bodies", _("authorities")],
	["all", _("everything")]]%>
     <% for variety, label in labels %>
       <% if @variety_postfix != variety %>
        <% if variety != "users" %>
         <%=  link_to label, search_url([params[:query], @common_query], variety, @sort_postfix), :method => :get  %>
	<% else %>
         <%=  link_to label, search_url(params[:query], variety, @sort_postfix), :method => :get  %>
	<% end %>
       <% else %>
         <%= label %>
       <% end %>
       <%= "|" unless variety == labels.last[0]%>
     <% end %>

<% if false %>
<%-# Commented out for now as tags are of limited use when users can't see them.  This will change in the future! -%>
<% if @variety_postfix != "users" %>

   <%= label_tag(:query, _("Tags (separated by a space):")) %><%= text_field_tag(:tags, params[:tags], { :size => 20 }) %>
   <% for tag in InfoRequest.get_tags %>
     <%= tag.name_and_value %>
   <% end %>

<% end %>
<% end %>

<% if @variety_postfix == "requests" %>

<%= _("Restrict to") %>

     <% [["successful", _("successful requests")],
        ["unsuccessful", _("unsuccessful requests")],
        ["awaiting", _("unresolved requests")],
        ["internal_review", _("internal reviews")]].each_with_index do |item, index|
	   status, title = item %>

      <%= check_box_tag "latest_status[]", status, params[:latest_status].nil? ? false : params[:latest_status].include?(status), :id => "latest_status_#{index}" %>
      <%= label_tag("latest_status_#{index}", title) %>

    <% end %>

<%= _("Search in") %>

  <% [["sent", _("messages from users")],
     ["response", _("messages from authorities")],
     ["comment", _("comments")]].each_with_index do |item, index|
     variety, title = item %>

   <%= check_box_tag "request_variety[]", variety, params[:request_variety].nil? ? true : params[:request_variety].include?(variety), :id => "request_variety_#{index}" %>
   <%= label_tag("request_variety_#{index}", title) %>

  <% end %>

   Made between
   <%= text_field_tag(:request_date_after, params[:request_date_after], {:class => "use-datepicker", :size => 10}) %>
    and
   <%= text_field_tag(:request_date_before, params[:request_date_before], {:class => "use-datepicker", :size => 10}) %>

<% end %>

   <%= submit_tag("Filter") if @variety_postfix == "requests"%>

  <% end %>

<%= link_to(_("Advanced search"), advanced_search_url) %>

<% end %>

  <% if !@query.nil? %>

      <%=link_to_unless @sortby == 'relevant', _("Show most relevant results first"), search_url(@query, 'relevant') %>
      |
      <%=link_to_unless @sortby == 'newest', _("Newest results first"), search_url(@query, 'newest') %>
      <% if @sortby == 'described' %>
      | <%= _('Recently described results first') %>
      <% end %>

  <% end %>

<% if @track_thing  && (@xapian_bodies_hits > 0 || @xapian_users_hits > 0 || @total_hits == 0)%>

Track this search

    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>

<% end %>

<% if @total_hits == 0 %>

<%=@title %>

<% end %>

<% if not @query.nil? %>

      <% if @xapian_bodies_hits > 0 %>
          <% if @xapian_bodies_hits == 1 && @page == 1 %>

<%= _('One public authority found') %>

          <% else %>

<%= _('Public authorities {{start_count}} to {{end_count}} of {{total_count}}', :start_count => ((@page-1)*@bodies_per_page+1).to_s, :end_count => [@page*@bodies_per_page, @xapian_bodies.matches_estimated].min.to_s, :total_count => @xapian_bodies.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_bodies.results %>
                <%= render :partial => 'public_body/body_listing_single', :locals => { :public_body => result[:model] }  %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @bodies_per_page, @xapian_bodies.matches_estimated) %>
      <% elsif @bodies && !@query.nil? && @xapian_bodies.results.size == 0 && @page == 1 %>

<%= _('No public authorities found') %>

        <% if @spelling_correction %>

<%= _('Did you mean: {{correction}}', :correction => search_link(@spelling_correction, @postfix)) %>

        <% end %>

<%= _('Browse all or ask us to add one.') % [list_public_bodies_default, help_requesting_path + '#missing_body'] %>

      <% end %>

      <% if @xapian_users_hits > 0 %>
          <% if @xapian_users_hits == 1 && @page == 1 %>

<%= _("One person found") %>

          <% else %>

<%= _("People {{start_count}} to {{end_count}} of {{total_count}}", :start_count => ((@page-1)*@users_per_page+1).to_s, :end_count =>  [@page*@users_per_page, @xapian_users.matches_estimated].min.to_s, :total_count =>  @xapian_users.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_users.results %>
                <%= render :partial => 'user/user_listing_single', :locals => { :display_user => result[:model] } %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @users_per_page, @xapian_users.matches_estimated) %>
      <% end %>

      <% if @xapian_requests_hits > 0 %>
          <% if @xapian_requests_hits == 1 && @page == 1 %>

<%= _("One FOI request found") %>

          <% else %>

<%= _("FOI requests {{start_count}} to {{end_count}} of {{total_count}}", :start_count => ((@page-1)*@requests_per_page+1).to_s, :end_count => [@page*@requests_per_page, @xapian_requests.matches_estimated].min.to_s, :total_count =>  @xapian_requests.matches_estimated.to_s) %>

          <% end %>

            <% for result in @xapian_requests.results %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
            <% end %>

          <%= will_paginate WillPaginate::Collection.new(@page, @requests_per_page, @xapian_requests.matches_estimated) %>
      <% end %>

<% end %>

<% if @advanced %>

<%= _("Advanced search tips")%>

<%= _("Enter words that you want to find separated by spaces, e.g. climbing lane") %>

<%= _('Use OR (in capital letters) where you don\'t mind which word,  e.g. commons OR lords') %>

<%= _('Use quotes when you want to find an exact phrase, e.g. "Liverpool City Council"') %>

<%= _('status: to select based on the status or historical status of the request, see the table of statuses below.', :statuses_url => "#statuses") %>

<%= _('variety: to select type of thing to search for, see the table of varieties below.', :varieties_url => "#varieties") %>

<%= _('requested_from:home_office to search requests from the Home Office, typing the name as in the URL.')%>

<%= _('requested_by:julian_todd to search requests made by Julian Todd, typing the name as in the URL.') %>

<%= _('commented_by:tony_bowden to search annotations made by Tony Bowden, typing the name as in the URL.')%>

<%= _('request: to restrict to a specific request, typing the title as in the URL.')%>

<%= _('filetype:pdf to find all responses with PDF attachments. Or try these: {{list_of_file_extensions}}', :list_of_file_extensions => IncomingMessage.get_all_file_extensions)%>

<%= _('Type 01/01/2008..14/01/2008 to only show things that happened in the first two weeks of January.')%>

<%= _('tag:charity to find all public bodies or requests with a given tag. You can include multiple tags,
    and tag values, e.g. tag:openlylocal AND tag:financial_transaction:335633. Note that by default any of the tags
    can be present, you have to put AND explicitly if you only want results them all present.')%>

<%= _('Read about advanced search operators, such as proximity and wildcards.', :advanced_search_url => "http://www.xapian.org/docs/queryparser.html") %>

<%= _('Table of statuses') %>

<%=search_link('status:waiting_response', nil, nil, true)%>	<%= _('Waiting for the public authority to reply') %>

<%=search_link('status:not_held', nil, nil, true)%>	<%= _('The public authority does not have the information requested') %>

<%=search_link('status:rejected', nil, nil, true)%>	<%= _('The request was refused by the public authority') %>

<%=search_link('status:partially_successful', nil, nil, true)%>	<%= _('Some of the information requested has been received') %>

<%=search_link('status:successful', nil, nil, true)%>	<%= _('All of the information requested has been received') %>

<%=search_link('status:waiting_clarification', nil, nil, true)%>	<%= _('The public authority would like part of the request explained') %>

<%=search_link('status:gone_postal', nil, nil, true)%>	<%= _('The public authority would like to / has responded by post') %>

<%=search_link('status:internal_review', nil, nil, true)%>	<%= _('Waiting for the public authority to complete an internal review of their handling of the request') %>

<%=search_link('status:error_message', nil, nil, true)%>	<%= _('Received an error message, such as delivery failure.') %>

<%=search_link('status:requires_admin', nil, nil, true)%>	<%= _('A strange reponse, required attention by the {{site_name}} team', :site_name=>site_name) %>

<%=search_link('status:user_withdrawn', nil, nil, true)%>	<%= _('The requester has abandoned this request for some reason') %>

<%= _('Table of varieties') %>

<%=search_link('variety:sent', nil, nil, true)%>	<%= _('Original request sent') %>

<%=search_link('variety:followup_sent', nil, nil, true)%>	<%= _('Follow up message sent by requester') %>

<%=search_link('variety:response', nil, nil, true)%>	<%= _('Response from a public authority') %>

<%=search_link('variety:comment', nil, nil, true)%>	<%= _('Annotation added to request') %>

<%=search_link('variety:authority', nil, nil, true)%>	<%= _('A public authority') %>

<%=search_link('variety:user', nil, nil, true)%>	<%= _('A {{site_name}} user', :site_name=>site_name) %>

<% end %>


added title to bookings list

added title to bookings list

Listing bookings

    Value Date
    Credit Account
    Debit Account
    Amount

<% for booking in @bookings %>

    <%= booking.title%>
    <%=h booking.value_date %>
    <%=link_to h(booking.credit_account.title), :controller => :accounts, :action => :show, :id => booking.credit_account unless booking.credit_account.nil? %>
    <%=link_to h(booking.debit_account.title), :controller => :accounts, :action => :show, :id => booking.debit_account unless booking.debit_account.nil? %>
    <%=h booking.amount %>

    <%= link_to 'Show', :action => 'show', :id => booking %>
    <%= link_to 'Edit', :action => 'edit', :id => booking %>
    <%= link_to 'Destroy', { :action => 'destroy', :id => booking }, :confirm => 'Are you sure?', :method => :post %>

<% end %>

<%= link_to 'Previous page', { :page => @booking_pages.current.previous } if @booking_pages.current.previous %>
<%= link_to 'Next page', { :page => @booking_pages.current.next } if @booking_pages.current.next %>

<%= link_to 'New booking', :action => 'new' %>

Listing bookings

    <%= sort_header 'value_date' %>
    <%= sort_header 'credit_account_id' %>
    <%= sort_header 'debit_account_id' %>
    <%= sort_header 'amount' %>

<% for booking in @bookings %>

    <%=h booking.value_date %>
    <%=link_to h(booking.credit_account.title), :controller => :accounts, :action => :show, :id => booking.credit_account unless booking.credit_account.nil? %>
    <%=link_to h(booking.debit_account.title), :controller => :accounts, :action => :show, :id => booking.debit_account unless booking.debit_account.nil? %>
    <%=h booking.amount %>

    <%= link_to 'Show', :action => 'show', :id => booking %>
    <%= link_to 'Edit', :action => 'edit', :id => booking %>
    <%= link_to 'Destroy', { :action => 'destroy', :id => booking }, :confirm => 'Are you sure?', :method => :post %>

<% end %>

<%= link_to 'Previous page', { :page => @booking_pages.current.previous } if @booking_pages.current.previous %>
<%= link_to 'Next page', { :page => @booking_pages.current.next } if @booking_pages.current.next %>

<%= link_to 'New booking', :action => 'new' %>


[ClockingIT @ Add link to source to index page]


New login page

New login page


Copy view partial from main alaveteli project

        <li class="<%= 'selected' if params[:controller] == 'general' and params[:action] != 'blog' and params[:action] != 'search' %>"><%= link_to _("Home"), frontpage_url %>

        <li class="<%= 'selected' if params[:controller] == 'request' and ['new', 'select_authority'].include?(params[:action]) %>"><%= link_to _("Make a request"), select_authority_url, :id => 'make-request-link' %>

        <li class="<%= 'selected' if params[:controller] == 'request' and !['new', 'select_authority'].include?(params[:action]) %>"><%= link_to _("View requests"), request_list_successful_url %>

        <li class="<%= 'selected' if params[:controller] == 'public_body' %>"><%= link_to _("View authorities"), list_public_bodies_default %>

        <li class="<%= 'selected' if params[:controller] == 'general' and params[:action] == 'blog' %>"><%= link_to _("Read blog"), blog_url %>

        <li class="<%= 'selected' if params[:controller] == 'help' %>"><%= link_to _("Help"), help_about_url %>

error: pathspec 'lib/views/general/_topnav.rhtml' did not match any file(s) known to git


git-svn-id: svn+ssh://ko.meadowy.net/home/svn/inside/kozuchi/trunk@467 c938ebee-df10-0410-95fc-be8c4b0ebdd5

<%= link_to '一覧に戻る', :action => 'index' %> | <%= link_to '削除', {:action => 'delete', :id => @settlement.id}, :confirm => "精算データを削除すると、精算結果の取引も自動的に削除されます。精算データを削除してよろしいですか？" %>

      精算データ名
      <%= h @settlement.name %>

      精算対象口座
      <%= h @settlement.account.name %>

      登録日時
      <%= format_date @settlement.created_at %>

精算対象

      <%= display_account_entry_header %>

    <% for target_entry in @settlement.target_entries %>

        <%= display_account_entry(target_entry)%>
        <%= link_to('→',{:controller => 'deals', :action => 'jump', :id => target_entry.deal.id}) %>

    <% end %>
    <% #target_entries の合計がプラスであるときに出す %>
    <% if @settlement.target_sum > 0 %>

      <%= link_to '立替経費精算依頼書', {:action => 'print_form'}, :popup => true %>
      |
      <%= link_to 'csv', {:action => 'print_form', :format => 'csv'}, :popup => true %>

    <% end %>

精算結果

  <% unless @settlement.result_entry %>

データが破損しています。精算取引がありません。管理者に連絡してください。

  <% else %>

      <%= display_account_entry_header %>

      <%= display_account_entry(@settlement.result_entry)%>
      <%= link_to('→',{:controller => 'deals', :action => 'jump', :id => @settlement.result_entry.deal.id}) %>

  <% end %>

<%= link_to '一覧に戻る', :action => 'index' %> | <%= link_to '削除', {:action => 'delete', :id => @settlement.id}, :confirm => "精算データを削除すると、精算結果の取引も自動的に削除されます。精算データを削除してよろしいですか？" %>

      精算データ名
      <%= h @settlement.name %>

      精算対象口座
      <%= h @settlement.account.name %>

      登録日時
      <%= format_date @settlement.created_at %>

精算対象

      <%= display_account_entry_header %>

    <% for target_entry in @settlement.target_entries %>

        <%= display_account_entry(target_entry)%>
        <%= link_to('→',{:controller => 'deals', :action => 'jump', :id => target_entry.deal.id}) %>

    <% end %>
    <% #target_entries の合計がプラスであるときに出す %>
    <% if @settlement.target_sum > 0 %>

      <%= link_to '立替経費精算依頼書', {:action => 'print_form'}, :popup => true %>
      |
      <%= link_to 'csv', {:action => 'print_form', :format => 'csv'}, :popup => true %>

    <% end %>

精算結果

      <%= display_account_entry_header %>

      <%= display_account_entry(@settlement.result_entry)%>
      <%= link_to('→',{:controller => 'deals', :action => 'jump', :id => @settlement.result_entry.deal.id}) %>


add paging to authority search results

add paging to authority search results

<% @title = _("Select the authority to write to")  %>

<%= _('1. Select an authority') %>

    <% form_tag({:controller => "request", :action => "select_authority"}, {:id => "search_form", :method => "get"}) do %>

           <%= _('First, type in the name of the UK public authority you\'d
           like information from. By law, they have to respond
           (why?).') % help_about_url %>

           <%= text_field_tag 'query', params[:query], { :size => 30 } %>
           <%= hidden_field_tag 'bodies', 1 %>
           <%= submit_tag _('Search') %>

    <% end %>

 <% if !@xapian_requests.nil? %>
  <% if  @xapian_requests.results.size > 0 %>

<%= _('Top search results:') %>

      <%= _('Select one to see more information about the authority.')%>

  <% else %>

<%= _('No results found.') %>

  <% end %>

    <% for result in @xapian_requests.results %>
      <%= render :partial => 'public_body/body_listing_single', :locals => { :public_body => result[:model] } %>
    <% end %>

  <%= will_paginate WillPaginate::Collection.new(@page, 5, @xapian_requests.matches_estimated) %>

 <% end %>

<% @title = _("Select the authority to write to")  %>

<%= _('1. Select an authority') %>

    <% form_tag({:controller => "request", :action => "select_authority"}, {:id => "search_form", :method => "get"}) do %>

           <%= _('First, type in the name of the UK public authority you\'d
           like information from. By law, they have to respond
           (why?).') % help_about_url %>

           <%= text_field_tag 'query', params[:query], { :size => 30 } %>
           <%= hidden_field_tag 'bodies', 1 %>
           <%= submit_tag _('Search') %>

    <% end %>

 <% if !@xapian_requests.nil? %>
  <% if  @xapian_requests.results.size > 0 %>

<%= _('Top search results:') %>

      <%= _('Select one to see more information about the authority.')%>

  <% else %>

<%= _('No results found.') %>

  <% end %>

    <% for result in @xapian_requests.results %>
      <%= render :partial => 'public_body/body_listing_single', :locals => { :public_body => result[:model] } %>
    <% end %>

 <% end %>


Correct route name.

Correct route name.

<%= _('Follow this request') %>

    <% follower_count = TrackThing.count(:all, :conditions => ["info_request_id = ?", @info_request.id]) + 1 %>

<%= n_("There is %d person following this request", "There are %d people following this request", follower_count) % follower_count %>

     <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => @info_request.user && @info_request.user == @user, :location => 'sidebar' } %>

    <% if @info_request.described_state != "attention_requested" %>

<%= _('Offensive? Unsuitable?') %>

      <% if @info_request.attention_requested %>
        <% if @info_request.prominence == 'hidden' %>
          <%# The eccentric formatting of the following string is in order that it be identical
              to the corresponding string in request/show.rhtml %>

<%= _('This request has prominence \'hidden\'. You can only see it because you are logged
    in as a super user.') %>

        <% elsif @info_request.prominence == 'requester_only' %>
          <%# The eccentric formatting of the following string is in order that it be identical
              to the corresponding string in request/show.rhtml %>

<%= raw(_('This request is hidden, so that only you the requester can see it. Please
    contact us if you are not sure why.') % [help_requesting_path]) %>

        <% else %>

<%= raw(_('This request has been marked for review by the site administrators, who have not hidden it at this time. If you believe it should be hidden, please contact us.') % [help_requesting_path]) %>

        <% end %>
     <% else %>

<%= _('Requests for personal information and vexatious requests are not considered valid for FOI purposes (read more).') %>

<%= _('If you believe this request is not suitable, you can report it for attention by the site administrators') %>

       <%= button_to _("Report this request"), report_path, :class => "link_button_green" %>
      <% end %>
    <% end %>

<%= _("Act on what you've learnt") %>

     <% tweet_link = "https://twitter.com/share?url=#{h(request.url)}&via=#{h(Configuration::twitter_username)}&text='#{h(@info_request.title)}'&related=#{_('alaveteli_foi:The software that runs {{site_name}}', :site_name => h(site_name))}" %>
        <% link_to tweet_link do %>
          <%= image_tag "twitter-16.png", :alt => "twitter icon" %>
        <% end %>
        <%= link_to _("Tweet this request"), tweet_link %>

        <% link_to "http://wordpress.com/" do %>
          <%= image_tag "wordpress.png", :class => "rss" %>
        <% end %>
        <%= link_to _("Start your own blog"), "http://wordpress.com/"%>

    <%= render :partial => 'request/next_actions' %>

    <% # TODO: Cache for 1 day %>
      <% if !@xapian_similar.nil? && @xapian_similar.results.size > 0 %>

<%= _('Similar requests')%>

        <% 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 %>

<%= link_to _("More similar requests"), similar_request_path(@info_request) %>

        <% end %>

      <% end %>

<%= link_to _('Event history details'), request_details_path(@info_request) %>

<%= raw(_('Are you the owner of
            any commercial copyright on this page?') % [help_officers_path+"#copyright"]) %>

<%= _('Follow this request') %>

    <% follower_count = TrackThing.count(:all, :conditions => ["info_request_id = ?", @info_request.id]) + 1 %>

<%= n_("There is %d person following this request", "There are %d people following this request", follower_count) % follower_count %>

     <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => @info_request.user && @info_request.user == @user, :location => 'sidebar' } %>

    <% if @info_request.described_state != "attention_requested" %>

<%= _('Offensive? Unsuitable?') %>

      <% if @info_request.attention_requested %>
        <% if @info_request.prominence == 'hidden' %>
          <%# The eccentric formatting of the following string is in order that it be identical
              to the corresponding string in request/show.rhtml %>

<%= _('This request has prominence \'hidden\'. You can only see it because you are logged
    in as a super user.') %>

        <% elsif @info_request.prominence == 'requester_only' %>
          <%# The eccentric formatting of the following string is in order that it be identical
              to the corresponding string in request/show.rhtml %>

<%= raw(_('This request is hidden, so that only you the requester can see it. Please
    contact us if you are not sure why.') % [help_requesting_path]) %>

        <% else %>

<%= raw(_('This request has been marked for review by the site administrators, who have not hidden it at this time. If you believe it should be hidden, please contact us.') % [help_requesting_path]) %>

        <% end %>
     <% else %>

<%= _('Requests for personal information and vexatious requests are not considered valid for FOI purposes (read more).') %>

<%= _('If you believe this request is not suitable, you can report it for attention by the site administrators') %>

       <%= button_to _("Report this request"), report_path, :class => "link_button_green" %>
      <% end %>
    <% end %>

<%= _("Act on what you've learnt") %>

     <% tweet_link = "https://twitter.com/share?url=#{h(request.url)}&via=#{h(Configuration::twitter_username)}&text='#{h(@info_request.title)}'&related=#{_('alaveteli_foi:The software that runs {{site_name}}', :site_name => h(site_name))}" %>
        <% link_to tweet_link do %>
          <%= image_tag "twitter-16.png", :alt => "twitter icon" %>
        <% end %>
        <%= link_to _("Tweet this request"), tweet_link %>

        <% link_to "http://wordpress.com/" do %>
          <%= image_tag "wordpress.png", :class => "rss" %>
        <% end %>
        <%= link_to _("Start your own blog"), "http://wordpress.com/"%>

    <%= render :partial => 'request/next_actions' %>

    <% # TODO: Cache for 1 day %>
      <% if !@xapian_similar.nil? && @xapian_similar.results.size > 0 %>

<%= _('Similar requests')%>

        <% 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 %>

<%= link_to _("More similar requests"), request_similar_path(@info_request) %>

        <% end %>

      <% end %>

<%= link_to _('Event history details'), request_details_path(@info_request) %>

<%= raw(_('Are you the owner of
            any commercial copyright on this page?') % [help_officers_path+"#copyright"]) %>


Say "make" as clearer than "file" which is an odd word (for the headline link in search engine results)

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - make and browse Freedom of Information (FOI) requests
        <% end %>
        </title>

        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet"  %>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green", :rel => "alternate stylesheet" %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
            <% end %>
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

<% # code for popup advert for a campaign etc.
=begin

=end
%>

<% # code for popup advert for a campaign etc.
=begin

Close

Blimey. It looks like the Internets won – a message from WhatDoTheyKnow

Sorry to interrupt, but we thought you’d like to know that you won!

On the 16th of May 2008 the High Court ruled that MPs’ expenses must be published under the Freedom of Information Act.

Tomorrow, MPs were going to vote on changing the law to keep their expenses secret after all,
    just before publication was due and after spending nearly a million of your pounds and seven months
    compiling the data.

However, after a tremendous response from you, with over 7,000 members
    on our Facebook group, 4,000 messages sent to MPs, help from

    Stephen Fry, and a helpful
    4th Report of the House of Lords
    Merits of Statutory Instruments Committee,
    it appears that the vote has been cancelled –
    Guardian,
    Times,
    BBC.

As President Obama said in his inauguration speech: “And
    those of us who manage the public’s dollars will be held to account – to
    spend wisely, reform bad habits, and do our business in the light of day –

    because only then can we restore the vital trust between a people and their
    government.”

Read our victory blog post. :-)

Close

=end
%>

            WhatDoTheyKnow?

            Make and explore Freedom of Information requests

		a site by mysociety.org

        <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "navigation_search_form"}) do %>

               <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %>
               <%= submit_tag "Search" %>

        <% end %>

Make request

<%= link_to "View requests", request_list_url(:view => 'successful') %>

<%= link_to "View authorities", list_public_bodies_default %>

			<% if @user %>

<%=link_to "My requests", user_url(@user) %>

			<% end %>

<%= link_to "Read blog", blog_url %>

<%= link_to "Help", about_url %>

		<% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

			<% if @user %>
				Hello, <%=h(@user.name)%>!
				(<%= link_to "Sign out", signout_url(:r => request.request_uri) %>)
			<% else %>
				Hello! (<%= link_to "Sign in or sign up", signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>">
            <%= yield :layout %>

        Contact WhatDoTheyKnow
        |
        Built by mySociety ...
        and you
        |
        Dedicated to Chris Lightfoot

<% if MySociety::Config.get("DOMAIN", '127.0.0.1:3000') == 'www.whatdotheyknow.com'  %>

<% end %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - file and browse Freedom of Information (FOI) requests
        <% end %>
        </title>

        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet"  %>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green", :rel => "alternate stylesheet" %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
            <% end %>
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

<% # code for popup advert for a campaign etc.
=begin

=end
%>

<% # code for popup advert for a campaign etc.
=begin

Close

Blimey. It looks like the Internets won – a message from WhatDoTheyKnow

Sorry to interrupt, but we thought you’d like to know that you won!

On the 16th of May 2008 the High Court ruled that MPs’ expenses must be published under the Freedom of Information Act.

Tomorrow, MPs were going to vote on changing the law to keep their expenses secret after all,
    just before publication was due and after spending nearly a million of your pounds and seven months
    compiling the data.

However, after a tremendous response from you, with over 7,000 members
    on our Facebook group, 4,000 messages sent to MPs, help from

    Stephen Fry, and a helpful
    4th Report of the House of Lords
    Merits of Statutory Instruments Committee,
    it appears that the vote has been cancelled –
    Guardian,
    Times,
    BBC.

As President Obama said in his inauguration speech: “And
    those of us who manage the public’s dollars will be held to account – to
    spend wisely, reform bad habits, and do our business in the light of day –

    because only then can we restore the vital trust between a people and their
    government.”

Read our victory blog post. :-)

Close

=end
%>

            WhatDoTheyKnow?

            Make and explore Freedom of Information requests

		a site by mysociety.org

        <% form_tag({:controller => "general", :action => "search_redirect"}, {:id => "navigation_search_form"}) do %>

               <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %>
               <%= submit_tag "Search" %>

        <% end %>

Make request

<%= link_to "View requests", request_list_url(:view => 'successful') %>

<%= link_to "View authorities", list_public_bodies_default %>

			<% if @user %>

<%=link_to "My requests", user_url(@user) %>

			<% end %>

<%= link_to "Read blog", blog_url %>

<%= link_to "Help", about_url %>

		<% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

			<% if @user %>
				Hello, <%=h(@user.name)%>!
				(<%= link_to "Sign out", signout_url(:r => request.request_uri) %>)
			<% else %>
				Hello! (<%= link_to "Sign in or sign up", signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>">
            <%= yield :layout %>

        Contact WhatDoTheyKnow
        |
        Built by mySociety ...
        and you
        |
        Dedicated to Chris Lightfoot

<% if MySociety::Config.get("DOMAIN", '127.0.0.1:3000') == 'www.whatdotheyknow.com'  %>

<% end %>