Slightly clearer wording.

Slightly clearer wording.

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

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

<%=@title%>

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

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

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

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

<% end %>

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

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

<% end %>

<% if !@query.nil? %>

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

<% end %>

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

No public authorities found

    <% if @spelling_correction %>

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

    <% end %>

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

<% end %>

<% if @total_hits == 0 %>

<%=@title %>

<% end %>

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

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

    <% end %>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<% if @show_tips %>

Search tips

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

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

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

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

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

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

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

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

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

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

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

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

Table of statuses

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

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

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

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

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

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

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

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

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

<% end %>

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

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

<%=@title%>

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

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

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

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

<% end %>

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

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

<% end %>

<% if !@query.nil? %>

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

<% end %>

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

No public authorities found

    <% if @spelling_correction %>

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

    <% end %>

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

<% end %>

<% if @total_hits == 0 %>

<%=@title %>

<% end %>

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

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

    <% end %>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<% if @show_tips %>

Search tips

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

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

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

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

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

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

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

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

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

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

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

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

Table of statuses

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

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

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

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

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

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

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

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

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

<% end %>


Fix for external requests.

Fix for external requests.

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/4bic/alaveteli.git/'


Added sorting by name to the project combobox in 'Your activities'

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/doug-c/rubytime.git/'


new view form display fix

new view form display fix

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


Fix link to milestone

Fix link to milestone

<%
  if @logged_user.is_admin?
      @page_actions = [{:title => :add_project, :url=> new_project_path}]
  end
%>
<% if @logged_user.member_of_owner? and !Company.owner.hide_welcome_info %>

<%= :welcome_to_new_account.l %>

<%= :welcome_to_new_account_info.l_with_args(:user => h(@logged_user.display_name), :url => "#{AppConfig.site_url}") %>

   <% new_account_steps(@logged_user).each do |step| %>

<%= step[:del] ? "#{step[:title]}" : "#{step[:title]}" %>

<%= step[:del] ? "#{step[:content]}" : "#{step[:content]}" %>

   <% end %>
  <% if @logged_user.is_admin %>

<%= link_to :hide_welcome_info.l, {:controller => 'administration', :action => 'hide_welcome_info'}, :method => :post %>

  <% end %>

<% end %>

<% if @late_milestones.length > 0 or !@calendar_milestones.empty? %>

<%= :milestones_summary.l_with_args :adjetives => [!@late_milestones.empty? ? :late.l : nil,
                           !@calendar_milestones.empty? ? :upcoming.l : nil].compact.to_sentence %>

<% if @late_milestones.length > 0 %>

<%= :late_milestones.l %>

<% @late_milestones.each do |milestone| %>

<% unless milestone.assigned_to.nil? %><%= h milestone.assigned_to.object_name %>: <% end %><%= :milestone_in.l_with_args(:milestone => link_to(h(milestone.name), milestone_path(:id => milestone.id, :active_project => milestone.project)), :project => link_to(h(milestone.project.name), project_path(:id => milestone.project.id))) %> (<%= :milestone_days_late.l_with_args(:days => milestone.days_late) %>)

<% end %>

<% end %>

<% unless @calendar_milestones.empty? %>

<%= :due_in_next_n_days.l_with_args(:num => 14) %>

  <%= now = @time_now.to_date
      prev_month = now.month
      days_calendar now, now + 14.days, 'dayCal' do |date|
        if date == now
          calendar_block(:today.l, @calendar_milestones["#{date.month}-#{date.day}"], 'today', true)
        else
          if date.month != prev_month
            prev_month = date.month
            calendar_block(date.strftime("%b %d"), @calendar_milestones["#{date.month}-#{date.day}"], 'day')
          else
            calendar_block(date.day, @calendar_milestones["#{date.month}-#{date.day}"], 'day')
          end
        end
      end %>
<% end %>

<% end %>

<% cache "user#{@logged_user.id}_dblog" do %>
<% if @activity_log.length > 0 %>

    <%= :details.l %>
    <%= :project.l %>
	<%= render :partial => 'layouts/application_logs', :collection => @activity_log, :locals => {:show_project_column => true} %>

<% else %>
<%= :no_recent_activities.l %>
<% end %>
<% end %>

<%
  if @logged_user.is_admin?
      @page_actions = [{:title => :add_project, :url=> new_project_path}]
  end
%>
<% if @logged_user.member_of_owner? and !Company.owner.hide_welcome_info %>

<%= :welcome_to_new_account.l %>

<%= :welcome_to_new_account_info.l_with_args(:user => h(@logged_user.display_name), :url => "#{AppConfig.site_url}") %>

   <% new_account_steps(@logged_user).each do |step| %>

<%= step[:del] ? "#{step[:title]}" : "#{step[:title]}" %>

<%= step[:del] ? "#{step[:content]}" : "#{step[:content]}" %>

   <% end %>
  <% if @logged_user.is_admin %>

<%= link_to :hide_welcome_info.l, {:controller => 'administration', :action => 'hide_welcome_info'}, :method => :post %>

  <% end %>

<% end %>

<% if @late_milestones.length > 0 or !@calendar_milestones.empty? %>

<%= :milestones_summary.l_with_args :adjetives => [!@late_milestones.empty? ? :late.l : nil,
                           !@calendar_milestones.empty? ? :upcoming.l : nil].compact.to_sentence %>

<% if @late_milestones.length > 0 %>

<%= :late_milestones.l %>

<% @late_milestones.each do |milestone| %>

<% unless milestone.assigned_to.nil? %><%= h milestone.assigned_to.object_name %>: <% end %><%= :milestone_in.l_with_args(:milestone => link_to(h(milestone.name), milestone_path(:id => milestone.id, :active_project => milestone.project)), :project => link_to(h(milestone.project.name), project_path(:active_project => milestone.project.id))) %> (<%= :milestone_days_late.l_with_args(:days => milestone.days_late) %>)

<% end %>

<% end %>

<% unless @calendar_milestones.empty? %>

<%= :due_in_next_n_days.l_with_args(:num => 14) %>

  <%= now = @time_now.to_date
      prev_month = now.month
      days_calendar now, now + 14.days, 'dayCal' do |date|
        if date == now
          calendar_block(:today.l, @calendar_milestones["#{date.month}-#{date.day}"], 'today', true)
        else
          if date.month != prev_month
            prev_month = date.month
            calendar_block(date.strftime("%b %d"), @calendar_milestones["#{date.month}-#{date.day}"], 'day')
          else
            calendar_block(date.day, @calendar_milestones["#{date.month}-#{date.day}"], 'day')
          end
        end
      end %>
<% end %>

<% end %>

<% cache "user#{@logged_user.id}_dblog" do %>
<% if @activity_log.length > 0 %>

    <%= :details.l %>
    <%= :project.l %>
	<%= render :partial => 'layouts/application_logs', :collection => @activity_log, :locals => {:show_project_column => true} %>

<% else %>
<%= :no_recent_activities.l %>
<% end %>
<% end %>


reference location of shared snippets explicitly

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

        <% if @profile_photo_javascript %>

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

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

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

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

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

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

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

=end
%>

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

Close

    [ message goes here ]

Close

=end
%>

            <%= site_name %>

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

		a site by mysociety.org

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

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

        <% end %>

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

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

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

			<% if @user %>

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

			<% end %>

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

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

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

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

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

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

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

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

        <% if @profile_photo_javascript %>

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

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

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

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

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

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

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

=end
%>

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

Close

    [ message goes here ]

Close

=end
%>

            WhatDoTheyKnow?

            Make and explore Freedom of Information requests

		a site by mysociety.org

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

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

        <% end %>

p/SOURCEp

<%= link_to "Make request", frontpage_url %>

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

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

			<% if @user %>

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

			<% end %>

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

<%= link_to "Help", about_url %>

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

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

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

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

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

<% end %>


valid html on credits page

valid html on credits page


don't show empty accounts in balance

don't show empty accounts in balance

Bilanz für <%= @client.name %> <%= @year %>

<% form_tag(:action=> :show) do %>
  Stichdatum: <%= text_field 'balance', 'date' %>
  <%= submit_tag 'Los' %>
<% end %>

    Umlaufvermögen
    Fremdkapital

          Konto
          Saldo

        <% for account in @client.current_assets.select{|a| a.saldo != 0.0} %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(@client.saldo(:current_assets)) %>

          Konto
          Saldo

        <% for account in @client.outside_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(-account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(-@client.saldo(:outside_capital)) %>

    Anlagevermögen
    Eigenkapital

          Konto
          Saldo

        <% for account in @client.capital_assets %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(@client.saldo(:capital_assets)) %>

          Konto
          Saldo

        <% for account in @client.equity_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= -account.saldo %>

        <% end %>

          Total
          <%= currency_fmt(-@client.saldo(:equity_capital)) %>

    Total: <%= currency_fmt(@client.saldo(:current_assets) + @client.saldo(:capital_assets)) %>
    Total: <%= currency_fmt(-(@client.saldo(:outside_capital) + @client.saldo(:equity_capital))) %>

Bilanz für <%= @client.name %> <%= @year %>

<% form_tag(:action=> :show) do %>
  Stichdatum: <%= text_field 'balance', 'date' %>
  <%= submit_tag 'Los' %>
<% end %>

    Umlaufvermögen
    Fremdkapital

          Konto
          Saldo

        <% for account in @client.current_assets %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(@client.saldo(:current_assets)) %>

          Konto
          Saldo

        <% for account in @client.outside_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(-account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(-@client.saldo(:outside_capital)) %>

    Anlagevermögen
    Eigenkapital

          Konto
          Saldo

        <% for account in @client.capital_assets %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= currency_fmt(account.saldo) %>

        <% end %>

          Total
          <%= currency_fmt(@client.saldo(:capital_assets)) %>

          Konto
          Saldo

        <% for account in @client.equity_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= -account.saldo %>

        <% end %>

          Total
          <%= currency_fmt(-@client.saldo(:equity_capital)) %>

    Total: <%= currency_fmt(@client.saldo(:current_assets) + @client.saldo(:capital_assets)) %>
    Total: <%= currency_fmt(-(@client.saldo(:outside_capital) + @client.saldo(:equity_capital))) %>


add total totals

add total totals

Bilanz für <%= @client.name %> <%= @year %>

    Umlaufvermögen
    Fremdkapital

          Konto
          Saldo

        <% for account in @client.current_assets %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= account.saldo %>

        <% end %>

          Total
          <%= @client.saldo(:current_assets) %>

          Konto
          Saldo

        <% for account in @client.outside_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= -account.saldo %>

        <% end %>

          Total
          <%= -@client.saldo(:outside_capital) %>

    Anlagevermögen
    Eigenkapital

          Konto
          Saldo

        <% for account in @client.capital_assets %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= account.saldo %>

        <% end %>

          Total
          <%= @client.saldo(:capital_assets) %>

          Konto
          Saldo

        <% for account in @client.equity_capital %>

          <%= link_to account.title, :controller => 'accounts', :action => 'show', :id => account %>
          <%= -account.saldo %>

        <% end %>

          Total
          <%= -@client.saldo(:equity_capital) %>

    Total: <%= @client.saldo(:current_assets) + @client.saldo(:capital_assets) %>
    Total: <%= -(@client.saldo(:outside_capital) + @client.saldo(:equity_capital)) %>


Block user signup temporarily for launch

<% if !@post_redirect.nil? && @post_redirect.reason_params[:user_name] %>
    <% @title = _("Sign in") %>

        <% if @post_redirect.reason_params[:web].empty? %>
            <%= _('Please sign in as ')%><%= link_to h(@post_redirect.reason_params[:user_name]), @post_redirect.reason_params[:user_url] %>.
        <% else %>
            <%= @post_redirect.reason_params[:web] %>,
             <%= _('please sign in as ')%><%= link_to h(@post_redirect.reason_params[:user_name]), @post_redirect.reason_params[:user_url] %>.
        <% end %>

    <%= render :partial => 'signin', :locals => { :sign_in_as_existing_user => true } %>

<% else %>
    <% @title = _('Sign in or make a new account') %>

<%= _('Sign in') %>

          <%= render :partial => 'signin', :locals => { :sign_in_as_existing_user => false } %>

        <%= _('- or -') %>

<%= _('Sign up') %>

          <% if params[:letmein] == '1' %>
            <%= render :partial => 'signup' %>
          <% else %>
            Estamos dando los últimos retoques a la página. Abrimos a lo largo de hoy jueves por la mañana. Mientras tanto
            puedes leer sobre la situación actual de la ley de transparencia.
          <% end %>

<% end %>

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


Fixed broken Links on Projects Sidebar to view Spent Time Details & Reports.

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/visagio/redmine_blocks_layout.git/'


ActionItem16: displaying information

ActionItem16: displaying information

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

<%= _("%s's validation") % @pending.name  %>

<%= _('Provided information') %>

    <%= _('Name') %>
    <%= @pending.name %>

    <%= _('Address') %>
    <%= @pending.address %>

    <%= _('Contact Phone') %>
    <%= @pending.contact_phone %>

    <%= _('Contact Person') %>
    <%= @pending.contact_person %>

    <%= _('Acronym') %>
    <%= @pending.acronym %>

    <%= _('Identifier') %>
    <%= @pending.identifier %>

    <%= _('Foundation Year') %>
    <%= @pending.foundation_year %>

    <%= _('Legal Year') %>
    <%= @pending.legal_form %>

    <%= _('Economic Activity') %>
    <%= @pending.economic_activity %>

    <%= _('Management Information') %>
    <%= @pending.management_information %>

<%= _('Final decision') %>

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


format date for bookings in list

format date for bookings in list

Listing bookings

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

<% for booking in @bookings %>

    <%=h booking.title%>
    <%=h booking.value_date.strftime('%d.%m.%Y') unless booking.value_date.nil?%>
    <%=link_to h(booking.credit_account.title), :controller => :accounts, :action => :show, :id => booking.credit_account unless booking.credit_account.nil? %>
    <%=link_to h(booking.debit_account.title), :controller => :accounts, :action => :show, :id => booking.debit_account unless booking.debit_account.nil? %>
    <%=h sprintf('%0.2f', booking.rounded_amount) %>

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

<% end %>

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

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

Listing bookings

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

<% for booking in @bookings %>

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

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

<% end %>

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

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


Forgot to add the test template for the new auto-completer.

<form>

    Name: <input type="text_field" size="40" id="tester"/>

</form>

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


Slightly clearer wording in admin interface heading for logs

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

<%=@title%>

<% form_tag '../move_request', { :class => "inline" } do %>

<%= hidden_field_tag 'info_request_id', @info_request.id %>
<% for column in InfoRequest.content_columns %>
  <%= column.human_name %>: <%=h @info_request.send(column.name) %>
  <% if column.name == 'described_state' %>
    Calculated status: <%= @info_request.calculate_status %>

Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>
        Date response required by: <%= @info_request.date_response_required_by %>
        Very overdue after: <%= @info_request.date_very_overdue_after %>
  <% end %>
  <% if ![ 'allow_new_responses_from' ].include?(column.name) %>

  <% end %>
<% end %>
  Created by:
  <% if @info_request.is_external? %>
        <%= @info_request.public_body.name %> on behalf of <%= (@info_request.user_name || _('an anonymous user'))%> (using API)
  <% else %>
    <%= user_both_links(@info_request.user) %>
  <% end %>

            (<%= link_to_function("move...", "$(this).up(1).childElements().invoke('toggle')") %>)

          url_name of new user:
          <%= text_field_tag 'user_url_name', "", { :size => 20 } %>
          <%= submit_tag "Move request to user" %>

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

            (<%= link_to_function("move...", "$(this).up(1).childElements().invoke('toggle')") %>)

          url_name of new authority:
          <%= text_field_tag 'public_body_url_name', "", { :size => 20 } %>
          <%= submit_tag "Move request to authority" %>

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

Tags: <%= render :partial => 'tags', :locals => { :info_request => @info_request} %>

<% end %>

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

<% 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_as_html %>
      <% elsif column.text? %>
        <%=h (info_request_event.send(column.name) || '').gsub(/_/,' ') %>
      <% else %>
        <%=h info_request_event.send(column.name) %>
      <% end %>

  <% end %>

    <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
        <% form_tag '../mark_event_as_clarification' do %>

              <%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
              <%= submit_tag "Was clarification request" %>

        <% 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, :length => 400,
                 :omission => 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_.*?$/ %>

<%= simple_format( truncate(incoming_message.send(column), :length => 400,
               :omission => 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 %>

Mail server delivery logs

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

<% for mail_server_log_done_id, mail_server_logs in @info_request.mail_server_logs.group_by(&:mail_server_log_done_id) %>

<% for mail_server_log in mail_server_logs %><%=h mail_server_log.line%><% end %>

<% end %>
<% if @info_request.mail_server_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) %>
<%= javascript_include_tag :defaults %>

<%=@title%>

<% form_tag '../move_request', { :class => "inline" } do %>

<%= hidden_field_tag 'info_request_id', @info_request.id %>
<% for column in InfoRequest.content_columns %>
  <%= column.human_name %>: <%=h @info_request.send(column.name) %>
  <% if column.name == 'described_state' %>
    Calculated status: <%= @info_request.calculate_status %>

Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>
        Date response required by: <%= @info_request.date_response_required_by %>
        Very overdue after: <%= @info_request.date_very_overdue_after %>
  <% end %>
  <% if ![ 'allow_new_responses_from' ].include?(column.name) %>

  <% end %>
<% end %>
  Created by:
  <% if @info_request.is_external? %>
        <%= @info_request.public_body.name %> on behalf of <%= (@info_request.user_name || _('an anonymous user'))%> (using API)
  <% else %>
    <%= user_both_links(@info_request.user) %>
  <% end %>

            (<%= link_to_function("move...", "$(this).up(1).childElements().invoke('toggle')") %>)

          url_name of new user:
          <%= text_field_tag 'user_url_name', "", { :size => 20 } %>
          <%= submit_tag "Move request to user" %>

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

            (<%= link_to_function("move...", "$(this).up(1).childElements().invoke('toggle')") %>)

          url_name of new authority:
          <%= text_field_tag 'public_body_url_name', "", { :size => 20 } %>
          <%= submit_tag "Move request to authority" %>

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

Tags: <%= render :partial => 'tags', :locals => { :info_request => @info_request} %>

<% end %>

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

<% 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_as_html %>
      <% elsif column.text? %>
        <%=h (info_request_event.send(column.name) || '').gsub(/_/,' ') %>
      <% else %>
        <%=h info_request_event.send(column.name) %>
      <% end %>

  <% end %>

    <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
        <% form_tag '../mark_event_as_clarification' do %>

              <%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
              <%= submit_tag "Was clarification request" %>

        <% 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, :length => 400,
                 :omission => 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_.*?$/ %>

<%= simple_format( truncate(incoming_message.send(column), :length => 400,
               :omission => 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 %>

Mailer delivery logs

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

<% for mail_server_log_done_id, mail_server_logs in @info_request.mail_server_logs.group_by(&:mail_server_log_done_id) %>

<% for mail_server_log in mail_server_logs %><%=h mail_server_log.line%><% end %>

<% end %>
<% if @info_request.mail_server_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 } %>


Fix followup

Fix followup

  <% if (incoming_message.nil? || !incoming_message.valid_to_reply_to?)
        # TRANSLATORS: This phrase completes the following sentences:
        # Request an internal review from...
        # Send a public follow up message to...
        # Send a public reply to...
        # Don't want to address your message to... ?
        name_for_followup = _("the main FOI contact at {{public_body}}", :public_body => h(OutgoingMailer.name_for_followup(@info_request, nil)))
     else
        name_for_followup = h(OutgoingMailer.name_for_followup(@info_request, incoming_message))
     end %>
    <% if incoming_message.nil? || !incoming_message.valid_to_reply_to? %>

<%= _('Send a public follow up message to {{person_or_body}}', :person_or_body => name_for_followup) %>

    <% else %>

<%= _('Send a public reply to {{person_or_body}}', :person_or_body => name_for_followup) %>

    <% end %>
<% if @info_request.who_can_followup_to(incoming_message).count > 0 %>

  <%= _("Don't want to address your message to {{person_or_body}}?  You can also write to:", :person_or_body => name_for_followup) %>

<% @info_request.who_can_followup_to(incoming_message).each do |name, email, id|  %>
   <% if id.nil? && !incoming_message.nil? && incoming_message.valid_to_reply_to? %>

<%= link_to(_("the main FOI contact address for {{public_body}}", :public_body => name), show_response_no_followup_path(:id => @info_request.id, :incoming_message_id => nil)) %>

   <% else %>
     <% if !id.nil? %>
      <% if @info_request.public_body.request_email == email %>
       <% if !incoming_message.nil? %>

<%= link_to(_("the main FOI contact address for {{public_body}}", :public_body => name), show_response_no_followup_path(:id => @info_request.id, :incoming_message_id => nil)) %>

       <% end %>
      <% else %>

<%= link_to name, show_response_path(:id => @info_request.id, :incoming_message_id => id)%>

      <% end %>
     <% else %>

<%= link_to(_("the main FOI contact address for {{public_body}}", :public_body => name), show_response_no_followup_path(:id => @info_request.id, :incoming_message_id => nil)) %>

     <% end %>
   <% end %>

<% end %>

<% end %>
    <% if @info_request.allow_new_responses_from == 'nobody' %>

<%= _('Follow ups and new responses to this request have been stopped to prevent spam. Please contact us if you are {{user_link}} and need to send a follow up.',:user_link=>user_link(@info_request.user), :url=>help_contact_path) %>

    <% else %>

            <%= _('If you are dissatisfied by the response you got from
            the public authority, you have the right to
            complain (details).', :url => "http://foiwiki.com/foiwiki/index.php/Internal_reviews".html_safe) %>

    <%= _('Please only write messages directly relating to your request {{request_link}}. If you would like to ask for information that was not in your original request, then file a new request.', :request_link=>request_link(@info_request), :new_request_link => new_request_to_body_url(:url_name => @info_request.public_body.url_name)) %>

        <% status = @info_request.calculate_status %>
        <% if status == 'waiting_response_overdue' %>

<%= _('The response to your request has been delayed.  You can say that,
            by law, the authority should normally have responded
            promptly and') %>
            <% if @info_request.public_body.is_school? %>
            <%= _('in term time') %>
            <% end %>
            <%= _('by {{date}}',:date=>simple_date(@info_request.date_response_required_by)) %>
            (<%= link_to _('details'), "#{help_requesting_path}#quickly_response" %>).

        <% elsif status == 'waiting_response_very_overdue' %>

            <%= _('The response to your request is long overdue.   You can say that, by
            law, under all circumstances, the authority should have responded
            by now') %> (<%= link_to _('details'), "#{help_requesting_path}#quickly_response" %>).

        <% end %>

        <% form_for(:outgoing_message, @outgoing_message, :html => { :id => 'followup_form' }, :url => incoming_message.nil? ? show_response_no_followup_url(:id => @info_request.id) : show_response_url(:id => @info_request.id, :incoming_message_id => incoming_message.id)) do |o| %>

                <%= o.text_area :body, :rows => 15, :cols => 55 %>

                <% if !@outgoing_message.errors[:what_doing_dummy].nil? %>

                <% else %>

                <% end %>
                    <%= hidden_field_tag "outgoing_message[what_doing]", "normal_sort" %>

                <%= hidden_field_tag 'submitted_followup', 1 %>
                <%= hidden_field_tag(:preview, 1 ) %>
                <%= submit_tag _("Preview your message") %>

        <% end %>

            <% if not @is_owning_user %>
            (You will be asked to sign in as <%= user_link(@info_request.user) %>)
            <% end %>

    <% end %>

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


[ClockingIT @ New 'spam' email]

[ClockingIT @ New 'spam' email]


Fix base of article links

Fix base of article links

The mailing list controller needs the controller name and action in the URL
for other pages to work

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


Shrink new task tick a pixel

Shrink new task tick a pixel


[ClockingIT @ Don't highlight tag list as that highlights inside of URLs as well]


updated iTunes steps slightly

updated iTunes steps slightly

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


Escaping fix in admin display of events params_yaml

<% @title = _("FOI request – {{title}}", :title => h(@info_request.title)) %>

<%=@title%>

<% form_tag admin_request_move_request_path, { :class => "form form-horizontal" } do %>
  <%= hidden_field_tag 'info_request_id', @info_request.id %>

          <a href="#metadata_<%=@info_request.id%>" data-toggle="collapse" data-parent="#info_request"><%= chevron_down %>Request metadata

      <div id="metadata_<%=@info_request.id%>" class="accordion-body collapse in">

                 <%= link_to 'Edit metadata', admin_request_edit_path(@info_request), :class => "btn" %>

              Public page:
              <%= link_to request_url(@info_request), request_path(@info_request) %>

            <% @info_request.for_admin_column do |name, value, type, column_name|%>

                  <%= name %>:

                  <% if type == 'datetime' %>
                    <%= I18n.l(value, :format => "%e %B %Y %H:%M:%S") %>
                    (<%= _('{{length_of_time}} ago', :length_of_time => time_ago_in_words(value)) %>)
                  <% else %>
                    <%= h value %>
                  <% end %>
                  <% if column_name == 'described_state' %>

Initial request last sent at: <%= @info_request.calculate_status %>

Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>

Date response required by: <%= @info_request.date_response_required_by %>

Very overdue after: <%= @info_request.date_very_overdue_after %>

                  <% end %>

        <% end %>

                Created by

                <% if @info_request.is_external? %>
                  <%= link_to(eye, @info_request.external_url, :title => "view URL of original request on external website") %>
                  <%= @info_request.public_body.name %> on behalf of <%= (@info_request.user_name || _('an anonymous user'))%> (using API)
                <% else %>
                  <%= user_both_links(@info_request.user) %>
                  <%= link_to _("move..."), "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

                    url_name of new user:
                    <%= text_field_tag 'user_url_name', "", { :size => 20 } %>
                    <%= submit_tag "Move request to user", :class => "btn btn-info" %>

                <% end %>

                Public authority:

                <%= public_body_both_links(@info_request.public_body) %>
                <%= link_to "move...", "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

                  url_name of new authority:
                  <%= text_field_tag 'public_body_url_name', "", { :size => 20 } %>
                  <%= submit_tag "Move request to authority", :class => "btn btn-info" %>

                <%=_("Incoming email address")%>

                <%= link_to h(@info_request.incoming_email), "mailto:#{@info_request.incoming_email}" %>

                <%=_("Tags")%>

                <%= render :partial => 'tags', :locals => { :info_request => @info_request} %>

                 <%= link_to 'Edit metadata', admin_request_edit_path(@info_request), :class => "btn" %>

<% end %>
<fieldset class="form-horizontal">
  <legend>Actions</legend>

      FOI officer upload URL

      <%= link_to 'Generate URL', admin_request_generate_upload_url_path(@info_request), :class => "btn" %>

(see also option to general URLs for individual incoming messages below)

  <% form_tag admin_request_hide_path(@info_request), :class => "form form-inline", :id => "hide_request_form", 'data-info-request-id' => @info_request.id.to_s do %>

      <% if  @info_request.is_external? %>
        Hide the request:
      <% else %>
        Hide the request and notify the user:
      <% end %>

        <% if ['hidden', 'requester_only'].include? @info_request.prominence %>

This request has already been hidden

        <% else %>

            <%= radio_button_tag "reason", "not_foi" %> <%= _("Not a valid FOI request") %>

            <%= radio_button_tag "reason", "vexatious" %> <%= _("A vexatious request") %>

        <% end %>

    <% if !['hidden', 'requester_only'].include? @info_request.prominence %>
      <% if ! @info_request.is_external? %>

          Subject of email:

            <%= text_field_tag "subject", "Your request on WhatDoTheyKnow.com hidden", {:id => "request_hidden_user_subject_field", :cols => 100} %>

          Reason for hiding the request (will be emailed to user):

            <%= text_area_tag "explanation", h(@request_hidden_user_explanation), {:id => "request_hidden_user_explanation_field"} %>

      <% end %>

        <%= submit_tag _("Hide request"), :class => "btn" %>

    <% end %>
  <% end %>
</fieldset>

Events

  <% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>

        <a href="#event_<%=info_request_event.id%>" data-toggle="collapse" data-parent="#events"><%= chevron_right %>
          <%= _("Event {{id}}", :id => info_request_event.id) %>:

            <%=h info_request_event.event_type.humanize %><% if !info_request_event.calculated_state.nil? %>; state: <%= info_request_event.calculated_state %><% end %>

            <%= info_request_event.created_at%>

      <div id="event_<%=info_request_event.id%>" class="accordion-body collapse">

                <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
                  <% form_tag admin_request_clarification_path, :class => "form form-inline admin-table-form admin-inline-form" do %>
                    <%= hidden_field_tag 'info_request_event_id', info_request_event.id, :id => nil %>
                    <%= submit_tag "Was clarification request", :class => "btn btn-mini btn-primary" %>
                  <% end %>
                <% end %>

            <% info_request_event.for_admin_column do |name, value, type, column_name| %>

                  <%=h name%>

                  <% if column_name == 'params_yaml' %>
                    <%= info_request_event.params_yaml_as_html.html_safe %>
                  <% elsif value.nil? %>
                    nil
                  <% elsif %w(text string).include?(type) %>
                    <%=h value.humanize %>
                  <% elsif type == 'datetime' %>
                    <%= admin_date value %>
                  <% else %>
                    <%=h value %>
                  <% end %>

            <% end %>

  <% end %>

Outgoing messages

  <% for outgoing_message in @info_request.outgoing_messages.find(:all, :order => 'created_at') %>

        <a href="#outgoing_<%=outgoing_message.id%>" data-toggle="collapse" data-parent="#outgoing_messages"><%= chevron_right %>
        <% link_to admin_request_edit_outgoing_path(outgoing_message) do %>
          #<%= outgoing_message.id %> -- <%= outgoing_message.status.humanize %> <%= outgoing_message.message_type.humanize %>
        <% end %>

          <%= truncate(outgoing_message.body, :length => 400) %>

      <div id="outgoing_<%=outgoing_message.id%>" class="accordion-body collapse">

                <% form_tag admin_request_resend_path, :class => "admin-table-form" do %>
                  <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
                  <%= submit_tag "Resend", :class => "btn" %>
                <% end %>

            <% outgoing_message.for_admin_column do |name, value, type, column_name| %>

                  <%=name%>

                  <% if column_name == 'body' %>
                    <%= simple_format(truncate(h(outgoing_message.body), :length => 400, :omission => link_to("...", "#", :class => "toggle-hidden" )).html_safe) %>

<%= simple_format( outgoing_message.body ) %>

                  <% else %>
                    <%= admin_value(value) %>
                  <% end %>

            <% end %>

  <% end %>

Incoming messages

  <% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>

        <a href="#incoming_<%=incoming_message.id%>" data-toggle="collapse" data-parent="#incoming_messages"><%= chevron_right %>
        <%=incoming_message.id%> -- <%= h(incoming_message.mail_from) %> <%=_("at")%> <%=admin_value(incoming_message.sent_at)%>

          <% if !incoming_message.cached_main_body_text_folded.nil? %>
            <%= truncate(incoming_message.cached_main_body_text_folded.gsub('FOLDED_QUOTED_SECTION', ''), :length => 400) %>
          <% end %>

      <div id="incoming_<%=incoming_message.id%>" class="accordion-body collapse">

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

            <% incoming_message.for_admin_column do |name, value, type, column_name| %>

                  <%=name%>

                  <% if column_name =~ /^cached_.*?$/ %>
                    <%= simple_format( truncate(h(value), :length => 400, :omission => link_to("...", "#", :class => "toggle-hidden")).html_safe) %>

<%= simple_format(value) %>

                  <% else %>
                    <%= simple_format(value) %>
                  <% end %>

            <% end %>

  <% end %>

Annotations

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

    <% for comment in @info_request.comments %>

         <a href="#comment_<%=comment.id%>" data-toggle="collapse" data-parent="#comments"><%= chevron_right %>
         <% link_to admin_request_edit_comment_path(comment) do %>
            #<%=comment.id%>
            --
            <%=h(comment.user.name)%>
            <%=admin_value(comment.created_at)%>
            <% end %>

            <%= truncate(comment.body, :length => 400) %>

        <div id="comment_<%=comment.id%>" class="accordion-body collapse">

                 By <%= user_both_links(comment.user) %>

              <% comment.for_admin_column do |name, value, type, column_name |%>

                    <%=name%>

                    <% if column_name == 'body' && !comment.visible %>
                      <s><%=h comment.send(column_name) %></s>
                    <% else %>
                      <%=h comment.send(column_name) %>
                    <% end %>

              <% end %>

    <% end %>

<% else %>

None yet.

<% end %>

Mail server delivery logs

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

<% for mail_server_log_done_id, mail_server_logs in @info_request.mail_server_logs.group_by(&:mail_server_log_done_id) %>

<% for mail_server_log in mail_server_logs %><%=h mail_server_log.line%><% end %>

<% end %>
<% if @info_request.mail_server_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 – {{title}}", :title => h(@info_request.title)) %>

<%=@title%>

<% form_tag admin_request_move_request_path, { :class => "form form-horizontal" } do %>
  <%= hidden_field_tag 'info_request_id', @info_request.id %>

          <a href="#metadata_<%=@info_request.id%>" data-toggle="collapse" data-parent="#info_request"><%= chevron_down %>Request metadata

      <div id="metadata_<%=@info_request.id%>" class="accordion-body collapse in">

                 <%= link_to 'Edit metadata', admin_request_edit_path(@info_request), :class => "btn" %>

              Public page:
              <%= link_to request_url(@info_request), request_path(@info_request) %>

            <% @info_request.for_admin_column do |name, value, type, column_name|%>

                  <%= name %>:

                  <% if type == 'datetime' %>
                    <%= I18n.l(value, :format => "%e %B %Y %H:%M:%S") %>
                    (<%= _('{{length_of_time}} ago', :length_of_time => time_ago_in_words(value)) %>)
                  <% else %>
                    <%= h value %>
                  <% end %>
                  <% if column_name == 'described_state' %>

Initial request last sent at: <%= @info_request.calculate_status %>

Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>

Date response required by: <%= @info_request.date_response_required_by %>

Very overdue after: <%= @info_request.date_very_overdue_after %>

                  <% end %>

        <% end %>

                Created by

                <% if @info_request.is_external? %>
                  <%= link_to(eye, @info_request.external_url, :title => "view URL of original request on external website") %>
                  <%= @info_request.public_body.name %> on behalf of <%= (@info_request.user_name || _('an anonymous user'))%> (using API)
                <% else %>
                  <%= user_both_links(@info_request.user) %>
                  <%= link_to _("move..."), "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

                    url_name of new user:
                    <%= text_field_tag 'user_url_name', "", { :size => 20 } %>
                    <%= submit_tag "Move request to user", :class => "btn btn-info" %>

                <% end %>

                Public authority:

                <%= public_body_both_links(@info_request.public_body) %>
                <%= link_to "move...", "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

                  url_name of new authority:
                  <%= text_field_tag 'public_body_url_name', "", { :size => 20 } %>
                  <%= submit_tag "Move request to authority", :class => "btn btn-info" %>

                <%=_("Incoming email address")%>

                <%= link_to h(@info_request.incoming_email), "mailto:#{@info_request.incoming_email}" %>

                <%=_("Tags")%>

                <%= render :partial => 'tags', :locals => { :info_request => @info_request} %>

                 <%= link_to 'Edit metadata', admin_request_edit_path(@info_request), :class => "btn" %>

<% end %>
<fieldset class="form-horizontal">
  <legend>Actions</legend>

      FOI officer upload URL

      <%= link_to 'Generate URL', admin_request_generate_upload_url_path(@info_request), :class => "btn" %>

(see also option to general URLs for individual incoming messages below)

  <% form_tag admin_request_hide_path(@info_request), :class => "form form-inline", :id => "hide_request_form", 'data-info-request-id' => @info_request.id.to_s do %>

      <% if  @info_request.is_external? %>
        Hide the request:
      <% else %>
        Hide the request and notify the user:
      <% end %>

        <% if ['hidden', 'requester_only'].include? @info_request.prominence %>

This request has already been hidden

        <% else %>

            <%= radio_button_tag "reason", "not_foi" %> <%= _("Not a valid FOI request") %>

            <%= radio_button_tag "reason", "vexatious" %> <%= _("A vexatious request") %>

        <% end %>

    <% if !['hidden', 'requester_only'].include? @info_request.prominence %>
      <% if ! @info_request.is_external? %>

          Subject of email:

            <%= text_field_tag "subject", "Your request on WhatDoTheyKnow.com hidden", {:id => "request_hidden_user_subject_field", :cols => 100} %>

          Reason for hiding the request (will be emailed to user):

            <%= text_area_tag "explanation", h(@request_hidden_user_explanation), {:id => "request_hidden_user_explanation_field"} %>

      <% end %>

        <%= submit_tag _("Hide request"), :class => "btn" %>

    <% end %>
  <% end %>
</fieldset>

Events

  <% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>

        <a href="#event_<%=info_request_event.id%>" data-toggle="collapse" data-parent="#events"><%= chevron_right %>
          <%= _("Event {{id}}", :id => info_request_event.id) %>:

            <%=h info_request_event.event_type.humanize %><% if !info_request_event.calculated_state.nil? %>; state: <%= info_request_event.calculated_state %><% end %>

            <%= info_request_event.created_at%>

      <div id="event_<%=info_request_event.id%>" class="accordion-body collapse">

                <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
                  <% form_tag admin_request_clarification_path, :class => "form form-inline admin-table-form admin-inline-form" do %>
                    <%= hidden_field_tag 'info_request_event_id', info_request_event.id, :id => nil %>
                    <%= submit_tag "Was clarification request", :class => "btn btn-mini btn-primary" %>
                  <% end %>
                <% end %>

            <% info_request_event.for_admin_column do |name, value, type, column_name| %>

                  <%=h name%>

                  <% if column_name == 'params_yaml' %>
                    <%= info_request_event.params_yaml_as_html %>
                  <% elsif value.nil? %>
                    nil
                  <% elsif %w(text string).include?(type) %>
                    <%=h value.humanize %>
                  <% elsif type == 'datetime' %>
                    <%= admin_date value %>
                  <% else %>
                    <%=h value %>
                  <% end %>

            <% end %>

  <% end %>

Outgoing messages

  <% for outgoing_message in @info_request.outgoing_messages.find(:all, :order => 'created_at') %>

        <a href="#outgoing_<%=outgoing_message.id%>" data-toggle="collapse" data-parent="#outgoing_messages"><%= chevron_right %>
        <% link_to admin_request_edit_outgoing_path(outgoing_message) do %>
          #<%= outgoing_message.id %> -- <%= outgoing_message.status.humanize %> <%= outgoing_message.message_type.humanize %>
        <% end %>

          <%= truncate(outgoing_message.body, :length => 400) %>

      <div id="outgoing_<%=outgoing_message.id%>" class="accordion-body collapse">

                <% form_tag admin_request_resend_path, :class => "admin-table-form" do %>
                  <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
                  <%= submit_tag "Resend", :class => "btn" %>
                <% end %>

            <% outgoing_message.for_admin_column do |name, value, type, column_name| %>

                  <%=name%>

                  <% if column_name == 'body' %>
                    <%= simple_format(truncate(h(outgoing_message.body), :length => 400, :omission => link_to("...", "#", :class => "toggle-hidden" )).html_safe) %>

<%= simple_format( outgoing_message.body ) %>

                  <% else %>
                    <%= admin_value(value) %>
                  <% end %>

            <% end %>

  <% end %>

Incoming messages

  <% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>

        <a href="#incoming_<%=incoming_message.id%>" data-toggle="collapse" data-parent="#incoming_messages"><%= chevron_right %>
        <%=incoming_message.id%> -- <%= h(incoming_message.mail_from) %> <%=_("at")%> <%=admin_value(incoming_message.sent_at)%>

          <% if !incoming_message.cached_main_body_text_folded.nil? %>
            <%= truncate(incoming_message.cached_main_body_text_folded.gsub('FOLDED_QUOTED_SECTION', ''), :length => 400) %>
          <% end %>

      <div id="incoming_<%=incoming_message.id%>" class="accordion-body collapse">

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

            <% incoming_message.for_admin_column do |name, value, type, column_name| %>

                  <%=name%>

                  <% if column_name =~ /^cached_.*?$/ %>
                    <%= simple_format( truncate(h(value), :length => 400, :omission => link_to("...", "#", :class => "toggle-hidden")).html_safe) %>

<%= simple_format(value) %>

                  <% else %>
                    <%= simple_format(value) %>
                  <% end %>

            <% end %>

  <% end %>

Annotations

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

    <% for comment in @info_request.comments %>

         <a href="#comment_<%=comment.id%>" data-toggle="collapse" data-parent="#comments"><%= chevron_right %>
         <% link_to admin_request_edit_comment_path(comment) do %>
            #<%=comment.id%>
            --
            <%=h(comment.user.name)%>
            <%=admin_value(comment.created_at)%>
            <% end %>

            <%= truncate(comment.body, :length => 400) %>

        <div id="comment_<%=comment.id%>" class="accordion-body collapse">

                 By <%= user_both_links(comment.user) %>

              <% comment.for_admin_column do |name, value, type, column_name |%>

                    <%=name%>

                    <% if column_name == 'body' && !comment.visible %>
                      <s><%=h comment.send(column_name) %></s>
                    <% else %>
                      <%=h comment.send(column_name) %>
                    <% end %>

              <% end %>

    <% end %>

<% else %>

None yet.

<% end %>

Mail server delivery logs

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

<% for mail_server_log_done_id, mail_server_logs in @info_request.mail_server_logs.group_by(&:mail_server_log_done_id) %>

<% for mail_server_log in mail_server_logs %><%=h mail_server_log.line%><% end %>

<% end %>
<% if @info_request.mail_server_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 } %>


Add Spanish navigation bar

Add Spanish navigation bar

<%= link_to _("Quiénes somos"), help_about_path %>

<%= link_to _("Guía para solicitantes"), help_requesting_path %>

<%= link_to _("Solicitar documentos"), body_index_path, :class => 'make-request-link' %>

<%= link_to _("Buscar solicitudes"), request_list_successful_url %>

<%= link_to _("Noticias"), blog_url %>

<%= link_to _("Tu derecho a saber"), help_right_to_know_path %>

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


Fix bad HTML

Fix bad HTML

<%=_('Show only...')%>

<%=_('Beginning with') %>

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

    <% first_row = true %>
    <% for row in PublicBodyCategories::get().with_headings() %>
        <% if row.instance_of?(Array) %>

            <%= link_to_unless (@tag == row[0]), row[1], list_public_bodies_url(:tag => row[0]) %>

        <% else %>
            <% if not first_row %>

            <% else %>
                <% first_row = false %>
            <% end %>

<%=h row%>

        <% end %>
    <% end %>
    <% if not first_row %>

    <% end %>

	<%= _('Are we missing a public authority?.') % [help_requesting_path + '#missing_body'] %>

      <%= link_to _('List of all authorities (CSV)'), all_public_bodies_csv_url() %>

<% @title = _("Public authorities - {{description}}", :description => @description) %>

<%= _('Public authorities') %>

<% form_tag(list_public_bodies_default_url, :method => "get", :id=>"search_form") do %>

  <%= text_field_tag(:public_body_query, params[:public_body_query]) %>
  <%= submit_tag(_("Search")) %>

<% end %>

<%= _('Found {{count}} public bodies {{description}}', :count=>@public_bodies.size, :description=>@description) %>

<%= render :partial => 'body_listing', :locals => { :public_bodies => @public_bodies } %>

  <%= will_paginate(@public_bodies) %>

  <%= _('Can\'t find the one you want?') % [help_requesting_path + '#missing_body'] %>

<%=_('Show only...')%>

<%=_('Beginning with') %>

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

    <% first_row = true %>
    <% for row in PublicBodyCategories::get().with_headings() %>
        <% if row.instance_of?(Array) %>

            <%= link_to_unless (@tag == row[0]), row[1], list_public_bodies_url(:tag => row[0]) %>

        <% else %>
            <% if not first_row %>

            <% else %>
                <% first_row = false %>
            <% end %>

<%=h row%>

        <% end %>
    <% end %>

	<%= _('Are we missing a public authority?.') % [help_requesting_path + '#missing_body'] %>

      <%= link_to _('List of all authorities (CSV)'), all_public_bodies_csv_url() %>

<% @title = _("Public authorities - {{description}}", :description => @description) %>

<%= _('Public authorities') %>

<% form_tag(list_public_bodies_default_url, :method => "get", :id=>"search_form") do %>

  <%= text_field_tag(:public_body_query, params[:public_body_query]) %>
  <%= submit_tag(_("Search")) %>

<% end %>

<%= _('Found {{count}} public bodies {{description}}', :count=>@public_bodies.size, :description=>@description) %>

<%= render :partial => 'body_listing', :locals => { :public_bodies => @public_bodies } %>

  <%= will_paginate(@public_bodies) %>

  <%= _('Can\'t find the one you want?') % [help_requesting_path + '#missing_body'] %>


Google Analyticsの新しいトラッキングコードに対応。

Google Analyticsの新しいトラッキングコードに対応。

git-svn-id: d766b2a131eb5d649bacb6a45bc0bcd899bdfdb3@489 c938ebee-df10-0410-95fc-be8c4b0ebdd5

<% if defined?(GOOGLE_ANALYTICS_CODE) then %>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-#{GOOGLE_ANALYTICS_CODE}");
pageTracker._initData();
pageTracker._trackPageview();
</script>
<% end %>

<% if defined?(GOOGLE_ANALYTICS_CODE) then %>
<%= javascript_include_tag 'http://www.google-analytics.com/urchin.js'%>
<%= javascript_tag <<-END
  _uacct = "UA-#{GOOGLE_ANALYTICS_CODE}";
  urchinTracker();
END
%>
<% end %>


add temp index for tinder card layout

add temp index for tinder card layout

    <% @stocks.each do |stock| %>
    <% stock.id %>

Name:<%= stock.name %>

Symbol:<%= stock.symbol %>

<%= button_to 'Yes', stocks_users_path, params: {'stocks_user[user_id]'=> 1,'stocks_user[stock_id]' => stock.id},  class: "btn btn-primary yes-button" %>

<%= button_to 'No', industry_path(session[:industry_id]), class: "btn btn-primary no-button" %>

    <% end %>

        <%= link_to 'Proceed', new_portfolio_path, class: "btn btn-primary" %>

<%= javascript_tag do %>
  var stocks = <%= @stocks.to_json.html_safe %>
<% end %>

error: pathspec 'index2.rhtml' did not match any file(s) known to git


added question about claiming a band.

added question about claiming a band.


minor change to FAQ

minor change to FAQ


Add missing empty _supporters partial

Add missing empty _supporters partial

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


Add missing </form> to filter section

Add missing </form> to filter section


changed format slightly

changed format slightly


an access template to be used in the future

<%= render :partial => 'pages/tabs' %>

  These groups and users will have access to this page.
  If a user is a member of the group, they will have access if the group has access.
  In the future, you will be able to make pages public, and be able to specify admin, edit, and view permissions separately.

<% accessor_count = @page.groups.length + @page.users.with_access.length -%>

<%= "groups" if @page.groups.any? %>

  <% @page.groups.each do |group| %>

    <%= link_to_group group %>
    <% if accessor_count > 1 -%>
      (<%= link_to 'remove', pages_url(@page, :action => 'access', :remove_group => group.id),  :method => 'post' %>)
    <% end -%>

  <% end %>

<%= "users" if @page.users.with_access.any? %>

  <% @page.users.with_access.each do |user| %>

    <%= link_to_user user %>
    <% if accessor_count > 1 -%>
      (<%= link_to 'remove', pages_url(@page, :action => 'access', :remove_user => user.id),  :method => 'post' %>)
    <% end %>

  <% end %>

add new access

<% form_tag(pages_url(@page, :action => 'access')) do -%>
  User or group name: <%= text_field_tag 'add_name','',:size=>13 %>
  <%= submit_tag 'add' %>
<% end %>

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


Adjust venue profile layout... not awesome looking but most things will fit.


"I also want to know"

"I also want to know"

<%
    if @user
        existing_track = TrackThing.find_by_existing_track(@user, track_thing)
    end
%>

<% if own_request %>

<%= _('This is your own request, so you will be automatically emailed when new responses arrive.')%>

<% elsif existing_track %>

<%= track_thing.params[:verb_on_page_already] %>

    <div class="feed_link feed_link_<%=location%>">
  <%= link_to _("Unsubscribe"), {:controller => 'track', :action => 'update', :track_id => existing_track.id, :track_medium => "delete", :r => request.request_uri}, :class => "link_button_green" %>

<% elsif track_thing %>
    <div class="feed_link feed_link_<%=location%>">
     <% if defined? follower_count && follower_count > 0 %>
        <%= link_to _("I like this request"), do_track_path(track_thing), :class => "link_button_green" %>
     <% else %>
        <%= link_to _("I also want to know"), do_track_path(track_thing), :class => "link_button_green" %>
     <% end %>

    <div class="feed_link feed_link_<%=location%>">
        <%= link_to ''.html_safe, do_track_path(track_thing, 'feed') %>
        <%= link_to (location == 'sidebar' ? _('RSS feed of updates') : _('RSS feed')),  do_track_path(track_thing, 'feed') %>

<% end %>

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


Link to privacy policy.

Link to privacy policy.

<% @title = "Make an " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %>

<% if @existing_request %>

    <%= user_or_you_capital_link(@existing_request.user) %> already
    created the same request on <%=simple_date(@existing_request.created_at)%>.
    You can either view the <a href="<%=request_url(@existing_request)%>">existing request,
    or edit the details below to make a new but similar request.

<% end %>

<%= foi_error_messages_for :info_request, :outgoing_message %>

Read this before writing your <%=h(@info_request.law_used_full)%> request

        <% form_tag("http://www.google.co.uk/search", {:id => "search_body_website_form", :method => "get"} ) do %>

               First, search the authority's web site ...
               <% if !@info_request.public_body.calculated_home_page.nil? %>

                           <%= text_field_tag 'q', params[:q], { :size => 20 } %>
                   <%= hidden_field_tag 'as_sitesearch', @info_request.public_body.calculated_home_page %>
                   <%= submit_tag "Search" %>
               <% end %>

               ... to check that the info isn't already published.

        <% end %>

Write your request in simple, precise language.
    <% if @info_request.public_body.info_requests.size > 0 %>

Browse <%= link_to "other requests", public_body_url(@info_request.public_body)  %>
        to '<%= h(@info_request.public_body.name) %>'
        for examples of how to word your request.

    <% else %>

Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request.

    <% end %>

Keep it focussed, if you ask for everything it might cost too much
    and you might get nothing.

Ask for particular documents, rather than general questions.

This site is public, everything you type (except your email address) and any response will be published.

    <% if @info_request.public_body.notes != "" %>

Special note for this authority!

<%=MySociety::Format.make_clickable(@info_request.public_body.notes) %>

    <% end %>

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

Please ask for environmental information only

The Freedom of Information Act does not apply to <%=h(@info_request.public_body.name)%>.
        However, you have the right to request environmental
        information under a different law (explanation).
        This covers a very wide spectrum of information about the state of
        the natural and built environment, such as:

Air, water, soil, land, flora and fauna (including how these effect
        human beings)

Information on emissions and discharges (e.g. noise, energy,
        radiation, waste materials)

Human health and safety

Cultural sites and built structures (as they may be affected by the
        environmental factors listed above)

Plans and administrative measures that affect these matters

Please only request information that comes under those categories, do not waste your
        time or the time of the public authority by requesting unrelated information.

    <% end %>

<% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

			To:
			<%=h(@info_request.public_body.name)%>

			Summary:
			<%= f.text_field :title, :size => 50 %>

			(a one line summary of the information you are requesting,
			e.g.
            <% if @info_request.law_used == 'eir' %>
                'Pollution levels over time for the River Tyne'
            <% else %>
                'Crime statistics by ward level for Wales'
            <% end %>
            )

		<% fields_for :outgoing_message do |o| %>

			Your request:
			<%= o.text_area :body, :rows => 20, :cols => 60 %>

		<% end %>

            Privacy warning: All information that you enter
            on this page will be displayed publically on this website. Any
            response you get will also be published.
            See our privacy policy.

			Can I request information about myself?
			No! (Click here for details)

			<%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
			<%= hidden_field_tag(:submitted_new_request, 1 ) %>
			<%= hidden_field_tag(:preview, 1 ) %>
			<%= submit_tag "Preview your public request" %>

<% end %>

<% @title = "Make an " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %>

<% if @existing_request %>

    <%= user_or_you_capital_link(@existing_request.user) %> already
    created the same request on <%=simple_date(@existing_request.created_at)%>.
    You can either view the <a href="<%=request_url(@existing_request)%>">existing request,
    or edit the details below to make a new but similar request.

<% end %>

<%= foi_error_messages_for :info_request, :outgoing_message %>

Read this before writing your <%=h(@info_request.law_used_full)%> request

        <% form_tag("http://www.google.co.uk/search", {:id => "search_body_website_form", :method => "get"} ) do %>

               First, search the authority's web site ...
               <% if !@info_request.public_body.calculated_home_page.nil? %>

                           <%= text_field_tag 'q', params[:q], { :size => 20 } %>
                   <%= hidden_field_tag 'as_sitesearch', @info_request.public_body.calculated_home_page %>
                   <%= submit_tag "Search" %>
               <% end %>

               ... to check that the info isn't already published.

        <% end %>

Write your request in simple, precise language.
    <% if @info_request.public_body.info_requests.size > 0 %>

Browse <%= link_to "other requests", public_body_url(@info_request.public_body)  %>
        to '<%= h(@info_request.public_body.name) %>'
        for examples of how to word your request.

    <% else %>

Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request.

    <% end %>

Keep it focussed, if you ask for everything it might cost too much
    and you might get nothing.

Ask for particular documents, rather than general questions.

This site is public, everything you type (except your email address) and any response will be published.

    <% if @info_request.public_body.notes != "" %>

Special note for this authority!

<%=MySociety::Format.make_clickable(@info_request.public_body.notes) %>

    <% end %>

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

Please ask for environmental information only

The Freedom of Information Act does not apply to <%=h(@info_request.public_body.name)%>.
        However, you have the right to request environmental
        information under a different law (explanation).
        This covers a very wide spectrum of information about the state of
        the natural and built environment, such as:

Air, water, soil, land, flora and fauna (including how these effect
        human beings)

Information on emissions and discharges (e.g. noise, energy,
        radiation, waste materials)

Human health and safety

Cultural sites and built structures (as they may be affected by the
        environmental factors listed above)

Plans and administrative measures that affect these matters

Please only request information that comes under those categories, do not waste your
        time or the time of the public authority by requesting unrelated information.

    <% end %>

<% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

			To:
			<%=h(@info_request.public_body.name)%>

			Summary:
			<%= f.text_field :title, :size => 50 %>

			(a one line summary of the information you are requesting,
			e.g.
            <% if @info_request.law_used == 'eir' %>
                'Pollution levels over time for the River Tyne'
            <% else %>
                'Crime statistics by ward level for Wales'
            <% end %>
            )

		<% fields_for :outgoing_message do |o| %>

			Your request:
			<%= o.text_area :body, :rows => 20, :cols => 60 %>

		<% end %>

			Privacy warning: All information that you enter, except
			for your email address, will be displayed publically on this website. Any
			response you get will also be published.

			Can I request information about myself?
			No! (Click here for details)

			<%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
			<%= hidden_field_tag(:submitted_new_request, 1 ) %>
			<%= hidden_field_tag(:preview, 1 ) %>
			<%= submit_tag "Preview your public request" %>

<% end %>


Forgot to add this.

Forgot to add this.

    Id
  <% for column in ['Name', 'Email', 'Created at', 'Updated at', 'Email confirmed', 'Admin'] + (banned_column ? ['Ban text'] : []) %>
    <%= column %>
  <% end %>

<% for user in users %>
  <tr class="<%= cycle('odd', 'even') %>">
    <%= user.id.to_s %>
    <%= user_both_links(user) %>
    <a href="mailto:<%=h user.email %>"><%=h user.email%>
  <% for column in ['created_at', 'updated_at', 'email_confirmed', 'admin_level'] + (banned_column ? ['ban_text'] : []) %>
    <%=h user.send(column) %>
  <% end %>

<% end %>

<%= will_paginate(users) %>

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


Minor formatting.

Minor formatting.

<%= error_messages_for 'public_body' %>

List of tags

    <% first_row = true %>
    <% for row in PublicBody.categories_with_headings %>
        <% if row.instance_of?(Array) %>
            <% if row[0] != 'other' %>
                <%= row[0] %>=<%= row[1] %>

            <% end %>
        <% elsif row != 'Miscellaneous' %>
            <% if not first_row %>
            <% else %>
                <% first_row = false %>
            <% end %>

<%=h row%>

        <% end %>
    <% end %>

Name

<%= text_field 'public_body', 'name', :size => 60  %>

Short name (only put in abbreviations which are really used, otherwise leave blank. Short or long name is used in the URL - don't worry about breaking URLs through renaming, as the history is used to redirect)

<%= text_field 'public_body', 'short_name', :size => 60  %>

Request email (set to blank (empty string) if can't find an address; to not_apply if FOI no longer / never did apply to authority; these emails are public as anyone can view with a CAPTCHA)

<%= text_field 'public_body', 'request_email', :size => 40  %>

Home page (of whole authority, not just their FOI page; set to blank (empty string) to guess it from the email)

<%= text_field 'public_body', 'home_page', :size => 60  %>

Public notes (for users to consider when making FOI requests to the authority)

<%= text_area 'public_body', 'notes', :rows => 3, :cols => 60  %>

Tags (space separated; see list of tags on the right)

<%= text_field 'public_body', 'tag_string', :size => 60  %>

Comment for this edit (put URL or other source of new info)

<%= text_area 'public_body', 'last_edit_comment', :rows => 3, :cols => 60  %>


Show widget key on user preferences page


[ClockingIT @ Force long task names to word-wrap instead of breaking float positioning]