Adding explanatory text to form where another person can update the status of an old unclassified request

<% form_for(:incoming_message, @info_request, :url => describe_state_url(:id => @info_request.id)) do |f| %>

Can you help us by describing the status of this request now?

      <%= user_link(@info_request.user) %> hasn't yet let us know whether this request was
      successful or not. Perhaps you could help us out by doing so?

    <% if @info_request.described_state != 'internal_review' %>

            <%= radio_button "incoming_message", "described_state", "waiting_response", :id => 'waiting_response' + id_suffix %>
            <label for="waiting_response<%=id_suffix%>"> No response has been received

    <% end %>
    <% if @info_request.described_state == 'internal_review' %>

            <%= radio_button "incoming_message", "described_state", "internal_review", :id => 'internal_review' + id_suffix %>
            <label for="internal_review<%=id_suffix%>">Still awaiting an internal review

    <% end %>

    <% if @info_request.described_state != 'internal_review' %>

            <%= radio_button "incoming_message", "described_state", "waiting_clarification", :id => 'waiting_clarification' + id_suffix %>
            <label for="waiting_clarification<%=id_suffix%>">Clarification has been requested

    <% end %>

        <%= radio_button "incoming_message", "described_state", "gone_postal", :id => 'gone_postal' + id_suffix %>
        <label for="gone_postal<%=id_suffix%>">A response will be sent by post

    <% if @info_request.described_state == 'internal_review' %>

The review has finished and overall:

    <% end %>

        <%= radio_button "incoming_message", "described_state", "not_held", :id => 'not_held' + id_suffix %>
        <label for="not_held<%=id_suffix%>">The authority do not have the information (maybe they say who does)

        <%= radio_button "incoming_message", "described_state", "partially_successful", :id => 'partially_successful' + id_suffix %>
        <label for="partially_successful<%=id_suffix%>">Some of the information has been sent

        <%= radio_button "incoming_message", "described_state", "successful", :id => 'successful' + id_suffix %>
        <label for="successful<%=id_suffix%>">All the information has been sent

        <%= radio_button "incoming_message", "described_state", "rejected", :id => 'rejected' + id_suffix %>
        <label for="rejected<%=id_suffix%>">The request has been rejected

       <%= radio_button "incoming_message", "described_state", "error_message", :id => 'error_message' + id_suffix %>
        <label for="error_message<%=id_suffix%>">
        An error message has been received

    <%= hidden_field_tag 'last_info_request_event_id', @last_info_request_event_id, :id => 'last_info_request_event_id' + id_suffix %>
    <%= hidden_field_tag 'submitted_describe_state', 1, :id => 'submitted_describe_state' + id_suffix %>
    <%= submit_tag "Submit status" %>

<% end %>

<% form_for(:incoming_message, @info_request, :url => describe_state_url(:id => @info_request.id)) do |f| %>

Can you help us by describing the status of this request now?

    <% if @info_request.described_state != 'internal_review' %>

            <%= radio_button "incoming_message", "described_state", "waiting_response", :id => 'waiting_response' + id_suffix %>
            <label for="waiting_response<%=id_suffix%>"> No response has been received

    <% end %>
    <% if @info_request.described_state == 'internal_review' %>

            <%= radio_button "incoming_message", "described_state", "internal_review", :id => 'internal_review' + id_suffix %>
            <label for="internal_review<%=id_suffix%>">Still awaiting an internal review

    <% end %>

    <% if @info_request.described_state != 'internal_review' %>

            <%= radio_button "incoming_message", "described_state", "waiting_clarification", :id => 'waiting_clarification' + id_suffix %>
            <label for="waiting_clarification<%=id_suffix%>">Clarification has been requested

    <% end %>

        <%= radio_button "incoming_message", "described_state", "gone_postal", :id => 'gone_postal' + id_suffix %>
        <label for="gone_postal<%=id_suffix%>">A response will be sent by post

    <% if @info_request.described_state == 'internal_review' %>

The review has finished and overall:

    <% end %>

        <%= radio_button "incoming_message", "described_state", "not_held", :id => 'not_held' + id_suffix %>
        <label for="not_held<%=id_suffix%>">The authority do not have the information (maybe they say who does)

        <%= radio_button "incoming_message", "described_state", "partially_successful", :id => 'partially_successful' + id_suffix %>
        <label for="partially_successful<%=id_suffix%>">Some of the information has been sent

        <%= radio_button "incoming_message", "described_state", "successful", :id => 'successful' + id_suffix %>
        <label for="successful<%=id_suffix%>">All the information has been sent

        <%= radio_button "incoming_message", "described_state", "rejected", :id => 'rejected' + id_suffix %>
        <label for="rejected<%=id_suffix%>">The request has been rejected

       <%= radio_button "incoming_message", "described_state", "error_message", :id => 'error_message' + id_suffix %>
        <label for="error_message<%=id_suffix%>">
        An error message has been received

    <%= hidden_field_tag 'last_info_request_event_id', @last_info_request_event_id, :id => 'last_info_request_event_id' + id_suffix %>
    <%= hidden_field_tag 'submitted_describe_state', 1, :id => 'submitted_describe_state' + id_suffix %>
    <%= submit_tag "Submit status" %>

<% end %>


Add custom Unhappy help page

Add custom Unhappy help page

<% @title = "Unhappy about the response you got?" %>

Unhappy about the response you got?

If ...

You didn't get a reply within 15 working days;

You did not get all of the information that you requested; or

Your request was refused, but with no reasoning based on the exceptions included in Regulation 1049/2001

... you can

Make an appeal (confirmatory application) by replying back to the same EU authority, telling them why you are unsatisfied with their reply.

If that doesn't help, complain to the European Ombudsman.

If you can find a lawyer who has done the bar in an EU country, go to the European Court of Justice, to the General Court.

1. Make an appeal (confirmatory application)

<% if !@info_request.nil? %>
    <%= link_to "Request an internal review", show_response_no_followup_url(:id => @info_request.id, :incoming_message_id => nil) + "?internal_review=1#followup" %> and then write a message asking the authority to review your request.
<% else %>
    At the bottom of the relevant request page on <%= site_name %> choose "make an appeal” . Then write a message asking for a review of the decision by the EU body not to grant you the information requested.
<% end %>

Appeals should be processed within 15 working days, and then the EU body should write and let you know the results of the “confirmatory application”, unless they apply another 15 working day extension. You will then either get the information that you originally requested, or you will be told that they are sticking with, or confirming, their original decision.

2. Complaining to the European Ombudsman

If you are still unhappy after the EU institution, office, body or agency has replied to your appeal (confirmatory application), or in the event that they fail to reply at all, you can then complain to the European Ombudsman. To do this fill in the form on the Ombudsman's website.

To make it easier to send the relevant information to the European Ombudsman, either include a link to your request
<% if !@info_request.nil? %>
    <%=h main_url(request_url(@info_request)) %>
<% else %>
    on <%= site_name %>
<% end %>
in your complaint or print out the whole page of your request and all attachments.

<%= site_name %> has no special facilities for handling a request at this stage - it passes into the European Ombudsman's system. You can, however, make comments about the progress of your complaint on this site, in order to keep other people informed.

The European Ombudsman's decisions are not legally binding on the institution, but they are usually taken into account by the EU bodies. Resolving a conflict in this way is also free, easy and fast.

3. European Court of Justice

The advantage of appealing in this way is that the Court’s decision is legally binding on an institution. This means that the European Court of Justice can annul a decision refusing public access to documents, thereby obliging the institution holding the documents to review the request for public access.

However, appeals to the European Court of Justice can take time (around 2 years), and since it requires the assistance of a lawyer registered at the bar in one of the 27 Member States it can also be expensive. Still, it is worth considering because legal challenges contribute to the long term development of the right of access to information and help to create jurisprudence on how the right of access to documents should be implemented in practice.

4. Think laterally!

Make a new access to information request for summary information, or for documentation relating indirectly to matters in your refused request. <%= link_to 'Ask us', help_contact_path %> for ideas if you're stuck.

If any other public authorities or publicly owned companies are involved,
    then make requests to them.

Talk to civil society organisations, journalists or researchers who are interested in a similar issue to yours for ideas.

Write to your MEPs or other politicians and ask for their help in finding the answer.

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


update

update

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

      <% if @flash[:notice] || @flash[:notice].to_s != ""%>

<%=@flash[:notice]%>

      <% end %>

          支出

        <% for summary in @expenses_summaries %>

            <%= summary.name %>
            <%= @expenses_sum != 0 ?
      (summary.sum * 100.0 / @expenses_sum).round : 0%>%
            <%= number_with_delimiter(summary.sum)%>

        <% end %>

          収入

        <% for summary in @incomes_summaries %>

            <%= summary.name %>
            <%= @incomes_sum != 0 ?
(summary.sum * 100.0 / @incomes_sum).round : 0 %>%
            <%= number_with_delimiter(summary.sum)%>

        <% end %>

          支出合計
          <%= number_with_delimiter(@expenses_sum)%>

<%
  labels = ''
  values = ''
  for summary in @expenses_summaries
     v = (@expenses_sum != 0 ? (summary.sum * 100.0 / @expenses_sum).round : 0)
     next if v == 100 || v == 0
     values += v.to_s + ','
     labels += summary.name + ','
  end
%>
<% if labels.count(',') > 1 then %>

	     <img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />

<% end %>

          収入合計
          <%= number_with_delimiter(@incomes_sum)%>

<%
  labels = ''
  values = ''
  for summary in @incomes_summaries
     v = (@incomes_sum != 0 ? (summary.sum * 100.0 / @incomes_sum).round : 0)
     next if v == 100 || v == 0
     values += v.to_s + ','
     labels += summary.name + ','
  end
%>
<% if labels.count(',') > 1 then %>

	      <img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />

<% end %>

      test

    <div class="<%= @profit >= 0 ? "profit" : "loss" %>">
      <%= @profit >= 0 ? "利益" : "損失" %>合計
      <%= number_with_delimiter(@profit.abs)%>円

            資産減少

          <% for summary in @asset_minus_summaries %>

              <%= summary.account.name %>
              -<%= number_with_delimiter(summary.diff.abs)%>

          <% end %>

            資産増加

          <% for summary in @asset_plus_summaries %>

              <%= summary.account.name %>
              +<%= number_with_delimiter(summary.diff)%>

          <% end %>

            減少合計
            -<%= number_with_delimiter(@assets_minus_sum.abs)%>

            増加合計
            +<%= number_with_delimiter(@assets_plus_sum)%>

      <% if @flash[:notice] || @flash[:notice].to_s != ""%>

<%=@flash[:notice]%>

      <% end %>

          支出

        <% for summary in @expenses_summaries %>

            <%= summary.name %>
            <%= @expenses_sum != 0 ?
      (summary.sum * 100.0 / @expenses_sum).round : 0%>%
            <%= number_with_delimiter(summary.sum)%>

        <% end %>

          収入

        <% for summary in @incomes_summaries %>

            <%= summary.name %>
            <%= @incomes_sum != 0 ?
(summary.sum * 100.0 / @incomes_sum).round : 0 %>%
            <%= number_with_delimiter(summary.sum)%>

        <% end %>

          支出合計
          <%= number_with_delimiter(@expenses_sum)%>

<%
  labels = ''
  values = ''
  for summary in @expenses_summaries
     v = (@expenses_sum != 0 ? (summary.sum * 100.0 / @expenses_sum).round : 0)
     next if v == 100 || v == 0
     values += v.to_s + ','
     labels += summary.name + ','
  end
%>
<% if labels.count(',') > 1 then %>

	     <img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />

<% end %>

          収入合計
          <%= number_with_delimiter(@incomes_sum)%>

<%
  labels = ''
  values = ''
  for summary in @incomes_summaries
     v = (@incomes_sum != 0 ? (summary.sum * 100.0 / @incomes_sum).round : 0)
     next if v == 100 || v == 0
     values += v.to_s + ','
     labels += summary.name + ','
  end
%>
<% if labels.count(',') > 1 then %>

	      <img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />

<% end %>

    <div class="<%= @profit >= 0 ? "profit" : "loss" %>">
      <%= @profit >= 0 ? "利益" : "損失" %>合計
      <%= number_with_delimiter(@profit.abs)%>円

            資産減少

          <% for summary in @asset_minus_summaries %>

              <%= summary.account.name %>
              -<%= number_with_delimiter(summary.diff.abs)%>

          <% end %>

            資産増加

          <% for summary in @asset_plus_summaries %>

              <%= summary.account.name %>
              +<%= number_with_delimiter(summary.diff)%>

          <% end %>

            減少合計
            -<%= number_with_delimiter(@assets_minus_sum.abs)%>

            増加合計
            +<%= number_with_delimiter(@assets_plus_sum)%>


currency_fmt totals in account show

currency_fmt totals in account show

Account <%= @account.title %>

    Datum
    Text
    Belastung
    Gutschrift
    Saldo
    Valuta

  <% total_debit = 0; total_credit = 0 %>
  <% for booking in @account.bookings %>
  <% @booking = booking %>
  <% total_debit += booking.amount if booking.debit_account == @account %>
  <% total_credit += booking.amount if booking.credit_account == @account %>

    <%= in_place_editor_field :booking, :in_place_value_date %>

      <%= in_place_editor_field :booking, :title %>
      <%= '
' unless booking.comments.empty? %>
      <%= in_place_editor_field :booking, :comments %>

    <%= in_place_editor_field :booking, :in_place_amount if booking.debit_account == @account %>
    <%= in_place_editor_field :booking, :in_place_amount if booking.credit_account == @account %>
    <%= currency_fmt(total_credit - total_debit) %>

      <%= link_to h(booking.in_place_value_date), :controller => :bookings, :action => :show, :id => booking %>
      <%= link_to image_tag('insert_booking.png'), :controller => :bookings, :action => :new %>

  <% end %>

    Umsatz

    <%= currency_fmt(total_credit) %>
    <%= currency_fmt(total_debit) %>

    Aktueller Kontostand (per <%= DateTime.now.strftime("%d.%m.%Y %H:%M") %>)

    <%= currency_fmt(total_credit - total_debit) %>

<%= link_to 'Edit', :action => 'edit', :id => @account %> |
<%= link_to 'Back', :action => 'list' %>

Account <%= @account.title %>

    Datum
    Text
    Belastung
    Gutschrift
    Saldo
    Valuta

  <% total_debit = 0; total_credit = 0 %>
  <% for booking in @account.bookings %>
  <% @booking = booking %>
  <% total_debit += booking.amount if booking.debit_account == @account %>
  <% total_credit += booking.amount if booking.credit_account == @account %>

    <%= in_place_editor_field :booking, :in_place_value_date %>

      <%= in_place_editor_field :booking, :title %>
      <%= '
' unless booking.comments.empty? %>
      <%= in_place_editor_field :booking, :comments %>

    <%= in_place_editor_field :booking, :in_place_amount if booking.debit_account == @account %>
    <%= in_place_editor_field :booking, :in_place_amount if booking.credit_account == @account %>
    <%= currency_fmt(total_credit - total_debit) %>

      <%= link_to h(booking.in_place_value_date), :controller => :bookings, :action => :show, :id => booking %>
      <%= link_to image_tag('insert_booking.png'), :controller => :bookings, :action => :new %>

  <% end %>

    Umsatz

    <%= total_credit %>
    <%= total_debit %>

    Aktueller Kontostand (per <%= DateTime.now.strftime("%d.%m.%Y %H:%M") %>)

    <%= total_credit - total_debit %>

<%= link_to 'Edit', :action => 'edit', :id => @account %> |
<%= link_to 'Back', :action => 'list' %>


add labels to title, value_date and amount for booking list

Listing bookings

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

    <%= sort_header 'value_date', 'Valuta' %>
    <%= sort_header 'title', 'Titel' %>
    <%= sort_header 'debit_account_id', 'Soll' %>
    <%= sort_header 'credit_account_id', 'Haben' %>
    <%= sort_header 'amount', 'Wert' %>

<% for booking in @bookings %>
  <%= render :partial => 'booking', :object => booking %>
<% 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 %>

Listing bookings

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

    <%= sort_header 'value_date' %>
    <%= sort_header 'title' %>
    <%= sort_header 'debit_account_id', 'Soll' %>
    <%= sort_header 'credit_account_id', 'Haben' %>
    <%= sort_header 'amount' %>

<% for booking in @bookings %>
  <%= render :partial => 'booking', :object => booking %>
<% 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 %>


Don't break header if someone deletes the task you're working on

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


Update window title to handle seconds instead of minutes tracking


Didn't look better with spacing.

Didn't look better with spacing.

Help pages

<%= link_to_unless_current "Introduction", "/help/about" %>

<%= link_to_unless_current "Making requests", "/help/requesting" %>

<%= link_to_unless_current "Privacy policy", "/help/privacy" %>

<%= link_to_unless_current "FOI officers", "/help/officers" %>

<%= link_to_unless_current "Credits", "/help/credits" %>

<%= link_to_unless_current "Programmers API", "/help/api" %>

<%= link_to_unless_current "Advanced search", "/search" %>

Contact us

If your question isn't answered here, or you just wanted to let us know
    something about the site, contact us.


ActionItem527: oops missed a file

ActionItem527: oops missed a file

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

<% if !@cities.empty? %>
  <% @cities.each do |city| %>
    <option value=<%= city.id.to_s.inspect %>><%= city.name %></option>
  <% end %>
<% else %>
  <option value=''>---</option>
<% end%>

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


Override blog page to remove links to actual blog

<% @title = _("{{site_name}} blog and tweets", :site_name => site_name) %>

<% if !@twitter_user.empty? %>

<%= _("Stay up to date") %>

     <a href="http://www.twitter.com/<%= MySociety::Config.get('TWITTER_USERNAME') %>"><%= _("Follow us on twitter") %>

     <a href="<%= MySociety::Config.get('BLOG_FEED') %>"><%= _("Subscribe to blog") %>

<% end %>

<%=@title %>

    <% for item in @blog_items: %>

          <h2 id="<%= Time.parse(item['pubDate'][0]).to_i %>"><%=h item['title'] %>

<%= item['encoded'] %>

<%= _("Posted on {{date}} by {{author}}", :date=>simple_date(Time.parse(item['pubDate'][0])), :author=>item['creator']) %>

    <% end %>

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


Make search results have less bogus padding under IE7


Tidy up DOM for new request form, so can be themed better

<% @title = _("Make an {{law_used_short}} request to '{{public_body_name}}'",:law_used_short=>h(@info_request.law_used_short),:public_body_name=>h(@info_request.public_body.name))  %>

<%= _('2. Ask for Information') %>

    <% if @existing_request %>

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

    <% end %>

    <%= foi_error_messages_for :info_request, :outgoing_message %>

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

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

                <% if @info_request.public_body.info_requests.size > 0 %>
                    <%= _("Browse other requests to '{{public_body_name}}' for examples of how to word your request.", :public_body_name=>h(@info_request.public_body.name), :url=>public_body_url(@info_request.public_body)) %>
                <% else %>
                    <%= _("Browse other requests for examples of how to word your request.", :url=>request_list_url) %>
                <% end %>

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

<%= _('Special note for this authority!') %>

<%= @info_request.public_body.notes_as_html %>

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

                <%= _('Summary:') %>
                <%= f.text_field :title, :size => 50, :id =>"typeahead_search" %>

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

<%= _('Write your request in simple, precise language.') %>

<%= _('Ask for specific documents or information, this site is not suitable for general enquiries.') %>

<%= _('Keep it focused, you\'ll be more likely to get what you want (why?).') % [help_requesting_path + '#focused'] %>

        <% fields_for :outgoing_message do |o| %>

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

        <% end %>

        <% if !@user %>

                <%= _('Everything that you enter on this page, including your name,
                will be displayed publicly on
                this website forever (why?).') % [help_privacy_path+"#public_request"] %>
                <%= _('If you are thinking of using a pseudonym,
                please read this first.') % [help_privacy_path+"#public_request"] %>

        <% else %>

                <%= _('Everything that you enter on this page
                will be displayed publicly on
                this website forever (why?).') % [help_privacy_path+"#public_request"] %>

        <% end %>

            <%= _(" Can I request information about myself?\n" +
            "\t\t\tNo! (Click here for details)") % [help_requesting_path+"#data_protection"] %>

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

        <% if !@info_request.tag_string.empty? %>

                <%= f.hidden_field(:tag_string) %>
                Tags: <%=h @info_request.tag_string %>

        <% end %>

<% end %>


band settings page fix

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


New email to send to a requester when someone else has updated their old unclassified request

Someone has updated the status of the <%= @info_request.law_used_full %> request
'<%= @info_request.title %>' that you made to
<%= @info_request.public_body.name %>. Follow this link to see the request.

<%= @url %>

-- the WhatDoTheyKnow team

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


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

  資産合計
  <%= number_with_delimiter(@assets.sum) %>円

    正の資産		期末残高

  <% @assets.plus.each do |account| %>

      <%= account.name %>
      <%= account.percentage %>%
      <%= number_with_delimiter(account.balance) %>

  <% end %>

合計	<%= number_with_delimiter(@assets.plus.sum) %>

<%
  labels = ''
  values = ''
  @assets.plus.each do |account|
    next if account.percentage == 100 || account.percentage == 0
    labels += account.name + ','
    values += account.percentage.to_s + ','
  end
%>
<% if labels.count(',') > 1 then %>
<img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />
<% else %>
  グラフは２つ以上の項目があるときに表示されます。
<% end %>

    負の資産		期末残高

  <% @assets.minus.each do |account| %>

      <%= account.name %>
      <%= account.percentage %>%
      <%= number_with_delimiter(account.balance) %>

  <% end %>

合計	<%= number_with_delimiter(@assets.minus.sum) %>

  <%= pie_graph(@assets.minus, 'percentage', 'name') %>

<%
  labels = ''
  values = ''
  @assets.minus.each do |account|
    next if account.percentage == 100 || account.percentage == 0
    labels += account.name + ','
    values += account.percentage.to_s + ','
  end
%>
<% if labels.count(',') > 1 then %>
<img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />
<% else %>
  グラフは２つ以上の項目があるときに表示されます。
<% end %>


removed forum link

removed forum link


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

<% if @patterns && !@patterns.empty? %>

    <% for pattern in @patterns %>

        <div class="clickable_text" onClick="setEditDeal('<%= pattern.summary %>', '<%= pattern.account_entries[1].amount%>', '<%= pattern.account_entries[0].account_id%>', '<%= pattern.account_entries[1].account_id%>');"><%= pattern.summary %>

        <%= number_with_delimiter(pattern.account_entries[1].amount) %>
        [<%= pattern.account_entries[0].account.name %>]
         →
        [<%= pattern.account_entries[1].account.name %>]

    <% end %>

<% else %>

<% end %>

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


Hack in new favicon

Hack in new favicon

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

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

        <link rel="shortcut icon" href="/alavetelitheme/images/logo.png">

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

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

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

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

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

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

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

    <% end %>

<% if is_admin? %>
  <%= render :partial => 'admin_general/admin_navbar' %>
<% end %>

<% if !@popup_banner.blank? %>

<%= _('Close') %>

  <%= @popup_banner %>

<%= _('Close') %>

<% end %>

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

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

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

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

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

        <% end %>

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

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

           </form>

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

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

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

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

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

<input type="text">

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

      <% end %>

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

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


Text tweaks for sidebar.

Text tweaks for sidebar.

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

<% if @info_request.awaiting_description %>

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

<% end %>

<%=@title%>

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

    <% if @info_request.awaiting_description %>
        <% if @is_owning_user %>
            Please answer the question above so we know whether the
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> useful information.
        <% else %>
            This request has an unknown status. We're waiting for
            <%= user_link(@info_request.user) %> to read
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
            and update the status.
        <% end %>
    <% elsif @status == 'waiting_response' %>
        Currently waiting for a response from <%= public_body_link(@info_request.public_body) %>,
        due by <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'waiting_response_overdue' %>
        Currently overdue a response from <%=
        public_body_link(@info_request.public_body) %>. The
        <%= link_to "response was due", about_url + "#quickly_response" %>

        on <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'not_held' %>
        <%= public_body_link(@info_request.public_body) %> did not have the information requested.
    <% elsif @status == 'rejected' %>
        The request was rejected by <%= public_body_link(@info_request.public_body) %>.
    <% elsif @status == 'successful' %>
        The request was successful.
    <% elsif @status == 'partially_successful' %>
        The request was partially successful.
    <% elsif @status == 'waiting_clarification' %>
        <% if @is_owning_user %>
            <%=h @info_request.public_body.name %> is waiting for your clarification.
            Please
            <%= link_to "send a follow up message", show_response_url(:id => @info_request.id, :incoming_message_id => @info_request.get_last_response.id) + "#show_response_followup" %>.
        <% else %>
            The request is waiting for clarification.
            If you are
            <%= user_link(@info_request.user) %>, please
            <%= link_to "sign in", signin_url(:r => request.request_uri) %> to send a follow up message.
        <% end %>
    <% elsif @status == 'requires_admin' %>
        This request has had an unusual response, and requires attention from the WhatDoTheyKnow team.
    <% else %>
        <% raise "unknown status " + @status %>
    <% end %>

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

People tracking this request

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

        <% for track_thing in @info_request.track_things %>

<%=user_link(track_thing.tracking_user)%>

        <% end %>

            <% if @existing_track %>
                You are already tracking this request.
            <% else %>
                <%= link_to "Track updates to this request", track_request_url(:url_title => @info_request.url_title) %>
                (by email or RSS)
            <% end %>

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

    <% if @info_requests_same_user_same_body.size > 0 %>

Requests from same user to same authority

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

    <% end %>

<% if @info_request.awaiting_description %>

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

<% end %>

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

<% if @info_request.awaiting_description %>

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

<% end %>

<%=@title%>

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

    <% if @info_request.awaiting_description %>
        <% if @is_owning_user %>
            Please answer the question above so we know whether the
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> useful information.
        <% else %>
            This request has an unknown status. We're waiting for
            <%= user_link(@info_request.user) %> to read
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
            and update the status.
        <% end %>
    <% elsif @status == 'waiting_response' %>
        Currently waiting for a response from <%= public_body_link(@info_request.public_body) %>,
        due by <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'waiting_response_overdue' %>
        Currently overdue a response from <%=
        public_body_link(@info_request.public_body) %>. The
        <%= link_to "response was due", about_url + "#quickly_response" %>

        on <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'not_held' %>
        <%= public_body_link(@info_request.public_body) %> did not have the information requested.
    <% elsif @status == 'rejected' %>
        The request was rejected by <%= public_body_link(@info_request.public_body) %>.
    <% elsif @status == 'successful' %>
        The request was successful.
    <% elsif @status == 'partially_successful' %>
        The request was partially successful.
    <% elsif @status == 'waiting_clarification' %>
        <% if @is_owning_user %>
            <%=h @info_request.public_body.name %> is waiting for your clarification.
            Please
            <%= link_to "send a follow up message", show_response_url(:id => @info_request.id, :incoming_message_id => @info_request.get_last_response.id) + "#show_response_followup" %>.
        <% else %>
            The request is waiting for clarification.
            If you are
            <%= user_link(@info_request.user) %>, please
            <%= link_to "sign in", signin_url(:r => request.request_uri) %> to send a follow up message.
        <% end %>
    <% elsif @status == 'requires_admin' %>
        This request has had an unusual response, and requires attention from the WhatDoTheyKnow team.
    <% else %>
        <% raise "unknown status " + @status %>
    <% end %>

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

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

People following this request

        <% for track_thing in @info_request.track_things %>

<%=user_link(track_thing.tracking_user)%>

        <% end %>

    <% else %>

Follow this request

    <% end %>

        <% if @existing_track %>
            You are already tracking this request.
        <% else %>
            <%= link_to "Track updates to this request", track_request_url(:url_title => @info_request.url_title) %>
            (by email or RSS)
        <% end %>

    <% if @info_requests_same_user_same_body.size > 0 %>

Some other requests made by
            <%= user_link(@info_request.user) %> to <%= public_body_link(@info_request.public_body) %>

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

<% if @info_request.awaiting_description %>

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

<% end %>


Create backup.rhtml

Create backup.rhtml

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/gamegenius/ggmc.git/'


Let search log entries handle email only users


Add missing file (closes #359)

Add missing file (closes #359)

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@585 820eb932-12ee-0310-9ca8-eeb645f39767

<%= form_tag({},{:id => 'configure_'+@sidebar.id.to_s, :class=>'configblock'}) %>
  <label for="configure_<%= @sidebar.id.to_s %>_maximum_tags">Maximum tags
  <input class="text" type="text" id="configure_<%= @sidebar.id.to_s %>_maximum_tags" name="configure[maximum_tags]"
         value="<%=h @sidebar.staged_config['maximum_tags'] %>"/>

<%= end_form_tag %>

<%= observe_form "configure_"+@sidebar.id.to_s,
    :url => { :action => "save_config", :id=>@sidebar.id},
    :with => 'value'
 %>

error: pathspec 'components/plugins/sidebars/tag/configure.rhtml' did not match any file(s) known to git


Change name of charity link

Change name of charity link

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

Track this authority

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

More about this authority

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

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

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

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

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

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

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

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

<%= @public_body.notes_as_html %>

<% end %>

<% if @public_body.eir_only? %>

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

<% end %>

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

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

Environmental Information Regulations requests made using this site

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

        <% else %>

Freedom of Information requests made using this site

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

        <% end %>
    <% else %>

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

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

        <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @public_body.info_requests.size) %>

Only requests made using WhatDoTheyKnow.com are shown.

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

Environmental Information Regulations requests made

    <% else %>

Freedom of Information requests made

    <% end %>

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

<% end %>

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

Track this authority

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

More about this authority

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

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

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

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

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

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

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

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

<%= @public_body.notes_as_html %>

<% end %>

<% if @public_body.eir_only? %>

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

<% end %>

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

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

Environmental Information Regulations requests made using this site

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

        <% else %>

Freedom of Information requests made using this site

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

        <% end %>
    <% else %>

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

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

        <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @public_body.info_requests.size) %>

Only requests made using WhatDoTheyKnow.com are shown.

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

Environmental Information Regulations requests made

    <% else %>

Freedom of Information requests made

    <% end %>

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

<% end %>


ActionItem109: adding buttons (still missing spellchecker)

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

<%= javascript_include_tag 'tiny_mce/tiny_mce.js' %>
<script type="text/javascript">
tinyMCE.init({
        mode : "textareas",
        theme : "advanced",
        plugins: "paste,searchreplace,print",
        theme_advanced_toolbar_location : "top",
        theme_advanced_layout_manager: 'SimpleLayout',
        theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,undo,redo,separator,formatselect,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,link,unlink,image,table,separator,cleanup,code,separator,help",
        theme_advanced_buttons2 : "copy,paste,pastetext,pasteword,search,replace,print",
        theme_advanced_buttons3 : "",
        apply_source_formatting : true,
        language: <%= language.inspect %>,
});
</script>

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


Spacing.

Spacing.

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

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

Now preview your request

Check you haven't included any personal information.

Your name, request and any responses will appear in search engines
        (details).

    <% fields_for :outgoing_message do |o| %>

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

Subject: <%=h @info_request.email_subject_request %>

<%= @outgoing_message.get_body_for_html_display %>

                <%= o.hidden_field(:body) %>

    <% end %>

Privacy note: If you want to request private information about
    yourself then click here.

    <%= f.hidden_field(:title) %>
    <%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
    <%= f.hidden_field(:tag_string) %>
    <%= hidden_field_tag(:submitted_new_request, 1) %>
    <%= hidden_field_tag(:preview, 0 ) %>
    <%= submit_tag "Re-edit this request", :name => 'reedit' %>
    <%= submit_tag "Send public " + h(@info_request.law_used_full) + " request", :name => 'submit' %>

    <% if !@info_request.tag_string.empty? %>

Tags: <%=h @info_request.tag_string %>

    <% end %>

<% end %>


Fix adding a new venue while adding a show


Remove "read blog"

Remove "read blog"

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

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

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

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

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

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


Handle the case where there is no encoded element, but a description element instead.

<% @title = _("{{site_name}} blog and tweets", :site_name => site_name) %>

<% if !@twitter_user.empty? %>

<%= _("Stay up to date") %>

     <a href="https://twitter.com/<%= @twitter_user %>"><%= _("Follow us on twitter") %>

     <a href="<%= @feed_url %>"><%= _("Subscribe to blog") %>

  <% if Configuration::twitter_widget_id %>

    <a class="twitter-timeline" data-dnt=true href="https://twitter.com/<%= Configuration::twitter_username %>" data-widget-id="<%= Configuration::twitter_widget_id %>">Tweets by @<%= Configuration::twitter_username %>

  <% end %>

<% end %>

<%=@title %>

    <% for item in @blog_items: %>

          <h2 id="<%= Time.parse(item['pubDate'][0]).to_i %>"><a href="<%=item['link']%>"><%=h item['title'] %>

<%= _("Posted on {{date}} by {{author}}", :date=>simple_date(Time.parse(item['pubDate'][0])), :author=>item['creator']) %>

            <% if item['encoded'] %>
              <%= item['encoded'] %>
            <% elsif item['description'] %>
              <%= item['description'] %>
            <% end %>

            <% if item['comments'] %>
              <a href="<%=item['comments'][0]%>"><%= _("{{number_of_comments}} comments", :number_of_comments=>item['comments'][1]) %>
            <% end %>

    <% end   %>

<% @title = _("{{site_name}} blog and tweets", :site_name => site_name) %>

<% if !@twitter_user.empty? %>

<%= _("Stay up to date") %>

     <a href="https://twitter.com/<%= @twitter_user %>"><%= _("Follow us on twitter") %>

     <a href="<%= @feed_url %>"><%= _("Subscribe to blog") %>

  <% if Configuration::twitter_widget_id %>

    <a class="twitter-timeline" data-dnt=true href="https://twitter.com/<%= Configuration::twitter_username %>" data-widget-id="<%= Configuration::twitter_widget_id %>">Tweets by @<%= Configuration::twitter_username %>

  <% end %>

<% end %>

<%=@title %>

    <% for item in @blog_items: %>

          <h2 id="<%= Time.parse(item['pubDate'][0]).to_i %>"><a href="<%=item['link']%>"><%=h item['title'] %>

<%= _("Posted on {{date}} by {{author}}", :date=>simple_date(Time.parse(item['pubDate'][0])), :author=>item['creator']) %>

<%= item['encoded'] %>

            <% if item['comments'] %>
              <a href="<%=item['comments'][0]%>"><%= _("{{number_of_comments}} comments", :number_of_comments=>item['comments'][1]) %>
            <% end %>

    <% end   %>


Sample frontpage intro sentence

Sample frontpage intro sentence

  Your Right to Know

Every citizen has the right to access information held by public bodies. By law, they have to respond. <a href="<%= help_about_url %>">Find out more about Freedom of Information.

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


Better help text on admin page

Better help text on admin page

<%= error_messages_for 'admin_user' %>

Name (will change URL name and break URLs; unlike authorities, there is no history; you will need to rebuild the search index afterwards)

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

Email (you must first validate this)

<%= text_field 'admin_user', 'email', :size => 60  %>

Admin level (none or super; this is for admin features and links which are in the site proper)

<%= text_field 'admin_user', 'admin_level', :size => 60  %>

Ban text (if not blank will stop the
    user from filing new requests, making annotations or messaging other users;
    the text is shown in public on the user's page and when they try to do a
    forbidden action; write in the second person (you); see
    <%= link_to 'banned users', '../list_banned' %> for examples)

<%= text_area 'admin_user', 'ban_text', :cols => 60, :rows => 3  %>

About me (user's own text on their profile, format like comments):

<%= text_area 'admin_user', 'about_me', :cols => 60, :rows => 3  %>

<%= error_messages_for 'admin_user' %>

Name (will change URL name and break URLs; unlike authorities, there is no history; you will need to rebuild the search index afterwards)

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

Email (you must first validate this)

<%= text_field 'admin_user', 'email', :size => 60  %>

Admin level (none or super; this is for admin features and links which are in the site proper)

<%= text_field 'admin_user', 'admin_level', :size => 60  %>

Ban text (if not blank will stop the user from filing new requests, making annotations or messaging other users; the text is used in the user/banned.rhtml template, e.g. put "Unfortunately, you have repeatedly broken our moderation policy.")

<%= text_area 'admin_user', 'ban_text', :cols => 60, :rows => 3  %>

About me (user's own text on their profile, format like comments):

<%= text_area 'admin_user', 'about_me', :cols => 60, :rows => 3  %>


mysoc-specific credits

mysoc-specific credits

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

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


Remove start blog

Remove start blog

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

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

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

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

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

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

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

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

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

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

        <% else %>

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

        <% end %>
     <% else %>

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

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

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

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

        <%
          # Cast "related" to normal string because html safe string (from rails_xss gem) and CGI::escape
          # interact badly with ':' character. Go figure! Might go away in rails 3
        %>
        <% link_to "https://twitter.com/share?" + {:url => request.url, :via => Configuration::twitter_username, :text => @info_request.title, :related => _('alaveteli_foi:The software that runs {{site_name}}', :site_name => site_name).to_str}.to_query do %>
          <%= image_tag "twitter-16.png", :alt => "twitter icon" %>
          <%= _("Tweet this request") %>
        <% end %>

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

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

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

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

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

        <% end %>

      <% end %>

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

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

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


Add product lines template for pagination on session

<%= pagination_links @products %>

  <%= _("Showing %{pcount} products of %{allpcount}") % {:pcount => @products.length, :allpcount => @session.products.count} %>

<% @products.each do |p| %>
  <div id="session-product-<%=p.id%>" class='session-product value-row' toggleedit="distribution.session_product_edit();">
    <%= render :partial => 'distribution_plugin_product/session_edit', :locals => {:p => p} %>

<% end %>
<% javascript_tag do %>
  jQuery(document).ready(function() {distribution.ajaxifyPagination("session-product-lines");});
<% end %>

error: pathspec 'plugins/distribution/views/distribution_plugin_session/_product_lines.rhtml' did not match any file(s) known to git


Only show unsubscribe all if there is more than one entry.

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

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

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

<% if @is_you && @undescribed_requests.size > 0 %>

Please go to the following requests, and let us
        know if there was information in the recent responses to them.

        <% for undescribed_request in @undescribed_requests %>

<%=request_link(undescribed_request)%>

        <% end %>

            Thanks very much - this will help others find useful stuff. We'll
            also, if you need it, give advice on what to do next about your
            requests.

<% end %>

Track this person

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

<%=@title%>

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

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

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

    <% if not @is_you %>

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

    <% end %>

    <% if @is_you and not @track_things.empty? %>

            Your <%=pluralize(@track_things.size, "email subscription") %>
            <% if @track_things_grouped.size == 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(@track_things[0].track_type)%>
                        <%= hidden_field_tag 'track_type', @track_things[0].track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <% if @track_things.size > 1 %>
                            <%= submit_tag "unsubscribe all" %>
                        <% end %>

                <% end %>
            <% end %>

        <% for track_type, track_things in @track_things_grouped %>
            <% if @track_things_grouped.size > 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(track_type)%>
                        <%= hidden_field_tag 'track_type', track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <% if track_things.size > 1 %>
                            <%= submit_tag "unsubscribe all" %>
                        <% end %>

                <% end %>
            <% end %>

            <% for track_thing in track_things %>

                    <% form_tag :controller => 'track', :action => 'update', :track_id => track_thing.id do %>

                            <%= track_thing.params[:list_description] %>
                            <%= hidden_field_tag 'track_medium', "delete", { :id => 'track_medium_' + track_thing.id.to_s } %>
                            <%= hidden_field_tag 'r', request.request_uri, { :id => 'r_' + track_thing.id.to_s }  %>
                            <%= submit_tag "unsubscribe" %>

                    <% end %>

            <% end %>

        <% end %>
    <% end %>

    <% if !@xapian_requests.nil? %>
        <% if @xapian_requests.results.empty? %>
            <% if @page == 1 %>

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

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

            <% end %>
        <% else %>

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

                <%= @page_desc %>

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

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.info_requests.size) %>
        <% end %>
    <% else %>

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

The search index is currently offline, so we can't show the Freedom of Information requests this person has made.

    <% end %>

    <% if !@xapian_comments.nil? %>
        <% if @xapian_comments.results.empty? %>
            <% if @page == 1 %>

<%= @is_you ? 'Your' : 'This person\'s' %> annotations

None made.

            <% end %>
        <% else %>

                <%= @is_you ? 'Your ' : "This person's " %>
                <%=pluralize(@display_user.visible_comments.size, "annotation") %>

                <%= @page_desc %>

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

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.visible_comments.size) %>
        <% end %>
    <% end %>

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

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

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

<% if @is_you && @undescribed_requests.size > 0 %>

Please go to the following requests, and let us
        know if there was information in the recent responses to them.

        <% for undescribed_request in @undescribed_requests %>

<%=request_link(undescribed_request)%>

        <% end %>

            Thanks very much - this will help others find useful stuff. We'll
            also, if you need it, give advice on what to do next about your
            requests.

<% end %>

Track this person

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

<%=@title%>

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

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

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

    <% if not @is_you %>

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

    <% end %>

    <% if @is_you and not @track_things.empty? %>

            Your <%=pluralize(@track_things.size, "email subscription") %>
            <% if @track_things_grouped.size == 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(@track_things[0].track_type)%>
                        <%= hidden_field_tag 'track_type', @track_things[0].track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <%= submit_tag "unsubscribe all" %>

                <% end %>
            <% end %>

        <% for track_type, track_things in @track_things_grouped %>
            <% if @track_things_grouped.size > 1 %>
                <% form_tag :controller => 'track', :action => 'delete_all_type' do %>

                        <%=TrackThing.track_type_description(track_type)%>
                        <%= hidden_field_tag 'track_type', track_type %>
                        <%= hidden_field_tag 'user', @display_user.id %>
                        <%= hidden_field_tag 'r', request.request_uri %>
                        <%= submit_tag "unsubscribe all" %>

                <% end %>
            <% end %>

            <% for track_thing in track_things %>

                    <% form_tag :controller => 'track', :action => 'update', :track_id => track_thing.id do %>

                            <%= track_thing.params[:list_description] %>
                            <%= hidden_field_tag 'track_medium', "delete", { :id => 'track_medium_' + track_thing.id.to_s } %>
                            <%= hidden_field_tag 'r', request.request_uri, { :id => 'r_' + track_thing.id.to_s }  %>
                            <%= submit_tag "unsubscribe" %>

                    <% end %>

            <% end %>

        <% end %>
    <% end %>

    <% if !@xapian_requests.nil? %>
        <% if @xapian_requests.results.empty? %>
            <% if @page == 1 %>

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

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

            <% end %>
        <% else %>

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

                <%= @page_desc %>

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

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.info_requests.size) %>
        <% end %>
    <% else %>

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

The search index is currently offline, so we can't show the Freedom of Information requests this person has made.

    <% end %>

    <% if !@xapian_comments.nil? %>
        <% if @xapian_comments.results.empty? %>
            <% if @page == 1 %>

<%= @is_you ? 'Your' : 'This person\'s' %> annotations

None made.

            <% end %>
        <% else %>

                <%= @is_you ? 'Your ' : "This person's " %>
                <%=pluralize(@display_user.visible_comments.size, "annotation") %>

                <%= @page_desc %>

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

            <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @display_user.visible_comments.size) %>
        <% end %>
    <% end %>


added dummy page for notices

added dummy page for notices

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


Add some notes about the contexts in which this fragment for translation will be used. N.B. Any comment before a translated string that starts with will be included in the .po files (and visible under the 'Details' heading for the string in Transifex), so we should use these comments liberally to help translators understand the context in which text appears. In the longer term, we should move to using whole sentences rather than fragments - the effects of context will vary across languages, and what will work in English as an independent phrase will require sentence context in another language.

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

<%= _('Request an internal review from {{person_or_body}}', :person_or_body => name_for_followup) %>

    <% elsif 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_url(: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_url(:id => @info_request.id, :incoming_message_id => nil)) %>

       <% end %>
      <% else %>

<%= link_to name, show_response_url(: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_url(: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 @internal_review %>

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

        <% end %>

    <%= _('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)) %>
            (<%= raw(_('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') %> (<%= raw(_('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 @internal_review %>
                <%= hidden_field_tag "outgoing_message[what_doing]", "internal_review" %>
            <% else %>

<%= _('What are you doing?') %>

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

                <% else %>

                <% end %>

                        <%= radio_button "outgoing_message", "what_doing", "internal_review", :id => "internal_review" %>
                        <%= _('I am requesting an internal review') %>
            <%= raw(_('what\'s that?') % ["/help/unhappy"]) %>

                        <%= radio_button "outgoing_message", "what_doing", "normal_sort", :id => "sort_normal" %>
                        <%= _('Anything else, such as clarifying, prompting, thanking') %>

            <% end %>

            <% if @internal_review %>

<%= _('Edit and add more details to the message above,
                explaining why you are dissatisfied with their response.') %>

            <% end %>

                <%= hidden_field_tag 'submitted_followup', 1 %>
                <%= hidden_field_tag(:preview, 1 ) %>
                <% if @internal_review_pass_on %>
                    <%= hidden_field_tag(:internal_review, 1 ) %>
                <% end %>
                <%= 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 %>

  <% if (incoming_message.nil? || !incoming_message.valid_to_reply_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 @internal_review %>

<%= _('Request an internal review from {{person_or_body}}', :person_or_body => name_for_followup) %>

    <% elsif 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_url(: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_url(:id => @info_request.id, :incoming_message_id => nil)) %>

       <% end %>
      <% else %>

<%= link_to name, show_response_url(: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_url(: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 @internal_review %>

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

        <% end %>

		<%= _('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)) %>
            (<%= raw(_('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') %> (<%= raw(_('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 @internal_review %>
                <%= hidden_field_tag "outgoing_message[what_doing]", "internal_review" %>
            <% else %>

<%= _('What are you doing?') %>

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

                <% else %>

                <% end %>

                        <%= radio_button "outgoing_message", "what_doing", "internal_review", :id => "internal_review" %>
                        <%= _('I am requesting an internal review') %>
						<%= raw(_('what\'s that?') % ["/help/unhappy"]) %>

                        <%= radio_button "outgoing_message", "what_doing", "normal_sort", :id => "sort_normal" %>
                        <%= _('Anything else, such as clarifying, prompting, thanking') %>

            <% end %>

            <% if @internal_review %>

<%= _('Edit and add more details to the message above,
                explaining why you are dissatisfied with their response.') %>

            <% end %>

                <%= hidden_field_tag 'submitted_followup', 1 %>
                <%= hidden_field_tag(:preview, 1 ) %>
                <% if @internal_review_pass_on %>
                    <%= hidden_field_tag(:internal_review, 1 ) %>
                <% end %>
                <%= 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 %>


Note on search index and renaming someone.

<%= error_messages_for 'admin_user' %>

Name (will change URL name and break URLs; unlike authorities, there is no history; you will need to rebuild the search index afterwards)

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

Email (you must first validate this)

<%= text_field 'admin_user', 'email', :size => 60  %>

Admin level (none or super; this is for admin features and links which are in the site proper)

<%= text_field 'admin_user', 'admin_level', :size => 60  %>

<%= error_messages_for 'admin_user' %>

Name (will change URL name and break URLs; unlike authorities, there is no history)

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

Email (you must first validate this)

<%= text_field 'admin_user', 'email', :size => 60  %>

Admin level (none or super; this is for admin features and links which are in the site proper)

<%= text_field 'admin_user', 'admin_level', :size => 60  %>


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

    <% if flash[:notice] %>

<%= flash[:notice]%>

    <% end %>

        精算日
        精算データ名
        精算対象口座
        対象取引数
        精算額
        登録日時
        詳細

      <% for s in @settlements %>
	    <% unless s.result_entry %>

		  請求(ID:<%= s.id%>、「<%= s.name %>」、相手先：<%= s.account ? s.account.name : '？' %>)のデータが破損しています。精算取引がありません。管理者に連絡してください。
          <%= link_to '詳細', :action => 'view', :id => s.id %>

		<% else %>

          <%= format_date s.result_entry.deal.date %>
          <%= s.name %>
          <%= s.account.name %>
          <%= s.target_entries.size %>
          <%= number_with_delimiter s.target_sum.abs %>
          <%= format_datetime s.created_at %>
          <%= link_to '詳細', :action => 'view', :id => s.id %>

		<% end %>
      <% end %>

    <% if flash[:notice] %>

<%= flash[:notice]%>

    <% end %>

        精算日
        精算データ名
        精算対象口座
        対象取引数
        精算額
        登録日時
        詳細

      <% for s in @settlements %>
	    <% unless s.result_entry %>

		  請求(ID:<%= s.id%>、「<%= s.name %>」、相手先：<%= s.account ? s.account.name : '？' %>)のデータが破損しています。精算取引がありません。管理者に連絡してください。

		<% else %>

          <%= format_date s.result_entry.deal.date %>
          <%= s.name %>
          <%= s.account.name %>
          <%= s.target_entries.size %>
          <%= number_with_delimiter s.target_sum.abs %>
          <%= format_datetime s.created_at %>
          <%= link_to '詳細', :action => 'view', :id => s.id %>

		<% end %>
      <% end %>


Fix XSS bug with comment author.  Admin pages are already clean.  (closes #307)

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@521 820eb932-12ee-0310-9ca8-eeb645f39767

<li class="graybox" id="comment-<%= comment.id %>" <%= 'style="display:none"' if controller.request.xhr? %><%= onhover_show_admin_tools(:comment, comment.id) %>>
  <%= admin_tools_for comment %>
  <a name="comment-<%= comment.id %>">
  <%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url) %>  said <%= distance_of_time_in_words @article.created_at, comment.created_at %> later:

  <%= comment.body_html %>

<li class="graybox" id="comment-<%= comment.id %>" <%= 'style="display:none"' if controller.request.xhr? %><%= onhover_show_admin_tools(:comment, comment.id) %>>
  <%= admin_tools_for comment %>
  <a name="comment-<%= comment.id %>">
  <%= (comment.url.blank?) ? comment.author : link_to(comment.author, comment.url) %>  said <%= distance_of_time_in_words @article.created_at, comment.created_at %> later:

  <%= comment.body_html %>


forgot edit_layout too!

forgot edit_layout too!

<% @title_box = capture do -%>

<%= 'Edit Layout'.t %>

<% end %>

<%- form_tag(:controller => '/group', :action => 'edit_layout', :id => @group) do -%>

  <%= select_tag ("section1", options_for_select(@widgets.map {|w| [w,w]}, @group.layout('section1'))) %>

  <%= select_tag ("section2", options_for_select(@widgets.map {|w| [w,w]}, @group.layout('section2'))) %>

  <%= select_tag ("section3", options_for_select(@widgets.map {|w| [w,w]}, @group.layout('section3'))) %>

  <%= select_tag ("section4", options_for_select(@widgets.map {|w| [w,w]}, @group.layout('section4'))) %>

  <input type="submit">
<% end %>

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


Fixed an issue with being unable to delete articles from admin/content

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1250 820eb932-12ee-0310-9ca8-eeb645f39767

<% @page_heading = 'Articles' %>

  <% content_for('tasks') do %>
    <%= task_show "Show this article", @article.id %>
  <% end %>

Are you sure you want to delete this article ( <%=h @article.title -%> )?

  <%= start_form_tag :controller => '/admin/content', :action => 'destroy' %>
  <%= hidden_field_tag "id", @article.id %>
  <%= confirm_delete("Delete this article") %>
  <%= end_form_tag %>

<% @page_heading = 'Articles' %>

  <% content_for('tasks') do %>
    <%= task_show "Show this article", @article.id %>
  <% end %>

Are you sure you want to delete this article ( <%=h @article.title -%> )?

  <%= start_form_tag :controller => '/admin/content', :action => 'destroy' %>
  <%= hidden_field "article", "id" %>
  <%= confirm_delete("Delete this article") %>
  <%= end_form_tag %>


Adding search form back...

Adding search form back...

  <% form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.explode_path : [] ) },
                 :method => 'get', :class => 'search_form' ) do %>

    <%= hidden_field_tag :display, params[:display] %>
    <%= hidden_field_tag :filter, params[:filter] %>

    <% params_uri = CGI::unescape(request.request_uri) %>
    <% if params_uri.index('?') %>
      <% params_uri[(params_uri.index('?')+1)..-1].to_s.split("&").each do |part| %>
        <% if part.start_with? "facet" %>
          <% name_value = part.split("=") %>
          <%= hidden_field_tag name_value[0], name_value[1] %>
        <% end %>
      <% end %>
    <% end %>

        <%= text_field_tag 'query', @query, :id => 'search-input', :size => 50 %>
        <%= javascript_tag "jQuery('#search-input').attr('title', \"#{hint}\").hint()" if defined?(hint) %>

      <%= submit_button(:search, _('Search')) %>

  <% end %>

  <% if @empty_query %>
    <% hint = environment.search_hints[@asset] %>
    <% if hint and !hint.blank? %>

<%= hint %>

    <% end %>
  <% end %>

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


filtering create list; project.defects view

Defects

      Phase
      <% to_statuses = Status.find_all_by_type_name_and_enabled('TestObservation', true, :order => 'sequence')
        to_statuses.each do |s| %>
          <%= s.value %>
      <% end %>
      Total

    <% column_total = Hash.new
       row_total = 0
       table_total = 0
       @defect_counts.each_pair do |milestone, h| %>

        <%= link_to_item milestone unless milestone.nil? %>
        <% to_statuses.each do |s| %>
           <%= h[s.id] %>
          <% column_total[s.id] = (column_total[s.id] || 0) + (h[s.id] || 0) %>
          <% row_total = row_total + (h[s.id] || 0) %>
        <% end %>
        <%= row_total %>
        <% table_total = table_total + row_total %>
        <% row_total = 0 %>

    <% end %>

      Total
      <% to_statuses.each do |s| %>
         <%= column_total[s.id] %>
      <% end %>
      <%= table_total %>

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


Forgot to add timeline template.

Forgot to add timeline template.

<% @title = "Timeline" %>

<%=h @events_title%>

Week
| Month
| All time

<% last_date = nil %>
<% for event in @events %>
    <% if last_date != event.created_at.to_date %>
        <% if last_date.nil? %>

        <% end %>

<%= simple_date(event.created_at) %>

    <% else %>

    <% end %>
    <% last_date = event.created_at.to_date %>

    '<%= link_to h(event.info_request.title), main_url(request_url(event.info_request)) %>'
    <% if event.event_type == 'edit' %>
        was edited by administrator <%=h event.params[:editor] %>.
        <% for p in ['title', 'prominence', 'described_state', 'awaiting_description']
                if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                    %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                end
           end
        %>
    <% elsif event.event_type == 'edit_outgoing' %>
        <% outgoing_messages = OutgoingMessage.find(:all, event.params[:outgoing_message_id].to_i) %>
        had outgoing message edited by administrator <%=h event.params[:editor] %>.
        <% if outgoing_messages.size > 0 %>
            <% outgoing_message = outgoing_messages[0] %>
            <% for p in ['body']
                    if event.params[p.to_sym] != event.params[('old_'+p).to_sym]
                        %> Changed <%=p%> from '<%=h event.params[('old_'+p).to_sym]%>' to '<%=h event.params[p.to_sym] %>'. <%
                    end
               end
            %>
        <% else %>
            Missing outgoing message, internal error.
        <% end %>
    <% elsif event.event_type == 'response' %>
        <% incoming_message = event.incoming_message %>
        received
        <%= link_to 'a response',
            main_url(show_response_url(:id => incoming_message.info_request.id, :incoming_message_id => incoming_message.id, :only_path => true)) %>

        from <%=h event.info_request.public_body.name %>.
    <% elsif event.event_type == 'sent' %>
        was initially sent to <%=h event.params[:email]%> at <%=h event.info_request.public_body.name %>.
    <% elsif event.event_type == 'resent' %>
        had the request resent to <%=h event.params[:email]%> at <%=h event.info_request.public_body.name %>.
    <% elsif event.event_type == 'followup_sent' %>
        had a follow up message sent to <%=h event.info_request.public_body.name %>.
    <% else %>
        had '<%=event.event_type%>' done to it, parameters <%=h event.params_yaml%>.
    <% end %>
<% end %>
<% if not @events.empty? %>

<% end %>

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


[ClockingIT @ Highlight chat menu when chatting]

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