fix rendering for IE8 beta1

fix rendering for IE8 beta1

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

	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<meta http-equiv="content-script-type" content="text/javascript">
	<meta http-equiv="X-UA-Compatible" content="IE=7">
	<title>Fastladder</title>
	<link rel="stylesheet" href="/css/common.css">
	<link rel="stylesheet" href="/css/style.css">
	<link rel="shortcut icon" href="/favicon.ico">

<base target="_blank">

<form style="display:inline;margin:0;padding:0" onsubmit="return false">

					 <

						welcome

			</form>

			welcome <%= link_to(@member.username, :controller => "user", :login_name => @member.username) %>
			| Settings
			| Account | Sign Out

 Shortcut Keys?

Others

        [% get_unread_count %]

	To use Fastladder, enable JavaScript by changing your browser options.

Reload

Edit

Add

mode

sort

<input type="text" id="finder" class="quickfind" value="" autocomplete="off">

loading feeds

			≪ NewerOlder ≫

		Close

add_feed">add feed

import_feed">import feed

      <% form_tag '/api/feed/discover', :id => 'discover_form' do %>
				Feed URL : <input type="text" name="url" style="width:280px" id="discover_url" value="http://">
				<input type="submit" value="next" style="width:90px">
      <% end %>

      <% form_tag '/import/index', :multipart => true, :target => '_blank' do %>
				file : <input type="file" name="opml" style="width:230px"> <input type="submit" value=" Upload " style="width:90px">
			<% end %>
      <% form_tag '/import/fetch', :multipart => true, :target => '_blank' do %>
				OPML URL : <input type="text" name="url" value="http://" style="width:280px"> <input type="submit" value=" Import from URL " style="width:90px">
			<% end %>

			Close

[% ad.description | html %]

Shortcut Keys?

x

<textarea class="template" id="discover_select_sub">

		Add

	 [[title]]
	 |  [[subscribers_count]] [[users]]

	[[feedlink]]

</textarea>

<textarea class="template" id="discover_select_unsub">

		Unsubscribe

	 [[title]]
	 |  [[subscribers_count]] [[users]]
	 [Subscribed]

	[[feedlink]]

</textarea>

<textarea class="template" id="subscribe_item">

 [[ title ]] ([[ unread_count ]])

</textarea>

<textarea class="template" id="subscribe_folder" style="">
[[ name ]] ([[ unread_count ]])
</textarea>

<textarea class="template" id="inbox_feed">

				[[ title ]]
				[[ image ]]

				[[ description ]]

			[[ folder ]]

			<
			>

		[[ widgets ]]

[[ items ]]
</textarea>

<textarea class="template" id="inbox_adfeeds">

				[[ title ]]
				[[ image ]]

				[[ description ]]

			これはスポンサーフィードです。あと[[ads_expire]]日で自動的に解除されます。
			このフィードを購読する

[[ items ]]
</textarea>

<textarea class="template" id="inbox_items">

			[[ title ]]

		Permalink |
		[[ relative_date ]]
		[[ author ]]
		[[ category ]]
		[[ enclosure ]]

[[ body ]]

[[ widgets ]]

</textarea>

<textarea class="template" id="clip_register">

		この機能を使うには「livedoor クリップ」の利用登録が必要です。

</textarea>

<textarea class="template" id="clip_info">
[[#{ public_clip_count ? ['', public_clip_count, ' ', (public_clip_count > 1 ? 'users' : 'user'), ''].join("") : "" }]] ｜ [[#{ new DateTime(created_on * 1000).ymd_jp() + "にクリップ済み" }]]
</textarea>

<textarea class="template" id="clip_form">

	<form id="clip_form_[[id]]" class="clip_form" target="_blank" method="post" action="/clip/add">

Bookmark

		<input type="hidden" name="title" value="[[title]]">
		<input type="hidden" name="link" value="[[link]]">
		<input type="hidden" name="rate" value="">
		<input type="hidden" name="from" value="reader">

				Tag
				<input type="text" name="tags" value="[[tags]]" onkeypress="(event.keyCode==27)&&clip_click([[id]])" onkeyup="(event.keyCode==27)&&clip_click([[id]])">

				Comment
				<textarea name="notes">[[notes]]</textarea>

					<input type="submit" value="Bookmark" class="clip_submit">
					<select name="public">
						<option value="on" selected>Public</option>
						<option value="off">Private</option>
					</select>

	</form>

</textarea>

<textarea class="template" id="folder_item">
[[ folder_name ]]
</textarea>

<textarea class="template" id="pin_item">
[[ title ]]
</textarea>

<textarea class="template" id="menu_item">
[[ title ]]
</textarea>

<textarea class="template" id="viewmode_item">
[[ label ]]
</textarea>

<textarea class="template" id="sortmode_item">
[[ label ]]
</textarea>

<textarea class="template" id="ads_body">

		[[items]]

</textarea>
<textarea class="template" id="ads_item">
</textarea>

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

	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<meta http-equiv="content-script-type" content="text/javascript">
	<title>Fastladder</title>
	<link rel="stylesheet" href="/css/common.css">
	<link rel="stylesheet" href="/css/style.css">
	<link rel="shortcut icon" href="/favicon.ico">

<base target="_blank">

<form style="display:inline;margin:0;padding:0" onsubmit="return false">

					 <

						welcome

			</form>

			welcome <%= link_to(@member.username, :controller => "user", :login_name => @member.username) %>
			| Settings
			| Account | Sign Out

 Shortcut Keys?

Others

        [% get_unread_count %]

	To use Fastladder, enable JavaScript by changing your browser options.

Reload

Edit

Add

mode

sort

<input type="text" id="finder" class="quickfind" value="" autocomplete="off">

loading feeds

			≪ NewerOlder ≫

		Close

add_feed">add feed

import_feed">import feed

      <% form_tag '/api/feed/discover', :id => 'discover_form' do %>
				Feed URL : <input type="text" name="url" style="width:280px" id="discover_url" value="http://">
				<input type="submit" value="next" style="width:90px">
      <% end %>

      <% form_tag '/import/index', :multipart => true, :target => '_blank' do %>
				file : <input type="file" name="opml" style="width:230px"> <input type="submit" value=" Upload " style="width:90px">
			<% end %>
      <% form_tag '/import/fetch', :multipart => true, :target => '_blank' do %>
				OPML URL : <input type="text" name="url" value="http://" style="width:280px"> <input type="submit" value=" Import from URL " style="width:90px">
			<% end %>

			Close

[% ad.description | html %]

Shortcut Keys?

x

<textarea class="template" id="discover_select_sub">

		Add

	 [[title]]
	 |  [[subscribers_count]] [[users]]

	[[feedlink]]

</textarea>

<textarea class="template" id="discover_select_unsub">

		Unsubscribe

	 [[title]]
	 |  [[subscribers_count]] [[users]]
	 [Subscribed]

	[[feedlink]]

</textarea>

<textarea class="template" id="subscribe_item">

 [[ title ]] ([[ unread_count ]])

</textarea>

<textarea class="template" id="subscribe_folder" style="">
[[ name ]] ([[ unread_count ]])
</textarea>

<textarea class="template" id="inbox_feed">

				[[ title ]]
				[[ image ]]

				[[ description ]]

			[[ folder ]]

			<
			>

		[[ widgets ]]

[[ items ]]
</textarea>

<textarea class="template" id="inbox_adfeeds">

				[[ title ]]
				[[ image ]]

				[[ description ]]

			これはスポンサーフィードです。あと[[ads_expire]]日で自動的に解除されます。
			このフィードを購読する

[[ items ]]
</textarea>

<textarea class="template" id="inbox_items">

			[[ title ]]

		Permalink |
		[[ relative_date ]]
		[[ author ]]
		[[ category ]]
		[[ enclosure ]]

[[ body ]]

[[ widgets ]]

</textarea>

<textarea class="template" id="clip_register">

		この機能を使うには「livedoor クリップ」の利用登録が必要です。

</textarea>

<textarea class="template" id="clip_info">
[[#{ public_clip_count ? ['', public_clip_count, ' ', (public_clip_count > 1 ? 'users' : 'user'), ''].join("") : "" }]] ｜ [[#{ new DateTime(created_on * 1000).ymd_jp() + "にクリップ済み" }]]
</textarea>

<textarea class="template" id="clip_form">

	<form id="clip_form_[[id]]" class="clip_form" target="_blank" method="post" action="/clip/add">

Bookmark

		<input type="hidden" name="title" value="[[title]]">
		<input type="hidden" name="link" value="[[link]]">
		<input type="hidden" name="rate" value="">
		<input type="hidden" name="from" value="reader">

				Tag
				<input type="text" name="tags" value="[[tags]]" onkeypress="(event.keyCode==27)&&clip_click([[id]])" onkeyup="(event.keyCode==27)&&clip_click([[id]])">

				Comment
				<textarea name="notes">[[notes]]</textarea>

					<input type="submit" value="Bookmark" class="clip_submit">
					<select name="public">
						<option value="on" selected>Public</option>
						<option value="off">Private</option>
					</select>

	</form>

</textarea>

<textarea class="template" id="folder_item">
[[ folder_name ]]
</textarea>

<textarea class="template" id="pin_item">
[[ title ]]
</textarea>

<textarea class="template" id="menu_item">
[[ title ]]
</textarea>

<textarea class="template" id="viewmode_item">
[[ label ]]
</textarea>

<textarea class="template" id="sortmode_item">
[[ label ]]
</textarea>

<textarea class="template" id="ads_body">

		[[items]]

</textarea>
<textarea class="template" id="ads_item">
</textarea>


Use ssl connection for fonts when page is secured with ssl

<%= stylesheet_link_tag "/alavetelitheme/stylesheets/custom" %>
<% if request.ssl? %>
<link href='https://fonts.googleapis.com/css?family=Maven+Pro:400,700|Actor' rel='stylesheet' type='text/css'>
<% else %>
<link href='http://fonts.googleapis.com/css?family=Maven+Pro:400,700|Actor' rel='stylesheet' type='text/css'>
<% end %>

<%= stylesheet_link_tag "/alavetelitheme/stylesheets/custom" %>
<link href='http://fonts.googleapis.com/css?family=Maven+Pro:400,700|Actor' rel='stylesheet' type='text/css'>


Fixed inline RDF output to point to correct trackback link.

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

<a href="<%= url_for :controller=>"articles", :action=>"read", :id=>article.id%>" title="Permanent link to this article"><%= h article.title %>

Posted by <%= h article.author %> <%= distance_of_time_in_words_to_now article.created_at %> ago
<%= article.body_html %>


take limit from config

take limit from config

<%
   all_responses = fulltext

   (title_level_fulltxt, fulltxt) =
      all_responses.partition {|i| i.view_data[:coverage_checked] == false || i.view_data[:can_link_to_article] == false}

%>

<div class="umlaut_section fulltext <%= unless fulltxt.blank? && title_level_fulltxt.blank?; 'highlighted_section' ; end %>">

  <%= renderer.render_heading %>

<%
    list_with_limit('umlaut_fulltext', all_responses, :ul_class => "response_list", :limit => renderer.list_visible_limit ) do |item, index |
      # Display special warnign header if it's title-level only,
      # and it's an article or issue level link. Are we
      # at the beginning of title level display?
      if ( index == fulltxt.length &&
           index != 0 &&
           !title_level_request? )
         genre = @user_request.referent.metadata['genre']
         genre = "Journal" if genre && genre.downcase == 'article' %>

<%= genre ? genre.titlecase : "Title" %>-level Page Only

Can not link directly to citation. Dates or extent of coverage may be unknown.

      <% end %>

      <%= render(:partial => "standard_response_item", :object=> item) %>
<% end %>

<%
if (fulltxt.empty? && title_level_fulltxt.empty? &&
    ! service_type_in_progress?('fulltext'))
%>

Not Available

<% end %>

<%= render( renderer.spinner_render_hash) if renderer.services_in_progress? %>

<%
   all_responses = fulltext

   (title_level_fulltxt, fulltxt) =
      all_responses.partition {|i| i.view_data[:coverage_checked] == false || i.view_data[:can_link_to_article] == false}

%>

<div class="umlaut_section fulltext <%= unless fulltxt.blank? && title_level_fulltxt.blank?; 'highlighted_section' ; end %>">

  <%= renderer.render_heading %>

<%
    list_with_limit('umlaut_fulltext', all_responses, :ul_class => "response_list") do |item, index |
      # Display special warnign header if it's title-level only,
      # and it's an article or issue level link. Are we
      # at the beginning of title level display?
      if ( index == fulltxt.length &&
           index != 0 &&
           !title_level_request? )
         genre = @user_request.referent.metadata['genre']
         genre = "Journal" if genre && genre.downcase == 'article' %>

<%= genre ? genre.titlecase : "Title" %>-level Page Only

Can not link directly to citation. Dates or extent of coverage may be unknown.

      <% end %>

      <%= render(:partial => "standard_response_item", :object=> item) %>
<% end %>

<%
if (fulltxt.empty? && title_level_fulltxt.empty? &&
    ! service_type_in_progress?('fulltext'))
%>

Not Available

<% end %>

<%= render( renderer.spinner_render_hash) if renderer.services_in_progress? %>


Fixed paragraph name bug w/ overlapping names

<% if para.is_a?(String) %>
  <%= para %>
<% elsif para.framework? %>
  <div class='cms_rendered_wrapper' <%= "style='display:none;'" if para.hidden %>  >
     <%= render_paragraph(@site_node, @revision, para,  :editor => true) %>

<% else -%>

<div <% if ['lock','clear'].include?(para.display_type) %>class='cms_framework_feature'<% else %>class='cms_paragraph'<% end %> id='cms_paragraph_<%= para_index %>' style='padding:0px; margin:0px;'>
  <div id="cms_paragraph_menu_<%= para_index %>" class="cms_paragraph_menu" style='padding:0px; margin:0px;'>
      <img src='<%= theme_src("/images/icons/paragraph.gif") %>' class='cms_paragraph_icon' style='padding:0px;margin:0px;' border='0' onclick='cmsEdit.selectParagraph(<%= para_index %>)' />
      <a href='javascript:void(0);' onclick='cmsEdit.showMenu(<%= para_index %>);' class='cms_ajax_link'>
          <% if para.content_publication_id.to_i > 0 %>
            <%= @paragraph_hash["#{para.display_module}_#{para.display_type}_#{para.content_publication_id}"][2] %>
          <% else %>
            <%= @paragraph_hash["#{para.display_module}_#{para.display_type}"] ? @paragraph_hash["#{para.display_module}_#{para.display_type}"][2].t : 'Invalid Paragraph Type' %>
	  <% end -%>

  <% if para.display_type == 'html' %>
    <div class='cms_div'  id='cms_paragraph_display_<%= para_index %>' style='display:none; padding:0px; margin:0px;'>
      <%= para.display %>

    <div class='cms_paragraph_editor'  id='cms_paragraph_editor_<%= para_index %>' style='padding:0px; margin:0px;' >
      <textarea class='cms_paragraph_html_editor_text_box' id='cms_paragraph_html_editor_<%= para_index %>'  style='width:100%; visibility:hidden;' onfocus='cmsEdit.focusParagraph(this); return true;'><%= h(para.display_body) %></textarea>

  <% elsif para.display_type == 'code' %>
    <div class='cms_div'  id='cms_paragraph_display_<%= para_index %>' style='padding:0px; margin:0px;' onclick='cmsEdit.editParagraph(<%= para_index %>)'>

      <%= render_paragraph @site_node, @revision, para, :editor => true, :language => @revision.language %>

<div class='cms_paragraph_editor'  id='cms_paragraph_editor_<%= para_index %>' style='display:none; padding:0px; margin:0px;' >
      <textarea id='cms_paragraph_html_editor_<%= para_index %>'  style='width:100%;' rows='10' onblur='cmsEdit.unfocusParagraph(<%= para_index %>); return true;'  onfocus='cmsEdit.focusParagraph(<%= para_index %>); return true;'><%= h(para.display_body) %></textarea>

  <% elsif para.display_type == 'textile' || para.display_type == 'markdown' %>
    <div class='cms_div'  id='cms_paragraph_display_<%= para_index %>' style='padding:0px; margin:0px;' onclick='cmsEdit.editParagraph(<%= para_index %>)'>

      <%= render_paragraph @site_node, @revision, para, :editor => true, :language => @revision.language %>

<div class='cms_paragraph_editor'  id='cms_paragraph_editor_<%= para_index %>' style='display:none; padding:0px; margin:0px;' >
      <textarea id='cms_paragraph_html_editor_<%= para_index %>'  style='width:100%;' rows='10' onblur='cmsEdit.unfocusParagraph(<%= para_index %>); return true;'  onfocus='cmsEdit.focusParagraph(<%= para_index %>); return true;'><%= h((para.data||{})[:markup]) %></textarea>

  <% else -%>
    <div class='cms_paragraph_editor'  id='cms_paragraph_editor_<%= para_index %>' style='padding:0px; margin:0px;' onclick='cmsEdit.editParagraph(<%= para_index %>)' >

      <%= render_paragraph @site_node, @revision, para, :editor => true, :language => @revision.language %>

  <% end -%>

<% end -%>

<% if para.is_a?(String) %>
  <%= para %>
<% elsif para.framework? %>
  <div class='cms_rendered_wrapper' <%= "style='display:none;'" if para.hidden %>  >
     <%= render_paragraph(@site_node, @revision, para,  :editor => true) %>

<% else -%>

<div <% if ['lock','clear'].include?(para.display_type) %>class='cms_framework_feature'<% else %>class='cms_paragraph'<% end %> id='cms_paragraph_<%= para_index %>' style='padding:0px; margin:0px;'>
  <div id="cms_paragraph_menu_<%= para_index %>" class="cms_paragraph_menu" style='padding:0px; margin:0px;'>
      <img src='<%= theme_src("/images/icons/paragraph.gif") %>' class='cms_paragraph_icon' style='padding:0px;margin:0px;' border='0' onclick='cmsEdit.selectParagraph(<%= para_index %>)' />
      <a href='javascript:void(0);' onclick='cmsEdit.showMenu(<%= para_index %>);' class='cms_ajax_link'>
          <% if para.content_publication_id.to_i > 0 %>
            <%= @paragraph_hash["#{para.display_type}_#{para.content_publication_id}"][2] %>
          <% else %>
            <%= @paragraph_hash[para.display_type] ? @paragraph_hash[para.display_type][2].t : 'Invalid Paragraph Type' %>
	  <% end -%>

  <% if para.display_type == 'html' %>
    <div class='cms_div'  id='cms_paragraph_display_<%= para_index %>' style='display:none; padding:0px; margin:0px;'>
      <%= para.display %>

    <div class='cms_paragraph_editor'  id='cms_paragraph_editor_<%= para_index %>' style='padding:0px; margin:0px;' >
      <textarea class='cms_paragraph_html_editor_text_box' id='cms_paragraph_html_editor_<%= para_index %>'  style='width:100%; visibility:hidden;' onfocus='cmsEdit.focusParagraph(this); return true;'><%= h(para.display_body) %></textarea>

  <% elsif para.display_type == 'code' %>
    <div class='cms_div'  id='cms_paragraph_display_<%= para_index %>' style='padding:0px; margin:0px;' onclick='cmsEdit.editParagraph(<%= para_index %>)'>

      <%= render_paragraph @site_node, @revision, para, :editor => true, :language => @revision.language %>

<div class='cms_paragraph_editor'  id='cms_paragraph_editor_<%= para_index %>' style='display:none; padding:0px; margin:0px;' >
      <textarea id='cms_paragraph_html_editor_<%= para_index %>'  style='width:100%;' rows='10' onblur='cmsEdit.unfocusParagraph(<%= para_index %>); return true;'  onfocus='cmsEdit.focusParagraph(<%= para_index %>); return true;'><%= h(para.display_body) %></textarea>

  <% elsif para.display_type == 'textile' || para.display_type == 'markdown' %>
    <div class='cms_div'  id='cms_paragraph_display_<%= para_index %>' style='padding:0px; margin:0px;' onclick='cmsEdit.editParagraph(<%= para_index %>)'>

      <%= render_paragraph @site_node, @revision, para, :editor => true, :language => @revision.language %>

<div class='cms_paragraph_editor'  id='cms_paragraph_editor_<%= para_index %>' style='display:none; padding:0px; margin:0px;' >
      <textarea id='cms_paragraph_html_editor_<%= para_index %>'  style='width:100%;' rows='10' onblur='cmsEdit.unfocusParagraph(<%= para_index %>); return true;'  onfocus='cmsEdit.focusParagraph(<%= para_index %>); return true;'><%= h((para.data||{})[:markup]) %></textarea>

  <% else -%>
    <div class='cms_paragraph_editor'  id='cms_paragraph_editor_<%= para_index %>' style='padding:0px; margin:0px;' onclick='cmsEdit.editParagraph(<%= para_index %>)' >

      <%= render_paragraph @site_node, @revision, para, :editor => true, :language => @revision.language %>

  <% end -%>

<% end -%>


update version

update version


limit to 4 holding lines

limit to 4 holding lines

<%
=begin
  jrochkind's alternative partial for displaying holdings. Displays more
  information to deal with the more information we need to display from
  our Horizon. In tabular format. Customized for JH's needs, but should
  be usable by anyone.
=end
%>

<%= ServiceTypeValue[:holding].display_name_pluralize.titleize %>

<% holdings = get_service_type('holding') %>

<%
holdings.each do |p|
  target = p.view_data
%>

<%= target[:collection_str] %>

      <%= link_to (target[:call_number] || 'catalog'), {:controller=>"link_router", :id=>p.id}, "target"=>"_blank" %>

      <% status_class = (target[:status] == "Not Charged" or target[:status] == "Available") ? 'available' : '' %>

      <%= target[:copy_str] %>
      <span class="<%= status_class %>"><%= target[:status]   %>

  <% unless target[:notes].blank? %>

<%= target[:notes] %>

  <% end %>

  <% unless target[:coverage_str].blank? %>

          <%
          # Only show first 4, with a 'more' link to make others visible if neccesary.
          hidden_div_id = "copies_#{p.id}"
          target[:coverage_str_array].each_index do |index|
              break if (index >= 3 &&
                        params['umlaut.holding_expand_all'] != 'true')
              s = target[:coverage_str_array][index]%>

<%= s %>

          <% end %>
          <% if target[:coverage_str_array].length > 5 && params['umlaut.holding_expand_all'] != 'true' %>

 <%= link_to_function("More...",
                     "Element.toggle('#{hidden_div_id}'); Element.update(this, 'Show/Hide...')",
                     :href => url_for( params.merge({ :'umlaut.holding_expand_all' => 'true'}))) %>

          <% end %>

          <% # okay, the rest in a hidden div, if more than 5
             if target[:coverage_str_array].length > 5 && params['umlaut.holding_expand_all'] != 'true' %>
          <div id=<%= hidden_div_id %> style="display:none; ">

            <% 5.upto( target[:coverage_str_array].length + 1) do |index| %>

<%= target[:coverage_str_array][index] %>

            <% end   %>

          <% end %>

  <% end %>
<%
end %>

<%
if holdings.empty?
   searches = get_service_type('holding_search')
    searches.each do | result_st |
      response = result_st.view_data %>

<%= link_to response[:display_text], {:controller=>'link_router', :id=>result_st.id}, 'target'=>"_blank" %>

<%
   end
end
if (holdings.blank? && searches.blank? && ! service_types_in_progress?(['holding', 'holding_search']))
%>

Not Available

<%
end %>

<% if session[:coins] %>

Check for holdings:

<%    session[:coins].each { | coins |
        unless coins[:text]
          label = image_tag(coins[:icon], :border=>0)
        else
          label = coins[:text]
        end
    %>

<a href="<%= coins[:host]%>?<%= @user_request.referent.to_context_object.kev %>" target="_blank"><%= label %>

    <%}%>

<%   end
%>
<% if service_types_in_progress?(['holding', 'holding_search']) %>

<%= render(:partial => "background_progress", :locals => { :svc_types => [ServiceTypeValue[:holding],ServiceTypeValue[:holding_search]], :current_set_empty => holdings.empty? } ) %>

<% end %>

<%
=begin
  jrochkind's alternative partial for displaying holdings. Displays more
  information to deal with the more information we need to display from
  our Horizon. In tabular format. Customized for JH's needs, but should
  be usable by anyone.
=end
%>

<%= ServiceTypeValue[:holding].display_name_pluralize.titleize %>

<% holdings = get_service_type('holding') %>

<%
holdings.each do |p|
  target = p.view_data
%>

<%= target[:collection_str] %>

      <%= link_to (target[:call_number] || 'catalog'), {:controller=>"link_router", :id=>p.id}, "target"=>"_blank" %>

      <% status_class = (target[:status] == "Not Charged" or target[:status] == "Available") ? 'available' : '' %>

      <%= target[:copy_str] %>
      <span class="<%= status_class %>"><%= target[:status]   %>

  <% unless target[:notes].blank? %>

<%= target[:notes] %>

  <% end %>

  <% unless target[:coverage_str].blank? %>

          <%
          # Only show first 5, with a 'more' link to make others visible if neccesary.
          hidden_div_id = "copies_#{p.id}"
          target[:coverage_str_array].each_index do |index|
              break if (index >= 5 &&
                        params['umlaut.holding_expand_all'] != 'true')
              s = target[:coverage_str_array][index]%>

<%= s %>

          <% end %>
          <% if target[:coverage_str_array].length > 5 && params['umlaut.holding_expand_all'] != 'true' %>

 <%= link_to_function("More...",
                     "Element.toggle('#{hidden_div_id}'); Element.update(this, 'Show/Hide...')",
                     :href => url_for( params.merge({ :'umlaut.holding_expand_all' => 'true'}))) %>

          <% end %>

          <% # okay, the rest in a hidden div, if more than 5
             if target[:coverage_str_array].length > 5 && params['umlaut.holding_expand_all'] != 'true' %>
          <div id=<%= hidden_div_id %> style="display:none; ">

            <% 5.upto( target[:coverage_str_array].length + 1) do |index| %>

<%= target[:coverage_str_array][index] %>

            <% end   %>

          <% end %>

  <% end %>
<%
end %>

<%
if holdings.empty?
   searches = get_service_type('holding_search')
    searches.each do | result_st |
      response = result_st.view_data %>

<%= link_to response[:display_text], {:controller=>'link_router', :id=>result_st.id}, 'target'=>"_blank" %>

<%
   end
end
if (holdings.blank? && searches.blank? && ! service_types_in_progress?(['holding', 'holding_search']))
%>

Not Available

<%
end %>

<% if session[:coins] %>

Check for holdings:

<%    session[:coins].each { | coins |
        unless coins[:text]
          label = image_tag(coins[:icon], :border=>0)
        else
          label = coins[:text]
        end
    %>

<a href="<%= coins[:host]%>?<%= @user_request.referent.to_context_object.kev %>" target="_blank"><%= label %>

    <%}%>

<%   end
%>
<% if service_types_in_progress?(['holding', 'holding_search']) %>

<%= render(:partial => "background_progress", :locals => { :svc_types => [ServiceTypeValue[:holding],ServiceTypeValue[:holding_search]], :current_set_empty => holdings.empty? } ) %>

<% end %>


Moved the submit button to the bottom of the form.

Moving bats from <%= @cage.name %>

<%= start_form_tag :action => 'move' %>

Select bat(s):
<%= select_tag("bat[id][]", options_from_collection_for_select(@bats, "id", "band"),
:multiple => true) %>

to move to cage:
<%= select_tag("cage[id]", options_from_collection_for_select(@cages, "id", "name")) %>

Note : <%= text_field 'move', 'note' %>

<%= submit_tag 'Move' %>

<%= end_form_tag %>

<%= link_to 'Back', :action => 'choose_cage' %>


small rails warning fixes

small rails warning fixes

git-svn-id: 295275ead0c997ff8920a9abe88dec0903829be9@69 9c008b19-a030-0410-9975-d76d301b4276

<!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"/>

	<title><%=h page_title %></title>

	<%= javascript_include_tag :defaults %>

	<%= stylesheet_link_tag 'styles' %>

<%= link_to(page_title, :controller => 'forum', :action => 'index') %>

				<% if logged_in? %>
				<%= link_to('Forum', :controller => 'forum', :action => 'index') %>
				<%= link_to('Users', :controller => 'users', :action => 'index') %>
				<%= link_to('Start a New Topic »', :controller => 'forum', :action => 'index') %>
				<% else %>
				<%= nav_link('Register', :controller => 'users', :action => 'new') %>
				<%= nav_link('Login »', :controller => 'users', :action => 'login') %>
				<% end %>

				<% if logged_in? %>
				<% if @current_user_profile %><%= nav_link( 'My Profile ('+h(current_user.login)+')', :controller => 'users', :action => 'show', :id => session[:user_id]) %>
				<% else %><%= link_to('My Profile ('+h(current_user.login)+')', :controller => 'users', :action => 'show', :id => session[:user_id]) %>
				<% end %>
				<%= nav_link('Logout', :controller => 'users', :action => 'logout') %>
				<% end %>

			<%= content_tag 'div', h(flash[:notice]), :id => 'notice' if flash[:notice] %>
			<%= content_tag 'div', h(flash[:error]), :id => 'error' if flash[:error] %>

			<%= yield %>

<!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"/>

	<title><%=h page_title %></title>

	<%= javascript_include_tag :defaults %>

	<%= stylesheet_link_tag 'styles' %>

<%= link_to ( page_title, :controller => 'forum', :action => 'index' ) %>

				<% if logged_in? %>
				<%= link_to ( 'Forum', :controller => 'forum', :action => 'index' ) %>
				<%= link_to ( 'Users', :controller => 'users', :action => 'index' ) %>
				<%= link_to ( 'Start a New Topic »', :controller => 'forum', :action => 'index' ) %>
				<% else %>
				<%= nav_link( 'Register', :controller => 'users', :action => 'new') %>
				<%= nav_link( 'Login »', :controller => 'users', :action => 'login') %>
				<% end %>

				<% if logged_in? %>
				<% if @current_user_profile %><%= nav_link( 'My Profile ('+h(current_user.login)+')', :controller => 'users', :action => 'show', :id => session[:user_id] ) %>
				<% else %><%= link_to( 'My Profile ('+h(current_user.login)+')', :controller => 'users', :action => 'show', :id => session[:user_id] ) %>
				<% end %>
				<%= nav_link( 'Logout', :controller => 'users', :action => 'logout') %>
				<% end %>

			<%= content_tag 'div', h(flash[:notice]), :id => 'notice' if flash[:notice] %>
			<%= content_tag 'div', h(flash[:error]), :id => 'error' if flash[:error] %>

			<%= yield %>


ActionItem16: adding link to enterprise registration

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

<%= _('Listing memberships')%>

<% form_tag 'membership_editor/search' do %>
  <%= _('Search') %> <%= text_field_tag 'query' %>
<% end %>

<% @memberships.each do |m|%>

    <%= link_to_homepage m.name, m.identifier %>
    <%= link_to_myprofile  _('Manage') , {:controller => 'profile_editor'}, m.identifier %>

<% end %>

<%= link_to _('Request registration of a new enterprise'), :controller => 'enterprise_registration' %>

<%= _('Listing memberships')%>

<% form_tag 'membership_editor/search' do %>
  <%= _('Search') %> <%= text_field_tag 'query' %>
<% end %>

<% @memberships.each do |m|%>

    <%= link_to_homepage m.name, m.identifier %>
    <%= link_to_myprofile  _('Manage') , {:controller => 'profile_editor'}, m.identifier %>

<% end %>

<%= link_to _('New enterprise'), :action => 'new_enterprise' %>


Make the HTML validate.

Make the HTML validate.

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

What is the status of this request now?

            <%= radio_button "incoming_message", "described_state", "waiting_response", :id => 'waiting_response' + id_suffix %>
            <label for="waiting_response<%=id_suffix%>">I'm still waiting for my information / a rejection (e.g. if the new response was just an acknowledgement)

            <%= radio_button "incoming_message", "described_state", "waiting_clarification", :id => 'waiting_clarification' + id_suffix %>
            <label for="waiting_clarification<%=id_suffix%>">I'm about to clarify my request

            <%= radio_button "incoming_message", "described_state", "not_held", :id => 'not_held' + id_suffix %>
            <label for="not_held<%=id_suffix%>">The authority does not have the information (perhaps they suggest making the request elsewhere)

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

            <%= radio_button "incoming_message", "described_state", "successful", :id => 'successful' + id_suffix %>
            <label for="successful<%=id_suffix%>">I've received all the information (or equivalents) that I asked for

            <%= radio_button "incoming_message", "described_state", "partially_successful", :id => 'partially_successful' + id_suffix %>
            <label for="partially_successful<%=id_suffix%>">I've received some of the information that I asked for

            <%= radio_button "incoming_message", "described_state", "requires_admin", :id => 'requires_admin' + id_suffix %>
            <label for="requires_admin<%=id_suffix%>">None of the above - enter quick summary here:
            <%= text_field "incoming_message", 'requires_admin_details', :class => 'requires_admin_details', :id => 'requires_admin_details' + id_suffix, :size => 60 %>

Filling this in helps everyone track the progress of your request.

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

    <% end %>
<% else %>
        We don't know whether the most recent response to this request contains
        information or not
            –
        if you are
            <%= user_link(@info_request.user) %>,
        please
            <%= link_to "sign in as them", signin_url(:r => request.request_uri) %>
        and let everyone know.
<% end %>

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

What is the status of this request now?

            <%= radio_button "incoming_message", "described_state", "waiting_response", :id => 'waiting_response' + id_suffix %>
            <label for="waiting_response<%=id_suffix%>">I'm still waiting for my information / a rejection (e.g. if the new response was just an acknowledgement)

            <%= radio_button "incoming_message", "described_state", "waiting_clarification", :id => 'waiting_clarification' + id_suffix %>
            <label for="waiting_clarification<%=id_suffix%>">I'm about to clarify my request

            <%= radio_button "incoming_message", "described_state", "not_held", :id => 'not_held' + id_suffix %>
            <label for="not_held<%=id_suffix%>">The authority does not have the information (perhaps they suggest making the request elsewhere)

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

            <%= radio_button "incoming_message", "described_state", "successful", :id => 'successful' + id_suffix %>
            <label for="successful<%=id_suffix%>">I've received all the information (or equivalents) that I asked for

            <%= radio_button "incoming_message", "described_state", "partially_successful", :id => 'partially_successful' + id_suffix %>
            <label for="partially_successful<%=id_suffix%>">I've received some of the information that I asked for

            <%= radio_button "incoming_message", "described_state", "requires_admin", :id => 'requires_admin' + id_suffix %>
            <label for="requires_admin<%=id_suffix%>">None of the above - enter quick summary here:
            <%= text_field "incoming_message", 'requires_admin_details', :class => 'requires_admin_details', :size => 60 %>

Filling this in helps everyone track the progress of your request.

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

    <% end %>
<% else %>
        We don't know whether the most recent response to this request contains
        information or not
            –
        if you are
            <%= user_link(@info_request.user) %>,
        please
            <%= link_to "sign in as them", signin_url(:r => request.request_uri) %>
        and let everyone know.
<% end %>


fixing copyright symbol in footer of site

git-svn-id: 50a8ad97cae5d6ab203d2d535a9b32cd3858a8ac@367 c04ce798-636b-4ca8-9149-0f9336831111

	  <%= link_to 'Contact Us', '/documentation/contact_us.html' %> |
	  <%= link_to 'ThoughtWorks.com', 'http://www.thoughtworks.com', :target => '_blank' %> |
	  <%= link_to 'ThoughtWorks Studios', 'http://studios.thoughtworks.com', :target => '_blank' %>

    Version <%= CruiseControl::VERSION::STRING %> |
		© ThoughtWorks Copyright 2007

	  <%= link_to 'Contact Us', '/documentation/contact_us.html' %> |
	  <%= link_to 'ThoughtWorks.com', 'http://www.thoughtworks.com', :target => '_blank' %>

    Version <%= CruiseControl::VERSION::STRING %> |
		© ThoughtWorks Copyright 2007


Update lib/views/help/credits.rhtml

Update lib/views/help/credits.rhtml

with correct spelling this time

<% @title = "Credit where credit is due" %>

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

<%= @title%> #

Which people made WhatDoTheyKnow? #

Oh, nearly everyone (and maybe you too)!

    Heather Brooke
    (vampy!) has
    been pushing the idea of a UK FOI archive for years now.

    Both Phil Rodgers and Francis Irving
    entered it in a mySociety competition for ideas for public interest websites to build.

    It won,
    and then Chris Lightfoot (RIP :()
    thought up the wheeze of intercepting email responses to requests and
    automatically publishing them.

    Tom Steinberg got the cash to pay for the site from
    a dead chocolate mogul (thank you!) ...

    ... so that Francis Irving, Angie Ahl, Tommy Martin, Louise Crow, Matthew Somerville
    and Tom Steinberg could do the complex mixture of design and coding to build
    what you see today.

    Thanks particularly to Julian Todd (great blog!),
    Francis Davey, and Etienne Pollard for using the site early on and giving
    feedback (and/or legal advice!), and also to all our other users and
    testers.

    The amazing team of volunteers who run the site, answer your support
    emails, maintain the database of public authorities and
    so much more.
    Thanks to Helen Cross, John Cross, Ben Harris, Adam McGreggor, Ganesh Sittampalam, Alex Skene,
    Richard Taylor.

    Volunteers who have provided patches to the code – thanks Peter Collingbourne,
    Tony Bowden, David Cabo, James McKinney.

    Everyone who has helped look up FOI email addresses.

    We couldn't do any of this without those
    crazy people (UKCOD Trustees) who volunteer,
    amongst many other things, to do the accounts and fill in our VAT return.

    Finally, all the officers and servants who have answered the many requests
    made through the site. Their diligence, patience and professionalism is
    what has actually made the information that you see here. Thank them for
    helping make Government more transparent.

You're all stars.

Can I help out? #

Yes please! We're built out of our supporters and volunteers.

You can make a donation. We're a registered charity.

Help people find successful requests, and monitor performance of authorities, by
    playing the categorisation game.

Find out FOI email addresses of authorities that we're missing.

Write a blog post about either WhatDoTheyKnow or an interesting request that you've
    found. Post about it on a forum that you frequent. Tell friends about it.

If you're
    a programmer, get the source code for our parent project, Alaveteli
    and tell us about patches we can pull. It's made in Ruby on Rails.

Read more about volunteering with mySociety.

<% @title = "Credit where credit is due" %>

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

<%= @title%> #

Which people made WhatDoTheyKnow? #

Oh, nearly everyone (and maybe you too)!

    Heather Brooke
    (vampy!) has
    been pushing the idea of a UK FOI archive for years now.

    Both Phil Rodgers and Francis Irving
    entered it in a mySociety competition for ideas for public interest websites to build.

    It won,
    and then Chris Lightfoot (RIP :()
    thought up the wheeze of intercepting email responses to requests and
    automatically publishing them.

    Tom Steinberg got the cash to pay for the site from
    a dead chocolate mogul (thank you!) ...

    ... so that Francis Irving, Angie Ahl, Tommy Martin, Louise Crow, Matthew Somerville
    and Tom Steinberg could do the complex mixture of design and coding to build
    what you see today.

    Thanks particularly to Julian Todd (great blog!),
    Francis Davey, and Etienne Pollard for using the site early on and giving
    feedback (and/or legal advice!), and also to all our other users and
    testers.

    The amazing team of volunteers who run the site, answer your support
    emails, maintain the database of public authorities and
    so much more.
    Thanks to Helen Cross, John Cross, Ben Harris, Adam McGreggor, Ganesh Sittampalam, Alex Skene,
    Richard Taylor.

    Volunteers who have provided patches to the code – thanks Peter Collingbourne,
    Tony Bowden, David Cabo, James McKinney.

    Everyone who has helped look up FOI email addresses.

    We couldn't do any of this without those
    crazy people who volunteer,
    amongst many other things, to do the accounts and fill in our VAT return.

    Finally, all the officers and servants who have answered the many requests
    made through the site. Their diligence, patience and professionalism is
    what has actually made the information that you see here. Thank them for
    helping make Government more transparent.

You're all stars.

Can I help out? #

Yes please! We're built out of our supporters and volunteers.

You can make a donation. We're a registered charity.

Help people find successful requests, and monitor performance of authorities, by
    playing the categorisation game.

Find out FOI email addresses of authorities that we're missing.

Write a blog post about either WhatDoTheyKnow or an interesting request that you've
    found. Post about it on a forum that you frequent. Tell friends about it.

If you're
    a programmer, get the source code for our parent project, Alaveteli
    and tell us about patches we can pull. It's made in Ruby on Rails.

Read more about volunteering with mySociety.


Fix wrong HTML comment in layout

Fix wrong HTML comment in layout

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

        <% if @profile_photo_javascript %>

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

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

        <link rel="shortcut icon" href="/favicon.ico">
	<%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet", :media => "all" %>

	<%= stylesheet_link_tag 'theme', :rel => "stylesheet", :media => "all"  %>
	<%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print"  %>
	<% if !params[:print_stylesheet].nil? %>
         <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "all"  %>
	<% end %>
	<%= javascript_include_tag 'jquery.js', 'jquery-ui.min','jquery.cookie.js', 'general.js' %>
	<%= stylesheet_link_tag 'admin-theme/jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>

        <%= stylesheet_link_tag '../asktheeu-theme/stylesheets/asktheeu.css', :title => "Main", :rel => "stylesheet"  %>
        <% if force_registration_on_new_request %>
        <%= stylesheet_link_tag 'jquery.fancybox-1.3.4', :rel => "stylesheet"  %>
        <% end %>

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

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

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

    <body <%= "class='front'" if params[:action] == 'frontpage' %>>

    <% if force_registration_on_new_request && !@user %>
    <%= javascript_include_tag 'jquery.fancybox-1.3.4.pack' %>

    <% end %>

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

Close

    [ message goes here ]

Close

=end
%>

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

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

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

                <% if @user %>
                    <%=link_to _("My profile"), user_url(@user) %>
                <% end %>

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

        <% end %>

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

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

            <% end %>

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

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

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

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

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

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

<input type="text">


show source (service.display_name) if so instructed

<% # Can actually be probably used for other service types than full text.
   # But anyway, displays a typical full text element in typical markup.
   # pass in a ServiceType object for the response as :object

   #optional argument, :locals => {:li_class => 'whatever'}
   li_class ||= "fulltextlink"
   show_source ||= false

   # passed in in :object or :collection
   view_data = fulltext_element.view_data
%>

<li class="<%= li_class %>"> <%= link_to view_data[:display_text], {:controller=>'link_router', :id=>fulltext_element.id}, 'target'=>"_blank" %>

<% if show_source %>

from <%= view_data[:source] || fulltext_element.service_response.service.display_name %>

<% end %>

<% unless view_data[:coverage].blank? %>

<%= view_data[:coverage] %>

<% end
%>
<% unless view_data[:notes].blank? %>

<%= view_data[:notes] %>

<% end %>
<% unless view_data[:authentication].blank? %>

Authentication: <%= view_data[:authentication] %>

<% end %>

<% if (!view_data[:match_reliability].blank?) && view_data[:match_reliability] != ServiceResponse::MatchExact %>

    May be an alternate edition <%= view_data[:edition_str] %>

<% end %>

<% # Can actually be probably used for other service types than full text.
   # But anyway, displays a typical full text element in typical markup.
   # pass in a ServiceType object for the response as :object

   #optional argument, :locals => {:li_class => 'whatever'}
   li_class ||= "fulltextlink"

   # passed in in :object or :collection
   view_data = fulltext_element.view_data
%>

<li class="<%= li_class %>"> <%= link_to view_data[:display_text], {:controller=>'link_router', :id=>fulltext_element.id}, 'target'=>"_blank" %>

<% unless view_data[:coverage].blank? %>

<%= view_data[:coverage] %>

<% end
%>
<% unless view_data[:notes].blank? %>

<%= view_data[:notes] %>

<% end %>
<% unless view_data[:authentication].blank? %>

Authentication: <%= view_data[:authentication] %>

<% end %>

<% if (!view_data[:match_reliability].blank?) && view_data[:match_reliability] != ServiceResponse::MatchExact %>

    May be an alternate edition <%= view_data[:edition_str] %>

<% end %>


Fix close on left handed.

Fix close on left handed.

<%= update_page_tag { |page| page.replace_html active_scaffold_messages_id, :partial => 'core/messages' } %>
<tr class="inline-adapter" id="<%= nested_id  %>">

    <div class="<%= "#{params[:action]}-view" if params[:action] %> <%= "#{params[:associations] ? params[:associations] : params[:controller]}-view" %> view">
      <a href="" class="inline-adapter-close" title="<%= as_(:close) %>"><%= as_(:close) unless active_scaffold_config.left_handed %>
      <%= payload -%>

<%= update_page_tag { |page| page.replace_html active_scaffold_messages_id, :partial => 'core/messages' } %>
<tr class="inline-adapter" id="<%= nested_id  %>">

    <div class="<%= "#{params[:action]}-view" if params[:action] %> <%= "#{params[:associations] ? params[:associations] : params[:controller]}-view" %> view">
      <a href="" class="inline-adapter-close" title="<%= as_(:close) %>"><%= as_(:close) %>
      <%= payload -%>


Collapse para a bit.

Collapse para a bit.

<% @title = "About" %>

Contact us

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

Introduction to WhatDoTheyKnow #

What is WhatDoTheyKnow for? #

To help you find out inside information about what the UK government
is doing.

How does the site work? #

You choose the public authority that you would like information from, then
write a brief note describing what you want to know. We then send your request
to the public authority. Any response they make is automatically published on the
website for you and anyone else to find and read.

Why would I bother to do this? #

You pay taxes, and then government does things with the money. All sorts of
things that affect your life, from healthcare through to national defence. Some
it does badly, some it does well. The more we find out about how government
works, the better able we are to make suggestions to improve the things that
are done badly, and to celebrate the things that are done well.

Why would the public authority bother to reply? #

Under Freedom of Information (FOI) law, they have to respond.

Who makes it? #

WhatDoTheyKnow is created and run by mySociety,
and was initially funded by the JRSST Charitable Trust. mySociety is a project of the
registered charity UK Citizens Online Democracy.
If you like what we're doing, then you can
make a donation.

Making requests #

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 of public authority to the site, for example all
primary care trusts or all schools, then please
edit this shared spreadsheet (Google account required).

How quickly will I get a response? #

By law public authorities must respond "promptly", and in any event not later
than 20 working days after receiving your request. The date of that hard limit
is shown on the page for your request. You will be emailed if this date goes by
without a response, so you can send the public authority another note to remind
them that they are breaking the law. Note: If you had to
clarify your request, the clock starts from that date, instead of the date they
received your initial request.

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?'.

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

Have a look at the
access to official information
pages on the Information Commisioner's website.

Can I request information about myself? #

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

If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

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) #

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

Why can I only request information about the environment from some authorities? #

Some public authorities, such as South East Water,
don't come under the Freedom of Information Act, but do come under another law called
the Environmental Information Regulations (EIR). It's a very similar law, so you make a request
to them using WhatDoTheyKnow in just the same way as an FOI request. The only difference
is that on the page where you write you request, it reminds you that you can only
request "environmental information" and tells you what that means. It is quite broad.

So can I request information using EIR from other authorities? #

Yes, just make a Freedom of Information (FOI) request as normal. The
authority has a duty to work out if the Environmental Information Regulations
(EIR) is the more appropriate legislation to reply under.

Privacy questions #

Who gets to see my email address? #

We will not disclose your email address to anyone unless we are obliged to by law,
or you ask us to. This includes the public authority that you are sending a
request to.  They only get to see an email address
@whatdotheyknow.com which is specific to that request.

If you send a message to another user on the site, then it will reveal your
email address to them. You will be told that this is going to happen.

Will you send nasty, brutish spam to my email address? #

Nope. After you sign up to WhatDoTheyKnow we will only send you emails
relating to a request you made, an email alert that you have signed up for,
or for other reasons that you specifically authorise. We will never give or
sell your email addresses to anyone else, unless we are obliged to by law, or
you ask us to.

Why will my name appear publically on the site? #

It means that someone researching the same area can get in touch with you,
and maybe give you more information or ideas relating to your request.  Also,
we're going to publish the response with the name of the civil servant who
wrote it, so it seems only fair that your name should be public too!
Therefore, we encourage you to use your real name, but you may use a pseudonym
if you would like to be anonymous.

So I can make an FOI request using a pseudonym? #

It is good practice for the public authority to reply to an anonymous request,
except in special circumstances such as if they suspect you of making vexatious
requests. See Freedom of Information Good Practice Guidance No 6
for details.  You should refer to this if a public authority attempts to refuse
a request because you used a pseudonym.

However, there are good reasons to use your real name: see the previous
question.  If nothing else, it avoids the risk of an authority being picky,
ignoring the guidance and refusing your request.

They've asked for my postal address! #

If a public authority asks you for your full, physical address, reply to them saying
that section 8.1.b of the FOI Act asks for an "address for correspondence",
and that the email address you are using is sufficient.

The Ministry of Justice has guidance
on this –
"As well as hard copy written correspondence, requests that are
transmitted electronically (for example, in emails) are acceptable
... If a request is received by email and no postal address is given, the email
address should be treated as the return address."

As if that isn't enough, the Information Commissioner's
Hints for Practitioners say
"Any correspondence could include a request for information. If it is written (this includes e-mail), legible, gives the name of the applicant, an address for reply (which could be electronic), and includes a description of the information required, then it will fall within the scope of the legislation."

No no, they need a postal address to send a paper response! #

If an authority only has a paper copy of the information that you want,
they may ask you for a postal address. To start with, try persuading them
to scan in the documents for you. You can even offer to gift them a scanner, which in that particular case
embarrassed the authority into finding one they had already.

If that doesn't work, and you want to provide your postal address privately
in order to receive the documents, then please contact
us.

How do you moderate request annotations? #

Annotations on WhatDoTheyKnow 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.

FOI officer questions #

I just got here from bottom of an FOI request, what is going on? #

WhatDoTheyKnow is a service run by a charity. It helps ordinary members
of the public make FOI requests, and easily track and share the responses.

The FOI request you received was made by someone using WhatDoTheyKnow. You can
simply reply to the request as you would any other request from an individual.
The only difference is that your response will be automatically published on
the Internet.

If you have privacy or other concerns, please read the answers below.
You might also like to read this page from the top to find out more about what
the site does from the point of view of a user. You can also search the
site to find the authority that you work for, and view the status of
any requests made using the site.

Finally, we welcome comments and
thoughts from FOI officers, please get in touch.

Why are you publishing responses to FOI requests? #

We think there are lots of benefits. Most importantly it will encourage the
public to be more interested and involved in the work of government. We
also hope that it will reduce the number of duplicate requests on any
subject that a public body will receive. Given that Freedom of Information
responses contain public information, which anybody could easily request
again from the public authority, we think there should be no reason not to
publish it widely.

Are the people making requests real people? #

Yes. For the purposes of keeping track of responses we use
computer-generated email addresses for each request. However, before
they can send a request, each user must register on the site with a
unique email address that we then verify. You can search this site and
find a page listing all requests that each person has made.

An email isn't a sufficient address for an FOI request! #

Yes it is. This
letter from the ICO to Rother District Council gives guidance on the matter, specifically
in the context of requests made via WhatDoTheyKnow.

Aren't you making lots of vexatious requests? #

WhatDoTheyKnow is not making any requests. We are sending requests on
behalf of our users, who are real people making the requests.

Look at it like this - if lots of different people made requests from
different Hotmail email addresses, then you would not think that Microsoft were
making vexatious requests. It is exactly the same if lots of requests are made
via WhatDoTheyKnow. Moreover, since all requests are public it is much easier
for you to see if one of our users is making vexatious requests, and for us to
block them when that happens.

If that isn't enough for you, the
letter from the ICO to Rother District Council gives some guidance on the matter.

Isn't it a problem that you publish the names of civil servants and the text of emails? #

Officers or servants responding to requests are doing so on behalf of the
public as part of their job, and we publish their response on that
basis. Usually the names and phone numbers of FOI officers are already
available on authority websites. We also encourage our users to give their real
name too, so it is fair both ways.

Do you publish email addresses or mobile phone numbers? #

We automatically remove email addresses and labelled mobile phone numbers
that are in the email part of responses from public authorities. Please
contact us if we've missed one. We don't currently
remove these from attachments,
such as Word documents.

Can you take down private information about me? #

If you see any information on the site which you'd like us to remove or
hide, then please let us know. We'll then
remove it, provided it is genuinely private information.

Credit where credit is due #

Which people made WhatDoTheyKnow? #

Oh, nearly everyone (and maybe you too)!

    Heather Brooke
    (vampy!) has
    been pushing the idea of a UK FOI archive for years now.

    Both Phil Rodgers and Francis Irving
    entered it in a mySociety competition for ideas for public interest websites to build.

    It won,
    and then Chris Lightfoot (RIP :()
    thought up the wheeze of intercepting email responses to requests and
    automatically publishing them.

    Tom Steinberg got the cash to pay for the site from
    a dead chocolate mogul (thank you!) ...

    ... so that Francis Irving, Angie Ahl, Tommy Martin, Louise Crow, Matthew Somerville
    and Tom Steinberg could do the complex mixture of design and coding to build
    what you see today.

    Thanks particularly to Julian Todd (great blog!),
    Francis Davey, and Etienne Pollard for using the site early on and giving
    feedback (and/or legal advice!), and also to all our other users and
    testers.

    Lots of people have been looking up FOI email addresses, and a few
    volunteering to run the site - most especially Adam McGreggor, Alex
    Skene, John Cross and Tony Bowden.

Finally we couldn't do any of this without those
crazy people who volunteer,
amongst many other things, to do the accounts and fill in our VAT return.

You're all stars.

<% @title = "About" %>

Contact us

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

Introduction to WhatDoTheyKnow #

What is WhatDoTheyKnow for? #

To help you find out inside information about what the UK government
is doing.

How does the site work? #

You choose the public authority that you would like information from, then
write a brief note describing what you want to know. We then send your request
to the public authority. Any response they make is automatically published on the
website for you and anyone else to find and read.

Why would I bother to do this? #

You pay taxes, and then government does things with the money. All sorts of
things that affect your life, from healthcare through to national defence. Some
it does badly, some it does well. The more we find out about how government
works, the better able we are to make suggestions to improve the things that
are done badly, and to celebrate the things that are done well.

Why would the public authority bother to reply? #

Under Freedom of Information (FOI) law, they have to respond.

Who makes it? #

WhatDoTheyKnow is created and run by mySociety,
and was initially funded by the JRSST Charitable Trust. mySociety is a project of the
registered charity UK Citizens Online Democracy.
If you like what we're doing, then you can
make a donation.

Making requests #

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 of public authority to the site, for example all
primary care trusts or all schools, then please
edit this shared spreadsheet (Google account required).

How quickly will I get a response? #

By law public authorities must respond "promptly", and in any event not later
than 20 working days after receiving your request. The date of that hard limit
is shown on the page for your request. You will be emailed if this date goes by
without a response, so you can send the public authority another note to remind
them that they are breaking the law. Note: If you had to
clarify your request, the clock starts from that date, instead of the date they
received your initial request.

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?'.

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

Have a look at the
access to official information
pages on the Information Commisioner's website.

Can I request information about myself? #

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

If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

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) #

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

Why can I only request information about the environment from some authorities? #

Some public authorities, such as South East Water,
don't come under the Freedom of Information Act, but do come under another law called
the Environmental Information Regulations (EIR). It's a very similar law, so you make a request
to them using WhatDoTheyKnow in just the same way as an FOI request. The only difference
is that on the page where you write you request, it reminds you that you can only
request "environmental information" and tells you what that means. It is quite broad.

So can I request information using EIR from other authorities? #

Yes, just make a Freedom of Information (FOI) request as normal. The
authority has a duty to work out if the Environmental Information Regulations
(EIR) is the more appropriate legislation to reply under.

Privacy questions #

Who gets to see my email address? #

We will not disclose your email address to anyone unless we are obliged to by law,
or you ask us to.

This includes the public authority that you are sending a request to.
They only get to see a special email address (it is @whatdotheyknow.com)
specific to that request.

If you send a message to another user on the site, then it will reveal your
email address to them. You will be told that this is going to happen.

Will you send nasty, brutish spam to my email address? #

Nope. After you sign up to WhatDoTheyKnow we will only send you emails
relating to a request you made, an email alert that you have signed up for,
or for other reasons that you specifically authorise. We will never give or
sell your email addresses to anyone else, unless we are obliged to by law, or
you ask us to.

Why will my name appear publically on the site? #

It means that someone researching the same area can get in touch with you,
and maybe give you more information or ideas relating to your request.  Also,
we're going to publish the response with the name of the civil servant who
wrote it, so it seems only fair that your name should be public too!
Therefore, we encourage you to use your real name, but you may use a pseudonym
if you would like to be anonymous.

So I can make an FOI request using a pseudonym? #

It is good practice for the public authority to reply to an anonymous request,
except in special circumstances such as if they suspect you of making vexatious
requests. See Freedom of Information Good Practice Guidance No 6
for details.  You should refer to this if a public authority attempts to refuse
a request because you used a pseudonym.

However, there are good reasons to use your real name: see the previous
question.  If nothing else, it avoids the risk of an authority being picky,
ignoring the guidance and refusing your request.

They've asked for my postal address! #

If a public authority asks you for your full, physical address, reply to them saying
that section 8.1.b of the FOI Act asks for an "address for correspondence",
and that the email address you are using is sufficient.

The Ministry of Justice has guidance
on this –
"As well as hard copy written correspondence, requests that are
transmitted electronically (for example, in emails) are acceptable
... If a request is received by email and no postal address is given, the email
address should be treated as the return address."

As if that isn't enough, the Information Commissioner's
Hints for Practitioners say
"Any correspondence could include a request for information. If it is written (this includes e-mail), legible, gives the name of the applicant, an address for reply (which could be electronic), and includes a description of the information required, then it will fall within the scope of the legislation."

No no, they need a postal address to send a paper response! #

If an authority only has a paper copy of the information that you want,
they may ask you for a postal address. To start with, try persuading them
to scan in the documents for you. You can even offer to gift them a scanner, which in that particular case
embarrassed the authority into finding one they had already.

If that doesn't work, and you want to provide your postal address privately
in order to receive the documents, then please contact
us.

How do you moderate request annotations? #

Annotations on WhatDoTheyKnow 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.

FOI officer questions #

I just got here from bottom of an FOI request, what is going on? #

WhatDoTheyKnow is a service run by a charity. It helps ordinary members
of the public make FOI requests, and easily track and share the responses.

The FOI request you received was made by someone using WhatDoTheyKnow. You can
simply reply to the request as you would any other request from an individual.
The only difference is that your response will be automatically published on
the Internet.

If you have privacy or other concerns, please read the answers below.
You might also like to read this page from the top to find out more about what
the site does from the point of view of a user. You can also search the
site to find the authority that you work for, and view the status of
any requests made using the site.

Finally, we welcome comments and
thoughts from FOI officers, please get in touch.

Why are you publishing responses to FOI requests? #

We think there are lots of benefits. Most importantly it will encourage the
public to be more interested and involved in the work of government. We
also hope that it will reduce the number of duplicate requests on any
subject that a public body will receive. Given that Freedom of Information
responses contain public information, which anybody could easily request
again from the public authority, we think there should be no reason not to
publish it widely.

Are the people making requests real people? #

Yes. For the purposes of keeping track of responses we use
computer-generated email addresses for each request. However, before
they can send a request, each user must register on the site with a
unique email address that we then verify. You can search this site and
find a page listing all requests that each person has made.

An email isn't a sufficient address for an FOI request! #

Yes it is. This
letter from the ICO to Rother District Council gives guidance on the matter, specifically
in the context of requests made via WhatDoTheyKnow.

Aren't you making lots of vexatious requests? #

WhatDoTheyKnow is not making any requests. We are sending requests on
behalf of our users, who are real people making the requests.

Look at it like this - if lots of different people made requests from
different Hotmail email addresses, then you would not think that Microsoft were
making vexatious requests. It is exactly the same if lots of requests are made
via WhatDoTheyKnow. Moreover, since all requests are public it is much easier
for you to see if one of our users is making vexatious requests, and for us to
block them when that happens.

If that isn't enough for you, the
letter from the ICO to Rother District Council gives some guidance on the matter.

Isn't it a problem that you publish the names of civil servants and the text of emails? #

Officers or servants responding to requests are doing so on behalf of the
public as part of their job, and we publish their response on that
basis. Usually the names and phone numbers of FOI officers are already
available on authority websites. We also encourage our users to give their real
name too, so it is fair both ways.

Do you publish email addresses or mobile phone numbers? #

We automatically remove email addresses and labelled mobile phone numbers
that are in the email part of responses from public authorities. Please
contact us if we've missed one. We don't currently
remove these from attachments,
such as Word documents.

Can you take down private information about me? #

If you see any information on the site which you'd like us to remove or
hide, then please let us know. We'll then
remove it, provided it is genuinely private information.

Credit where credit is due #

Which people made WhatDoTheyKnow? #

Oh, nearly everyone (and maybe you too)!

    Heather Brooke
    (vampy!) has
    been pushing the idea of a UK FOI archive for years now.

    Both Phil Rodgers and Francis Irving
    entered it in a mySociety competition for ideas for public interest websites to build.

    It won,
    and then Chris Lightfoot (RIP :()
    thought up the wheeze of intercepting email responses to requests and
    automatically publishing them.

    Tom Steinberg got the cash to pay for the site from
    a dead chocolate mogul (thank you!) ...

    ... so that Francis Irving, Angie Ahl, Tommy Martin, Louise Crow, Matthew Somerville
    and Tom Steinberg could do the complex mixture of design and coding to build
    what you see today.

    Thanks particularly to Julian Todd (great blog!),
    Francis Davey, and Etienne Pollard for using the site early on and giving
    feedback (and/or legal advice!), and also to all our other users and
    testers.

    Lots of people have been looking up FOI email addresses, and a few
    volunteering to run the site - most especially Adam McGreggor, Alex
    Skene, John Cross and Tony Bowden.

Finally we couldn't do any of this without those
crazy people who volunteer,
amongst many other things, to do the accounts and fill in our VAT return.

You're all stars.


Entity-escape blacklist patterns

Entity-escape blacklist patterns

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

  Pattern
  Type
  Edit
  Delete

<% for blacklist_pattern in @blacklist_patterns -%>
<tr <%= alternate_class -%>>
  <%= link_to h(blacklist_pattern.pattern), :action => "edit", :id => blacklist_pattern.id %>
  <%= blacklist_pattern.class %>
  <%= link_to_edit blacklist_pattern %>
  <%= link_to_destroy blacklist_pattern %>

<% end -%>

  Pattern
  Type
  Edit
  Delete

<% for blacklist_pattern in @blacklist_patterns -%>
<tr <%= alternate_class -%>>
  <%= link_to blacklist_pattern.pattern, :action => "edit", :id => blacklist_pattern.id %>
  <%= blacklist_pattern.class %>
  <%= link_to_edit blacklist_pattern %>
  <%= link_to_destroy blacklist_pattern %>

<% end -%>


ActionItem788: adding address field when editing enterprise

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

  <%= _('Display name') %>

    <%= text_field_tag 'profile_data[nickname]', @profile_data.nickname, :id => 'profile_data_nickname', :size => 30, :maxlength => 16 %>
    <%= _('A short name by which the organization is know.')%>

  <%= f.text_field(:acronym) %>
  <%= f.text_field(:address, 'size' => 50) if @profile.kind_of?(Enterprise) %>
  <%= f.text_field(:foundation_year) %>
  <%= f.text_field(:contact_person) %>
  <%= f.text_field(:contact_email) %>
  <%= f.text_field(:legal_form) %>
  <%= f.text_field(:economic_activity) %>
  <%= f.text_area(:management_information, :rows => 5) %>
  <%= f.text_area(:description, :rows => 5) if @profile.kind_of?(Community) %>

<%= _('Moderation options') %>

  <%= _('New members must be approved:')%>

    <%= radio_button 'profile_data', 'closed', 'true', :style => 'float: left' %>

      <%= _('Before joining this group (a moderator has to accept the member in pending request before member can access the intranet and/or the website).') %>

    <%= radio_button 'profile_data', 'closed', 'false', :style => 'float: left' %>

      <%= _('After joining this group (a moderator can always desactivate access for users later).') %>

  <%= _('New articles posted by members of this group must be approved:')%>

    <%= radio_button 'profile_data', 'moderated_articles', 'true', :style => 'float: left' %>

      <%= _('Before being published in this group (a moderator has to accept the article in pending request before the article be listed as a article of this group.') %>

    <%= radio_button 'profile_data', 'moderated_articles', 'false', :style => 'float: left' %>

      <%= _('After being published in this group (a moderator can always remove publicated articles later).') %>

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

  <%= _('Display name') %>

    <%= text_field_tag 'profile_data[nickname]', @profile_data.nickname, :id => 'profile_data_nickname', :size => 30, :maxlength => 16 %>
    <%= _('A short name by which the organization is know.')%>

  <%= f.text_field(:acronym) %>
  <%= f.text_field(:foundation_year) %>
  <%= f.text_field(:contact_person) %>
  <%= f.text_field(:contact_email) %>
  <%= f.text_field(:legal_form) %>
  <%= f.text_field(:economic_activity) %>
  <%= f.text_area(:management_information, :rows => 5) %>
  <%= f.text_area(:description, :rows => 5) if @profile.kind_of?(Community) %>

<%= _('Moderation options') %>

  <%= _('New members must be approved:')%>

    <%= radio_button 'profile_data', 'closed', 'true', :style => 'float: left' %>

      <%= _('Before joining this group (a moderator has to accept the member in pending request before member can access the intranet and/or the website).') %>

    <%= radio_button 'profile_data', 'closed', 'false', :style => 'float: left' %>

      <%= _('After joining this group (a moderator can always desactivate access for users later).') %>

  <%= _('New articles posted by members of this group must be approved:')%>

    <%= radio_button 'profile_data', 'moderated_articles', 'true', :style => 'float: left' %>

      <%= _('Before being published in this group (a moderator has to accept the article in pending request before the article be listed as a article of this group.') %>

    <%= radio_button 'profile_data', 'moderated_articles', 'false', :style => 'float: left' %>

      <%= _('After being published in this group (a moderator can always remove publicated articles later).') %>


Adding contact email and themes to site info interface

<%= required labelled_form_field(_('Site name'), text_field(:environment, :name)) %>
<%= labelled_form_field(_('Contact email'), text_field(:environment, :contact_email)) %>
<% themes_options = Theme.system_themes.map {|theme| [theme.name, theme.id] }.sort %>
<%= labelled_form_field(_('Theme'), select(:environment, :theme, options_for_select(themes_options, environment.theme))) %>
<%= required f.text_field(:reports_lower_bound, :size => 3) %>
<%= labelled_form_field(_('Default language'), select(:environment, :default_language, environment.locales.invert, { :selected => environment.default_locale, :include_blank => true })) %>
<%= label_tag :languages, _('Available languages') %>

<%
  fields = Noosfero.locales.map do |value, name|
    labelled_check_box(name, "environment[languages][#{value}]", true, environment.available_locales.include?(value))
  end
%>
<%= balanced_table(fields)%>

<%= labelled_form_field _('Homepage content'), text_area(:environment, :description, :cols => 40, :style => 'width: 90%', :class => 'mceEditor') %>

<%= required labelled_form_field(_('Site name'), text_field(:environment, :name)) %>
<%= required f.text_field(:reports_lower_bound, :size => 3) %>
<%= labelled_form_field(_('Default language'), select(:environment, :default_language, environment.locales.invert, { :selected => environment.default_locale, :include_blank => true })) %>
<%= label_tag :languages, _('Available languages') %>

<%
  fields = Noosfero.locales.map do |value, name|
    labelled_check_box(name, "environment[languages][#{value}]", true, environment.available_locales.include?(value))
  end
%>
<%= balanced_table(fields)%>

<%= labelled_form_field _('Homepage content'), text_area(:environment, :description, :cols => 40, :style => 'width: 90%', :class => 'mceEditor') %>


Replacing '' by "" to display \n

Replacing '' by "" to display \n

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= html_language %>" lang="<%= html_language %>">

    <title><%= h page_title %></title>
    <%= yield(:feeds) %>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="description" content="<%= @environment.name %>" />
    <link rel="shortcut icon" href="<%= image_path(theme_favicon) %>" type="image/x-icon" />
    <%= noosfero_javascript %>
    <%= stylesheet_link_tag noosfero_stylesheets, :cache => 'cache' %>
    <%= stylesheet_link_tag template_stylesheet_path %>
    <%= stylesheet_link_tag icon_theme_stylesheet_path %>
    <%= stylesheet_link_tag jquery_ui_theme_stylesheet_path %>
    <% @plugins.enabled_plugins.each do |plugin| %>
      <% if plugin.stylesheet? %>
        <%= stylesheet_tag plugin.class.public_path('style.css'), {} %>
      <% end %>
    <% end %>
    <%= stylesheet_link_tag theme_stylesheet_path %>

    <%# Add custom tags/styles/etc via content_for %>
    <%= yield :head %>
    <%= javascript_tag('render_all_jquery_ui_widgets()') %>
    <% @plugins.enabled_plugins.each do |plugin| %>
      <% plugin.js_files.each do |js_file| %>
        <%= javascript_src_tag plugin.class.public_path(js_file), {} %>
      <% end %>
    <% end %>
    <%=
      @plugins.map(:head_ending).collect do |content|
        content.respond_to?(:call) ? content.call : content
      end.join("\n")
    %>

  <body class="<%=
    # Identify the current controller and action for the CSS:
    " controller-"+ @controller.controller_name() +
    " action-"+ @controller.controller_name() +"-"+ @controller.action_name() +
    " template-"+ ( profile.nil? ? "default" : profile.layout_template ) +
    (!profile.nil? && profile.is_on_homepage?(request.path,@page) ? " profile-homepage" : "")
    %>" >

    <%= _("Go to the content") %>
    <%=
      @plugins.map(:body_beginning).collect do |content|
        content.respond_to?(:call) ? content.call : content
      end.join("\n")
    %>

        <%= theme_header %>

            <%= usermenu_logged_in %>

              <%= _("%s or %s") % [thickbox_inline_popup_link('' + _('Login') + '', login_url, 'inlineLoginBox', :id => 'link_login'), link_to('' + _('Register') + '', :controller => 'account', :action => 'signup') ] %>

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

          <form action="/search" class="search_form" method="get" class="clean">
            <input name="query" size="15" value="<%=_('Search...')%>"
                onfocus="this.form.className='focused';
                         if(this.value=='<%=_('Search...')%>'){this.value=''}"
                onblur="this.form.className='';
                        if(/^\s*$/.test(this.value)){
                          this.value='<%=_('Search...')%>';
                          this.form.className='clean'
                        }" />

<%=_('Press Enter to send the search query.')%>

          </form>

          <%= theme_site_title %>

            <%= theme_extra_navigation %>

            <%= insert_boxes(yield) %>

    <%= render_environment_features(:logged_in) %>

      <%= theme_footer %>

    <%= noosfero_layout_features %>
    <%= theme_javascript_ng %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= html_language %>" lang="<%= html_language %>">

    <title><%= h page_title %></title>
    <%= yield(:feeds) %>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="description" content="<%= @environment.name %>" />
    <link rel="shortcut icon" href="<%= image_path(theme_favicon) %>" type="image/x-icon" />
    <%= noosfero_javascript %>
    <%= stylesheet_link_tag noosfero_stylesheets, :cache => 'cache' %>
    <%= stylesheet_link_tag template_stylesheet_path %>
    <%= stylesheet_link_tag icon_theme_stylesheet_path %>
    <%= stylesheet_link_tag jquery_ui_theme_stylesheet_path %>
    <% @plugins.enabled_plugins.each do |plugin| %>
      <% if plugin.stylesheet? %>
        <%= stylesheet_tag plugin.class.public_path('style.css'), {} %>
      <% end %>
    <% end %>
    <%= stylesheet_link_tag theme_stylesheet_path %>

    <%# Add custom tags/styles/etc via content_for %>
    <%= yield :head %>
    <%= javascript_tag('render_all_jquery_ui_widgets()') %>
    <% @plugins.enabled_plugins.each do |plugin| %>
      <% plugin.js_files.each do |js_file| %>
        <%= javascript_src_tag plugin.class.public_path(js_file), {} %>
      <% end %>
    <% end %>
    <%=
      @plugins.map(:head_ending).collect do |content|
        content.respond_to?(:call) ? content.call : content
      end.join('\n')
    %>

  <body class="<%=
    # Identify the current controller and action for the CSS:
    " controller-"+ @controller.controller_name() +
    " action-"+ @controller.controller_name() +"-"+ @controller.action_name() +
    " template-"+ ( profile.nil? ? "default" : profile.layout_template ) +
    (!profile.nil? && profile.is_on_homepage?(request.path,@page) ? " profile-homepage" : "")
    %>" >

    <%= _("Go to the content") %>
    <%=
      @plugins.map(:body_beginning).collect do |content|
        content.respond_to?(:call) ? content.call : content
      end.join('\n')
    %>

        <%= theme_header %>

            <%= usermenu_logged_in %>

              <%= _("%s or %s") % [thickbox_inline_popup_link('' + _('Login') + '', login_url, 'inlineLoginBox', :id => 'link_login'), link_to('' + _('Register') + '', :controller => 'account', :action => 'signup') ] %>

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

          <form action="/search" class="search_form" method="get" class="clean">
            <input name="query" size="15" value="<%=_('Search...')%>"
                onfocus="this.form.className='focused';
                         if(this.value=='<%=_('Search...')%>'){this.value=''}"
                onblur="this.form.className='';
                        if(/^\s*$/.test(this.value)){
                          this.value='<%=_('Search...')%>';
                          this.form.className='clean'
                        }" />

<%=_('Press Enter to send the search query.')%>

          </form>

          <%= theme_site_title %>

            <%= theme_extra_navigation %>

            <%= insert_boxes(yield) %>

    <%= render_environment_features(:logged_in) %>

      <%= theme_footer %>

    <%= noosfero_layout_features %>
    <%= theme_javascript_ng %>


Aligning events on search results

Aligning events on search results

(ActionItem1930)

<li class="<%= icon_for_article(event) %>">
  <%= link_to(event.title, event.url) %>

    <%= show_period(event.start_date, event.end_date) %>

  <%= link_to(event.title, event.url, :class => icon_for_article(event)) %>

    <%= show_period(event.start_date, event.end_date) %>


Yourself is better wording I think

Yourself is better wording I think

<% @title = "Contact us" %>

<%= foi_error_messages_for :contact %>

<% form_for :contact do |f| %>

Make a request for public, official information

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

Request information about yourself

        Our help page about data protection
        explains how to request information about yourself from UK public authorities.

Contact the WhatDoTheyKnow team

        We'd love to hear how you have found using this site.

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

    <% if not @user %>

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

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

    <% end %>

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

        Message:
        <%= f.text_area :message, :rows => 5, :cols => 50 %>

        <%= hidden_field_tag(:submitted_contact_form, 1) %>
        <%= submit_tag "Send message to the WhatDoTheyKnow team" %>

<% end %>

<% @title = "Contact us" %>

<%= foi_error_messages_for :contact %>

<% form_for :contact do |f| %>

Make a request for public, official information

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

Request information about myself

        Our help page about data protection
        explains how to request information about yourself from UK public authorities.

Contact the WhatDoTheyKnow team

        We'd love to hear how you have found using this site.

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

    <% if not @user %>

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

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

    <% end %>

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

        Message:
        <%= f.text_area :message, :rows => 5, :cols => 50 %>

        <%= hidden_field_tag(:submitted_contact_form, 1) %>
        <%= submit_tag "Send message to the WhatDoTheyKnow team" %>

<% end %>


Add wording to rememeber me box

Add wording to rememeber me box

<% form_tag({:action => "signin"}, {:id => "signin_form"}) do %>
    <%= foi_error_messages_for :user_signin %>

If you've used WhatDoTheyKnow before

    Your e-mail:
    <%= text_field 'user_signin', 'email', { :size => 20 } %>

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

    <%= link_to "Forgotten your password?", signchange_url + "?pretoken=" + h(params[:token]) %>

    <%= check_box_tag 'remember_me', "1" %>
    Remember me (keeps you signed in longer;
    do not use on a public computer)

    <%= hidden_field_tag 'token', params[:token], { :id => 'signin_token' } %>
    <%= submit_tag "Sign in" %>

<% end %>

<% form_tag({:action => "signin"}, {:id => "signin_form"}) do %>
    <%= foi_error_messages_for :user_signin %>

If you've used WhatDoTheyKnow before

    Your e-mail:
    <%= text_field 'user_signin', 'email', { :size => 20 } %>

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

    <%= link_to "Forgotten your password?", signchange_url + "?pretoken=" + h(params[:token]) %>

    <%= check_box_tag 'remember_me', "1" %>
    Remember me

    <%= hidden_field_tag 'token', params[:token], { :id => 'signin_token' } %>
    <%= submit_tag "Sign in" %>

<% end %>


Fixing postgresql quote problem

Fixing postgresql quote problem

  <span class='button-add' data-value='<%= _('Add to the text') %>'>
  <span class='button-zoom' data-value='<%= _('Zoom in') %>'>
  <span class='button-close' data-value='<%= _('Close') %>'>

  <%= render(:partial => 'textile_quick_reference') if @article.is_a?(TextileArticle) %>

<%= _('Insert media') %>

      <% form_tag({ :action => 'media_upload' }, :multipart => true) do %>

          <% default_folder = content_id_to_str default_folder_for_image_upload(profile) %>
          <%= select_profile_folder(
                _('Choose folder to upload files:'),
                :parent_id, profile, default_folder, {}, {},
                "type='Folder' or type='Gallery'"
          ) %>

<%= file_field_tag('file1') %>

<%= file_field_tag('file2') %>

<%= file_field_tag('file3') %>

        <% button_bar do %>
          <%= submit_button(:save, _('Upload')) %>
        <% end %>
      <% end %>

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

<%= link_to(_('Upload more files ...'), '#', :id => 'media-upload-more-files')%>

<%= _('Media search') %>

    <% form_tag({ :action => 'search' }) do %>

        <input name='q' type='text' id='media-search-query' style='width: 250px;'/>

      <%= submit_button :search, _('Search'), :id => 'media-search-button' %>
    <% end %>

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

  <span class='button-add' data-value='<%= _('Add to the text') %>'>
  <span class='button-zoom' data-value='<%= _('Zoom in') %>'>
  <span class='button-close' data-value='<%= _('Close') %>'>

  <%= render(:partial => 'textile_quick_reference') if @article.is_a?(TextileArticle) %>

<%= _('Insert media') %>

      <% form_tag({ :action => 'media_upload' }, :multipart => true) do %>

          <% default_folder = content_id_to_str default_folder_for_image_upload(profile) %>
          <%= select_profile_folder(
                _('Choose folder to upload files:'),
                :parent_id, profile, default_folder, {}, {},
                'type="Folder" or type="Gallery"'
          ) %>

<%= file_field_tag('file1') %>

<%= file_field_tag('file2') %>

<%= file_field_tag('file3') %>

        <% button_bar do %>
          <%= submit_button(:save, _('Upload')) %>
        <% end %>
      <% end %>

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

<%= link_to(_('Upload more files ...'), '#', :id => 'media-upload-more-files')%>

<%= _('Media search') %>

    <% form_tag({ :action => 'search' }) do %>

        <input name='q' type='text' id='media-search-query' style='width: 250px;'/>

      <%= submit_button :search, _('Search'), :id => 'media-search-button' %>
    <% end %>

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


ActionItem1195: adding missing </li>

ActionItem1195: adding missing </li>

<%# FIXME add more information %>

<%
product_item_pos = 0  if ! product_item_pos
product_item_pos += 1
%>

<li class="product-item <%= ( pos % 2 == 0 ) ? 'odd' : 'even' %>">
  <%= link_to_product product, :class => 'product-pic', :style => 'background-image:url(%s)' %
       ( product.image ? product.image.public_filename(:minor) : '/images/icons-app/product-default-pic-minor.png' ) %>

    <%= link_to_product product %>

 <%= _('Price: %s') % (product.price ? product.price : _('Not informed')) %>

    <% if product.enterprise %>

 <%= _('Suplier: %s') % link_to_homepage(product.enterprise.name, product.enterprise.identifier) %>

    <% end %>

 <%=_('Category:') + ' ' + link_to_product_category(product.product_category) %>


updating theme

updating theme

<%= @page.title %> HUB

<%= @page.body %>

      <%= @page.title %><%= _("Live") %>

    <%= check_box_tag 'auto_scrolling', 'yes', true %><%= _("Auto scrolling") %>

      <%= _("Mediation") %>▼

    <%= render :partial => "community_hub_plugin_public/post_form", :locals => {:user_role => 'admin'} %>

    <%= render :partial => "community_hub_plugin_public/settings" %>

<%= @page.title %> HUB

<%= @page.body %>

      <%= @page.title %><%= _("Live") %>

    <%= check_box_tag 'auto_scrolling', 'yes', true %><%= _("Auto scrolling") %>

      <%= _("Mediation") %>+

    <%= render :partial => "community_hub_plugin_public/post_form", :locals => {:user_role => 'admin'} %>

    <%= render :partial => "community_hub_plugin_public/settings" %>


textile.

textile.

<%= header %>

<%= render_textile(body) %>

<%= footer %>

<%= header %>

<%= render_redcloth(body) %>

<%= footer %>