Hmm, don't show who is admin for now.

Hmm, don't show who is admin for now.

<% @title = h(@display_user.name) + (@is_you ? " (you)" : "") %>

<% if (@same_name_users.size >= 1) %>

There is more than one person who uses this site and has this name.
    One of them is shown below, you may mean a different one: <% for @same_name_user in @same_name_users %>
        <%= user_link(@same_name_user) %>
    <% end %>
<% end%>

Track this person

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

<%=@title%>

        Joined WhatDoTheyKnow on <%= simple_date(@display_user.created_at) %>
        <% if !@user.nil? && @user.owns_every_request? %>
        (<%= link_to "admin", user_admin_url(@display_user) %>)
        <% end %>
        <% if false # @display_user.owns_every_request? # should this be public? %>
        and is a site admin.
        <% end %>

        <%= link_to "Send message to " + h(@display_user.name), contact_user_url(:id => @display_user.id) %>
        <% if @is_you %>
            (just to see how it works)

<%= link_to "Change your password", signchange_url() %>
        <% end %>

    <% if not @is_you %>

            If you are <%=h @display_user.name %>, <%= link_to "sign in", signin_url(:r => request.request_uri) %> to change your password or alter your subscriptions.

    <% end %>

    <% track_things = TrackThing.find(:all, :conditions => ["tracking_user_id = ? and track_medium = ?", @display_user.id, 'email_daily'], :order => 'created_at desc') %>
    <% if @is_you and not track_things.empty? %>

        Your <%=pluralize(track_things.size, "email subscription") %>

        <% for track_thing in track_things %>

                <% if @is_you %>
                    <% form_tag :controller => 'track', :action => 'update', :track_id => track_thing.id do %>
                        <%= track_thing.params[:list_description] %>
                        <%= hidden_field_tag 'track_medium', "delete" %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <%= submit_tag "unsubscribe" %>
                    <% end %>

                <% else %>
                    <%= track_thing.params[:list_description] %>
                <% end %>

        <% end %>

    <% end %>

    <% if @display_user.info_requests.empty? %>

Freedom of Information requests made by <%= @is_you ? 'you' : 'this person' %>

<%= @is_you ? 'You have' : 'This person has' %>
        made no Freedom of Information requests using this site.

    <% else %>

        <%= @is_you ? 'Your ' : "This person's " %>
        <%=pluralize(@display_user.info_requests.size, "Freedom of Information request") %>

        <%= render :partial => 'request/request_listing', :locals => { :info_requests => @display_user.info_requests } %>
    <% end %>

<% @title = h(@display_user.name) + (@is_you ? " (you)" : "") %>

<% if (@same_name_users.size >= 1) %>

There is more than one person who uses this site and has this name.
    One of them is shown below, you may mean a different one: <% for @same_name_user in @same_name_users %>
        <%= user_link(@same_name_user) %>
    <% end %>
<% end%>

Track this person

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

<%=@title%>

        Joined WhatDoTheyKnow on <%= simple_date(@display_user.created_at) %>
        <% if !@user.nil? && @user.owns_every_request? %>
        (<%= link_to "admin", user_admin_url(@display_user) %>)
        <% end %>

        <%= link_to "Send message to " + h(@display_user.name), contact_user_url(:id => @display_user.id) %>
        <% if @is_you %>
            (just to see how it works)

<%= link_to "Change your password", signchange_url() %>
        <% end %>

    <% if not @is_you %>

            If you are <%=h @display_user.name %>, <%= link_to "sign in", signin_url(:r => request.request_uri) %> to change your password or alter your subscriptions.

    <% end %>

    <% track_things = TrackThing.find(:all, :conditions => ["tracking_user_id = ? and track_medium = ?", @display_user.id, 'email_daily'], :order => 'created_at desc') %>
    <% if @is_you and not track_things.empty? %>

        Your <%=pluralize(track_things.size, "email subscription") %>

        <% for track_thing in track_things %>

                <% if @is_you %>
                    <% form_tag :controller => 'track', :action => 'update', :track_id => track_thing.id do %>
                        <%= track_thing.params[:list_description] %>
                        <%= hidden_field_tag 'track_medium', "delete" %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <%= submit_tag "unsubscribe" %>
                    <% end %>

                <% else %>
                    <%= track_thing.params[:list_description] %>
                <% end %>

        <% end %>

    <% end %>

    <% if @display_user.info_requests.empty? %>

Freedom of Information requests made by <%= @is_you ? 'you' : 'this person' %>

<%= @is_you ? 'You have' : 'This person has' %>
        made no Freedom of Information requests using this site.

    <% else %>

        <%= @is_you ? 'Your ' : "This person's " %>
        <%=pluralize(@display_user.info_requests.size, "Freedom of Information request") %>

        <%= render :partial => 'request/request_listing', :locals => { :info_requests => @display_user.info_requests } %>
    <% end %>


ActionItem514: adding missing file

ActionItem514: adding missing file

git-svn-id: 43659daf80e124e0b603d67096418e58e4f21099@2257 3f533792-8f58-4932-b0fe-aaf55b0a4547

  <%= theme_opt_menu_search %>

      <%= generate_assets_menu %>

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


[ClockingIT @ Add tooltip explaining recurring tasks]

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/'


Copy contact template across from main project

<% @title = "Contact us" %>

<%= foi_error_messages_for :contact %>

<%= @title %>

    <% if !flash[:notice] %>

Contact an authority to get official information

Go here to make a request, in public, for information
            from public authorities.

            Asking for private information about yourself?
            Please read our
            help page.

    <% end %>

Contact the <%= site_name %> team

    <% if !flash[:notice] %>

            Please read the  help page first, as it may
            answer your question quicker.

We'd love to hear how you've found using this site.
               Either fill in this form, or send an email to <a
               href="mailto:<%=@contact_email%>"><%=@contact_email%>

We are a charity and not part of the
            Government.

    <% end %>

<% form_for :contact do |f| %>

    <% if not @user %>

            Your name:
            <%= f.text_field :name, :size => 20 %>
            (or <%= link_to "sign in", signin_url(:r => request.request_uri) %>)

            Your email:
            <%= f.text_field :email, :size => 20 %>

    <% end %>

        Subject:
        <%= f.text_field :subject, :size => 50 %>

        Message to website:
        <%= f.text_area :message, :rows => 10, :cols => 60 %>

    <% if !@last_request.nil? %>

            Include link to request:
            <%=request_link(@last_request) %>
            <%= submit_tag "remove", :name => 'remove' %>

    <% end %>
    <% if !@last_body.nil? %>

            Include link to authority:
            <%=public_body_link(@last_body) %>
            <%= submit_tag "remove", :name => 'remove' %>

    <% end %>

    We can only help you with technical problems, or questions
    about Freedom of Information.

        <%= hidden_field_tag(:submitted_contact_form, 1) %>
        <%= submit_tag "Send message to the charity" %>
        <-- we run this site, not the Government!

<% end %>

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


Added contact information

Added contact information

Kontaktujte

instituci pro vznesení dotazu

Zde můžete vznést dotaz veřejnou cestou a odpověď instituce bude také zveřejněna.

Přečtěte si také, jak zacházíme s
      osobními informacemi..

složky státní správy přímo

Napište svému zastupiteli, tedy poslanci nebo senátoroviprostřednictvím spřáteleného projektu NapišteJim.cz, který funguje jako živá brána emailové konverzace mezi občany a politiky..

Vznést dotaz na instituci můžete také přímo, pokud nechcete, aby byl váš dotaz zveřejněn na stránkách Informace pro všechny.

tým stránek Informace pro všechny

Ještě než se na nás obrátíte, přečtěte si nejdříve nápovědu, kde požadovanou odpověď můžete najít mnohem rychleji.

Jsme schopni vám pomoci pouze s technickými potížemi nebo s dotazem, který se týká svobodného přístupu k informacím. Pokud chcete získat informace od složek státní správy, tedy institucí, politiků nebo senátorů, využijte formulář pro vznesení dotazu, využijte služeb portálu NapišteJim.cz nebo oslovte státní správu přímo.

Rádi se dozvíme, zda jsou pro vás stránky Informace pro všechny užitečné a pomohly vám. Můžete vyplnit kontaktní formulář níže nebo poslat e-mail na postmaster@informaceprovsechny.cz. Budeme se snažit váš dotaz zodpovědět co nejrychleji.

Pro vaši informaci – jsme registrováni jako občanské sdružení, nejsme součástí státní správy.


updated faq

updated faq

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/graysky/tourbus.git/'


Forgot this.

Forgot this.

<%= foi_error_messages_for :user %>

<% form_tag({:action => "signup"}, {:id => "accountForm"}) do %>

Create a new account

    E-mail:
    <%= text_field 'user', 'email', :size => 20 %>

    Full name: e.g. "Jack Bauer"
    <%= text_field 'user', 'name', { :size => 20 } %>

    Password:
    <%= password_field 'user', 'password', { :size => 15 } %>

    Password (again):
    <%= password_field 'user', 'password_confirmation', { :size => 15 } %>

    Privacy notes

We will not reveal your email address to anybody.

Your name will appear publically on this website and
    in search engines. We encourage you to use your real name, but you may use
    an obvious pseudonym if you would like to be anonymous.

Any requests you make using the same email will be displayed on the
    site under the same name.

    <%= submit_tag "Sign in" %>

<% end %>

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


Wrap user emails.

Wrap user emails.

<%= MySociety::Format.wrap_email_body(yield)  %>

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


Switch default layout to html5

Switch default layout to html5

<!DOCTYPE html>
<html lang="<%= I18n.locale %>">

        <meta charset="utf-8">
        <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 "/admin/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 url_for(request.query_parameters.merge(:format => 'json')) %>">
        <% end %>

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

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

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

    <% end %>

<% if is_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_path(:r => request.request_uri) %>
          <% else %>
              <%= link_to _("Sign in or sign up"), signin_path(:r => request.request_uri) %>
          <% end %>

        <% end %>

          <form id="navigation_search_form" method="post" action="<%= search_redirect_path %>">

                 <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query", :title => "type your search term here" } %>
                 <input id="navigation_search_button" type="submit" value="search">

           </form>

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

    <%
      unless Configuration::ga_code.empty? || (@user && @user.super?) %>

      <% 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 "/admin/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 url_for(request.query_parameters.merge(:format => 'json')) %>">
        <% end %>

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

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

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

    <% end %>

<% if is_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_path(:r => request.request_uri) %>
          <% else %>
              <%= link_to _("Sign in or sign up"), signin_path(:r => request.request_uri) %>
          <% end %>

        <% end %>

          <form id="navigation_search_form" method="post" action="<%= search_redirect_path %>">

                 <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query", :title => "type your search term here" } %>
                 <input id="navigation_search_button" type="submit" value="search">

           </form>

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

    <%
      unless Configuration::ga_code.empty? || (@user && @user.super?) %>

      <% end %>

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


oops, should be this file

oops, should be this file

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


repo.rhtml init (tests)

repo.rhtml init (tests)

error: pathspec 'test/templates/repo.rhtml' did not match any file(s) known to git


Shrink avatar picture in userlist

Shrink avatar picture in userlist


debugging

debugging


Allow new string to be translated

Allow new string to be translated

<% @title = h(@public_body.name) + _(" - view and make Freedom of Information requests") %>

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

      <% follower_count = TrackThing.count(:all, :conditions => ["public_body_id = ?", @public_body.id]) %>

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

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

<%= _('More about this authority')%>

        <% if !@public_body.calculated_home_page.nil? %>
            <%= link_to _('Home page of authority'), @public_body.calculated_home_page %>

        <% end %>
        <% if !@public_body.publication_scheme.empty? %>
            <%= link_to _('Publication scheme'), @public_body.publication_scheme %>

        <% end %>
        <% if @public_body.has_tag?("charity") %>
            <% for tag_value in @public_body.get_tag_values("charity") %>
                <% if tag_value.match(/^SC/) %>
                    <%= link_to _('Charity registration'), "http://www.oscr.org.uk/CharityIndexDetails.aspx?id=" + tag_value %>

                <% else %>
                    <%= link_to _('Charity registration'), "http://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=" + tag_value %>

                <% end %>
            <% end %>
        <% end %>
        <%= link_to _('View FOI email address'), view_public_body_email_url(@public_body.url_name) %>

<%= _("Freedom of information requests to") %>

<%=h(@public_body.name)%>

        <%=@public_body.type_of_authority(true)%><% if not @public_body.short_name.empty? %>,
        <%= _('also called {{public_body_short_name}}', :public_body_short_name =>  h(@public_body.short_name))%><% end %>
        <% if !@user.nil? && @user.admin_page_links? %>
        (<%= link_to _("admin"), public_body_admin_url(@public_body) %>)
        <% end %>

        <% if @public_body.has_notes? && (@public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact') %>

<%= @public_body.notes_as_html %>

        <% end %>

        <% if @public_body.eir_only? %>

<%= _('You can only request information about the environment from this authority.')%>

        <% end %>

            <% if @public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact' %>
                <% if @public_body.eir_only? %>
                    <%= _('Make a new Environmental Information request')%>
                <% else %>
                    <%= _('Make a new Freedom of Information request to {{public_body}}', :public_body => h(@public_body.name))%>
                <% end %>
                 <%= _('{{text}}', :url=>new_request_to_body_url(:url_name => @public_body.url_name), :text=>_("Start"))%>
            <% elsif @public_body.has_notes? %>
                <%= @public_body.notes_as_html %>
            <% elsif @public_body.not_requestable_reason == 'not_apply' %>
                <%= _('Freedom of Information law does not apply to this authority, so you cannot make
                a request to it.')%>
            <% elsif @public_body.not_requestable_reason == 'defunct' %>
                <%= _('This authority no longer exists, so you cannot make a request to it.')%>
            <% else %>
                <%= _('For an unknown reason, it is not possible to make a request to this authority.')%>
            <% end %>

            <% if @public_body.override_request_email %>

                    <%= _("Note: Because we're testing, requests are being sent to {{email}} rather than to the actual authority.", :email => @public_body.override_request_email) %>

            <% end %>

       <% if @public_body.info_requests.size == 0 %>
            <% if @public_body.eir_only? %>

<%= _('Environmental Information Regulations requests made using this site') %>

Nobody has made any Environmental Information Regulations requests to <%=h(@public_body.name)%> using this site yet.

            <% else %>

<%= _('Freedom of Information requests made using this site')%>

<%= _('Nobody has made any Freedom of Information requests to {{public_body_name}} using this site yet.', :public_body_name => h(@public_body.name))%>

            <% end %>
        <% else %>

                <% if @public_body.eir_only? %>
                    <%= pluralize(@public_body.info_requests.size, "Environmental Information Regulations request made using this site") %>
                <% else %>
               <% if  @public_body.info_requests.size > 4 %>
                <%= n_('Search within the %d Freedom of Information requests to %s', 'Search within the %d Freedom of Information requests made to %s', @public_body.info_requests.size) % [@public_body.info_requests.size, @public_body.name] %>
                   <% else %>
                  <%= n_('%d Freedom of Information request to %s', '%d Freedom of Information requests to %s', @public_body.info_requests.size) % [@public_body.info_requests.size, @public_body.name] %>
               <% end %>
                <% end %>
                <%= @page_desc %>

            <% if  @public_body.info_requests.size > 4 %>
                <%= render :partial => 'request/request_filter_form' %>
            <% end %>
        <% end %>

        <% if !@xapian_requests.nil? %>

            <% 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, @per_page, @xapian_requests.matches_estimated) %>

            <% if @xapian_requests.results.empty? %>

<% _('There were no requests matching your query.') %>

            <% else %>

 <%= _('Only requests made using {{site_name}} are shown.', :site_name => site_name) %>

            <% end %>

        <% else %>
            <% if @public_body.eir_only? %>

<%= _('Environmental Information Regulations requests made') %>

            <% else %>

 <%= _('Freedom of Information requests made')%>

            <% end %>

 <%= _('The search index is currently offline, so we can\'t show the Freedom of Information requests that have been made to this authority.')%>

        <% end %>

<% @title = h(@public_body.name) + _(" - view and make Freedom of Information requests") %>

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

      <% follower_count = TrackThing.count(:all, :conditions => ["public_body_id = ?", @public_body.id]) %>

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

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

<%= _('More about this authority')%>

        <% if !@public_body.calculated_home_page.nil? %>
            <%= link_to _('Home page of authority'), @public_body.calculated_home_page %>

        <% end %>
        <% if !@public_body.publication_scheme.empty? %>
            <%= link_to _('Publication scheme'), @public_body.publication_scheme %>

        <% end %>
        <% if @public_body.has_tag?("charity") %>
            <% for tag_value in @public_body.get_tag_values("charity") %>
                <% if tag_value.match(/^SC/) %>
                    <%= link_to _('Charity registration'), "http://www.oscr.org.uk/CharityIndexDetails.aspx?id=" + tag_value %>

                <% else %>
                    <%= link_to _('Charity registration'), "http://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=" + tag_value %>

                <% end %>
            <% end %>
        <% end %>
        <%= link_to _('View FOI email address'), view_public_body_email_url(@public_body.url_name) %>

<%= _("Freedom of information requests to") %>

<%=h(@public_body.name)%>

        <%=@public_body.type_of_authority(true)%><% if not @public_body.short_name.empty? %>,
        <%= _('also called {{public_body_short_name}}', :public_body_short_name =>  h(@public_body.short_name))%><% end %>
        <% if !@user.nil? && @user.admin_page_links? %>
        (<%= link_to _("admin"), public_body_admin_url(@public_body) %>)
        <% end %>

        <% if @public_body.has_notes? && (@public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact') %>

<%= @public_body.notes_as_html %>

        <% end %>

        <% if @public_body.eir_only? %>

<%= _('You can only request information about the environment from this authority.')%>

        <% end %>

            <% if @public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact' %>
                <% if @public_body.eir_only? %>
                    <%= _('Make a new Environmental Information request')%>
                <% else %>
                    <%= _('Make a new Freedom of Information request to {{public_body}}', :public_body => h(@public_body.name))%>
                <% end %>
                 <%= _('{{text}}', :url=>new_request_to_body_url(:url_name => @public_body.url_name), :text=>_("Start"))%>
            <% elsif @public_body.has_notes? %>
                <%= @public_body.notes_as_html %>
            <% elsif @public_body.not_requestable_reason == 'not_apply' %>
                <%= _('Freedom of Information law does not apply to this authority, so you cannot make
                a request to it.')%>
            <% elsif @public_body.not_requestable_reason == 'defunct' %>
                <%= _('This authority no longer exists, so you cannot make a request to it.')%>
            <% else %>
                <%= _('For an unknown reason, it is not possible to make a request to this authority.')%>
            <% end %>

            <% if @public_body.override_request_email %>

                    Note: Because we're testing, requests are being sent to <%= @public_body.override_request_email %> rather than to the actual authority.

            <% end %>

       <% if @public_body.info_requests.size == 0 %>
            <% if @public_body.eir_only? %>

<%= _('Environmental Information Regulations requests made using this site') %>

Nobody has made any Environmental Information Regulations requests to <%=h(@public_body.name)%> using this site yet.

            <% else %>

<%= _('Freedom of Information requests made using this site')%>

<%= _('Nobody has made any Freedom of Information requests to {{public_body_name}} using this site yet.', :public_body_name => h(@public_body.name))%>

            <% end %>
        <% else %>

                <% if @public_body.eir_only? %>
                    <%= pluralize(@public_body.info_requests.size, "Environmental Information Regulations request made using this site") %>
                <% else %>
               <% if  @public_body.info_requests.size > 4 %>
                <%= n_('Search within the %d Freedom of Information requests to %s', 'Search within the %d Freedom of Information requests made to %s', @public_body.info_requests.size) % [@public_body.info_requests.size, @public_body.name] %>
                   <% else %>
                  <%= n_('%d Freedom of Information request to %s', '%d Freedom of Information requests to %s', @public_body.info_requests.size) % [@public_body.info_requests.size, @public_body.name] %>
               <% end %>
                <% end %>
                <%= @page_desc %>

            <% if  @public_body.info_requests.size > 4 %>
                <%= render :partial => 'request/request_filter_form' %>
            <% end %>
        <% end %>

        <% if !@xapian_requests.nil? %>

            <% 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, @per_page, @xapian_requests.matches_estimated) %>

            <% if @xapian_requests.results.empty? %>

<% _('There were no requests matching your query.') %>

            <% else %>

 <%= _('Only requests made using {{site_name}} are shown.', :site_name => site_name) %>

            <% end %>

        <% else %>
            <% if @public_body.eir_only? %>

<%= _('Environmental Information Regulations requests made') %>

            <% else %>

 <%= _('Freedom of Information requests made')%>

            <% end %>

 <%= _('The search index is currently offline, so we can\'t show the Freedom of Information requests that have been made to this authority.')%>

        <% end %>


Consistent heading when 0 requests.

Consistent heading when 0 requests.

<% @title = h(@public_body.name) + " - view and make Freedom of Information requests" %>

Track this authority

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

More about this authority

    <% if !@public_body.calculated_home_page.nil? %>
        <%= link_to "Home page of authority", @public_body.calculated_home_page %>

    <% end %>
    <% if !@public_body.publication_scheme.empty? %>
        <%= link_to "Publication scheme", @public_body.publication_scheme %>

    <% end %>
    <% if !@public_body.charity_number.empty? %>
        <% if @public_body.charity_number.match(/^SC/) %>
            <%= link_to "Charity overview", "http://www.oscr.org.uk/CharityIndexDetails.aspx?id=" + @public_body.charity_number %>

        <% else %>
            <%= link_to "Charity overview", "http://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=" + @public_body.charity_number %>

        <% end %>
    <% end %>
    <%= link_to "View FOI email address", view_public_body_email_url(@public_body.url_name) %>

<%=h(@public_body.name)%>

<%=@public_body.type_of_authority(true)%> in the UK<% if not @public_body.short_name.empty? %>, also called <%= h(@public_body.short_name) %><% end %>
<% if !@user.nil? && @user.admin_page_links? %>
(<%= link_to "admin", public_body_admin_url(@public_body) %>)
<% end %>

<% if @public_body.has_notes? && (@public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact') %>

<%= @public_body.notes_as_html %>

<% end %>

<% if @public_body.eir_only? %>

You can only request information about the environment from this authority.

<% end %>

    <% if @public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact' %>
        <% make = 'Make' %>
        <% if @searched_to_send_request %>
            Next,
            <% make = 'make' %>
        <% end %>
        <% if @public_body.eir_only? %>
            <%= link_to make + " a new Environmental Information request", new_request_to_body_url(:public_body_id => @public_body.id.to_s)%>
        <% else %>
            <%= link_to make + " a new Freedom of Information request", new_request_to_body_url(:public_body_id => @public_body.id.to_s)%>
        <% end %>
        to <%= h(@public_body.name) %>
    <% elsif @public_body.has_notes? %>
        <%= @public_body.notes_as_html %>
    <% elsif @public_body.not_requestable_reason == 'not_apply' %>
        Freedom of Information law does not apply to this authority, so you cannot make
        a request to it.
    <% elsif @public_body.not_requestable_reason == 'defunct' %>
        This authority no longer exists, so you cannot make a request to it.
    <% else %>
        For an unknown reason, it is not possible to make a request to this authority.
    <% end %>

<% if !@xapian_requests.nil? %>
    <% if @xapian_requests.results.empty? %>
        <% if @public_body.eir_only? %>

Environmental Information Regulations requests made using this site

Nobody has made any Environmental Information Regulations requests to <%=h(@public_body.name)%> using this site yet.

        <% else %>

Freedom of Information requests made using this site

Nobody has made any Freedom of Information requests to <%=h(@public_body.name)%> using this site yet.

        <% end %>
    <% else %>

        <% if @public_body.eir_only? %>
            <%=pluralize(@public_body.info_requests.size, "Environmental Information Regulations request") %> made using this site
        <% else %>
            <%=pluralize(@public_body.info_requests.size, "Freedom of Information request") %> made using this site
        <% end %>
        <%= @page_desc %>

        <% 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, @per_page, @public_body.info_requests.size) %>

Only requests made using WhatDoTheyKnow.com are shown.

    <% end %>
<% else %>
    <% if @public_body.eir_only? %>

Environmental Information Regulations requests made

    <% else %>

Freedom of Information requests made

    <% end %>

The search index is currently offline, so we can't show the Freedom of Information requests that have been made to this authority.

<% end %>

<% @title = h(@public_body.name) + " - view and make Freedom of Information requests" %>

Track this authority

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

More about this authority

    <% if !@public_body.calculated_home_page.nil? %>
        <%= link_to "Home page of authority", @public_body.calculated_home_page %>

    <% end %>
    <% if !@public_body.publication_scheme.empty? %>
        <%= link_to "Publication scheme", @public_body.publication_scheme %>

    <% end %>
    <% if !@public_body.charity_number.empty? %>
        <% if @public_body.charity_number.match(/^SC/) %>
            <%= link_to "Charity overview", "http://www.oscr.org.uk/CharityIndexDetails.aspx?id=" + @public_body.charity_number %>

        <% else %>
            <%= link_to "Charity overview", "http://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=" + @public_body.charity_number %>

        <% end %>
    <% end %>
    <%= link_to "View FOI email address", view_public_body_email_url(@public_body.url_name) %>

<%=h(@public_body.name)%>

<%=@public_body.type_of_authority(true)%> in the UK<% if not @public_body.short_name.empty? %>, also called <%= h(@public_body.short_name) %><% end %>
<% if !@user.nil? && @user.admin_page_links? %>
(<%= link_to "admin", public_body_admin_url(@public_body) %>)
<% end %>

<% if @public_body.has_notes? && (@public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact') %>

<%= @public_body.notes_as_html %>

<% end %>

<% if @public_body.eir_only? %>

You can only request information about the environment from this authority.

<% end %>

    <% if @public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact' %>
        <% make = 'Make' %>
        <% if @searched_to_send_request %>
            Next,
            <% make = 'make' %>
        <% end %>
        <% if @public_body.eir_only? %>
            <%= link_to make + " a new Environmental Information request", new_request_to_body_url(:public_body_id => @public_body.id.to_s)%>
        <% else %>
            <%= link_to make + " a new Freedom of Information request", new_request_to_body_url(:public_body_id => @public_body.id.to_s)%>
        <% end %>
        to <%= h(@public_body.name) %>
    <% elsif @public_body.has_notes? %>
        <%= @public_body.notes_as_html %>
    <% elsif @public_body.not_requestable_reason == 'not_apply' %>
        Freedom of Information law does not apply to this authority, so you cannot make
        a request to it.
    <% elsif @public_body.not_requestable_reason == 'defunct' %>
        This authority no longer exists, so you cannot make a request to it.
    <% else %>
        For an unknown reason, it is not possible to make a request to this authority.
    <% end %>

<% if !@xapian_requests.nil? %>
    <% if @xapian_requests.results.empty? %>
        <% if @public_body.eir_only? %>

Environmental Information Regulations requests made

Nobody has made any Environmental Information Regulations requests to <%=h(@public_body.name)%> using this site yet.

        <% else %>

Freedom of Information requests made

Nobody has made any Freedom of Information requests to <%=h(@public_body.name)%> using this site yet.

        <% end %>
    <% else %>

        <% if @public_body.eir_only? %>
            <%=pluralize(@public_body.info_requests.size, "Environmental Information Regulations request") %> made using this site
        <% else %>
            <%=pluralize(@public_body.info_requests.size, "Freedom of Information request") %> made using this site
        <% end %>
        <%= @page_desc %>

        <% 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, @per_page, @public_body.info_requests.size) %>

Only requests made using WhatDoTheyKnow.com are shown.

    <% end %>
<% else %>
    <% if @public_body.eir_only? %>

Environmental Information Regulations requests made

    <% else %>

Freedom of Information requests made

    <% end %>

The search index is currently offline, so we can't show the Freedom of Information requests that have been made to this authority.

<% end %>


Reinstate the additional admin links.

Reinstate the additional admin links.

<% @title = h(@info_request.title) %>

<% if @info_request.prominence == 'hidden' %>

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

<% end %>
<% if @info_request.prominence == 'requester_only' %>

    <%= _('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] %>

<% end %>

<% if @update_status || @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "1" } %>

<% end %>

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

<%=@title%>

    <% if @info_request.user.profile_photo %>

            <img src="<%= get_profile_photo_url(:url_name => @info_request.user.url_name) %>" alt="">

    <% end %>

        <% if !@user.nil? && @user.admin_page_links? %>
            <%= _('{{user}} made this {{law_used_full}} request',:user=>user_link(@info_request.user), :law_used_full=>h(@info_request.law_used_full)) %>
            <%= _('to {{public_body}}',:public_body=>public_body_link(@info_request.public_body)) %>
        <% else %>
            <%= _('{{user}} (admin) made this {{law_used_full}} request (admin) to {{public_body_link}} (admin)',
                    :user => user_link(@info_request.user),
                    :law_used_full => h(@info_request.law_used_full),
                    :user_admin_url => user_admin_url(@info_request.user),
                    :request_admin_url => request_admin_url(@info_request),
                    :public_body_link => public_body_link(@info_request.public_body),
                    :public_body_admin_url => public_body_admin_url(@info_request.public_body)) %>
        <% end %>

    <p id="request_status" class="request_icon_line icon_<%= @info_request.calculate_status %>">
    <% if @info_request.awaiting_description %>
        <% if @is_owning_user %>
            <%= _('Please answer the question above so we know whether the ')%>
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> <%= _('useful information.') %>
        <% else %>
            <%= _('This request has an unknown status.') %>
            <% if @old_unclassified %>
              <%= _('We\'re waiting for someone to read') %>
              <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
              <%= _('and update the status accordingly. Perhaps you might like to help out by doing that?') %>
            <% else %>
            <%=  _('We\'re waiting for') %>
              <%= user_link(@info_request.user) %> <%= _('to read') %>
              <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
              <%= _('and update the status.') %>
            <% end %>
        <% end %>
    <% elsif @status == 'waiting_response' %>
		<%= _('Currently waiting for a response from {{public_body_link}}, they must respond promptly and', :public_body_link=> public_body_link(@info_request.public_body)) %>
        <% if @info_request.public_body.is_school? %>
        <%= _('in term time') %>
        <% else %>
        <%= _('normally') %>
        <% end %>
        <%= _('no later than') %> <%= simple_date(@info_request.date_response_required_by) %>
        (<%= link_to "details", "/help/requesting#quickly_response" %>).
    <% elsif @status == 'waiting_response_overdue' %>
        <%= _('Response to this request is delayed.') %>
		<%= _('By law, {{public_body_link}} should normally have responded promptly and',:public_body_link=>public_body_link(@info_request.public_body)) %>
            <% if @info_request.public_body.is_school? %>
            <%= _('in term time') %>
            <% end %>
            <%= _('by') %> <%= simple_date(@info_request.date_response_required_by) %>
		(<%= _('details') % [help_requesting_path + '#quickly_response'] %>)
    <% elsif @status == 'waiting_response_very_overdue' %>
        <%= _('Response to this request is long overdue.') %>
		<%= _('By law, under all circumstances, {{public_body_link}} should have responded by now',:public_body_link => public_body_link(@info_request.public_body)) %>
        (<%= _('details') % [help_requesting_path + '#quickly_response'] %>).
        <%= _('You can complain by') %>
        <%= link_to _("requesting an internal review"), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %>.
    <% elsif @status == 'not_held' %>
        <%= public_body_link(@info_request.public_body) %> <%= _('did not have the information requested.') %>
    <% elsif @status == 'rejected' %>
        <%= _('The request was refused by') %> <%= public_body_link(@info_request.public_body) %>.
    <% elsif @status == 'successful' %>
        <%= _('The request was successful.') %>
    <% elsif @status == 'partially_successful' %>
        <%= _('The request was partially successful.') %>
    <% elsif @status == 'waiting_clarification' %>
        <% if @is_owning_user %>
            <%=h @info_request.public_body.name %> <%= _('is waiting for your clarification.') %>
            <%= _('Please') %>
              <%= link_to _("send a follow up message"), respond_to_last_url(@info_request) + '#followup' %>.
        <% else %>
            <%= _('The request is waiting for clarification.') %>
			<%= _('If you are {{user_link}}, please',:user_link=>user_link(@info_request.user)) %>
            <%= link_to _("sign in"), signin_url(:r => request.request_uri) %> <%= _('to send a follow up message.') %>
        <% end %>
    <% elsif @status == 'gone_postal' %>
        <%= _('The authority would like to / has responded by post to this request.') %>
    <% elsif @status == 'internal_review' %>
		<%= _('Waiting for an internal review by {{public_body_link}} of their handling of this request.',:public_body_link=>public_body_link(@info_request.public_body)) %>
    <% elsif @status == 'error_message' %>
        <%= _('There was a delivery error or similar, which needs fixing by the WhatDoTheyKnow team.') %>
    <% elsif @status == 'requires_admin' %>
        <%= _('This request has had an unusual response, and requires attention from the WhatDoTheyKnow team.') %>
    <% elsif @status == 'user_withdrawn' %>
        <%= _('This request has been withdrawn by the person who made it.
        	   There may be an explanation in the correspondence below.') %>
    <% else %>
        <%= render :partial => 'general/custom_state_descriptions', :locals => { :status => @status } %>
    <% end %>

    <% for info_request_event in @info_request_events %>
        <% if info_request_event.visible %>
            <%= render :partial => 'correspondence', :locals => { :info_request_event => info_request_event } %>
        <% end %>
    <% end %>

    <% if @info_request.awaiting_description %>

        <%= render :partial => 'describe_state', :locals => { :id_suffix => "2" } %>

    <% end %>

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

<% @title = h(@info_request.title) %>

<% if @info_request.prominence == 'hidden' %>

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

<% end %>
<% if @info_request.prominence == 'requester_only' %>

    <%= _('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] %>

<% end %>

<% if @update_status || @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "1" } %>

<% end %>

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

<%=@title%>

    <% if @info_request.user.profile_photo %>

            <img src="<%= get_profile_photo_url(:url_name => @info_request.user.url_name) %>" alt="">

    <% end %>

	 <%= _('{{user}} made this {{law_used_full}} request',:user=>user_link(@info_request.user), :law_used_full=>h(@info_request.law_used_full)) %>
    <% if !@user.nil? && @user.admin_page_links? %>
        (<%= link_to "admin", request_admin_url(@info_request) %>)
    <% end %>
    <%= _('to {{public_body}}',:public_body=>public_body_link(@info_request.public_body)) %>

    <p id="request_status" class="request_icon_line icon_<%= @info_request.calculate_status %>">
    <% if @info_request.awaiting_description %>
        <% if @is_owning_user %>
            <%= _('Please answer the question above so we know whether the ')%>
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> <%= _('useful information.') %>
        <% else %>
            <%= _('This request has an unknown status.') %>
            <% if @old_unclassified %>
              <%= _('We\'re waiting for someone to read') %>
              <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
              <%= _('and update the status accordingly. Perhaps you might like to help out by doing that?') %>
            <% else %>
            <%=  _('We\'re waiting for') %>
              <%= user_link(@info_request.user) %> <%= _('to read') %>
              <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
              <%= _('and update the status.') %>
            <% end %>
        <% end %>
    <% elsif @status == 'waiting_response' %>
		<%= _('Currently waiting for a response from {{public_body_link}}, they must respond promptly and', :public_body_link=> public_body_link(@info_request.public_body)) %>
        <% if @info_request.public_body.is_school? %>
        <%= _('in term time') %>
        <% else %>
        <%= _('normally') %>
        <% end %>
        <%= _('no later than') %> <%= simple_date(@info_request.date_response_required_by) %>
        (<%= link_to "details", "/help/requesting#quickly_response" %>).
    <% elsif @status == 'waiting_response_overdue' %>
        <%= _('Response to this request is delayed.') %>
		<%= _('By law, {{public_body_link}} should normally have responded promptly and',:public_body_link=>public_body_link(@info_request.public_body)) %>
            <% if @info_request.public_body.is_school? %>
            <%= _('in term time') %>
            <% end %>
            <%= _('by') %> <%= simple_date(@info_request.date_response_required_by) %>
		(<%= _('details') % [help_requesting_path + '#quickly_response'] %>)
    <% elsif @status == 'waiting_response_very_overdue' %>
        <%= _('Response to this request is long overdue.') %>
		<%= _('By law, under all circumstances, {{public_body_link}} should have responded by now',:public_body_link => public_body_link(@info_request.public_body)) %>
        (<%= _('details') % [help_requesting_path + '#quickly_response'] %>).
        <%= _('You can complain by') %>
        <%= link_to _("requesting an internal review"), show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %>.
    <% elsif @status == 'not_held' %>
        <%= public_body_link(@info_request.public_body) %> <%= _('did not have the information requested.') %>
    <% elsif @status == 'rejected' %>
        <%= _('The request was refused by') %> <%= public_body_link(@info_request.public_body) %>.
    <% elsif @status == 'successful' %>
        <%= _('The request was successful.') %>
    <% elsif @status == 'partially_successful' %>
        <%= _('The request was partially successful.') %>
    <% elsif @status == 'waiting_clarification' %>
        <% if @is_owning_user %>
            <%=h @info_request.public_body.name %> <%= _('is waiting for your clarification.') %>
            <%= _('Please') %>
              <%= link_to _("send a follow up message"), respond_to_last_url(@info_request) + '#followup' %>.
        <% else %>
            <%= _('The request is waiting for clarification.') %>
			<%= _('If you are {{user_link}}, please',:user_link=>user_link(@info_request.user)) %>
            <%= link_to _("sign in"), signin_url(:r => request.request_uri) %> <%= _('to send a follow up message.') %>
        <% end %>
    <% elsif @status == 'gone_postal' %>
        <%= _('The authority would like to / has responded by post to this request.') %>
    <% elsif @status == 'internal_review' %>
		<%= _('Waiting for an internal review by {{public_body_link}} of their handling of this request.',:public_body_link=>public_body_link(@info_request.public_body)) %>
    <% elsif @status == 'error_message' %>
        <%= _('There was a delivery error or similar, which needs fixing by the WhatDoTheyKnow team.') %>
    <% elsif @status == 'requires_admin' %>
        <%= _('This request has had an unusual response, and requires attention from the WhatDoTheyKnow team.') %>
    <% elsif @status == 'user_withdrawn' %>
        <%= _('This request has been withdrawn by the person who made it.
        	   There may be an explanation in the correspondence below.') %>
    <% else %>
        <%= render :partial => 'general/custom_state_descriptions', :locals => { :status => @status } %>
    <% end %>

    <% for info_request_event in @info_request_events %>
        <% if info_request_event.visible %>
            <%= render :partial => 'correspondence', :locals => { :info_request_event => info_request_event } %>
        <% end %>
    <% end %>

    <% if @info_request.awaiting_description %>

        <%= render :partial => 'describe_state', :locals => { :id_suffix => "2" } %>

    <% end %>

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


Alt text.

Alt text.

<% @title = h(@info_request.title) %>

<% if @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "1" } %>

<% end %>

<%=@title%>

A Freedom of Information request to
    <%= public_body_link(@info_request.public_body) %>
    by
    <%= user_link(@info_request.user) %>

    <% if @info_request.awaiting_description %>
        <% if @is_owning_user %>
            Please answer the question above so we know whether the
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> useful information.
        <% else %>
            This request has an unknown status. We're waiting for
            <%= user_link(@info_request.user) %> to read
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
            and update the status.
        <% end %>
    <% elsif @status == 'waiting_response' %>
        Currently waiting for a response from <%= public_body_link(@info_request.public_body) %>,
        due by <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'waiting_response_overdue' %>
        Currently overdue a response from <%=
        public_body_link(@info_request.public_body) %>. The
        <%= link_to "response was due", about_url + "#quickly_response" %>
        on <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'not_held' %>
        <%= public_body_link(@info_request.public_body) %> did not have the information requested.
    <% elsif @status == 'rejected' %>
        The request was rejected by <%= public_body_link(@info_request.public_body) %>.
    <% elsif @status == 'successful' %>
        The request was successful.
    <% elsif @status == 'partially_successful' %>
        The request was partially successful.
    <% elsif @status == 'waiting_clarification' %>
        <% if @is_owning_user %>
            <%=h @info_request.public_body.name %> is waiting for your clarification.
            Please
            <%= link_to "send a follow up message", show_response_url(:id => @info_request.id, :incoming_message_id => @info_request.get_last_response.id) + "#show_response_followup" %>.
        <% else %>
            The request is waiting for clarification.
            If you are
            <%= user_link(@info_request.user) %>, please
            <%= link_to "sign in", signin_url(:r => request.request_uri) %> to send a follow up message.
        <% end %>
    <% elsif @status == 'requires_admin' %>
        This request has had an unusual response, and requires attention from the WhatDoTheyKnow team.
    <% else %>
        <% raise "unknown status " + @status %>
    <% end %>

    <% for info_request_event in @info_request_events %>
        <%= render :partial => 'correspondence', :locals => { :info_request_event => info_request_event } %>
    <% end %>

People tracking this request

    <% if @info_request.track_things.size > 0 %>

        <% for track_thing in @info_request.track_things %>

<%=user_link(track_thing.tracking_user)%>

        <% end %>

            <% if @existing_track %>
                You are already tracking this request
                (<%= link_to "alter your subscriptions", user_url(@user) %>).
            <% else %>
                <% if @info_request.user == @user %>

You will be emailed when there are updates to your own request.

You may also <%= link_to "get an RSS feed", track_request_url(:url_title => @info_request.url_title) %>

                <% else %>
                    <%= link_to "Track updates to this request", track_request_url(:url_title => @info_request.url_title) %>
                    (by email or RSS feed )
                <% end %>
            <% end %>

    <% else %>
        <% if @info_request.user == @user %>

You will be emailed when there are updates to your own request.

You may also get an <%= link_to 'RSS feed', track_request_url(:url_title => @info_request.url_title) %>

        <% else %>

Be the first to <%= link_to "track updates to this request", track_request_url(:url_title => @info_request.url_title) %>
            (by email or RSS feed )

        <% end %>
    <% end %>

Act on this request

     Write to your politician about it

 Pledge with others

    <% if @info_requests_same_user_same_body.size > 0 %>

Requests from same user to same authority

        <%= render :partial => 'sidebar_request_listing', :locals => { :info_requests => @info_requests_same_user_same_body } %>
        <% if @info_requests_same_user_same_body_more %>

<%= link_to "More such requests", search_url(:query => "variety:sent requested_from:" + @info_request.public_body.url_name + " requested_by:" + @info_request.user.url_name + " -request:" + @info_request.url_title, :sortby => "newest") %>

        <% end %>
    <% end %>

<% if @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "2" } %>

<% end %>


propogating jef's change to style hg configuration page

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/ThoughtWorksStudios/mingle_hg_plugin.git/'


Show number.

Show number.

<% @title = 'Play the request categorisation game!' %>

        <img width=250 height=125 src="http://chart.apis.google.com/chart?chs=250x125&cht=gom&chd=t:<%=@percentage%>" alt="<%=@percentage%>% of requests have been categorised">

<%=pluralize(@missing, 'request')%> left to categorise / <%=@total %> total

Top recent players

    <% for user, count in @league_table %>

             <%= user_link(user) %>
             <%=pluralize(count, 'request').gsub(" ", " ")%>

    <% end %>

Play the request categorisation game!

Some people who've made requests haven't let us know whether they were
successful or not.  We need your help –
choose one of these requests, read it, and let everyone know whether or not the
information has been provided. Everyone'll be exceedingly grateful.

<% for info_request in @requests %>
    <%= render :partial => 'request/request_listing_single', :locals => { :info_request => info_request } %>
<% end %>

<%= button_to "I don't like these ones — give me some more!", play_url %>
<%= button_to "I don't want to do any more tidying now!", stop_url %>

Thanks for helping - your work will make it easier for everyone to find successful
responses, and maybe even let us make league tables...

<% @title = 'Play the request categorisation game!' %>

        <img width=250 height=125 src="http://chart.apis.google.com/chart?chs=250x125&cht=gom&chd=t:<%=@percentage%>" alt="<%=@percentage%>% of requests have been categorised">

<%=@done%>/<%=@total%> requests categorised

Top recent players

    <% for user, count in @league_table %>

             <%= user_link(user) %>
             <%=pluralize(count, 'request').gsub(" ", " ")%>

    <% end %>

Play the request categorisation game!

Some people who've made requests haven't let us know whether they were
successful or not.  We need your help –
choose one of these requests, read it, and let everyone know whether or not the
information has been provided. Everyone'll be exceedingly grateful.

<% for info_request in @requests %>
    <%= render :partial => 'request/request_listing_single', :locals => { :info_request => info_request } %>
<% end %>

<%= button_to "I don't like these ones — give me some more!", play_url %>
<%= button_to "I don't want to do any more tidying now!", stop_url %>

Thanks for helping - your work will make it easier for everyone to find successful
responses, and maybe even let us make league tables...


Rearrange the layout so login/logout is at the bottom

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/joevano/bzflag-website.git/'


Removing empty and unused view template file


added utm codes

added utm codes


Remove upgrade link in user box

Remove upgrade link in user box

  <% if user.is_anonymous? %>
  <%= :welcome_anonymous.l %> (<%= link_to(:login.l, {:controller => 'access', :action => 'logout'}) %>),
  <% else %>
  <%= :welcome_back.l_with_args(:user => h(user.display_name)) %> (<%= link_to :logout.l, {:controller => 'access', :action => 'logout'}, :confirm => :are_you_sure_logout.l %>),
  <% end %>

    <% unless user.is_anonymous? %>

<%= link_to :account.l, :controller => 'account' %> <%= render_icon 'bullet_drop_down', '', :id => 'account_more', :class => 'PopupMenuWidgetAttachTo', :title => 'Enable javascript' %>

    <% end %>
<% if not projects.nil? and projects.length > 0 %>

<%= link_to :projects.l, :controller => 'dashboard', :action => 'my_projects' %> <%= render_icon 'bullet_drop_down', '', :id => 'projects_more', :class => 'PopupMenuWidgetAttachTo', :title => 'Enable javascript' %>

<% end %>
<% if user.is_admin %>

<%= link_to :administration.l, :controller => 'administration' %> <%= render_icon 'bullet_drop_down', '', :id => 'administration_more', :class => 'PopupMenuWidgetAttachTo', :title => 'Enable javascript' %>

<% end %>

  <% unless user.is_anonymous? %>

<%= :account.l %>:

<%= link_to :update_profile.l, :controller => 'account', :action => 'edit_profile', :id => user.id %>

<%= link_to :change_password.l, :controller => 'account', :action => 'edit_password', :id => user.id %>

<%= link_to :update_avatar.l, :controller => 'account', :action => 'edit_avatar', :id => user.id %>

<%= :userbox_more.l %>

<%= link_to :my_projects.l, :controller => 'dashboard', :action => 'my_projects' %>

<%= link_to :my_tasks.l, :controller => 'dashboard', :action => 'my_tasks' %>

  <% end %>

<% if not projects.nil? and projects.length > 0 %>

<%= :projects.l %>:

<% projects.each do |project| -%>

<%= link_to h(project.name), :controller => 'project', :action => 'overview', :active_project => project.id %>

<% end %>

<% end %>

<% if user.is_admin %>

<%= :administration.l %>:

<%= link_to :company.l, :controller => 'administration', :action => 'company' %>

<%= link_to :members.l, :controller => 'administration', :action => 'members' %>

<%= link_to :clients.l, :controller => 'administration', :action => 'clients' %>

<%= link_to :projects.l, :controller => 'administration', :action => 'projects' %>

<%= link_to :configuration.l, :controller => 'administration', :action => 'configuration' %>

<%= link_to :tools.l, :controller => 'administration', :action => 'tools' %>

<% end %>

  <% if user.is_anonymous? %>
  <%= :welcome_anonymous.l %> (<%= link_to(:login.l, {:controller => 'access', :action => 'logout'}) %>),
  <% else %>
  <%= :welcome_back.l_with_args(:user => h(user.display_name)) %> (<%= link_to :logout.l, {:controller => 'access', :action => 'logout'}, :confirm => :are_you_sure_logout.l %>),
  <% end %>

    <% unless user.is_anonymous? %>

<%= link_to :account.l, :controller => 'account' %> <%= render_icon 'bullet_drop_down', '', :id => 'account_more', :class => 'PopupMenuWidgetAttachTo', :title => 'Enable javascript' %>

    <% end %>
<% if not projects.nil? and projects.length > 0 %>

<%= link_to :projects.l, :controller => 'dashboard', :action => 'my_projects' %> <%= render_icon 'bullet_drop_down', '', :id => 'projects_more', :class => 'PopupMenuWidgetAttachTo', :title => 'Enable javascript' %>

<% end %>
<% if user.is_admin %>

<%= link_to :administration.l, :controller => 'administration' %> <%= render_icon 'bullet_drop_down', '', :id => 'administration_more', :class => 'PopupMenuWidgetAttachTo', :title => 'Enable javascript' %>

<% end %>

  <% unless user.is_anonymous? %>

<%= :account.l %>:

<%= link_to :update_profile.l, :controller => 'account', :action => 'edit_profile', :id => user.id %>

<%= link_to :change_password.l, :controller => 'account', :action => 'edit_password', :id => user.id %>

<%= link_to :update_avatar.l, :controller => 'account', :action => 'edit_avatar', :id => user.id %>

<%= :userbox_more.l %>

<%= link_to :my_projects.l, :controller => 'dashboard', :action => 'my_projects' %>

<%= link_to :my_tasks.l, :controller => 'dashboard', :action => 'my_tasks' %>

  <% end %>

<% if not projects.nil? and projects.length > 0 %>

<%= :projects.l %>:

<% projects.each do |project| -%>

<%= link_to h(project.name), :controller => 'project', :action => 'overview', :active_project => project.id %>

<% end %>

<% end %>

<% if user.is_admin %>

<%= :administration.l %>:

<%= link_to :company.l, :controller => 'administration', :action => 'company' %>

<%= link_to :members.l, :controller => 'administration', :action => 'members' %>

<%= link_to :clients.l, :controller => 'administration', :action => 'clients' %>

<%= link_to :projects.l, :controller => 'administration', :action => 'projects' %>

<%= link_to :configuration.l, :controller => 'administration', :action => 'configuration' %>

<%= link_to :tools.l, :controller => 'administration', :action => 'tools' %>

<%= link_to :upgrade.l, :controller => 'administration', :action => 'upgrade' %>

<% end %>


So fan count

So fan count


fix typo

fix typo


Improved sidebar wording

Improved sidebar wording

<%= _('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 == @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 %>

<%= _('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 %>

<%= _('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') %>

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

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

     <% tweet_link = "http://twitter.com/share?url=#{h(request.url)}&via=#{h(MySociety::Config.get('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 %>
        <%= link_to _("Tweet this request"), tweet_link %>

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

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

    <% view_cache :ttl => 1.day.to_i, :tag => ['similar', @info_request.id, I18n.locale] do %>
     <% 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_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?') % [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 == @user, :location => 'sidebar' } %>

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

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

     <% if @info_request.attention_requested %>

<%= ('The site administrators have reviewed this request and consider it to be suitable for the website.') %>

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

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

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

     <% tweet_link = "http://twitter.com/share?url=#{h(request.url)}&via=#{h(MySociety::Config.get('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 %>
        <%= link_to _("Tweet this request"), tweet_link %>

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

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

    <% view_cache :ttl => 1.day.to_i, :tag => ['similar', @info_request.id, I18n.locale] do %>
     <% 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_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?') % [help_officers_path+"#copyright"] %>


Add missing close tags

Add missing close tags


use to_s to deal with DependentConfig. grr.

<partial_html_sections>

  <%= render(:partial => "api_in_progress", :layout => false) %>

<% @partial_html_sections.each do |section| %>
  <html_section id="<%= section[:div_id] %>">
    <included_services>
       <% section[:service_type_values].each do |type_name| %>
         <service name="<%= type_name %>" />
       <% end %>
    </included_services>
    <service_load_complete value="<%= section[:complete?]  %>" />
    <response_count value="<%= section[:response_count] %>" />
    <html_content>
      <%=
          html = render(:partial => section[:partial].to_s )
          # xml-escape our html, so we can safely embed it in our xml
          # even if it's not valid xhtml, and in one XML 'string'.
          # We abuse REXML for it's XML-escaping powers.
          REXML::Text.new( html ).to_s
       %>
    </html_content>
  </html_section>
<% end %>
</partial_html_sections>

<partial_html_sections>

  <%= render(:partial => "api_in_progress", :layout => false) %>

<% @partial_html_sections.each do |section| %>
  <html_section id="<%= section[:div_id] %>">
    <included_services>
       <% section[:service_type_values].each do |type_name| %>
         <service name="<%= type_name %>" />
       <% end %>
    </included_services>
    <service_load_complete value="<%= section[:complete?]  %>" />
    <response_count value="<%= section[:response_count] %>" />
    <html_content>
      <%=
          html = render(:partial => section[:partial])
          # xml-escape our html, so we can safely embed it in our xml
          # even if it's not valid xhtml, and in one XML 'string'.
          # We abuse REXML for it's XML-escaping powers.
          REXML::Text.new( html ).to_s
       %>
    </html_content>
  </html_section>
<% end %>
</partial_html_sections>


Change edit project cancel link to redirect to previous page

Signed-off-by: James Urquhart <d092eb11f6d4ecd368c05e395455102ecf3e697d@gmail.com>

<%
  @page_title = :edit_project.l

  @tabbed_navigation_items = administration_tabbed_navigation(:projects)
  @bread_crumbs = administration_crumbs(:edit_project, [{:title => :projects, :url => "/administration/projects"}])

  @page_actions = []

  @additional_stylesheets = []
%>

<%= form_tag :controller => 'project', :action => 'edit' %>
<%= render :partial => 'form' %>
    <button class="submit" type="submit"><%= :save_changes.l %></button> <%= :or.l %> <%= link_to :cancel.l, :back %>
</form>

<%
  @page_title = :edit_project.l

  @tabbed_navigation_items = administration_tabbed_navigation(:projects)
  @bread_crumbs = administration_crumbs(:edit_project, [{:title => :projects, :url => "/administration/projects"}])

  @page_actions = []

  @additional_stylesheets = []
%>

<%= form_tag :controller => 'project', :action => 'edit' %>
<%= render :partial => 'form' %>
    <button class="submit" type="submit"><%= :save_changes.l %></button> <%= :or.l %> <%= link_to :cancel.l, :controller => 'project', :action => 'overview', :active_project => @project.id %>
</form>


Handle tasks updated by a deleted user

Handle tasks updated by a deleted user


removing upload address section for now

removing upload address section for now


Fix duration == nil

Fix duration == nil


[ClockingIT @ Bump version to 0.99.1]

[ClockingIT @ Bump version to 0.99.1]

As localization is a pretty big step, bump version to a new minor version.
Remember to do a 'rake migrate' if you're doing 'darcs pull' and there
are database schema changes.


More precise.

More precise.

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

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

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

<% end %>

<% if not @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 @total_hits == 0 %>

<%=@title %>

<% end %>

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

Did you mean: <%= link_to @spelling_correction, search_url(@spelling_correction, @sortby) %>

    <% end %>

    <% if @track_thing and (@xapian_bodies.results.size > 0 or @xapian_users.results.size > 0 or @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. 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"

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

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

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

requested_by:julian_todd to restrict to requests made by <%= link_to "Julian Todd", show_user_url(:url_name => 'julian_todd') %>, 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: <%= IncomingMessage.get_all_file_extentions%>.

Type 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.

status:waiting_response	 Waiting for the public authority to reply

status:not_held	 The public authority does not have the information requested

status:rejected	 The request was rejected by the public authority

status:partially_successful	 Some of the information requested has been received

status:successful	 All of the information requested has been received

status:waiting_clarification	 The public authority would like part of the request explained

status:waiting_classification	 A new response has arrived, but it hasn't been categorised yet

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

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

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

<% end %>

<% if not @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 @total_hits == 0 %>

<%=@title %>

<% end %>

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

Did you mean: <%= link_to @spelling_correction, search_url(@spelling_correction, @sortby) %>

    <% end %>

    <% if @track_thing and (@xapian_bodies.results.size > 0 or @xapian_users.results.size > 0 or @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. 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"

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

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

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

requested_by:julian_todd to restrict to requests made by <%= link_to "Julian Todd", show_user_url(:url_name => 'julian_todd') %>, 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 in PDF format. Or try these: <%= IncomingMessage.get_all_file_extentions%>.

Type 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.

status:waiting_response	 Waiting for the public authority to reply

status:not_held	 The public authority does not have the information requested

status:rejected	 The request was rejected by the public authority

status:partially_successful	 Some of the information requested has been received

status:successful	 All of the information requested has been received

status:waiting_clarification	 The public authority would like part of the request explained

status:waiting_classification	 A new response has arrived, but it hasn't been categorised yet

status:requires_admin	 A strange reponse, required attention by the WhatDoTheyKnow team

<% end %>


Delete sample "about" page in fake Spanish

<% @title = "Sobre" %>

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

¡Bonjiorno amis!

Esta sito tu aidare a faire los requesti a la governmenti Seblano


Lets see if this works

Lets see if this works

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/'


Only show start of messages by default, with JS toggle to see the remainder.

<% @title = "FOI request - " + h(@info_request.title) %>
<%= javascript_include_tag :defaults %>

<%=@title%>

<% for column in InfoRequest.content_columns %>
  <%= column.human_name %>: <%=h @info_request.send(column.name) %>

<% end %>
Created by: <%= user_both_links(@info_request.user) %>

Public authority: <%= public_body_both_links(@info_request.public_body) %>

Incoming email address: <%= link_to h(@info_request.incoming_email), "mailto:" + @info_request.incoming_email %>

    <%= link_to 'Public page', main_url(request_url(@info_request)) %>
    | <%= link_to 'Edit', '../edit/' + @info_request.id.to_s %>
    | <%= link_to 'FOI officer upload URL', '../generate_upload_url/' + @info_request.id.to_s %> (see also links on incoming messages below)

Events

  Id
  <% for column in InfoRequestEvent.content_columns %>
    <%= column.human_name %>
  <% end %>

<% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h info_request_event.id %>
  <% for column in InfoRequestEvent.content_columns %>

      <% if column.name == 'params_yaml' %>

<%= info_request_event.params_yaml %>

      <% elsif column.text? %>
        <%=h (info_request_event.send(column.name) || '').gsub(/_/,' ') %>
      <% else %>
        <%=h info_request_event.send(column.name) %>
      <% end %>

  <% end %>

<% end %>

Outgoing messages

    Id
    <% for column in OutgoingMessage.content_columns %>
      <%= column.human_name %>
    <% end %>
    Actions

<% for outgoing_message in @info_request.outgoing_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h outgoing_message.id %>
  <% for column in OutgoingMessage.content_columns.map { |c| c.name } %>

    <% if column == 'body' %>

<%= simple_format( truncate(outgoing_message.body, 400,
                  link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( outgoing_message.body ) %>

    <% else %>
      <%= simple_format( outgoing_message.send(column) ) %>
    <% end %>

  <% end %>

  <% form_tag '../resend' do %>

          <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
          <%= submit_tag "Resend" %>

  <% end %>
  <%= link_to "Edit", '../edit_outgoing/' + outgoing_message.id.to_s %>

<% end %>

Incoming messages

  Id
  <% for column in IncomingMessage.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>" id="incoming-<%=incoming_message.id.to_s%>">
  <%=h incoming_message.id %>
  <% for column in IncomingMessage.content_columns.map { |c| c.name } %>
    <% if column =~ /^cached_.*?_text$/ %>

<%= simple_format( truncate(incoming_message.send(column), 400,
                  link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( incoming_message.send(column) ) %>

    <% else %>
      <%= simple_format( incoming_message.send(column) ) %>
    <% end %>
  <% end %>

        <% if !incoming_message.raw_email_id.nil? %>

            <%= link_to "View raw email", "../show_raw_email/" + incoming_message.raw_email_id.to_s %>

        <% end %>
        <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => incoming_message } %>

<% end %>

Annotations

<% if @info_request.comments.size > 0 %>

    Id
    Posted by
    <% for column in Comment.content_columns %>
      <%= column.human_name %>
    <% end %>
    Actions

  <% for comment in @info_request.comments %>
    <tr class="<%= cycle('odd', 'even') %>">
    <%=h comment.id %>
    <%= user_both_links(comment.user) %>
    <% for column in Comment.content_columns.map { |c| c.name } %>
      <% if column == 'body' && !comment.visible %>
          <s><%=h comment.send(column) %></s>
      <% else %>
          <%=h comment.send(column) %>
      <% end %>
    <% end %>

        <%= link_to "Edit", '../edit_comment/' + comment.id.to_s %>

  <% end %>

<% else %>

None yet.

<% end %>

Exim delivery logs

(Lines containing the request incoming email address, updated hourly.)

<% for exim_log_done_id, exim_logs in @info_request.exim_logs.group_by(&:exim_log_done_id) %>

<% for exim_log in exim_logs %><%=h exim_log.line%><% end %>

<% end %>
<% if @info_request.exim_logs.size == 0 %>

None (perhaps this is an old or a very new request)

<% end %>

Censor rules

<%= render :partial => 'admin_censor_rule/show', :locals => { :censor_rules => @info_request.censor_rules, :info_request => @info_request } %>

<% @title = "FOI request - " + h(@info_request.title) %>

<%=@title%>

<% for column in InfoRequest.content_columns %>
  <%= column.human_name %>: <%=h @info_request.send(column.name) %>

<% end %>
Created by: <%= user_both_links(@info_request.user) %>

Public authority: <%= public_body_both_links(@info_request.public_body) %>

Incoming email address: <%= link_to h(@info_request.incoming_email), "mailto:" + @info_request.incoming_email %>

    <%= link_to 'Public page', main_url(request_url(@info_request)) %>
    | <%= link_to 'Edit', '../edit/' + @info_request.id.to_s %>
    | <%= link_to 'FOI officer upload URL', '../generate_upload_url/' + @info_request.id.to_s %> (see also links on incoming messages below)

Events

  Id
  <% for column in InfoRequestEvent.content_columns %>
    <%= column.human_name %>
  <% end %>

<% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h info_request_event.id %>
  <% for column in InfoRequestEvent.content_columns %>

      <% if column.name == 'params_yaml' %>

<%= info_request_event.params_yaml %>

      <% elsif column.text? %>
        <%=h (info_request_event.send(column.name) || '').gsub(/_/,' ') %>
      <% else %>
        <%=h info_request_event.send(column.name) %>
      <% end %>

  <% end %>

<% end %>

Outgoing messages

    Id
    <% for column in OutgoingMessage.content_columns %>
      <%= column.human_name %>
    <% end %>
    Actions

<% for outgoing_message in @info_request.outgoing_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h outgoing_message.id %>
  <% for column in OutgoingMessage.content_columns.map { |c| c.name } %>
    <%= simple_format( outgoing_message.send(column) ) %>
  <% end %>

  <% form_tag '../resend' do %>

          <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
          <%= submit_tag "Resend" %>

  <% end %>
  <%= link_to "Edit", '../edit_outgoing/' + outgoing_message.id.to_s %>

<% end %>

Incoming messages

  Id
  <% for column in IncomingMessage.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>" id="incoming-<%=incoming_message.id.to_s%>">
  <%=h incoming_message.id %>
  <% for column in IncomingMessage.content_columns.map { |c| c.name } %>
    <%= simple_format( incoming_message.send(column) ) %>
  <% end %>

        <% if !incoming_message.raw_email_id.nil? %>

            <%= link_to "View raw email", "../show_raw_email/" + incoming_message.raw_email_id.to_s %>

        <% end %>
        <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => incoming_message } %>

<% end %>

Annotations

<% if @info_request.comments.size > 0 %>

    Id
    Posted by
    <% for column in Comment.content_columns %>
      <%= column.human_name %>
    <% end %>
    Actions

  <% for comment in @info_request.comments %>
    <tr class="<%= cycle('odd', 'even') %>">
    <%=h comment.id %>
    <%= user_both_links(comment.user) %>
    <% for column in Comment.content_columns.map { |c| c.name } %>
      <% if column == 'body' && !comment.visible %>
          <s><%=h comment.send(column) %></s>
      <% else %>
          <%=h comment.send(column) %>
      <% end %>
    <% end %>

        <%= link_to "Edit", '../edit_comment/' + comment.id.to_s %>

  <% end %>

<% else %>

None yet.

<% end %>

Exim delivery logs

(Lines containing the request incoming email address, updated hourly.)

<% for exim_log_done_id, exim_logs in @info_request.exim_logs.group_by(&:exim_log_done_id) %>

<% for exim_log in exim_logs %><%=h exim_log.line%><% end %>

<% end %>
<% if @info_request.exim_logs.size == 0 %>

None (perhaps this is an old or a very new request)

<% end %>

Censor rules

<%= render :partial => 'admin_censor_rule/show', :locals => { :censor_rules => @info_request.censor_rules, :info_request => @info_request } %>