Should have been part of the previous checkin

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <%= auto_discovery_link_tag(:rss, {:controller => 'observer', :action  =>  'rss'}, {:title => :app_rss.l}) %>
  <title><%= :app_title.l %>: <%= if @title.nil? then controller.action_name else @title end %></title>
  <%= css = nil
	if CSS.member?(controller.action_name)
		css = controller.action_name
	else
		unless session['user'].nil?
        	css = session['user'].theme
		end
	end
	unless CSS.member?(css)
		css = CSS[rand(CSS.length)]
	end
	stylesheet_link_tag 'general', css
  %>
  <%= "<link rel=\"SHORTCUT ICON\" href=\"#{DOMAIN}/images/favicon.ico\" />"%>

		<%= @page_title || :app_title.l %>

								<%= link_to(lnbsp(:app_intro), :controller => 'observer',
								            :action => 'intro') %>

								<%= link_to(lnbsp(:app_how_to_use),
								            :controller => 'observer',
								            :action => 'how_to_use') %>

            					<%= link_to(lnbsp(:app_send_a_comment), :controller => 'observer',
            								:action => 'ask_webmaster_question') %>

								<%= link_to(lnbsp(:app_news), :controller => 'observer',
								            :action => 'news') %>

								<%= link_to(lnbsp(:app_latest_changes),
								            :controller => 'observer',
								            :action => 'list_rss_logs') %>

								<%= link_to(lnbsp(:app_index_a_z), :controller => 'observer',
								                          :action => 'observation_index') %>

								<%= lnbsp(:app_observations_left) %>:

								  <%= link_to(lnbsp(:app_create_observation),
								                        :controller => 'observer',
								                        :action => 'create_observation')
								                 %>

								  <%= link_to(lnbsp(:app_sort_by_date_obs),
								                        :controller => 'observer',
								                        :action => 'list_observations') %>

								  <%= link_to(lnbsp(:app_sort_by_name),
								                        :controller => 'observer',
								                        :action => 'observations_by_name')
								                 %>

								<%= lnbsp(:app_species_list) %>:

								  <%= link_to(lnbsp(:app_create_list),
								                        :controller => 'observer',
								                        :action => 'create_species_list')
								                 %>

								  <%= link_to(lnbsp(:app_sort_by_date_spl),
								                        :controller => 'observer',
								                        :action => 'list_species_lists')
								                 %>

								  <%= link_to(lnbsp(:app_sort_by_title),
								                        :controller => 'observer',
								                        :action => 'species_lists_by_title')
								                        %>

								<%= link_to(lnbsp(:app_newest_images), :controller => 'observer',
								            :action => 'list_images') %>

								<%= link_to(lnbsp(:app_comments), :controller => 'observer',
								            :action => 'list_comments') %>

                                <%= link_to(lnbsp(:app_contributors), :controller => 'observer',
                                            :action => 'users_by_contribution') %>

                                <%= link_to(lnbsp(:app_site_stats), :controller => 'observer',
                                            :action => 'show_site_stats') %>

								<% if session['user'].nil? %>
								<%= lnbsp(:app_account) %>:

								  <%= link_to(lnbsp(:app_login), :controller => 'account',
								                        :action => 'login') %>

								  <%= link_to(lnbsp(:app_create_account),
								                        :controller => 'account',
														:action => 'signup') %>
								<% else %>
								<%= lnbsp(:app_current_user) %>:

								  <%= h(session['user'].login) %>

								  <%= link_to(lnbsp(:app_comments_for_you),
								                        :controller => 'observer',
								                        :action => 'show_comments_for_user',
								                        :id => session['user']) %>

								  <%= link_to(lnbsp(:app_your_observations),
								                        :controller => 'observer',
								                        :action => 'show_user_observations',
								                        :id => session['user']) %>

                                  <%= link_to(lnbsp(:app_your_summary),
                                                        :controller => 'observer',
                                                        :action => 'show_user',
                                                        :id => session['user']) %>

								  <%= link_to(lnbsp(:app_preferences),
								                        :controller => 'account',
								                        :action => 'prefs') %>

								  <%= lnbsp(:app_join_mailing_list)%>

								  <%= link_to(lnbsp(:app_logout),
								                        :controller => 'account',
								                        :action => 'logout_user') %>
									<% if session['user'].id == 0 %>

										Admin:

										  <%= link_to(lnbsp(:app_users),
										                        :controller => 'observer',
										                        :action => 'users_by_name') %>

										  <%= link_to(lnbsp(:app_email_all_users),
										                        :controller => 'observer',
										                        :action => 'email_features') %>

									<% end %>
								<% end %>

									<%= link_to(lnbsp(:app_colors_from) % css,
												:controller => 'observer', :action => 'color_themes') %>

									<%= lnbsp(:app_powered_by) %>:

									Ruby on Rails

									<%= lnbsp(:app_preferred_browser) %>:

									FireFox
									<% if @invalid.nil? %>

                                    <% end %>

            		<%
            		if @search.nil?
            		    pattern = session["pattern"]
            		else
            		    pattern = @search.pattern
            		end
            		form_tag(:action => 'pattern_search',
            		         :controller => 'observer', :id => @comment) do %>
                      <%= :app_find.l %>: <%= text_field("search", "pattern", :size => 50, :value => pattern)%>
                      <%= submit_tag :app_observations_find.l %>
                      <%= submit_tag :app_images_find.l %>
                      <%= submit_tag :app_names_find.l %>
                    <% end -%>
                    <% if flash[:notice] %>
					  <%= flash[:notice] %>

					<% end %>
					<%= @content_for_layout %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  <%= auto_discovery_link_tag(:rss, {:controller => 'observer', :action  =>  'rss'}, {:title => 'Mushroom Observer RSS'}) %>
  <title><%= :app_title.l %>: <%= if @title.nil? then controller.action_name else @title end %></title>
  <%= css = nil
	if CSS.member?(controller.action_name)
		css = controller.action_name
	else
		unless session['user'].nil?
        	css = session['user'].theme
		end
	end
	unless CSS.member?(css)
		css = CSS[rand(CSS.length)]
	end
	stylesheet_link_tag 'general', css
  %>
  <%= "<link rel=\"SHORTCUT ICON\" href=\"#{DOMAIN}/images/favicon.ico\" />"%>

		<%= @page_title || :app_title.l %>

								<%= link_to(lnbsp(:app_intro), :controller => 'observer',
								            :action => 'intro') %>

								<%= link_to(lnbsp(:app_how_to_use),
								            :controller => 'observer',
								            :action => 'how_to_use') %>

            					<%= link_to(lnbsp(:app_send_a_comment), :controller => 'observer',
            								:action => 'ask_webmaster_question') %>

								<%= link_to(lnbsp(:app_news), :controller => 'observer',
								            :action => 'news') %>

								<%= link_to(lnbsp(:app_latest_changes),
								            :controller => 'observer',
								            :action => 'list_rss_logs') %>

								<%= link_to(lnbsp(:app_index_a_z), :controller => 'observer',
								                          :action => 'observation_index') %>

								<%= lnbsp(:app_observations_left) %>:

								  <%= link_to(lnbsp(:app_create_observation),
								                        :controller => 'observer',
								                        :action => 'create_observation')
								                 %>

								  <%= link_to(lnbsp(:app_sort_by_date_obs),
								                        :controller => 'observer',
								                        :action => 'list_observations') %>

								  <%= link_to(lnbsp(:app_sort_by_name),
								                        :controller => 'observer',
								                        :action => 'observations_by_name')
								                 %>

								<%= lnbsp(:app_species_list) %>:

								  <%= link_to(lnbsp(:app_create_list),
								                        :controller => 'observer',
								                        :action => 'create_species_list')
								                 %>

								  <%= link_to(lnbsp(:app_sort_by_date_spl),
								                        :controller => 'observer',
								                        :action => 'list_species_lists')
								                 %>

								  <%= link_to(lnbsp(:app_sort_by_title),
								                        :controller => 'observer',
								                        :action => 'species_lists_by_title')
								                        %>

								<%= link_to(lnbsp(:app_newest_images), :controller => 'observer',
								            :action => 'list_images') %>

								<%= link_to(lnbsp(:app_comments), :controller => 'observer',
								            :action => 'list_comments') %>

                                <%= link_to(lnbsp(:app_contributors), :controller => 'observer',
                                            :action => 'users_by_contribution') %>

                                <%= link_to(lnbsp(:app_site_stats), :controller => 'observer',
                                            :action => 'show_site_stats') %>

								<% if session['user'].nil? %>
								<%= lnbsp(:app_account) %>:

								  <%= link_to(lnbsp(:app_login), :controller => 'account',
								                        :action => 'login') %>

								  <%= link_to(lnbsp(:app_create_account),
								                        :controller => 'account',
														:action => 'signup') %>
								<% else %>
								<%= lnbsp(:app_current_user) %>:

								  <%= h(session['user'].login) %>

								  <%= link_to(lnbsp(:app_comments_for_you),
								                        :controller => 'observer',
								                        :action => 'show_comments_for_user',
								                        :id => session['user']) %>

								  <%= link_to(lnbsp(:app_your_observations),
								                        :controller => 'observer',
								                        :action => 'show_user_observations',
								                        :id => session['user']) %>

                                  <%= link_to(lnbsp(:app_your_summary),
                                                        :controller => 'observer',
                                                        :action => 'show_user',
                                                        :id => session['user']) %>

								  <%= link_to(lnbsp(:app_preferences),
								                        :controller => 'account',
								                        :action => 'prefs') %>

								  Join Mailing List

								  <%= link_to(lnbsp(:app_logout),
								                        :controller => 'account',
								                        :action => 'logout_user') %>
									<% if session['user'].id == 0 %>

										Admin:

										  <%= link_to(lnbsp(:app_users),
										                        :controller => 'observer',
										                        :action => 'users_by_name') %>

										  <%= link_to(lnbsp(:app_email_features),
										                        :controller => 'observer',
										                        :action => 'email_features') %>

									<% end %>
								<% end %>

									<%= link_to(lnbsp(:app_colors_from) % css,
												:controller => 'observer', :action => 'color_themes') %>

									<%= lnbsp(:app_powered_by) %>:

									Ruby on Rails

									<%= lnbsp(:app_preferred_browser) %>:

									FireFox
									<% if @invalid.nil? %>

                                    <% end %>

            		<%
            		if @search.nil?
            		    pattern = session["pattern"]
            		else
            		    pattern = @search.pattern
            		end
            		form_tag(:action => 'pattern_search',
            		         :controller => 'observer', :id => @comment) do %>
                      <%= :app_find.l %>: <%= text_field("search", "pattern", :size => 50, :value => pattern)%>
                      <%= submit_tag :app_observations_find.l %>
                      <%= submit_tag :app_images_find.l %>
                      <%= submit_tag :app_names_find.l %>
                    <% end -%>
                    <% if flash[:notice] %>
					  <%= flash[:notice] %>

					<% end %>
					<%= @content_for_layout %>


Rearranged menu to be a little clearer

Rearranged menu to be a little clearer

git-svn-id: fff0e24cb22af42ca7d192cf3063f87aa8e42ffe@1293 3db89d08-1e44-db11-a2a8-0014220fd31b

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <title>
      <% unless @page_title == 'index' %><%= h(@page_title) %> -<% end %>
      <%= @project ? h(@project.name) : h(Policy.lookup(:site_name)) %>
    </title>

    <%= stylesheet_link_tag('style') %>
    <%= stylesheet_link_tag('tagging') %>
    <%= stylesheet_link_tag('stickies') %>
    <%= javascript_include_tag(:defaults) %>
    <%= javascript_include_tag(@page_javascript) if @page_javascript %>

    <% if @project and !(pcss = @project.policies.lookup(:project_stylesheet).value).blank? %>
      <%= stylesheet_link_tag(pcss) %>
    <% end %>

    <% if @layout_feed %>
      <% @layout_feed.update(:controller => 'feed', :only_path => false) %>
      <%= auto_discovery_link_tag(:rss,  url_for(@layout_feed.merge(:format => 'rss'))) %>
      <%= auto_discovery_link_tag(:atom, url_for(@layout_feed.merge(:format => 'atom'))) %>
    <% end %>

  <body class="<%= @controller.controller_name %>">

          <% render_rounded_line do %>
            <% if logged_in? %>
              <%= link_to(_('Home'), home_url) %> |
              <%= link_to(_('%{user_name}\'s Dashboard') % { :user_name => h(current_user.first_name) }, :controller => '/dashboard') %> |

              <% if current_user.is_root? %>
                <%= link_to(_('Admin'), :controller => '/admin') %> |
              <% end %>

              <%= link_to(_('Search'), search_url) %> |
              <%= help_link %> |
              <%= link_to_function(_('Logout')) {|p| p << visual_effect(:toggle_slide, :confirm_logout)} %>
            <% else %>
              <%= link_to(_('Home'), home_url) %> |
              <%= link_to(_('Search'), search_url) %> |
              <%= help_link %> |
              <%= link_to(_('Login'), :controller => '/account', :action => 'login') %>
            <% end %>
          <% end %>

          <% if logged_in? %>
            <%= generate_fast_form(:id => 'confirm_logout',
                                   :label => _("Are you sure you want to logout?"),
                                   :button => _('OK'), :cancel => true, :field => :none,
                                   :xhr => false, :url => {:controller => '/account', :action => 'logout'}) %>
          <% end %>

        <% if @project %>

<%= link_to(h(@project.name), project_url(:project => @project)) %>

<%= h(@project.summary) %>

<%= render(:partial => 'layouts/project_menu') %>

        <% else %>

<%= link_to(h(Policy.lookup(:site_name)), home_url) %>

<%= h(Policy.lookup(:site_description)) %>

        <% end %>

          <%= render(:partial => 'layouts/stickies') %>
          <%= yield %>

Powered by <a href="<%= APP_HOME %>"><%= h(APP_NAME) %> from pmade inc.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

    <title>
      <% unless @page_title == 'index' %><%= h(@page_title) %> -<% end %>
      <%= @project ? h(@project.name) : h(Policy.lookup(:site_name)) %>
    </title>

    <%= stylesheet_link_tag('style') %>
    <%= stylesheet_link_tag('tagging') %>
    <%= stylesheet_link_tag('stickies') %>
    <%= javascript_include_tag(:defaults) %>
    <%= javascript_include_tag(@page_javascript) if @page_javascript %>

    <% if @project and !(pcss = @project.policies.lookup(:project_stylesheet).value).blank? %>
      <%= stylesheet_link_tag(pcss) %>
    <% end %>

    <% if @layout_feed %>
      <% @layout_feed.update(:controller => 'feed', :only_path => false) %>
      <%= auto_discovery_link_tag(:rss,  url_for(@layout_feed.merge(:format => 'rss'))) %>
      <%= auto_discovery_link_tag(:atom, url_for(@layout_feed.merge(:format => 'atom'))) %>
    <% end %>

  <body class="<%= @controller.controller_name %>">

          <% render_rounded_line do %>
            <% if logged_in? %>
              <%= _('Welcome %{user_name}') % { :user_name => h(current_user.first_name) } %> |
              <%= link_to(_('Dashboard'), :controller => '/dashboard') %> |
              <%= link_to(_('Home'), home_url) %> |

              <% if current_user.is_root? %>
                <%= link_to(_('Admin'), :controller => '/admin') %> |
              <% end %>

              <%= link_to(_('Search'), search_url) %> |
              <%= help_link %> |
              <%= link_to_function(_('Logout')) {|p| p << visual_effect(:toggle_slide, :confirm_logout)} %>
            <% else %>
              <%= link_to(_('Home'), home_url) %> |
              <%= link_to(_('Search'), search_url) %> |
              <%= help_link %> |
              <%= link_to(_('Login'), :controller => '/account', :action => 'login') %>
            <% end %>
          <% end %>

          <% if logged_in? %>
            <%= generate_fast_form(:id => 'confirm_logout',
                                   :label => _("Are you sure you want to logout?"),
                                   :button => _('OK'), :cancel => true, :field => :none,
                                   :xhr => false, :url => {:controller => '/account', :action => 'logout'}) %>
          <% end %>

        <% if @project %>

<%= link_to(h(@project.name), project_url(:project => @project)) %>

<%= h(@project.summary) %>

<%= render(:partial => 'layouts/project_menu') %>

        <% else %>

<%= link_to(h(Policy.lookup(:site_name)), home_url) %>

<%= h(Policy.lookup(:site_description)) %>

        <% end %>

          <%= render(:partial => 'layouts/stickies') %>
          <%= yield %>

Powered by <a href="<%= APP_HOME %>"><%= h(APP_NAME) %> from pmade inc.


ActionItem515: spread points in same location of google map

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

<%= content_tag('script', '', :src => GoogleMaps.api_url, :type => 'text/javascript') %>


Select only one tab in topnav at a time

Select only one tab in topnav at a time

        <li class="<%= 'selected' if params[:controller] == 'help' and params[:action] != 'requesting'%>"><%= link_to _("Quiénes somos"), help_about_path %>

        <li class="<%= 'selected' if params[:controller] == 'help' and params[:action] == 'requesting'%>"><%= link_to _("Guía para solicitantes"), help_requesting_path %>

        <li class="<%= 'selected' if params[:controller] == 'public_body' or (params[:controller] == 'request' and !['list'].include?(params[:action])) %>"><%= link_to _("Solicitar documentos"), body_index_path, :class => 'make-request-link' %>

        <li class="<%= 'selected' if params[:controller] == 'request' and ['list'].include?(params[:action]) %>"><%= link_to _("Buscar solicitudes"), request_list_all_url %>

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

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

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

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


WDTK-89 Added 'Who can make a request?' section

<% @title = "Making requests" %>

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

<%= @title %> #

I'm not sure which authority to make my request to, how can I find out? #

It can be hard to untangle government's complicated structured, and work out
who knows the information that you want. Here are a few tips:

Browse or search <%= site_name %> looking for similar requests to yours.

When you've found an authority you think might have the information, use
the "home page" link on the right hand side of their page to check what they do
on their website.

Contact the authority by phone or email to ask if they hold the kind of
information you're after.

Don't worry excessively about getting the right authority. If you get it
wrong, they ought to advise you who to make the request to instead.

If you've got a thorny case, please contact us for help.

Who can make a request? #

Any person, of any nationality, anywhere in the world, however young or old can make a request under Federal Australian Freedom of Information (FOI).

The Freedom of Information Act simply says that "every person has a legally enforceable right to obtain access in accordance with this Act". A "person" can also be a body corporate, such as a company.

See the Attorney General's department FOI Guidelines – Fundamental principles and procedures - section 3.2 for more.

You're missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.

If you'd like to help add a whole category (new state or local government region etc.) of public authority to the site, we'd love
to hear from you too.

Why do you include some authorities that aren't formally subject to FOI?#

<%= site_name %> lets you make requests for information to a range of
organisations:

 Those formally subject to the FOI Act

 Those which voluntarily comply with the FOI Act

 Those which aren't subject to the Act but we think should be, on grounds
  such as them having significant public responsibilities.

In the last case, we're using the site to lobby for expansion of the
scope of the FOI Act. Even if an organisation is not legally obliged to respond
to an FOI request, they can still do so voluntarily.

Why must I keep my request focused?#

Please put in your request only what is needed so that someone can
easily identify what information you are asking for. Please do
not include any of the following:

arguments about your cause

statements that could defame or insult others

If you do, we may have to remove your request to avoid problems with
libel law, which is a pain for both you and us. Short, succinct messages
make it easier for authorities to be clear what information you are
requesting, which means you will get a reply more quickly.

If you want information to support an argument or campaign, Freedom of
Information is a powerful tool. Although you may not use this site to
run your campaign, we encourage you to use it to get the information you
need. We also encourage to run your campaign elsewhere - one effective
and very easy way is to <%= link_to 'start your own blog',
"http://wordpress.com/"%>. You are welcome to link to your campaign
from this site in an annotation to your request (you can make
annotations after submitting the request).

Does it cost me anything to make a request?#

Making an FOI request is nearly always free.

Authorities often include unnecessary, scary, boilerplate in
acknowledgement messages saying they "may" charge a fee. Ignore such notices.
They hardly ever will actually charge a fee.  If they do, they can only charge you if
you have specifically agreed in advance to pay.  More
    details from the Information Commissioner.

The latest version of the FOI Act (s 3(4)) makes it clear that

… functions and powers given by this Act are to be performed and exercised, as far as possible, to facilitate and promote public access to information, promptly and at the lowest reasonable cost.

Sometimes an authority will refuse your request, saying that the cost
of handling it exceeds a level that would detriment their day to day work. At this point you can refine your
request. e.g. it would be much cheaper for an authority to tell you the amount
spent on marshmallows in the past year than in the past ten years.

How quickly will I get a response? #

By law, public authorities must respond promptly to
requests.

Even if they are not prompt, in nearly all cases they must respond within
20 working days. If you had to clarify your request,
or one or two other cases, then they may have more time
(full details).

<%= site_name %> will email you if you don't get a timely response.  You can
then send the public authority a message to remind them, and tell them if they
are breaking the law.

What if I never get a response?#

There are several things you can do if you never get a response.

Sometimes there has been a genuine problem and the authority never
    received the request. It is worth telephoning the authority and politely
    checking that they received the request. It was sent to them by email.

If they have not received it, the problem is most likely due to
    "spam filters". Refer the authority to the measures in the answer
    'I can see a request on <%= site_name %>, but we never got it by email!'
    in the FOI officers section of this help.

If you're still having no luck, then you can ask for an internal review,
    and then complain to the Information Commissioner about the authority.
    Read our page 'Unhappy about the response you got?'.

What if I'm not satisfied with the response? #

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

It says I can't re-use the information I got!#

Authorities often add legal boilerplate about the
Commonwealth Copyright Adminstration, which at first glance implies you may not
be able do anything with the information. This is likely to be incorrect as the latest Statement of IP Principles for Australian Government Agencies explictly encourages reuse.

Consistent with the need for free and open re-use and adaptation, public sector
information should be licensed by agencies under the Creative Commons BY standard
as the default.

You can, of course, write articles about the information or summarise it, or
quote parts of it. We also think you should feel free to republish the
information in full, just as we do, even though in theory you might not be
allowed to do so.  See our policy on copyright.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
Freedom of Information guidelines
pages on the Information Commissioner's website.

Can I request information about myself? #

No. Requests made using <%= site_name %> are public, made under the Freedom of
Information Act, and cannot help you find information about a private
individual.

If you see that somebody has included personal information, perhaps
unwittingly, in a request, please contact us
immediately so we can remove it.

I'd like to keep my request secret! (At least until I publish my story) #

<%= site_name %> is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.

You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Can I make the same to request to lots of authorities, e.g. all departments? #

We ask you to first send a test version of your request to a few
authorities. Their responses will help you improve the wording of your request,
so that you get the best information when you send the request to all of
the authorities. There is currently no automated system for sending the request
to the other authorities, you must copy and paste it by hand.

I made a request off the site, how do I upload it to the archive?#

<%= site_name %> is an archive of requests made through the site,
and does not try to be an archive of all FOI requests. We'll never support uploading
other requests. For one thing, we wouldn't be able to verify that other
responses actually came from the authority. If this really matters to you,
you can always make the same request again via <%= site_name %>.

How do you moderate request annotations? #

Annotations on <%= site_name %> are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

Next, read about your privacy -->

<% @title = "Making requests" %>

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

<%= @title %> #

I'm not sure which authority to make my request to, how can I find out? #

It can be hard to untangle government's complicated structured, and work out
who knows the information that you want. Here are a few tips:

Browse or search <%= site_name %> looking for similar requests to yours.

When you've found an authority you think might have the information, use
the "home page" link on the right hand side of their page to check what they do
on their website.

Contact the authority by phone or email to ask if they hold the kind of
information you're after.

Don't worry excessively about getting the right authority. If you get it
wrong, they ought to advise you who to make the request to instead.

If you've got a thorny case, please contact us for help.

You're missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.

If you'd like to help add a whole category (new state or local government region etc.) of public authority to the site, we'd love
to hear from you too.

Why do you include some authorities that aren't formally subject to FOI?#

<%= site_name %> lets you make requests for information to a range of
organisations:

 Those formally subject to the FOI Act

 Those which voluntarily comply with the FOI Act

 Those which aren't subject to the Act but we think should be, on grounds
  such as them having significant public responsibilities.

In the last case, we're using the site to lobby for expansion of the
scope of the FOI Act. Even if an organisation is not legally obliged to respond
to an FOI request, they can still do so voluntarily.

Why must I keep my request focused?#

Please put in your request only what is needed so that someone can
easily identify what information you are asking for. Please do
not include any of the following:

arguments about your cause

statements that could defame or insult others

If you do, we may have to remove your request to avoid problems with
libel law, which is a pain for both you and us. Short, succinct messages
make it easier for authorities to be clear what information you are
requesting, which means you will get a reply more quickly.

If you want information to support an argument or campaign, Freedom of
Information is a powerful tool. Although you may not use this site to
run your campaign, we encourage you to use it to get the information you
need. We also encourage to run your campaign elsewhere - one effective
and very easy way is to <%= link_to 'start your own blog',
"http://wordpress.com/"%>. You are welcome to link to your campaign
from this site in an annotation to your request (you can make
annotations after submitting the request).

Does it cost me anything to make a request?#

Making an FOI request is nearly always free.

Authorities often include unnecessary, scary, boilerplate in
acknowledgement messages saying they "may" charge a fee. Ignore such notices.
They hardly ever will actually charge a fee.  If they do, they can only charge you if
you have specifically agreed in advance to pay.  More
    details from the Information Commissioner.

The latest version of the FOI Act (s 3(4)) makes it clear that

… functions and powers given by this Act are to be performed and exercised, as far as possible, to facilitate and promote public access to information, promptly and at the lowest reasonable cost.

Sometimes an authority will refuse your request, saying that the cost
of handling it exceeds a level that would detriment their day to day work. At this point you can refine your
request. e.g. it would be much cheaper for an authority to tell you the amount
spent on marshmallows in the past year than in the past ten years.

How quickly will I get a response? #

By law, public authorities must respond promptly to
requests.

Even if they are not prompt, in nearly all cases they must respond within
20 working days. If you had to clarify your request,
or one or two other cases, then they may have more time
(full details).

<%= site_name %> will email you if you don't get a timely response.  You can
then send the public authority a message to remind them, and tell them if they
are breaking the law.

What if I never get a response?#

There are several things you can do if you never get a response.

Sometimes there has been a genuine problem and the authority never
    received the request. It is worth telephoning the authority and politely
    checking that they received the request. It was sent to them by email.

If they have not received it, the problem is most likely due to
    "spam filters". Refer the authority to the measures in the answer
    'I can see a request on <%= site_name %>, but we never got it by email!'
    in the FOI officers section of this help.

If you're still having no luck, then you can ask for an internal review,
    and then complain to the Information Commissioner about the authority.
    Read our page 'Unhappy about the response you got?'.

What if I'm not satisfied with the response? #

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

It says I can't re-use the information I got!#

Authorities often add legal boilerplate about the
Commonwealth Copyright Adminstration, which at first glance implies you may not
be able do anything with the information. This is likely to be incorrect as the latest Statement of IP Principles for Australian Government Agencies explictly encourages reuse.

Consistent with the need for free and open re-use and adaptation, public sector
information should be licensed by agencies under the Creative Commons BY standard
as the default.

You can, of course, write articles about the information or summarise it, or
quote parts of it. We also think you should feel free to republish the
information in full, just as we do, even though in theory you might not be
allowed to do so.  See our policy on copyright.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
Freedom of Information guidelines
pages on the Information Commissioner's website.

Can I request information about myself? #

No. Requests made using <%= site_name %> are public, made under the Freedom of
Information Act, and cannot help you find information about a private
individual.

If you see that somebody has included personal information, perhaps
unwittingly, in a request, please contact us
immediately so we can remove it.

I'd like to keep my request secret! (At least until I publish my story) #

<%= site_name %> is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.

You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Can I make the same to request to lots of authorities, e.g. all departments? #

We ask you to first send a test version of your request to a few
authorities. Their responses will help you improve the wording of your request,
so that you get the best information when you send the request to all of
the authorities. There is currently no automated system for sending the request
to the other authorities, you must copy and paste it by hand.

I made a request off the site, how do I upload it to the archive?#

<%= site_name %> is an archive of requests made through the site,
and does not try to be an archive of all FOI requests. We'll never support uploading
other requests. For one thing, we wouldn't be able to verify that other
responses actually came from the authority. If this really matters to you,
you can always make the same request again via <%= site_name %>.

How do you moderate request annotations? #

Annotations on <%= site_name %> are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

Next, read about your privacy -->


Link to twiki.

Link to twiki.

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

      <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
      <title>WhatDoTheyKnow admin<%= @title ? ":" : "" %> <%=@title%></title>
      <%
        # Have to do explicit tag for stylesheet, to get absolute path on main server
      %>
      <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => admin_public_url(stylesheet_path('admin')) }) %>

    <%= link_to 'WhatDoTheyKnow', main_url('/') %> admin:
    <%= link_to 'Summary', admin_url('') %>
    | <%= link_to 'Timeline', admin_url('timeline') %>
    | <%= link_to 'Stats', admin_url('stats') %>
    | <%= link_to 'Debug', admin_url('debug') %>
    | <%= link_to 'Wiki', "https://secure.mysociety.org/intranet/ProductionSites/WhatDoTheyKnow/WebHome" %>
    View:
    <%= link_to 'Authorities', admin_url('body/list') %>
    | <%= link_to 'Requests', admin_url('request/list') %>
    | <%= link_to 'Users', admin_url('user/list') %>
    | <%= link_to 'Tracks', admin_url('track/list') %>

    <% if flash[:error] %>

<%= flash[:error] %>

    <% end %>

    <% if flash[:notice] %>

<%= flash[:notice] %>

    <% end %>

    <%= yield  %>

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

      <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
      <title>WhatDoTheyKnow admin<%= @title ? ":" : "" %> <%=@title%></title>
      <%
        # Have to do explicit tag for stylesheet, to get absolute path on main server
      %>
      <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => admin_public_url(stylesheet_path('admin')) }) %>

    <%= link_to 'WhatDoTheyKnow', main_url('/') %> admin:
    <%= link_to 'Summary', admin_url('') %>
    | <%= link_to 'Timeline', admin_url('timeline') %>
    | <%= link_to 'Stats', admin_url('stats') %>
    | <%= link_to 'Debug', admin_url('debug') %>
    View:
    <%= link_to 'Authorities', admin_url('body/list') %>
    | <%= link_to 'Requests', admin_url('request/list') %>
    | <%= link_to 'Users', admin_url('user/list') %>
    | <%= link_to 'Tracks', admin_url('track/list') %>

    <% if flash[:error] %>

<%= flash[:error] %>

    <% end %>

    <% if flash[:notice] %>

<%= flash[:notice] %>

    <% end %>

    <%= yield  %>


one minor cosmetic change for profile view.

<% # this partial should be rendered with a local variable, such as
   # render :partial => 'profile/show', :locals => {:profile => @user.profiles.public}
   # in case it is not,
   #profile ||= Profile.new -%>

  <%=
    [ content_tag(:strong, [h(profile.first_name), h(profile.middle_name), h(profile.last_name)].join(' ')),
      h(profile.organization),
      h(profile.place)
    ].select{|i|i.any?}.join('
')
  %>
  <%= member_since_line(profile) if profile.user %>
  <% unless profile.phone_numbers.empty? -%>
    <% profile.phone_numbers.each do |phone_number| -%>
      <div class='small_icon <%=phone_number.icon%>_16'>
        <%= I18n.t(:phone_number)%> (<%= h(I18n.t(phone_number.phone_number_type.to_sym)) %>): <%= h(phone_number.phone_number) %>

    <% end -%>
  <% end -%>
  <% unless profile.email_addresses.empty? -%>
    <% profile.email_addresses.each do |email_address| -%>
      <div class='small_icon <%=email_address.icon%>_16'>
        <%= I18n.t(:email_address)%> (<%= h(I18n.t(email_address.email_type.to_sym)) %>): <%= h(email_address.email_address) %>

    <% end -%>
  <% end -%>
  <% profile.locations.each do |location| -%>
    <div class='small_icon <%=location.icon%>_16'>
    <%= I18n.t(:location)%>:
    <%= h(location.country_name) %>

  <% end -%>
  <% unless profile.im_addresses.empty? -%>
    <% profile.im_addresses.each do |im| -%>
      <div class='small_icon <%=im.icon -%>_16'>
        <%= I18n.t(:instant_messaging) -%> (<%= h(im.im_type) %>):
        <%= im.im_address %>

    <% end -%>
  <% end -%>
  <% unless profile.websites.empty? -%>
    <% profile.websites.each do |website| -%>
      <div class='small_icon <%=website.icon -%>_16'>
        <%= I18n.t(:website) -%>:
        <a target="_blank" href="<%= website.site_url %>">
          <%= h(website.site_title.length > 0 ? website.site_title : website.site_url) %>

    <% end -%>
  <% end -%>
  <% unless profile.notes.empty? -%>
    <% profile.notes.each do |note| -%>
      <div class='small_icon <%=note.icon -%>_16'>
        <%= note.note_type ? I18n.t(note.note_type.to_sym) : I18n.t(:about_me) -%>:
        <%=h note.body %>

    <% end -%>
  <% end -%>

<% # this partial should be rendered with a local variable, such as
   # render :partial => 'profile/show', :locals => {:profile => @user.profiles.public}
   # in case it is not,
   #profile ||= Profile.new -%>

  <%=
    [ content_tag(:strong, [h(profile.first_name), h(profile.middle_name), h(profile.last_name)].join(' ')),
      h(profile.organization),
      h(profile.place)
    ].select{|i|i.any?}.join('
')
  %>

<%= I18n.t(:information) %>

  <%= member_since_line(profile) if profile.user %>
  <% unless profile.phone_numbers.empty? -%>
    <% profile.phone_numbers.each do |phone_number| -%>
      <div class='small_icon <%=phone_number.icon%>_16'>
        <%= I18n.t(:phone_number)%> (<%= h(I18n.t(phone_number.phone_number_type.to_sym)) %>): <%= h(phone_number.phone_number) %>

    <% end -%>
  <% end -%>
  <% unless profile.email_addresses.empty? -%>
    <% profile.email_addresses.each do |email_address| -%>
      <div class='small_icon <%=email_address.icon%>_16'>
        <%= I18n.t(:email_address)%> (<%= h(I18n.t(email_address.email_type.to_sym)) %>): <%= h(email_address.email_address) %>

    <% end -%>
  <% end -%>
  <% profile.locations.each do |location| -%>
    <div class='small_icon <%=location.icon%>_16'>
    <%= I18n.t(:location)%>:
    <%= h(location.country_name) %>

  <% end -%>
  <% unless profile.im_addresses.empty? -%>
    <% profile.im_addresses.each do |im| -%>
      <div class='small_icon <%=im.icon -%>_16'>
        <%= I18n.t(:instant_messaging) -%> (<%= h(im.im_type) %>):
        <%= im.im_address %>

    <% end -%>
  <% end -%>
  <% unless profile.websites.empty? -%>
    <% profile.websites.each do |website| -%>
      <div class='small_icon <%=website.icon -%>_16'>
        <%= I18n.t(:website) -%>:
        <a target="_blank" href="<%= website.site_url %>">
          <%= h(website.site_title.length > 0 ? website.site_title : website.site_url) %>

    <% end -%>
  <% end -%>
  <% unless profile.notes.empty? -%>
    <% profile.notes.each do |note| -%>
      <div class='small_icon <%=note.icon -%>_16'>
        <%= note.note_type ? I18n.t(note.note_type.to_sym) : I18n.t(:about_me) -%>:
        <%=h note.body %>

    <% end -%>
  <% end -%>


ActionItem1006: only enable paste plugin in IE

<%= javascript_include_tag 'tinymce/jscripts/tiny_mce/tiny_mce.js' %>
<script type="text/javascript">
  var myplugins = "searchreplace,print,media";
  if (tinymce.isIE) {
    // the paste plugin is only useful in Internet Explorer
    myplugins = "paste," + myplugins;
  }
tinyMCE.init({
        mode : "textareas",
        theme : "advanced",
        plugins: myplugins,
        theme_advanced_toolbar_location : "top",
        theme_advanced_layout_manager: 'SimpleLayout',
        theme_advanced_buttons1 : "print,separator,copy,paste,separator,undo,redo,separator,search,replace,separator,fontsizeselect,formatselect",
        theme_advanced_buttons2 : "bold,italic,underline,strikethrough,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,link,unlink,image,table,separator,cleanup,code",
        theme_advanced_buttons3 : "",
        paste_auto_cleanup_on_paste : true,
        paste_insert_word_content_callback : "convertWord",
        paste_use_dialog: false,
        apply_source_formatting : true,
        language: <%= tinymce_language.inspect %>
        });

function convertWord(type, content) {
  switch (type) {
    // Gets executed before the built in logic performes it's cleanups
    case "before":
      //content = content.toLowerCase(); // Some dummy logic
      break;

    // Gets executed after the built in logic performes it's cleanups
    case "after":
      content = content.replace(/<!--\s*-->/, '');
      break;
  }

  return content;
}
</script>

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

function convertWord(type, content) {
  switch (type) {
    // Gets executed before the built in logic performes it's cleanups
    case "before":
      //content = content.toLowerCase(); // Some dummy logic
      break;

    // Gets executed after the built in logic performes it's cleanups
    case "after":
      content = content.replace(/<!--\s*-->/, '');
      break;
  }

  return content;
}
</script>


Don't force view of location field

Don't force view of location field

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

  <%= display_field(_('Sex:'), profile, :sex) { |gender| { 'male' => _('Male'), 'female' => _('Female') }[gender] } %>
  <%= display_field(_('Date of birth:'), profile, :birth_date) { |date| show_date(date)  }%>
  <%= display_field _('Location:'), profile, :location %>

  <%= display_field(_('Type:'), profile, :privacy_setting, true) %>

    <%= _('Profile created at:')  %>
    <%= show_date(profile.created_at) %>

  <%= display_contact profile %>

  <% cache_timeout(profile.relationships_cache_key, 4.hours) do %>
    <%= display_work_info profile %>

      <%= _('Network')%>

      <%= __('Friends') + ':' %>
      <%= link_to  profile.friends.count, { :controller => 'profile', :action => 'friends' } %>

      <%= __('Communities') + ':' %>
      <%= link_to profile.communities.count, :controller => "profile", :action => 'communities' %>

    <% if environment.disabled?('disable_asset_enterprises') %>

        <%= __('Enterprises') + ':' %>
        <%= link_to profile.enterprises.count, :controller => "profile", :action => 'enterprises' %>

    <% end %>

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

  <% end %>

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

  <%= display_field(_('Sex:'), profile, :sex) { |gender| { 'male' => _('Male'), 'female' => _('Female') }[gender] } %>
  <%= display_field(_('Date of birth:'), profile, :birth_date) { |date| show_date(date)  }%>
  <%= display_field(_('Location:'), profile, :location, true) %>

  <%= display_field(_('Type:'), profile, :privacy_setting, true) %>

    <%= _('Profile created at:')  %>
    <%= show_date(profile.created_at) %>

  <%= display_contact profile %>

  <% cache_timeout(profile.relationships_cache_key, 4.hours) do %>
    <%= display_work_info profile %>

      <%= _('Network')%>

      <%= __('Friends') + ':' %>
      <%= link_to  profile.friends.count, { :controller => 'profile', :action => 'friends' } %>

      <%= __('Communities') + ':' %>
      <%= link_to profile.communities.count, :controller => "profile", :action => 'communities' %>

    <% if environment.disabled?('disable_asset_enterprises') %>

        <%= __('Enterprises') + ':' %>
        <%= link_to profile.enterprises.count, :controller => "profile", :action => 'enterprises' %>

    <% end %>

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

  <% end %>


fixed bug on showing emails with multiple recipients, should join as its an arra

This page shows all emails sent since the last server restart.

<% for email in @emails %>

  From: <%= email.from.join(', ') %>

  To: <%= email.to.join(', ') %>

  <% if email.header['reply-to'] %>
    Reply-To: <%= email.header['reply-to'] %>

  <% end %>
  Subject: <%= email.subject %>

  Date: <%= email.date %>

<%= email.body.gsub("\n","
") %>

<% end %>

This page shows all emails sent since the last server restart.

<% for email in @emails %>

  From: <%= email.from %>

  To: <%= email.to %>

  <% if email.header['reply-to'] %>
    Reply-To: <%= email.header['reply-to'] %>

  <% end %>
  Subject: <%= email.subject %>

  Date: <%= email.date %>

<%= email.body.gsub("\n","
") %>

<% end %>


fixed bug

fixed bug

<%#
  # this partial display a grid of little avatar boxes.
  # arguments: groups, people, side
  #
-%>
<%
  side ||= 'right'
  groups ||= nil
  people ||= nil
%>

  <% (groups || people || []).each do |e| -%>
  <%  url = group_url(:id => e, :action => 'show') if e.is_a? Group
      url = person_url(:id => e, :action => 'show') if e.is_a? User
  -%>
  <div class='iconbox <%=side%>'>
    <%= link_to avatar_for(e, 'xsmall', :class=>'iconbox'), url -%>

      <%= link_to avatar_for(e, 'small', :class=>'bigiconbox'), url -%>

        <%= link_to e.name, url %>

  <% end %>

<%#
  # this partial display a grid of little avatar boxes.
  # arguments: groups, people, side
  #
-%>
<% side ||= 'right' %>

  <% (groups || people).each do |e| -%>
  <%  url = group_url(:id => e, :action => 'show') if e.is_a? Group
      url = person_url(:id => e, :action => 'show') if e.is_a? User
  -%>
  <div class='iconbox <%=side%>'>
    <%= link_to avatar_for(e, 'xsmall', :class=>'iconbox'), url -%>

      <%= link_to avatar_for(e, 'small', :class=>'bigiconbox'), url -%>

        <%= link_to e.name, url %>

  <% end %>


Boosted number of comments shown on show_name.

git-svn-id: bc266cc4dcdee41d9588461a87969679bbc3047f@850 7a65b82a-1d14-0410-b525-e2835e71a0b4

<%
  @title = :show_name_title.t(:name => @name.display_name)
  Textile.register_name(@name)

  # Google Images | Distribution Map | Email Tracking
  new_tab_set do
    add_tab(:google_images.t,
            "http://images.google.com/images?q=#{@name.text_name}")
    if @data != []
      add_tab(:show_name_distribution_map.t, :action => 'map', :id => @name.id,
              :params => query_params)
    end
    add_tab(:show_name_email_tracking.t, :action => 'email_tracking',
            :id => @name.id, :params => query_params)
  end

  # Edit Name | Bulk Name Edit | Add Name | Change Synonyms | Approve/Deprecate
  new_tab_set do
    add_tab(:show_name_edit_name.t, :action => 'edit_name', :id => @name.id,
            :params => query_params)
    add_tab(:show_name_bulk_name_edit.t, :action => 'bulk_name_edit',
            :params => query_params)
    add_tab(:show_name_add_name.t, :action => 'create_name',
            :params => query_params)
    add_tab(:show_name_change_synonyms.t, :action => 'change_synonyms',
            :id => @name.id, :params => query_params)
    if @name.deprecated
      add_tab(:APPROVE.t, :action => 'approve_name', :id => @name.id,
              :params => query_params)
    else
      add_tab(:DEPRECATE.t, :action => 'deprecate_name', :id => @name.id,
              :params => query_params)
    end
  end

  draw_prev_next_tabs(@name)
  draw_interest_icons(@name)
%>

    <%
    # ----------------------------------------
    #  Show the basic name information
    # ----------------------------------------
    %>

        <%= render(:partial => 'name', :object => @name, :locals =>
                   { :synonyms => true } ) %>

        <%= show_previous_version(@name) %>

        <% for parent in @parents %>
          <%= rank_as_string(@parents[0].rank) %>:
            <%= link_to(parent.display_name.t, :action => 'show_name',
                        :id => parent.id, :params => query_params) %>

        <% end %>

        <%= set_export_status_controls(@name) %>

    <%
    # ----------------------------------------
    #  Show a list of NameDescriptions.
    # ----------------------------------------
    %>

      <%= show_alt_descriptions(@name, @projects) %>

<%
# ----------------------------------------
#  Show comments and notes.
# ----------------------------------------
%>
<% if @name.has_notes? %>

<%= :show_name_notes.t %>:

  <%= colored_notes_box(true, sanitize(@name.notes).tpl) %>
<% end %>

  <%= show_authors_and_editors(@name) %>

<%= render(:partial => 'comment/show_comments', :locals =>
           { :object => @name, :controls => true, :limit => 5 }) %>

<%
# ----------------------------------------
#  Show the selected NameDescription.
# ----------------------------------------
if @description && @description.has_any_notes? %>
  <%= show_embedded_description_title(@description, @name) %>
  <%= render(:partial => 'name_description', :object => @description,
             :locals => { :review => true }) %>
  <%= render(:partial => 'comment/show_comments', :locals =>
             { :object => @description, :controls => true, :limit => 5 }) if false %>

<% end %>

<%
# ----------------------------------------
#  Draw the paginated list of children.
# ----------------------------------------
if @children_data && @children_data.length > 0 %>

    <big><%= rank_as_plural_string(@children_data[0].rank) %></big>:
    <%= if @children_data.length < @children_query.num_results
      link_to("(#{:show_object.t(:type => :index)})", :action => 'index_name',
              :params => query_params(@children_query))
    end %>

  <% paginate_block(@children_pages, :anchor => 'children') do %>

      <% for child in @children_data %>
        <%= link_to(child.display_name.t, :action => 'show_name',
                    :id => child.id,
                    :params => query_params(@children_query)) %>

      <% end %>

  <% end %>

<% end %>

<%
# ----------------------------------------
#  Draw the four groups of observations.
# ----------------------------------------
num_sects = 0
for sect in ['consensus', 'synonym', 'other', 'subtaxa']
  if sect == 'consensus'
    head  = :show_name_observations.t + ':'   # Displayed above group.
    data  = @consensus_data                   # Data returned by sql query.
    pages = @consensus_pages                  # Pagination object.
    query = @consensus_query                  # Associated query.
  elsif sect == 'synonym'
    head  = :show_name_synonym_observations.t + ':'
    data  = @synonym_data
    pages = @synonym_pages
    query = @synonym_query
  elsif sect == 'other'
    head  = %(
      #{:show_name_other_observations.t}:

        #{:show_name_other_observations_notes.t(:name => @name.display_name)}

    )
    data  = @other_data
    pages = @other_pages
    query = @other_query
  elsif sect == 'subtaxa'
    head  = :show_name_subtaxa_observations.t + ':'
    data  = @subtaxa_data
    pages = @subtaxa_pages
    query = @subtaxa_query
  end

  # Skip completely if group is empty.
  if data && data.length > 0
    num_sects += 1 %>

      <a id="<%=sect%>">
      <big><%= head %></big>
      (<%= links = []
      if true or (data.length < query.num_results)
        links << link_to(:show_object.t(:type => :index),
                         :controller => 'observer',
                         :action => 'index_observation',
                         :params => query_params(query))
      end
      # links << link_to(:IMAGES.t, :controller => 'image',
      #                  :action => 'index_image', :by => 'image_quality',
      #                  :params => query_params(query))
      links.join(' | ') if links.any? %>)

    <% paginate_block(pages, :anchor => sect) do %>

        <% odd_or_even = 0
        for obs in data
          odd_or_even = 1 - odd_or_even %>
          <tr valign="top" class="ListLine<%= odd_or_even %>">

              <%= if image = obs.thumb_image
                thumbnail(image, :border => 0, :link => :show_observation,
                          :obs => obs.id, :votes => true)
              end %>

                <%= link_to(obs.name.observation_name.t + " (#{obs.id})",
                            :controller => 'observer',
                            :action => 'show_observation', :id => obs.id,
                            :params => query_params(query)) %>

                <%= location_link(obs.where, obs.location) %>
              :

                <%= user_link(obs.user_id, "#{obs.user.name} (#{obs.user.login})") %>

              <%= :observation_made.t %>: <%= obs.when.web_date %>

              <%= :observation_made_confidence.t %>:
                <%= v = obs.vote_cache
                if v.blank?
                  :show_namings_no_votes.t
                else
                  (v.to_f*100/3).round.to_s + "%"
                end %>

        <% end %>

    <% end %>

  <% end %>
<% end %>

<%= show_object_footer(@name) %>

<%
  @title = :show_name_title.t(:name => @name.display_name)
  Textile.register_name(@name)

  # Google Images | Distribution Map | Email Tracking
  new_tab_set do
    add_tab(:google_images.t,
            "http://images.google.com/images?q=#{@name.text_name}")
    if @data != []
      add_tab(:show_name_distribution_map.t, :action => 'map', :id => @name.id,
              :params => query_params)
    end
    add_tab(:show_name_email_tracking.t, :action => 'email_tracking',
            :id => @name.id, :params => query_params)
  end

  # Edit Name | Bulk Name Edit | Add Name | Change Synonyms | Approve/Deprecate
  new_tab_set do
    add_tab(:show_name_edit_name.t, :action => 'edit_name', :id => @name.id,
            :params => query_params)
    add_tab(:show_name_bulk_name_edit.t, :action => 'bulk_name_edit',
            :params => query_params)
    add_tab(:show_name_add_name.t, :action => 'create_name',
            :params => query_params)
    add_tab(:show_name_change_synonyms.t, :action => 'change_synonyms',
            :id => @name.id, :params => query_params)
    if @name.deprecated
      add_tab(:APPROVE.t, :action => 'approve_name', :id => @name.id,
              :params => query_params)
    else
      add_tab(:DEPRECATE.t, :action => 'deprecate_name', :id => @name.id,
              :params => query_params)
    end
  end

  draw_prev_next_tabs(@name)
  draw_interest_icons(@name)
%>

    <%
    # ----------------------------------------
    #  Show the basic name information
    # ----------------------------------------
    %>

        <%= render(:partial => 'name', :object => @name, :locals =>
                   { :synonyms => true } ) %>

        <%= show_previous_version(@name) %>

        <% for parent in @parents %>
          <%= rank_as_string(@parents[0].rank) %>:
            <%= link_to(parent.display_name.t, :action => 'show_name',
                        :id => parent.id, :params => query_params) %>

        <% end %>

        <%= set_export_status_controls(@name) %>

    <%
    # ----------------------------------------
    #  Show a list of NameDescriptions.
    # ----------------------------------------
    %>

      <%= show_alt_descriptions(@name, @projects) %>

<%
# ----------------------------------------
#  Show comments and notes.
# ----------------------------------------
%>
<% if @name.has_notes? %>

<%= :show_name_notes.t %>:

  <%= colored_notes_box(true, sanitize(@name.notes).tpl) %>
<% end %>

  <%= show_authors_and_editors(@name) %>

<%= render(:partial => 'comment/show_comments', :locals =>
           { :object => @name, :controls => true, :limit => 2 }) %>

<%
# ----------------------------------------
#  Show the selected NameDescription.
# ----------------------------------------
if @description && @description.has_any_notes? %>
  <%= show_embedded_description_title(@description, @name) %>
  <%= render(:partial => 'name_description', :object => @description,
             :locals => { :review => true }) %>
  <%= render(:partial => 'comment/show_comments', :locals =>
             { :object => @description, :controls => true, :limit => 2 }) if false %>

<% end %>

<%
# ----------------------------------------
#  Draw the paginated list of children.
# ----------------------------------------
if @children_data && @children_data.length > 0 %>

    <big><%= rank_as_plural_string(@children_data[0].rank) %></big>:
    <%= if @children_data.length < @children_query.num_results
      link_to("(#{:show_object.t(:type => :index)})", :action => 'index_name',
              :params => query_params(@children_query))
    end %>

  <% paginate_block(@children_pages, :anchor => 'children') do %>

      <% for child in @children_data %>
        <%= link_to(child.display_name.t, :action => 'show_name',
                    :id => child.id,
                    :params => query_params(@children_query)) %>

      <% end %>

  <% end %>

<% end %>

<%
# ----------------------------------------
#  Draw the four groups of observations.
# ----------------------------------------
num_sects = 0
for sect in ['consensus', 'synonym', 'other', 'subtaxa']
  if sect == 'consensus'
    head  = :show_name_observations.t + ':'   # Displayed above group.
    data  = @consensus_data                   # Data returned by sql query.
    pages = @consensus_pages                  # Pagination object.
    query = @consensus_query                  # Associated query.
  elsif sect == 'synonym'
    head  = :show_name_synonym_observations.t + ':'
    data  = @synonym_data
    pages = @synonym_pages
    query = @synonym_query
  elsif sect == 'other'
    head  = %(
      #{:show_name_other_observations.t}:

        #{:show_name_other_observations_notes.t(:name => @name.display_name)}

    )
    data  = @other_data
    pages = @other_pages
    query = @other_query
  elsif sect == 'subtaxa'
    head  = :show_name_subtaxa_observations.t + ':'
    data  = @subtaxa_data
    pages = @subtaxa_pages
    query = @subtaxa_query
  end

  # Skip completely if group is empty.
  if data && data.length > 0
    num_sects += 1 %>

      <a id="<%=sect%>">
      <big><%= head %></big>
      (<%= links = []
      if true or (data.length < query.num_results)
        links << link_to(:show_object.t(:type => :index),
                         :controller => 'observer',
                         :action => 'index_observation',
                         :params => query_params(query))
      end
      # links << link_to(:IMAGES.t, :controller => 'image',
      #                  :action => 'index_image', :by => 'image_quality',
      #                  :params => query_params(query))
      links.join(' | ') if links.any? %>)

    <% paginate_block(pages, :anchor => sect) do %>

        <% odd_or_even = 0
        for obs in data
          odd_or_even = 1 - odd_or_even %>
          <tr valign="top" class="ListLine<%= odd_or_even %>">

              <%= if image = obs.thumb_image
                thumbnail(image, :border => 0, :link => :show_observation,
                          :obs => obs.id, :votes => true)
              end %>

                <%= link_to(obs.name.observation_name.t + " (#{obs.id})",
                            :controller => 'observer',
                            :action => 'show_observation', :id => obs.id,
                            :params => query_params(query)) %>

                <%= location_link(obs.where, obs.location) %>
              :

                <%= user_link(obs.user_id, "#{obs.user.name} (#{obs.user.login})") %>

              <%= :observation_made.t %>: <%= obs.when.web_date %>

              <%= :observation_made_confidence.t %>:
                <%= v = obs.vote_cache
                if v.blank?
                  :show_namings_no_votes.t
                else
                  (v.to_f*100/3).round.to_s + "%"
                end %>

        <% end %>

    <% end %>

  <% end %>
<% end %>

<%= show_object_footer(@name) %>


r568: (RR) CCRB-160:  6 or more projects don't display correctly

<% @rss_feeds = { 'All projects' => {:controller => 'projects', :action => 'index', :format => 'rss'} } -%>
<% @projects.each { |p| @rss_feeds["#{p.name} builds"] = project_url(:controller => 'projects', :action => 'show', :id => p, :format => 'rss')} -%>

<div id="projects">
  <% @projects.each do |project| -%>
    <%= render :partial => 'project', :locals => {:project => project }%>
  <% end -%>

  <%= render :partial => 'no_projects' if @projects.empty? %>
</div>

<%= periodically_call_remote :url => { :action => 'index', :format => 'js'}, :method => 'get',
                                       :frequency => Configuration.dashboard_refresh_interval %>

<% @rss_feeds = { 'All projects' => {:controller => 'projects', :action => 'index', :format => 'rss'} } -%>
<% @projects.each { |p| @rss_feeds["#{p.name} builds"] = project_url(:controller => 'projects', :action => 'show', :id => p, :format => 'rss')} -%>

  <% if @projects.length <= 5 %>
    <% @projects.each do |project| -%>
      <%= render :partial => 'project', :locals => {:project => project }%>
    <% end -%>
  <% else %>

      <% @projects.each do |project| -%>
        <%= render :partial => 'project', :locals => {:project => project }%>
      <% end -%>

  <% end %>

  <%= render :partial => 'no_projects' if @projects.empty? %>

<%= periodically_call_remote :url => { :action => 'index', :format => 'js'}, :method => 'get',
                                       :frequency => Configuration.dashboard_refresh_interval %>


Remove obsolete admin override - adminbootstrap now merged into core Alaveteli.

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

      <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
      <title>WhatDoTheyKnow admin<%= @title ? ":" : "" %> <%=@title%></title>
      <%= javascript_include_tag 'jquery.js', 'jquery-ui.min' %>

      <%= stylesheet_link_tag 'admin-theme/jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>
      <%= stylesheet_link_tag 'admin', :title => "Main", :rel => "stylesheet"  %>

    <%= link_to 'WhatDoTheyKnow', main_url('/') %> admin:
    Summary
    | Timeline
    | Stats
    | Debug
    | Wiki
    View:
    Authorities
    | Requests
    | Users
    | Tracks

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

    <% if flash[:error] %>

<%= flash[:error] %>

    <% end %>

    <% if flash[:notice] %>

<%= flash[:notice] %>

    <% end %>

    <%= yield  %>


Hebrew update for the sidebar

Hebrew update for the sidebar


Added wording on the scope of the site to help to section 'You're missing a public authority'

<% @title = "Making requests" %>

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

<%= @title %> #

I'm not sure which authority to make my request to, how can I find out? #

It can be hard to untangle government's complicated structured, and work out
who knows the information that you want. Here are a few tips:

Browse or search <%= site_name %> looking for similar requests to yours.

When you've found an authority you think might have the information, use
the "home page" link on the right hand side of their page to check what they do
on their website.

Contact the authority by phone or email to ask if they hold the kind of
information you're after.

Don't worry excessively about getting the right authority. If you get it
wrong, they will transfer your request to the correct authority for you.

If you've got a thorny case, please contact us for help.

Who can make a request? #

Any person, of any nationality, anywhere in the world, however young or old can make a request under Federal Australian Freedom of Information (FOI) law.

The Freedom of Information Act simply says that "every person has a legally enforceable right to obtain access in accordance with this Act". A "person" can also be a body corporate, such as a company.

See the Attorney General's department FOI Guidelines – Fundamental principles and procedures - section 3.2 for more.

You're missing the public authority that I want to request from! #

At the moment we aim to cover all Australian Federal public authorities. We plan to add State and Local Government authorities soon.

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.

If you'd like to help add a whole category (new state or local government region etc.) of public authority to the site, we'd love
to hear from you too.

Why do you include some authorities that aren't formally subject to FOI?#

<%= site_name %> lets you make requests for information to a range of
organisations:

 Those formally subject to the FOI Act

 Those which voluntarily comply with the FOI Act

 Those which aren't subject to the Act but we think should be, on grounds
  such as them having significant public responsibilities.

In the last case, we're using the site to lobby for expansion of the
scope of the FOI Act. Even if an organisation is not legally obliged to respond
to an FOI request, they can still do so voluntarily.

Why must I keep my request focused?#

Please put in your request only what is needed so that someone can
easily identify what information you are asking for. Please do
not include any of the following:

arguments about your cause

statements that could defame or insult others

If you do, we may have to remove your request to avoid problems with
libel law, which is a pain for both you and us. Short, succinct messages
make it easier for authorities to be clear what information you are
requesting, which means you will get a reply more quickly.

If you want information to support an argument or campaign, Freedom of
Information is a powerful tool. Although you may not use this site to
run your campaign, we encourage you to use it to get the information you
need. We also encourage to run your campaign elsewhere - one effective
and very easy way is to <%= link_to 'start your own blog',
"http://wordpress.com/"%>. You are welcome to link to your campaign
from this site in an annotation to your request (you can make
annotations after submitting the request).

Does it cost me anything to make a request?#

Making an FOI request is nearly always free.

Authorities often include unnecessary, scary, boilerplate in
acknowledgement messages saying they "may" charge a fee. Ignore such notices.
They hardly ever will actually charge a fee.  If they do, they can only charge you if
you have specifically agreed in advance to pay.  More
    details from the Information Commissioner.

The latest version of the FOI Act (s 3(4)) makes it clear that

… functions and powers given by this Act are to be performed and exercised, as far as possible, to facilitate and promote public access to information, promptly and at the lowest reasonable cost.

Sometimes an authority will refuse your request, saying that the cost
of handling it exceeds a level that would detriment their day to day work. At this point you can refine your
request. e.g. it would be much cheaper for an authority to tell you the amount
spent on marshmallows in the past year than in the past ten years.

How quickly will I get a response? #

By law, public authorities must respond promptly to
requests.

Even if they are not prompt, in nearly all cases they must respond within
20 working days. If you had to clarify your request,
or one or two other cases, then they may have more time
(full details).

<%= site_name %> will email you if you don't get a timely response.  You can
then send the public authority a message to remind them, and tell them if they
are breaking the law.

What if I never get a response?#

There are several things you can do if you never get a response.

Sometimes there has been a genuine problem and the authority never
    received the request. It is worth telephoning the authority and politely
    checking that they received the request. It was sent to them by email.

If they have not received it, the problem is most likely due to
    "spam filters". Refer the authority to the measures in the answer
    'I can see a request on <%= site_name %>, but we never got it by email!'
    in the FOI officers section of this help.

If you're still having no luck, then you can ask for an internal review,
    and then complain to the Information Commissioner about the authority.
    Read our page 'Unhappy about the response you got?'.

What if I'm not satisfied with the response? #

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

It says I can't re-use the information I got!#

Authorities often add legal boilerplate about the
Commonwealth Copyright Adminstration, which at first glance implies you may not
be able do anything with the information. This is likely to be incorrect as the latest Statement of IP Principles for Australian Government Agencies explictly encourages reuse.

Consistent with the need for free and open re-use and adaptation, public sector
information should be licensed by agencies under the Creative Commons BY standard
as the default.

You can, of course, write articles about the information or summarise it, or
quote parts of it. We also think you should feel free to republish the
information in full, just as we do, even though in theory you might not be
allowed to do so.  See our policy on copyright.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
Freedom of Information guidelines
pages on the Information Commissioner's website.

Can I request information about myself? #

No. Requests made using <%= site_name %> are public, made under the Freedom of
Information Act, and cannot help you find information about a private
individual.

If you see that somebody has included personal information, perhaps
unwittingly, in a request, please contact us
immediately so we can remove it.

I'd like to keep my request secret! (At least until I publish my story) #

<%= site_name %> is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.

You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Can I make the same to request to lots of authorities, e.g. all departments? #

We ask you to first send a test version of your request to a few
authorities. Their responses will help you improve the wording of your request,
so that you get the best information when you send the request to all of
the authorities. There is currently no automated system for sending the request
to the other authorities, you must copy and paste it by hand.

I made a request off the site, how do I upload it to the archive?#

<%= site_name %> is an archive of requests made through the site,
and does not try to be an archive of all FOI requests. We'll never support uploading
other requests. For one thing, we wouldn't be able to verify that other
responses actually came from the authority. If this really matters to you,
you can always make the same request again via <%= site_name %>.

How do you moderate request annotations? #

Annotations on <%= site_name %> are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

Next, read about your privacy -->

<% @title = "Making requests" %>

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

<%= @title %> #

I'm not sure which authority to make my request to, how can I find out? #

It can be hard to untangle government's complicated structured, and work out
who knows the information that you want. Here are a few tips:

Browse or search <%= site_name %> looking for similar requests to yours.

When you've found an authority you think might have the information, use
the "home page" link on the right hand side of their page to check what they do
on their website.

Contact the authority by phone or email to ask if they hold the kind of
information you're after.

Don't worry excessively about getting the right authority. If you get it
wrong, they will transfer your request to the correct authority for you.

If you've got a thorny case, please contact us for help.

Who can make a request? #

Any person, of any nationality, anywhere in the world, however young or old can make a request under Federal Australian Freedom of Information (FOI) law.

The Freedom of Information Act simply says that "every person has a legally enforceable right to obtain access in accordance with this Act". A "person" can also be a body corporate, such as a company.

See the Attorney General's department FOI Guidelines – Fundamental principles and procedures - section 3.2 for more.

You're missing the public authority that I want to request from! #

Please contact us with the name of the public authority and,
if you can find it, their contact email address for Freedom of Information requests.

If you'd like to help add a whole category (new state or local government region etc.) of public authority to the site, we'd love
to hear from you too.

Why do you include some authorities that aren't formally subject to FOI?#

<%= site_name %> lets you make requests for information to a range of
organisations:

 Those formally subject to the FOI Act

 Those which voluntarily comply with the FOI Act

 Those which aren't subject to the Act but we think should be, on grounds
  such as them having significant public responsibilities.

In the last case, we're using the site to lobby for expansion of the
scope of the FOI Act. Even if an organisation is not legally obliged to respond
to an FOI request, they can still do so voluntarily.

Why must I keep my request focused?#

Please put in your request only what is needed so that someone can
easily identify what information you are asking for. Please do
not include any of the following:

arguments about your cause

statements that could defame or insult others

If you do, we may have to remove your request to avoid problems with
libel law, which is a pain for both you and us. Short, succinct messages
make it easier for authorities to be clear what information you are
requesting, which means you will get a reply more quickly.

If you want information to support an argument or campaign, Freedom of
Information is a powerful tool. Although you may not use this site to
run your campaign, we encourage you to use it to get the information you
need. We also encourage to run your campaign elsewhere - one effective
and very easy way is to <%= link_to 'start your own blog',
"http://wordpress.com/"%>. You are welcome to link to your campaign
from this site in an annotation to your request (you can make
annotations after submitting the request).

Does it cost me anything to make a request?#

Making an FOI request is nearly always free.

Authorities often include unnecessary, scary, boilerplate in
acknowledgement messages saying they "may" charge a fee. Ignore such notices.
They hardly ever will actually charge a fee.  If they do, they can only charge you if
you have specifically agreed in advance to pay.  More
    details from the Information Commissioner.

The latest version of the FOI Act (s 3(4)) makes it clear that

… functions and powers given by this Act are to be performed and exercised, as far as possible, to facilitate and promote public access to information, promptly and at the lowest reasonable cost.

Sometimes an authority will refuse your request, saying that the cost
of handling it exceeds a level that would detriment their day to day work. At this point you can refine your
request. e.g. it would be much cheaper for an authority to tell you the amount
spent on marshmallows in the past year than in the past ten years.

How quickly will I get a response? #

By law, public authorities must respond promptly to
requests.

Even if they are not prompt, in nearly all cases they must respond within
20 working days. If you had to clarify your request,
or one or two other cases, then they may have more time
(full details).

<%= site_name %> will email you if you don't get a timely response.  You can
then send the public authority a message to remind them, and tell them if they
are breaking the law.

What if I never get a response?#

There are several things you can do if you never get a response.

Sometimes there has been a genuine problem and the authority never
    received the request. It is worth telephoning the authority and politely
    checking that they received the request. It was sent to them by email.

If they have not received it, the problem is most likely due to
    "spam filters". Refer the authority to the measures in the answer
    'I can see a request on <%= site_name %>, but we never got it by email!'
    in the FOI officers section of this help.

If you're still having no luck, then you can ask for an internal review,
    and then complain to the Information Commissioner about the authority.
    Read our page 'Unhappy about the response you got?'.

What if I'm not satisfied with the response? #

If you didn't get the information you asked for, or you didn't get it in time,
then read our page 'Unhappy about the response you got?'.

It says I can't re-use the information I got!#

Authorities often add legal boilerplate about the
Commonwealth Copyright Adminstration, which at first glance implies you may not
be able do anything with the information. This is likely to be incorrect as the latest Statement of IP Principles for Australian Government Agencies explictly encourages reuse.

Consistent with the need for free and open re-use and adaptation, public sector
information should be licensed by agencies under the Creative Commons BY standard
as the default.

You can, of course, write articles about the information or summarise it, or
quote parts of it. We also think you should feel free to republish the
information in full, just as we do, even though in theory you might not be
allowed to do so.  See our policy on copyright.

Can you tell me more of the nitty gritty about the process of making requests? #

Have a look at the
Freedom of Information guidelines
pages on the Information Commissioner's website.

Can I request information about myself? #

No. Requests made using <%= site_name %> are public, made under the Freedom of
Information Act, and cannot help you find information about a private
individual.

If you see that somebody has included personal information, perhaps
unwittingly, in a request, please contact us
immediately so we can remove it.

I'd like to keep my request secret! (At least until I publish my story) #

<%= site_name %> is currently only designed for public requests. All
responses that we receive are automatically published on the website for anyone
to read.

You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage FOI requests in secret, then contact us.

Can I make the same to request to lots of authorities, e.g. all departments? #

We ask you to first send a test version of your request to a few
authorities. Their responses will help you improve the wording of your request,
so that you get the best information when you send the request to all of
the authorities. There is currently no automated system for sending the request
to the other authorities, you must copy and paste it by hand.

I made a request off the site, how do I upload it to the archive?#

<%= site_name %> is an archive of requests made through the site,
and does not try to be an archive of all FOI requests. We'll never support uploading
other requests. For one thing, we wouldn't be able to verify that other
responses actually came from the authority. If this really matters to you,
you can always make the same request again via <%= site_name %>.

How do you moderate request annotations? #

Annotations on <%= site_name %> are to help
people get the information they want, or to give them pointers to places they
can go to help them act on it. We reserve the right to remove anything else.

Endless, political discussions are not allowed.
Post a link to a suitable forum or campaign site elsewhere.

Next, read about your privacy -->


Add missing 'title-post' class.

Add missing 'title-post' class.

<form id="post-form" action="<%== @form_action %>" method="post">
  <fieldset class="default">

      Name
      <input type="text" name="name" id="name" class="name-post"
          maxlength="64" value="<%== @post ? @post.name : '' %>" />

      <% if @post; @post.errors.on(:name).each do |error| %>

<%== error %>

      <% end; end %>

      Title
      <input type="text" name="title" id="title" class="title-post"
          maxlength="255" value="<%== @post ? @post.title : '' %>" />

      <% if @post; @post.errors.on(:title).each do |error| %>

<%== error %>

      <% end; end %>

      Body
      <textarea name="body" id="body" rows="15" cols="60"><%== @post ? @post.body : '' %></textarea>

      <% if @post; @post.errors.on(:body).each do |error| %>

<%== error %>

      <% end; end %>

      Tags
      <input type="text" name="tags" id="tags" class="tags-input"
          maxlength="255" value="<%== @post ? @post.tags.collect{|i| i.name }.join(', ') : '' %>" />

      <% if @post; @post.errors.on(:tags).each do |error| %>

<%== error %>

      <% end; end %>

  </fieldset>

    <input type="hidden" name="token" value="<%== form_token %>" />
    <input type="submit" name="action" value="Preview" />
    <input type="submit" name="action" value="Post" />

</form>

Hey, look! Tips!

    Use
    Textile
    or XHTML for formatting.

    Separate tags with commas, like this: monkeys, pirates,
    pirate monkeys, ninjas

    To link to another page on this site, use wiki-style links like
    [[pagename]] or [[pagename|link text]].

    To link to a blog post, use a link like
    [[@postname_or_id]] or
    [[@postname_or_id|link text]].

<form id="post-form" action="<%== @form_action %>" method="post">
  <fieldset class="default">

      Name
      <input type="text" name="name" id="name" class="name-post"
          maxlength="64" value="<%== @post ? @post.name : '' %>" />

      <% if @post; @post.errors.on(:name).each do |error| %>

<%== error %>

      <% end; end %>

      Title
      <input type="text" name="title" id="title" maxlength="255"
          value="<%== @post ? @post.title : '' %>" />

      <% if @post; @post.errors.on(:title).each do |error| %>

<%== error %>

      <% end; end %>

      Body
      <textarea name="body" id="body" rows="15" cols="60"><%== @post ? @post.body : '' %></textarea>

      <% if @post; @post.errors.on(:body).each do |error| %>

<%== error %>

      <% end; end %>

      Tags
      <input type="text" name="tags" id="tags" class="tags-input"
          maxlength="255" value="<%== @post ? @post.tags.collect{|i| i.name }.join(', ') : '' %>" />

      <% if @post; @post.errors.on(:tags).each do |error| %>

<%== error %>

      <% end; end %>

  </fieldset>

    <input type="hidden" name="token" value="<%== form_token %>" />
    <input type="submit" name="action" value="Preview" />
    <input type="submit" name="action" value="Post" />

</form>

Hey, look! Tips!

    Use
    Textile
    or XHTML for formatting.

    Separate tags with commas, like this: monkeys, pirates,
    pirate monkeys, ninjas

    To link to another page on this site, use wiki-style links like
    [[pagename]] or [[pagename|link text]].

    To link to a blog post, use a link like
    [[@postname_or_id]] or
    [[@postname_or_id|link text]].


- Polished view.

- Polished view.

<%= tl(:your_events_on_date) %> <%= gui.date(date) %>

  <% if Aurita.user.may(:create_events) then %>
    <%= gui.button(:onclick => gui.link_to(:controller => 'Calendar::Event', :action => :add, :date_begin => gui.date(date))) { tl(:add_event) } %>
  <% end %>

    <% if events && events.length > 0 then %>

    <% events.each do |event| %>

    <div class="event_index_entry"
         <%= gui.context_menu(:entity => event,
                              :params => { :date => date.strftime("%Y.%m.%d") },
                              :id => "event_entry_#{event.event_id}")
         %>
    >

        <%= event.name %>

        <%= event.time_begin %> - <%= event.time_end %>

      <%= event.description %>

      <%= tl(:categories) %>: <%= event.categories.map { |c| gui.link_to(c) { c.category_name } }.join(', ') %>

      <%= tl(:tags) %>:
      <% event.tags.split(' ').each do |tag| %>
        <%= gui.link_to(:controller => 'App_Main', :action => :find, :key => tag) { tag } %>
      <% end %>

    <% end %>

<% else %>

    <div class="event_index_entry"
      <%= tl(:no_events) %>

<% end %>


Creating new article directly from user menu

(ActionItem1407)

<div id="user_menu" class="top_extra_menu AOM_paddingBottom_6"<%=
  ' help="'+ _('This menu gives you access to your personal functionalities.') +'"' if logged_in?
  %>>

  <% if logged_in? %>

      <img src="<%=
      (current_user.person.image)?
      current_user.person.image.public_filename(:icon) : "/images/icons-bar/photo.png"
      %>" alt="<%= current_user.name %> Icon-Photo" title="" height="20" border="0"/>
      <%= _("%s's Menu") % current_user.person.short_name %>

          <%= link_to( '' + __('My Home Page'), user.url, :help => _('Go to your home page.'))%>

        <%= link_to('' + _('My groups'), { :controller => 'memberships', :profile => user.identifier, :action => 'index' }) %>

        <%= lightbox_link_to('' + _('New article'), user.admin_url.merge(:controller => 'cms', :action => 'new')) %>

        <% for enterprise in user.enterprises %>

<%= link_to('' + (_('Manage %s') % enterprise.short_name), { :controller => 'profile_editor', :profile => enterprise.identifier, :action => 'index' }) %>

        <% end %>

        <% if MailConf.enabled? && current_user.enable_email %>

          <%= link_to '' + _('Webmail'), MailConf.webmail_url(user.identifier, current_user.email_domain) %>

        <% end %>

        <%= link_to(''+ _('Control panel'), { :controller => 'profile_editor', :action => 'index', :profile => user.identifier }, :id => 'link_edit_profile', :help => _('Control panel: change your picture, edit your personal information, create content or change the way your home page looks.')) %>

        <% if user.is_admin?(environment) %>

<%= link_to( ''+ _('Admin'),
                             {:controller => 'admin_panel' },
                             :id => 'link_admin_panel',
                             :help => _('Access the site administration panel.')
                             )%>

        <% end %>

<%= link_to( ''+ _('Logout'),
                                  {:controller => 'account', :action => 'logout'},
                                  :id => 'link_logout',
                                  :help => _('This link takes you out of the system. You should logout if other people are willing to use the same computer after you.')
                                ) %>

  <% else %>

    <% if params[:controller] != 'account' || params[:action] != 'signup' %>
      <% if theme_option( :menu_login ) == 'full_form' %>
        <%= render :file => 'account/login_block' %>
      <% else %>
        <%= thickbox_inline_popup_link(''+ _('Login'), login_url, 'inlineLoginBox', :id => 'link_login') %>

          <%= render :file => 'account/login', :locals => { :is_thickbox => true } %>

      <% end %>
    <% end %>

  <% end %>

<%= javascript_tag 'setAutoOpenMenu( $("user_menu") )' if theme_option( :menu_login ) != 'full_form' %>

<div id="user_menu" class="top_extra_menu AOM_paddingBottom_6"<%=
  ' help="'+ _('This menu gives you access to your personal functionalities.') +'"' if logged_in?
  %>>

  <% if logged_in? %>

      <img src="<%=
      (current_user.person.image)?
      current_user.person.image.public_filename(:icon) : "/images/icons-bar/photo.png"
      %>" alt="<%= current_user.name %> Icon-Photo" title="" height="20" border="0"/>
      <%= _("%s's Menu") % current_user.person.short_name %>

          <%= link_to( '' + __('My Home Page'), user.url, :help => _('Go to your home page.'))%>

        <%= link_to('' + _('My groups'), { :controller => 'memberships', :profile => user.identifier, :action => 'index' }) %>

        <% for enterprise in user.enterprises %>

<%= link_to('' + (_('Manage %s') % enterprise.short_name), { :controller => 'profile_editor', :profile => enterprise.identifier, :action => 'index' }) %>

        <% end %>

        <% if MailConf.enabled? && current_user.enable_email %>

          <%= link_to '' + _('Webmail'), MailConf.webmail_url(user.identifier, current_user.email_domain) %>

        <% end %>

        <%= link_to(''+ _('Control panel'), { :controller => 'profile_editor', :action => 'index', :profile => user.identifier }, :id => 'link_edit_profile', :help => _('Control panel: change your picture, edit your personal information, create content or change the way your home page looks.')) %>

        <% if user.is_admin?(environment) %>

<%= link_to( ''+ _('Admin'),
                             {:controller => 'admin_panel' },
                             :id => 'link_admin_panel',
                             :help => _('Access the site administration panel.')
                             )%>

        <% end %>

<%= link_to( ''+ _('Logout'),
                                  {:controller => 'account', :action => 'logout'},
                                  :id => 'link_logout',
                                  :help => _('This link takes you out of the system. You should logout if other people are willing to use the same computer after you.')
                                ) %>

  <% else %>

    <% if params[:controller] != 'account' || params[:action] != 'signup' %>
      <% if theme_option( :menu_login ) == 'full_form' %>
        <%= render :file => 'account/login_block' %>
      <% else %>
        <%= thickbox_inline_popup_link(''+ _('Login'), login_url, 'inlineLoginBox', :id => 'link_login') %>

          <%= render :file => 'account/login', :locals => { :is_thickbox => true } %>

      <% end %>
    <% end %>

  <% end %>

<%= javascript_tag 'setAutoOpenMenu( $("user_menu") )' if theme_option( :menu_login ) != 'full_form' %>


ActionItem154: fixing user_menu so it doesn't crash

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

<% if logged_in? %>
  <%=
  link_to_homepage ''+
    current_user.login, current_user.login, :id=>'link_go_home', :class => 'user_menu_first_link'
  %>

 Meu Blog

    <%=
      '
'+ link_to_myprofile( ''+ _('control panel'),
                                 {}, nil, :id => 'link_edit_profile' ) +'
'+
      '
'+ lightbox_link_to( ''+ _('Logout'),
                                { :controller => 'account', :action => 'logout_popup'}, :id => 'link_logout' ) +'
'
    %>
    <%=
      '
'+ link_to( ''+ _('Admin'),
                       { :controller => 'admin_panel' }, :id => 'link_admin_panel' ) +
      '
' if user.is_admin?
    %>

<%= link_to( ''+_('Edit Profile'),
                    :controller => 'profile_editor', :profile => user.identifier, :action => 'edit' ) %>

<%= link_to( ''+_('Consumed Products'),
                    :profile => user.identifier, :controller => 'consumed_products' ) %>

<% else %>

<%= lightbox_link_to ''+ _('Login'),
                     { :controller => 'account', :action => 'login_popup' },
                     :id => 'link_login', :class => 'user_menu_first_link' %>

<% end %>

<% if logged_in? %>
  <%=
  link_to_homepage ''+
    current_user.login, current_user.login, :id=>'link_go_home', :class => 'user_menu_first_link'
  %>

 Meu Blog

    <%=
      '
'+ link_to_myprofile( ''+ _('control panel'),
                                 {}, nil, :id => 'link_edit_profile' ) +'
'+
      '
'+ lightbox_link_to( ''+ _('Logout'),
                                { :controller => 'account', :action => 'logout_popup'}, :id => 'link_logout' ) +'
'
    %>
    <%=
      '
'+ link_to( ''+ _('Admin'),
                       { :controller => 'admin_panel' }, :id => 'link_admin_panel' ) +
      '
' if current_user.person.is_admin?
    %>

<%= link_to( ''+_('Edit Profile'),
                     :controller => 'profile_editor', :action => 'edit' ) %>

<%= link_to( ''+_('Consumed Products'),
                     :controller => 'consumed_products' ) %>

<% else %>

<%= lightbox_link_to ''+ _('Login'),
                     { :controller => 'account', :action => 'login_popup' },
                     :id => 'link_login', :class => 'user_menu_first_link' %>

<% end %>