Comments

Comments

<%= render :partial => 'help/alpha_notice' %>

Make requests for information from the UK Government

    <% if @public_bodies.size == 0 and @query_made %>

            Sorry! We couldn't find any public bodies with that in their names.
            Either browse them all or
            ask us to add the one you want.

    <% end %>

    <% form_tag({:action => :frontpage}, :method => 'get', :id => 'public_body_form', :class => 'plaque' ) do %>

            Find the public body you would like information from:

            <%= text_field_with_auto_complete 'public_body', 'query', {}, { :skip_style => true, :frequency => 0.1,
                :after_update_element =>
                  "function(element,value) {
                      parent.window.location = '/?public_body[query]=' + element.value
                  }"
                } %>

            Type to search e.g. Health, Business, Scotland

            <%= submit_tag "Search" %>

        <% if @public_bodies.size > 0 %>

                    Public bodies found
                <% for public_body in @public_bodies %>

                        <%= link_to h(public_body.name), new_request_to_body_url(:public_body_id => public_body.id.to_s) %>

                <% end %>

        <% end %>

            Can't find it? Browse all or ask us to add it.

    <% end %>

Explore information that others requested

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

View all information


not sure where the hell that bug came from

<%
  # save the conversion to hash on every call!
  ref_meta = @current_context_object.referent.metadata
%>

<%
atitle_label = nil
title_label = nil
if ! ref_meta["atitle"].blank? %>

<%
unless ref_meta['genre'].blank?
	case ref_meta["genre"]
		when /article|journal|issue/
			atitle_label = 'Article Title'
			title_label = 'Journal Title'
		when /bookitem|book/
			atitle_label = 'Chapter/Part Title'
			title_label = 'Book Title'
		when /proceeding|conference/
			atitle_label = 'Proceeding Title'
			title_label = 'Conference Name'
		when 'report'
			atitle_label = 'Report Title'
			title_label = 'Report'
	end
else
	if @current_context_object.referent.format == 'book'
		atitle_label = 'Chapter/Part Title'
	elsif @current_context_object.referent.format == 'journal'
		atitle_label = 'Article Title'
	end
	title_label = 'Title'
end

%>

<%= atitle_label %>:

<%= ref_meta["atitle"] %>

<% unless ref_meta["atitle"] == @context_object.referent.metadata["atitle"]%>
	<%= link_to image_tag('http://sfx.galib.uga.edu/sfx_git1/sfx.gif', :border=>0), @current_context_object.to_hash.merge(:controller=>"resolve")%>
<% end%>

<%
@page_title = ref_meta["atitle"]
end
author_row = ''
title_row = ''
unless ref_meta["au"].nil? and ref_meta['aulast'].nil?
author_row = '

Author:
	'
	unless ref_meta["au"].nil?
		author_row += ref_meta["au"]
	else
	author_row += ref_meta["aulast"]
	unless ref_meta["aufirst"].nil?
		author_row += ',	'+ref_meta["aufirst"]
	else
		unless ref_meta["auinit"].nil?
			author_row += ',	'+ref_meta["auinit"]
		else
			unless ref_meta["auinit1"].nil?
				author_row += ',	'+ref_meta["auinit1"]
			end
			unless ref_meta["auinitm"].nil?
				author_row += ref_meta["auinitm"]
			end
		end
	end
	end
	author_row += '
'
end
 if ref_meta.has_key?("jtitle")  or ref_meta.has_key?("title") or ref_meta.has_key?("btitle")
    @co = OpenURL::ContextObject.new
    @co.import_context_object(@current_context_object)
    #@co.referent.metadata["atitle"] = nil
    #@co.referent.metadata["volume"] = nil
    #@co.referent.metadata["spage"] = nil
    #@co.referent.metadata["epage"] = nil
    #@co.referent.metadata["issue"] = nil
    #@co.referent.metadata["date"] = nil
    #@co.referent.metadata["aulast"] = nil
    #@co.referent.metadata["au"] = nil
    #@co.referent.metadata["auinit"] = nil
    #@co.referent.metadata["auinit1"] = nil
    # @co.referent.set_identifier(nil)
    if ! @co.referent.metadata["title"].blank?
      title = @co.referent.metadata["title"]
    elsif ! @co.referent.metadata["btitle"].blank?
      title = @co.referent.metadata["btitle"]
    elsif ! @co.referent.metadata["jtitle"].blank?
      title = @co.referent.metadata["jtitle"]
    end
		if title_label.nil?
			unless ref_meta['genre'].blank?
				case ref_meta["genre"]
					when /article|journal|issue/
						title_label = 'Journal Title'
					when /bookitem|book/
						title_label = 'Book Title'
					when /proceeding|conference/
						title_label = 'Conference Name'
					when 'report'
						title_label = 'Report Title'
				end
			else
				title_label = 'Title'
			end
		end

style = 'largeText'
unless ref_meta['atitle'].nil?
	style = 'smallText'
end
title_row = '

'+title_label+':	'

title_row += link_to title, @co.to_hash.merge(:controller=>"resolve")

title_row += '
'
  unless @page_title
   @page_title = title
  end
end
unless ref_meta['atitle'].blank? %>
<%= author_row.to_s + title_row.to_s %>
<% else %>
<%= title_row.to_s+author_row.to_s %>
<%
end
if ref_meta.has_key?("issn") %>

ISSN:

<%=ref_meta["issn"] %>

<%
end

if ref_meta.has_key?("isbn") %>

ISBN:

<%=ref_meta["isbn"] %>

<%
end
pub = []
if ref_meta.has_key?("date")
	pub << date_format(ref_meta["date"].to_s)
end
if ref_meta.has_key?("volume")
	pub << 'Volume:  '+ref_meta["volume"].to_s
end
if ref_meta.has_key?("issue")
	pub << 'Issue:  '+ref_meta["issue"].to_s
end

if ref_meta.has_key?("spage")
	pub << 'Page:  '+ref_meta["spage"].to_s
end
if ref_meta.has_key?("epage")
	pub << '-  '+ref_meta["epage"].to_s
end
%>

<%
 unless ref_meta['pub'].blank? &&
        ref_meta['place'].blank? %>

Publisher:

  <% unless ref_meta['place'].blank?  %>
      <%= ref_meta['place'] %> :
  <% end %>
  <%= ref_meta['pub'] %>

<% end %>

	<%= resolver_link(@current_context_object) %>

<%
  # save the conversion to hash on every call!
  ref_meta = @current_context_object.referent.metadata
%>

<%
atitle_label = nil
title_label = nil
if ! ref_meta["atitle"].blank? %>

<%
unless ref_meta['genre'].blank?
	case ref_meta["genre"]
		when /article|journal|issue/
			atitle_label = 'Article Title'
			title_label = 'Journal Title'
		when /bookitem|book/
			atitle_label = 'Chapter/Part Title'
			title_label = 'Book Title'
		when /proceeding|conference/
			atitle_label = 'Proceeding Title'
			title_label = 'Conference Name'
		when 'report'
			atitle_label = 'Report Title'
			title_label = 'Report'
	end
else
	if @current_context_object.referent.format == 'book'
		atitle_label = 'Chapter/Part Title'
	elsif @current_context_object.referent.format == 'journal'
		atitle_label = 'Article Title'
	end
	title_label = 'Title'
end

%>

<%= atitle_label %>:

<%= ref_meta["atitle"] %>

<% unless ref_meta["atitle"] == @context_object.referent.metadata["atitle"]%>
	<%= link_to image_tag('http://sfx.galib.uga.edu/sfx_git1/sfx.gif', :border=>0), @current_context_object.to_hash.merge(:controller=>"resolve")%>
<% end%>

<%
@page_title = ref_meta["atitle"]
end
author_row = ''
title_row = ''
unless ref_meta["au"].nil? and ref_meta['aulast'].nil?
author_row = '

Author:
	'
	unless ref_meta["au"].nil?
		author_row += ref_meta["au"]
	else
	author_row += ref_meta["aulast"]
	unless ref_meta["aufirst"].nil?
		author_row += ',	'+ref_meta["aufirst"]
	else
		unless ref_meta["auinit"].nil?
			author_row += ',	'+ref_meta["auinit"]
		else
			unless ref_meta["auinit1"].nil?
				author_row += ',	'+ref_meta["auinit1"]
			end
			unless ref_meta["auinitm"].nil?
				author_row += ref_meta["auinitm"]
			end
		end
	end
	end
	author_row += '
'
end
 if ref_meta.has_key?("jtitle")  or ref_meta.has_key?("title") or ref_meta.has_key?("btitle")
    @co = OpenURL::ContextObject.new
    @co.import_context_object(@current_context_object)
    #@co.referent.metadata["atitle"] = nil
    #@co.referent.metadata["volume"] = nil
    #@co.referent.metadata["spage"] = nil
    #@co.referent.metadata["epage"] = nil
    #@co.referent.metadata["issue"] = nil
    #@co.referent.metadata["date"] = nil
    #@co.referent.metadata["aulast"] = nil
    #@co.referent.metadata["au"] = nil
    #@co.referent.metadata["auinit"] = nil
    #@co.referent.metadata["auinit1"] = nil
    # @co.referent.set_identifier(nil)
    if @co.referent.metadata.has_key?("title")
      title = @co.referent.metadata["title"]
    elsif @co.referent.metadata.has_key?("btitle")
      title = @co.referent.metadata["btitle"]
    else @co.referent.metadata.has_key?("jtitle")
      title = @co.referent.metadata["jtitle"]
    end
		if title_label.nil?
			unless ref_meta['genre'].blank?
				case ref_meta["genre"]
					when /article|journal|issue/
						title_label = 'Journal Title'
					when /bookitem|book/
						title_label = 'Book Title'
					when /proceeding|conference/
						title_label = 'Conference Name'
					when 'report'
						title_label = 'Report Title'
				end
			else
				title_label = 'Title'
			end
		end

style = 'largeText'
unless ref_meta['atitle'].nil?
	style = 'smallText'
end
title_row = '

'+title_label+':	'

title_row += link_to title, @co.to_hash.merge(:controller=>"resolve")

title_row += '
'
  unless @page_title
   @page_title = title
  end
end
unless ref_meta['atitle'].blank? %>
<%= author_row.to_s + title_row.to_s %>
<% else %>
<%= title_row.to_s+author_row.to_s %>
<%
end
if ref_meta.has_key?("issn") %>

ISSN:

<%=ref_meta["issn"] %>

<%
end

if ref_meta.has_key?("isbn") %>

ISBN:

<%=ref_meta["isbn"] %>

<%
end
pub = []
if ref_meta.has_key?("date")
	pub << date_format(ref_meta["date"].to_s)
end
if ref_meta.has_key?("volume")
	pub << 'Volume:  '+ref_meta["volume"].to_s
end
if ref_meta.has_key?("issue")
	pub << 'Issue:  '+ref_meta["issue"].to_s
end

if ref_meta.has_key?("spage")
	pub << 'Page:  '+ref_meta["spage"].to_s
end
if ref_meta.has_key?("epage")
	pub << '-  '+ref_meta["epage"].to_s
end
%>

<%
 unless ref_meta['pub'].blank? &&
        ref_meta['place'].blank? %>

Publisher:

  <% unless ref_meta['place'].blank?  %>
      <%= ref_meta['place'] %> :
  <% end %>
  <%= ref_meta['pub'] %>

<% end %>

	<%= resolver_link(@current_context_object) %>


changed the about action

changed the about action

  <title>The Best of ... on Hacker News</title>
  <meta name="description" content="The best comments on Hacker News, charts, PDF export.">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

            <form action="" method="POST" id="target">
              The best
              <select name="limit" id="limit">
                <option value="10">10</option>
                <option value="25">25</option>
                <option value="50">50</option>
                <option value="75">75</option>
                <option value="100" selected>100</option>
              </select>
              comments by <input type="text" id="username" name="username">
              <input class="not-field" name="show-html" type="submit" onclick="hn.generateChart(); return false;" value="Show" />
              <input class="not-field" name="show-pdf" type="button" onclick="$('#target').submit();" value="PDF E-book" />
            </form>

            about

      powered by
      hnsearch and
      pdfcrowd |
      source |
      feedback: redpill27@gmail.com

      <% if (c.error !== undefined) { %>
        <%= c.error %>
      <% } %>

        This page requires JavaScript enabled.

Distribution of Comments

The markers are clickable, the size is proportional to the comment length.


Show recent products on Product search view when query is empty

<%= search_page_title( @titles[:products], @category ) %>

  <% if !@empty_query %>
    <% button_bar do %>
      <%= display_map_list_button %>
    <% end %>
    <%= facets_menu(:products, @facets) %>
  <% end %>

  <%= render :partial => 'search_form', :locals => { :hint => _('Type the product, service, city or qualifier desired') } %>
  <%= render :partial => 'results_header' %>

  <%= display_results(true) %>
  <% if params[:display] != 'map' %>
    <%= pagination_links @results[:products] %>
  <% end %>

<%= search_page_title( @titles[:products], @category ) %>

  <% if !@empty_query %>
    <% button_bar do %>
      <%= display_map_list_button %>
    <% end %>
    <%= facets_menu(:products, @facets) %>
  <% end %>

  <%= render :partial => 'search_form', :locals => { :hint => _('Type the product, service, city or qualifier desired') } %>
  <%= render :partial => 'results_header' %>

  <% if !@empty_query %>
    <%= display_results(true) %>
    <% if params[:display] != 'map' %>
      <%= pagination_links @results[:products] %>
    <% end %>
  <% end %>


Get pagination links right.

Get pagination links right.

<%= @title %>

<% if @this_user %>
  <% if @user == @this_user %>
    <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
  <% end %>
<% else %>
  <% if @user %>
    <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
  <% end %>
<% end %>

Recent diary entries:

<%= render :partial => 'diary_entry', :collection => @entries %>

<%= link_to "Older Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>
<% if @entry_pages.current.next and @entry_pages.current.previous %>
|
<% end %>
<%= link_to "Newer Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>

<%= link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), :action => 'rss') %>
<%= auto_discovery_link_tag(:atom, :action => 'rss') %>

<%= @title %>

<% if @this_user %>
  <% if @user == @this_user %>
    <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
  <% end %>
<% else %>
  <% if @user %>
    <%= link_to 'New diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
  <% end %>
<% end %>

Recent diary entries:

<%= render :partial => 'diary_entry', :collection => @entries %>

<%= link_to "Older Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>
|
<%= link_to "Newer Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>

<%= link_to(image_tag("RSS.gif", :size => "16x16", :border => 0), :action => 'rss') %>
<%= auto_discovery_link_tag(:atom, :action => 'rss') %>


Re-worked the supporters page to include the new Pledgie donation button.

<% @heading="Site supporters" %>
<% @h1class='home' %>

<% @links = [] %>
<% if session[:person].nil? %>
    <% @links += [{:url => "/admin/login", :title => "Login", :accesskey => "l"}] %>
    <% @links += [{:url => "/admin/register", :title => "Register", :accesskey => "r"}] %>
<% else %>
    <% @links += [{:url => "/admin/logout", :title => "Logout", :accesskey => "l"}] %>
<% end %>
<% @links += [{:url => "/home/tour", :title => "Take a tour", :accesskey => "t"}] %>
<% @links += [{:url => "/questions", :title => "FAQ", :accesskey => "f"}] %>
<% @links += [{:url => "/home/privacy", :title => "Privacy", :accesskey => "p"}] %>

About site supporters

Site supporters are people who make any kind of contribution to MyChores.

Benefits to you

As a site supporter you get the following benefits (and more in the future) ...

Turn off advertisements.

Reports of tasks you completed in the last 7 days and in the current month.

Printable weekly and monthly calendars.

Export tasks to a spreadsheet.

Upload as many pictures as you like (limited to 9 for non-site-supporters).

Import pictures from Flickr.

Option to change your login ID.

How to become a site supporter

There are many different ways to become a site supporter ...

Recommend 5 or more friends through the referral programme.

Enable Twitter Integration and make MyChores posts.

Add a testimonial.

Help to translate MyChores into a different language.

Suggest improvements to MyChores. If you have a Lighthouse account you can log a ticket.

Help to improve MyChores, with your design skills, coding skills or testing. MyChores is now open source. Feel free to get the code and submit patches!

Make a financial donation towards running costs.

Donations

A donation of any amount will be gratefully received. If you donate, please let me know your login ID so that I can update your account status!


Commented out read_work links pending fix of the current_version bug

<%= render({ :partial => '/shared/work_tabs',
             :locals => { :selected =>1,
                          :work_id => @work.id }}) %>

	  <% for page in @pages %>

<%= page.title %>

	        <% if page.xml_text %>
	          <%= xml_to_html(page.xml_text, false) %>
	        <% else %>
            <% if logged_in? && current_user.can_transcribe?(@work) %>

                  <%= link_to('Help transcribe this page!',
                              { :controller => 'transcribe',
                                :action => 'display_page',
                                :page_id => page.id,
                                :ol => 'w_rw_p_tl' }) %>

            <% else %>

No Transcription

		        <% end %>
	        <% end %>

	      <% if false %>
					Edited by <% if page.current_version %>
				  <%= link_to (page.current_version.user.display_name,
	                           { :controller => 'user',
	                               :action => 'profile',
	                               :user_id => page.current_version.user.id }) %>
  				<%= distance_of_time_in_words(page.current_version.created_on, Time.now, include_seconds = true)%> ago.
					<% else %>

					<% end %>
				<% end %>
		      <%= link_to('View this page',
	                    { :action => 'display_page',
	                      :page_id => page.id,
                        :ol => 'w_rw_p_pl' }) %>.

	  <% end %>
      <%= will_paginate @pages %>

    <% if @article %>

<%= @article.title %>

		    <% if @article.xml_text != nil && !@article.xml_text.empty? %>
		    <%=  xml_to_html(@article.xml_text) %>
		    <% end %>

		  <%= render :partial => 'article/article_links' %>
		<% end %>

Subjects

        <%= display_categories(@collection.categories, nil) do |category|
                controller.render_to_string(:partial => '/category/category_link_for_work',
                       :locals => { :category => category })
            end %>

<%= render({ :partial => '/shared/work_tabs',
             :locals => { :selected =>1,
                          :work_id => @work.id }}) %>

	  <% for page in @pages %>

<%= page.title %>

	        <% if page.xml_text %>
	          <%= xml_to_html(page.xml_text, false) %>
	        <% else %>
            <% if logged_in? && current_user.can_transcribe?(@work) %>

                  <%= link_to('Help transcribe this page!',
                              { :controller => 'transcribe',
                                :action => 'display_page',
                                :page_id => page.id,
                                :ol => 'w_rw_p_tl' }) %>

            <% else %>

No Transcription

		        <% end %>
	        <% end %>

			Edited by <% if page.current_version %>
				  <%= link_to (page.current_version.user.display_name,
	                           { :controller => 'user',
	                               :action => 'profile',
	                               :user_id => page.current_version.user.id }) %>
				<%= distance_of_time_in_words(page.current_version.created_on, Time.now, include_seconds = true)%> ago.
			<% else %>

			<% end %>
	        <%= link_to('View this page',
	                    { :action => 'display_page',
	                      :page_id => page.id,
                        :ol => 'w_rw_p_pl' }) %>.

	  <% end %>
      <%= will_paginate @pages %>

    <% if @article %>

<%= @article.title %>

		    <% if @article.xml_text != nil && !@article.xml_text.empty? %>
		    <%=  xml_to_html(@article.xml_text) %>
		    <% end %>

		  <%= render :partial => 'article/article_links' %>
		<% end %>

Subjects

        <%= display_categories(@collection.categories, nil) do |category|
                controller.render_to_string(:partial => '/category/category_link_for_work',
                       :locals => { :category => category })
            end %>


pages: Oops

pages: Oops

<%
	page_title       "Editing “" + @page.name.to_s + "”"
	page_description "Editing " + [@page.ancestors,@page].flatten.map{ |a| link_to a.name, edit_admin_page_path( :id => a, :language => @language ) }.join( " » " )
	if PagesCore.config( :localizations )
		page_description_links "In " + @available_languages.map{ |l| link_to_unless_current( Language.name_for_code( l ), hash_for_edit_admin_page_path( :id => @page, :language => l ) ) }.join( link_separator )
	end
%>

<%# #### SIDEBAR ########################################################### %>

<% sidebar do %>

About this page

		This page was last modified <%= time_ago_in_words @page.updated_at %> ago by
		<%= link_to @page.author.realname, admin_user_path( @page.author ) %>.

<% end %>

<%# #### EDIT AREA ######################################################### %>

<% form_for 'page', @page, :url => admin_page_url( :id => @page, :language => @language ), :html => { :class => :edit_page, :id => 'page-form', :method => :put, :multipart => true } do |f| %>

	<%# #### CONTENT #### %>
	<% content_tab "Content" do %>
		<%= labelled_field f.text_field( :name, :class => 'text page_title' ), "Page title",
			:errors      => @page.errors[:name],
			:description => "This is the name of the page, and it will also be the name of the link to this page."
		%>
		<%= labelled_field f.text_field( :headline, :class => 'text page_title' ), "Headline",
			:errors      => @page.errors[:headline],
			:description => "Optional, use if the headline should differ from the page name."
		%>
		<%= labelled_field f.text_area( :body, :id => 'compose-body' ), "Body",
			:errors      => @page.errors[:body]
		%>
		<%= labelled_field f.text_area( :excerpt, :rows => 5, :id => 'compose-teaser' ), "Teaser",
			:errors      => @page.errors[:excerpt]
		%>
		<%= labelled_field f.select( :status, Page.status_labels_for_options ), "Status",
			:errors      => @page.errors[:status]
		%>
	<% end %>
	<%= content_tab "Content" %>

	<%# #### PRESENTATION #### %>
	<% content_tab "Presentation" do %>
		<%= labelled_field f.select( :template, available_templates_for_select ), "Template",
			:errors      => @page.errors[:template]
		%>
		<%= labelled_field f.file_field( :image ), "Image",
			:errors      => @page.errors[:template],
			:description => "The template you have selected allows you to attach an image, which will be scaled and positioned to fit the design."
		%>
		<%= labelled_field text_field_tag('page_image_description', (@page.image.description rescue ""), :size => 48 ), "Caption" %>
		<% if @page.image %>

				<%= dynamic_image_tag @page.image, :size => '400x300', :crop => false %>

				<%= link_to "Delete image", delete_presentation_image_admin_page_path(:language => @language, :id => @page), :method => :delete, :class => :delete, :confirm => "Are you sure? There is no undo" %>

		<% end %>
		<% if @page.image && PagesCore.config( :page_image_is_linkable ) %>
			<%= labelled_field f.text_field( :image_link ), "Image link (including http://)",
				:errors      => @page.errors[:image_link]
			%>
		<% end %>
	<% end %>
	<%= content_tab "Presentation" %>

	<%# #### CATEGORIZATION #### %>
	<% content_tab "Categorization" do %>

Categories

		<% if @categories.length > 0 %>

				<% @categories.each do |category| %>
					<%= check_box_tag "category[#{category.id}]", "1", (@page.categories.include?(category) ? true : false) %><%= category.name %>

				<% end %>

		<% else %>

No categories have been added yet.

		<% end %>
		<%= labelled_field f.text_field( :tag_list, :class => 'text' ), "Tags",
			:errors      => @page.errors[:tag_list]
		%>
	<% end %>
	<%= content_tab "Categorization" %>

	<%# #### ADDITIONAL IMAGES #### %>
	<% if PagesCore.config( :page_additional_images ) %>
		<% content_tab "Additional images" do %>
			<% unless @page.images.empty? %>

						Image

						Caption

					<% @page.images.each do |image| %>

						<%= dynamic_image_tag image, :size => '100x100' %>

							<div id="image-caption-<%= image.id %>"><%= ( image.byline? ) ? image.byline : "No caption" %>

							<%= link_to "Delete", delete_image_admin_page_path( :id => @page, :image_id => image, :language => @language, :show_tab => 'additional images' ), :class => :delete, :confirm => 'Are you sure?' %>

<% end %>

			<% else %>

No images added yet.

			<% end %>

				Click on the caption text to edit it.

				<%= link_to_function "Add image", "Element.show('new-image');", :class => :create %>

		<% end %>
		<%= content_tab "Additional images" %>
	<% end %>

	<%# #### FILES #### %>
	<% if PagesCore.config( :page_files ) %>
		<% content_tab "Files" do %>
			<% if @page.files? %>

					<% @page.files.each do |file| %>
						<li id="file_<%= file.id %>">
							<%= image_tag 'admin/drag-handle.gif', :class => :handle, :plugin => :pages %>
							<%= file.name %> – <%= link_to file.filename, page_file_path( @language, @page, file ) %>
							(<%= link_to "Delete", admin_page_file_path( @language, @page, file ), :class => :delete, :method => :delete, :confirm => 'Are you sure? There is no undo.' %>)

					<% end %>

				<%= sortable_element 'filelist', :url => reorder_admin_page_files_path( @language, @page ), :handle => 'handle' %>
			<% else %>

No files added yet.

			<% end %>

				<%= link_to_function "Add new file", "Element.show('new-file');", :class => :create %>

		<% end %>
		<%= content_tab "Files" %>
	<% end %>

	<%# #### COMMENTS #### %>
	<% content_tab "Comments" do %>
		<%= labelled_field f.check_box( :comments_allowed ), "Comments allowed",
			:errors      => @page.errors[:comments_allowed],
			:check_box_description => "Comments are allowed on this page"
		%>
		<% if @page.comments.count > 0 %>

				<% @page.comments.each do |c| %>

							<%= c.name %>

							<% if c.email? %><%= mail_to c.email, c.email %>
<% end %>
							<% if c.url? %><%= link_to c.url, c.url %>
<% end %>

						<%= c.body %>

							<%= time_ago_in_words c.created_at %> ago

							from <%= c.remote_ip %>

							<%= link_to "Delete", delete_comment_admin_page_url( :id => @page, :comment_id => c, :language => @language ), :confirm => 'Are you sure?', :class => :delete %>

				<% end %>

		<% else %>

No comments added.

		<% end %>
	<% end %>
	<%= content_tab "Comments" %>

	<%# #### ADVANCED OPTIONS #### %>
	<% content_tab "Options" do %>
		<%= labelled_field (
				f.datetime_select( 'published_at' ) + "  by  " + f.select( 'user_id', @authors.collect { |a| [a.realname, a.id] } )
			),
			"Published",
			:errors      => @page.errors[:published_at]
		%>
		<%= labelled_field f.select( :content_order, [ ['Manually','position'], ['Newest first','published_at DESC'] ] ), "Order subpages",
			:errors      => @page.errors[:content_order]
		%>

			Options
			<%= f.check_box(:feed_enabled) %> Enable RSS feed for items below this page

			<%= f.check_box(:news_page) %> This is a news page

		<%= labelled_field f.text_area( :redirect_to, :rows => 4 ), "Redirect/Link",
			:errors      => @page.errors[:redirect_to]
		%>
	<% end %>
	<%= content_tab "Options" %>

		<%= button_to_function "Preview formatting", 'showPreview()' %>
		<%= pages_button_to "Save changes" %>

<% end %>

<%# #### UPLOAD IMAGE #### %>

Upload new image

	<% form_for 'image', @new_image, :url => add_image_admin_page_url( :id => @page, :language => @language ), :html => { :method => :post, :multipart => true } do |f| %>
		<%= labelled_field f.file_field( :imagefile ), "File",
			:errors      => @new_image.errors[:imagefile]
		%>
		<%# labelled_field f.text_field( :name, :size => 48 ), "Title",
			:errors      => @new_image.errors[:name]
		%>
		<%= labelled_field f.text_field( :byline, :size => 48 ), "Caption",
			:errors      => @new_image.errors[:byline]
		%>

			<%= submit_tag "Upload" %> or
			<%= link_to_function "Cancel", "Element.hide('new-image');", :class => :cancel %>

	<% end %>

<%# #### UPLOAD FILE #### %>
<% if PagesCore.config( :page_files ) %>

Upload new file

		<% form_for( ( @new_file = PageFile.new ), :url => admin_page_files_path( @language, @page ), :html => { :multipart => true } ) do |f| %>
			<%= labelled_field f.text_field( :name, :size => 48 ), "Name",
				:errors      => @new_file.errors[:name]
			%>
			<%= labelled_field f.text_field( :description, :size => 48 ), "Description",
				:errors      => @new_file.errors[:name]
			%>
			<%= labelled_field f.file_field( :file ), "File",
				:errors      => @new_file.errors[:file]
			%>

				<%= submit_tag "Upload" %> or <%= link_to_function "Cancel", "Element.hide('new-file');", :class => :cancel %>

		<% end %>

<% end %>

<%
	page_title       "Editing “" + @page.name.to_s + "”"
	page_description "Editing " + [@page.ancestors,@page].flatten.map{ |a| link_to a.name, edit_admin_page_path( :id => a, :language => @language ) }.join( " » " )
	if PagesCore.config( :localizations )
		page_description_links "In " + @available_languages.map{ |l| link_to_unless_current( Language.name_for_code( l ), hash_for_edit_admin_page_path( :id => @page, :language => l ) ) }.join( link_separator )
	end
%>

<%# #### SIDEBAR ########################################################### %>

<% sidebar do %>

About this page

		This page was last modified <%= time_ago_in_words @page.updated_at %> ago by
		<%= link_to @page.author.realname, admin_user_path( @page.author ) %>.

<% end %>

<%# #### EDIT AREA ######################################################### %>

<% form_for 'page', @page, :url => admin_page_url( :id => @page, :language => @language ), :html => { :class => :edit_page, :id => 'page-form', :method => :put, :multipart => true } do |f| %>

	<%# #### CONTENT #### %>
	<% content_tab "Content" do %>
		<%= labelled_field f.text_field( :name, :class => 'text page_title' ), "Page title",
			:errors      => @page.errors[:name],
			:description => "This is the name of the page, and it will also be the name of the link to this page."
		%>
		<%= labelled_field f.text_field( :headline, :class => 'text page_title' ), "Headline",
			:errors      => @page.errors[:headline],
			:description => "Optional, use if the headline should differ from the page name."
		%>
		<%= labelled_field f.text_area( :body, :id => 'compose-body' ), "Body",
			:errors      => @page.errors[:body]
		%>
		<%= labelled_field f.text_area( :excerpt, :rows => 5, :id => 'compose-teaser' ), "Teaser",
			:errors      => @page.errors[:excerpt]
		%>
		<%= labelled_field f.select( :status, Page.status_labels_for_options ), "Status",
			:errors      => @page.errors[:status]
		%>
	<% end %>
	<%= content_tab "Content" %>

	<%# #### PRESENTATION #### %>
	<% content_tab "Presentation" do %>
		<%= labelled_field f.select( :template, available_templates_for_select ), "Template",
			:errors      => @page.errors[:template]
		%>
		<%= labelled_field f.file_field( :image ), "Image",
			:errors      => @page.errors[:template],
			:description => "The template you have selected allows you to attach an image, which will be scaled and positioned to fit the design."
		%>
		<%= labelled_field text_field_tag('page_image_description', (@page.image.description rescue ""), :size => 48 ), "Caption" %>
		<% if @page.image %>

				<%= dynamic_image_tag @page.image, :size => '400x300', :crop => false %>

				<%= link_to "Delete image", delete_presentation_image_admin_page_path(:language => @language, :id => @page), :method => :delete, :class => :delete, :confirm => "Are you sure? There is no undo" %>

		<% end %>
		<% if @page.image && PagesCore.config( :page_image_is_linkable ) %>
			<%= labelled_field f.text_field( :image_link ), "Image link (including http://)",
				:errors      => @page.errors[:image_link]
			%>
		<% end %>
	<% end %>
	<%= content_tab "Presentation" %>

	<%# #### CATEGORIZATION #### %>
	<% content_tab "Categorization" do %>

Categories

		<% if @categories.length > 0 %>

				<% @categories.each do |category| %>
					<%= check_box_tag "category[#{category.id}]", "1", (@page.categories.include?(category) ? true : false) %><%= category.name %>

				<% end %>

		<% else %>

No categories have been added yet.

		<% end %>
		<%= labelled_field f.text_field( :tag_list, :class => 'text' ), "Tags",
			:errors      => @page.errors[:tag_list]
		%>
	<% end %>
	<%= content_tab "Categorization" %>

	<%# #### ADDITIONAL IMAGES #### %>
	<% if PagesCore.config( :page_additional_images ) %>
		<% content_tab "Additional images" do %>
			<% unless @page.images.empty? %>

						Image

						Caption

					<% @page.images.each do |image| %>

						<%= dynamic_image_tag image, :size => '100x100' %>

							<div id="image-caption-<%= image.id %>"><%= ( image.byline? ) image.byline : "No caption" %>

							<%= link_to "Delete", delete_image_admin_page_path( :id => @page, :image_id => image, :language => @language, :show_tab => 'additional images' ), :class => :delete, :confirm => 'Are you sure?' %>

<% end %>

			<% else %>

No images added yet.

			<% end %>

				Click on the caption text to edit it.

				<%= link_to_function "Add image", "Element.show('new-image');", :class => :create %>

		<% end %>
		<%= content_tab "Additional images" %>
	<% end %>

	<%# #### FILES #### %>
	<% if PagesCore.config( :page_files ) %>
		<% content_tab "Files" do %>
			<% if @page.files? %>

					<% @page.files.each do |file| %>
						<li id="file_<%= file.id %>">
							<%= image_tag 'admin/drag-handle.gif', :class => :handle, :plugin => :pages %>
							<%= file.name %> – <%= link_to file.filename, page_file_path( @language, @page, file ) %>
							(<%= link_to "Delete", admin_page_file_path( @language, @page, file ), :class => :delete, :method => :delete, :confirm => 'Are you sure? There is no undo.' %>)

					<% end %>

				<%= sortable_element 'filelist', :url => reorder_admin_page_files_path( @language, @page ), :handle => 'handle' %>
			<% else %>

No files added yet.

			<% end %>

				<%= link_to_function "Add new file", "Element.show('new-file');", :class => :create %>

		<% end %>
		<%= content_tab "Files" %>
	<% end %>

	<%# #### COMMENTS #### %>
	<% content_tab "Comments" do %>
		<%= labelled_field f.check_box( :comments_allowed ), "Comments allowed",
			:errors      => @page.errors[:comments_allowed],
			:check_box_description => "Comments are allowed on this page"
		%>
		<% if @page.comments.count > 0 %>

				<% @page.comments.each do |c| %>

							<%= c.name %>

							<% if c.email? %><%= mail_to c.email, c.email %>
<% end %>
							<% if c.url? %><%= link_to c.url, c.url %>
<% end %>

						<%= c.body %>

							<%= time_ago_in_words c.created_at %> ago

							from <%= c.remote_ip %>

							<%= link_to "Delete", delete_comment_admin_page_url( :id => @page, :comment_id => c, :language => @language ), :confirm => 'Are you sure?', :class => :delete %>

				<% end %>

		<% else %>

No comments added.

		<% end %>
	<% end %>
	<%= content_tab "Comments" %>

	<%# #### ADVANCED OPTIONS #### %>
	<% content_tab "Options" do %>
		<%= labelled_field (
				f.datetime_select( 'published_at' ) + "  by  " + f.select( 'user_id', @authors.collect { |a| [a.realname, a.id] } )
			),
			"Published",
			:errors      => @page.errors[:published_at]
		%>
		<%= labelled_field f.select( :content_order, [ ['Manually','position'], ['Newest first','published_at DESC'] ] ), "Order subpages",
			:errors      => @page.errors[:content_order]
		%>

			Options
			<%= f.check_box(:feed_enabled) %> Enable RSS feed for items below this page

			<%= f.check_box(:news_page) %> This is a news page

		<%= labelled_field f.text_area( :redirect_to, :rows => 4 ), "Redirect/Link",
			:errors      => @page.errors[:redirect_to]
		%>
	<% end %>
	<%= content_tab "Options" %>

		<%= button_to_function "Preview formatting", 'showPreview()' %>
		<%= pages_button_to "Save changes" %>

<% end %>

<%# #### UPLOAD IMAGE #### %>

Upload new image

	<% form_for 'image', @new_image, :url => add_image_admin_page_url( :id => @page, :language => @language ), :html => { :method => :post, :multipart => true } do |f| %>
		<%= labelled_field f.file_field( :imagefile ), "File",
			:errors      => @new_image.errors[:imagefile]
		%>
		<%# labelled_field f.text_field( :name, :size => 48 ), "Title",
			:errors      => @new_image.errors[:name]
		%>
		<%= labelled_field f.text_field( :byline, :size => 48 ), "Caption",
			:errors      => @new_image.errors[:byline]
		%>

			<%= submit_tag "Upload" %> or
			<%= link_to_function "Cancel", "Element.hide('new-image');", :class => :cancel %>

	<% end %>

<%# #### UPLOAD FILE #### %>
<% if PagesCore.config( :page_files ) %>

Upload new file

		<% form_for( ( @new_file = PageFile.new ), :url => admin_page_files_path( @language, @page ), :html => { :multipart => true } ) do |f| %>
			<%= labelled_field f.text_field( :name, :size => 48 ), "Name",
				:errors      => @new_file.errors[:name]
			%>
			<%= labelled_field f.text_field( :description, :size => 48 ), "Description",
				:errors      => @new_file.errors[:name]
			%>
			<%= labelled_field f.file_field( :file ), "File",
				:errors      => @new_file.errors[:file]
			%>

				<%= submit_tag "Upload" %> or <%= link_to_function "Cancel", "Element.hide('new-file');", :class => :cancel %>

		<% end %>

<% end %>


Fix thinko.

Fix thinko.

<%= h(@title) %>

<% if @this_user && @this_user.image %>
 <%= image_tag url_for_file_column(@this_user, "image") %>
<% end %>

<% if @this_user %>
  <% if @user == @this_user %>
    <%= link_to 'New diary entry', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
  <% end %>
<% else %>
  <% if @user %>
    <%= link_to 'New diary entry', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
  <% end %>
<% end %>

Recent diary entries:

<%= render :partial => 'diary_entry', :collection => @entries %>

<%= link_to "Older Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>
<% if @entry_pages.current.next and @entry_pages.current.previous %>
|
<% end %>
<%= link_to "Newer Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>

<%= rss_link_to :action => 'rss' %>

<% content_for :head do %>
<%= auto_discovery_link_tag :atom, :action => 'rss' %>
<% end %>

<%= h(@title) %>

<% if @this_user && @this_user.image %>
 <%= image_tag url_for_file_column(@this_user, "image") %>
<% end %>

<% if @this_user %>
  <% if @user == @this_user %>
    <%= link_to 'New diary entry', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
  <% end %>
<% else %>
  <% if @user %>
    <%= link_to 'New diary entry', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
  <% end %>
<% end %>

Recent diary entries:

<%= render :partial => 'diary_entry', :collection => @entries %>

<%= link_to "Older Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>
<% if @entry_pages.current.next and @entry_pages.current.previous %>
|
<% end %>
<%= link_to "Newer Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>

<%= rss_link_to :action => 'rss' %>

<% content_for :head %>
<%= auto_discovery_link_tag :atom, :action => 'rss' %>
<% end %>


Made it harder to overwrite another reviewers opinion on an Image.

<%
    @title = 'Image: ' + h(@image.unique_text_name)
    search_params = calc_search_params()
    for obs in @image.observations
        %>
        <%= link_to("About #{textilize_without_paragraph(h(obs.format_name))}",
            :controller => 'name', :action => "show_name", :id => obs.name) %>
        | <%= sprintf('Google Images' % obs.text_name) %>

    <%
    end
%>

<%= link_to 'Show Full Size', :action => 'show_original', :id => @image, :params => search_params %>
<% commercial_inquiries_ok = @image.user.commercial_email
   if commercial_inquiries_ok %>
	| <%= link_to 'Send Commercial Inquiry About Image',
        :controller => 'observer', :action => 'commercial_inquiry', :id => @image %>
<% end %>

<%= link_to('Prev', :action => 'prev_image', :id => @image.id, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
| <%= link_to('Next', :action => 'next_image', :id => @image.id, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>

Image: <%= textilize_without_paragraph(h(@image.unique_format_name)) %>

Copyright ©<%= @image.when.year %> <%= user_link(@image.user, @image.copyright_holder) %>

        <%= link_to(image_tag("640/#{@image.id}.jpg"),
        	:action => 'show_original', :id => @image.id, :params => search_params) %>

        <%= render :partial => "shared/form_#{@image.license.form_name}" %>

<% if check_permission(@image.user_id) %>
	<%= link_to 'Edit Image', :action => 'edit_image', :id => @image %>
	| <%= link_to 'Destroy', { :action => 'destroy_image', :id => @image },
                  :confirm => "Are you sure?" %>
<% end %>

  Quality: <%= @image.quality.to_sym.l %>
  <% if @image.reviewer %>

      (<%= "#{:show_image_reviewed_by.l}: #{user_link(@image.reviewer, @image.reviewer.login)}" %>)

  <% end %>
  <% if @is_reviewer
       is_reviewed = (@image.quality != :unreviewed)
       if is_reviewed %>

<%= link_to('Next', :action => 'next_image',
                       :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
       <% end %>

<%= link_to(:low.l, :action => 'set_image_quality', :value => :low,
                     :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
    <% unless is_reviewed %>
      | <%= link_to(:low_and_next.l, :action => 'set_image_quality', :value => :low, :next => true,
                    :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
    <% end %>

<%= link_to(:medium.l, :action => 'set_image_quality', :value => :medium,
                     :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
    <% unless is_reviewed %>
      | <%= link_to(:medium_and_next.l, :action => 'set_image_quality', :value => :medium, :next => true,
                    :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
    <% end %>

<%= link_to(:high.l, :action => 'set_image_quality', :value => :high,
                     :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
    <% unless is_reviewed %>
      | <%= link_to(:high_and_next.l, :action => 'set_image_quality', :value => :high, :next => true,
                    :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
    <% end %>
  <% end %>

When: <%= @image.when %>

Observations:

    <% for observation in @image.observations
      text = '' + textilize_without_paragraph(h(observation.unique_format_name))
      if observation.notes != ''
          text += '
Notes: %s...' % observation.notes[0..15]
      end
      len = observation.comments.length
      if len > 0
          text += '<span class="HelpNote"
%s comments' % len
      end
      text += '' %>
      <%= link_to(text, :controller => 'observer',
          :action => 'show_observation', :id => observation.id, :params => search_params) %>

    <% end %>

<% if @image.notes && @image.notes.to_s != "" %>
  Notes:

  <%= textilize(sanitize(@image.notes.to_s)) %>
<% end %>

Image created: <%= @image.created %>

Last modified: <%= @image.modified %>

<%
    @title = 'Image: ' + h(@image.unique_text_name)
    search_params = calc_search_params()
    for obs in @image.observations
        %>
        <%= link_to("About #{textilize_without_paragraph(h(obs.format_name))}",
            :controller => 'name', :action => "show_name", :id => obs.name) %>
        | <%= sprintf('Google Images' % obs.text_name) %>

    <%
    end
%>

<%= link_to 'Show Full Size', :action => 'show_original', :id => @image, :params => search_params %>
<% commercial_inquiries_ok = @image.user.commercial_email
   if commercial_inquiries_ok %>
	| <%= link_to 'Send Commercial Inquiry About Image',
        :controller => 'observer', :action => 'commercial_inquiry', :id => @image %>
<% end %>

<%= link_to('Prev', :action => 'prev_image', :id => @image.id, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
| <%= link_to('Next', :action => 'next_image', :id => @image.id, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>

Image: <%= textilize_without_paragraph(h(@image.unique_format_name)) %>

Copyright ©<%= @image.when.year %> <%= user_link(@image.user, @image.copyright_holder) %>

        <%= link_to(image_tag("640/#{@image.id}.jpg"),
        	:action => 'show_original', :id => @image.id, :params => search_params) %>

        <%= render :partial => "shared/form_#{@image.license.form_name}" %>

<% if check_permission(@image.user_id) %>
	<%= link_to 'Edit Image', :action => 'edit_image', :id => @image %>
	| <%= link_to 'Destroy', { :action => 'destroy_image', :id => @image },
                  :confirm => "Are you sure?" %>
<% end %>

  Quality: <%= @image.quality.to_sym.l %>
  <% if @image.reviewer %>

      (<%= "#{:show_image_reviewed_by.l}: #{user_link(@image.reviewer, @image.reviewer.login)}" %>)

  <% end %>
  <% if @is_reviewer %>

<%= link_to(:low.l, :action => 'set_image_quality', :value => :low,
                     :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
    | <%= link_to(:low_and_next.l, :action => 'set_image_quality', :value => :low, :next => true,
                  :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>

<%= link_to(:medium.l, :action => 'set_image_quality', :value => :medium,
                     :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
    | <%= link_to(:medium_and_next.l, :action => 'set_image_quality', :value => :medium, :next => true,
                  :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>

<%= link_to(:high.l, :action => 'set_image_quality', :value => :high,
                     :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
    | <%= link_to(:high_and_next.l, :action => 'set_image_quality', :value => :high, :next => true,
                  :id => @image, :seq_key => @seq_key, :search_seq => @search_seq, :obs => @obs) %>
  <% end %>

When: <%= @image.when %>

Observations:

    <% for observation in @image.observations
      text = '' + textilize_without_paragraph(h(observation.unique_format_name))
      if observation.notes != ''
          text += '
Notes: %s...' % observation.notes[0..15]
      end
      len = observation.comments.length
      if len > 0
          text += '<span class="HelpNote"
%s comments' % len
      end
      text += '' %>
      <%= link_to(text, :controller => 'observer',
          :action => 'show_observation', :id => observation.id, :params => search_params) %>

    <% end %>

<% if @image.notes && @image.notes.to_s != "" %>
  Notes:

  <%= textilize(sanitize(@image.notes.to_s)) %>
<% end %>

Image created: <%= @image.created %>

Last modified: <%= @image.modified %>


Fix silly typo

Fix silly typo

<% (params[:libs] || "").split(',').each do |l| -%>

<% end -%>

<% if @chart.nil? %>
<% @tasks.each do |t| %>
<%= render :partial => 'ig_task_row', :locals => { :task => t } %>
<% end %>
<% else %>

<img src=<%=@chart%> border=0 />

<% end %>
<% if params[:libs] %>

<% end -%>

<% (params[:libs] || "").split(',').each do |l| -%>

<% end -%>

<% if @chart.nil? %>
<% @tasks.each do |t| %>
<%= render :partial => 'ig_task_row', :locals => { :task => t } %>
<% end %>
<% else %>

<img src=<%=@chart%> border=0 />

<% end %>
<% if params[:libs]

<% end -%>


Formatting

Formatting

Listing General Tasks

  <% if @general_tasks.length == 0 %>
  No general tasks.
  <% else %>
  <%= render_partial 'tasks_list' , nil, 'tasks' => @general_tasks %>
  <% end %>

<%= link_to 'New General Task', :controller => 'tasks', :action => 'new' %>

Listing Cage Weighing Tasks

  <% if @cage_tasks.length == 0 %>
  No cage weighing tasks.
  <% else %>
  <%= render_partial 'tasks_list' , nil, 'tasks' => @cage_tasks %>
  <% end %>

[Cage weighing tasks are managed from the <%= link_to 'cage pages', :controller => 'cages', :action => 'list' %>]

Listing Medical Tasks

  <% if @medical_tasks.length == 0 %>
  No medical tasks.
  <% else %>
  <%= render_partial 'tasks_list' , nil, 'tasks' => @medical_tasks %>
  <% end %>

[Medical tasks are managed from the <%= link_to 'medical page', :controller => 'medical_problems', :action => 'list_current' %>]

Listing General Tasks

<% if @general_tasks.length == 0 %>
No general tasks.
<% else %>

<%= render_partial 'tasks_list' , nil, 'tasks' => @general_tasks %>

<% end %>

<%= link_to 'New General Task', :controller => 'tasks', :action => 'new' %>

Listing Cage Weighing Tasks

<% if @cage_tasks.length == 0 %>
No cage weighing tasks.
<% else %>

<%= render_partial 'tasks_list' , nil, 'tasks' => @cage_tasks %>

[Cage weighing tasks are managed from the <%= link_to 'cage pages', :controller => 'cages', :action => 'list' %>]

<% end %>

Listing Medical Tasks

<% if @medical_tasks.length == 0 %>
No medical tasks.
<% else %>

<%= render_partial 'tasks_list' , nil, 'tasks' => @medical_tasks %>

[Medical tasks are managed from the <%= link_to 'medical page', :controller => 'medical_problems', :action => 'list_current' %>]

<% end %>


The CSS validation link now links to the actual site url. fixes #54

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

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

  <title><%= page_title %></title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<%= url_for :controller => '/xml/rsd' %>" />
  <link rel="alternate" type="application/rss+xml"  title="Recent changes (RSS 2.0)"  href="<%= url_for :controller => 'xml', :action => 'rss' %>" />
  <link rel="alternate" type="application/atom+xml"  title="Recent changes (ATOM 0.3)"  href="<%= url_for :controller => 'xml', :action => 'atom' %>" />
  <%= stylesheet_link_tag "typo" %>
  <%= javascript_include_tag "prototype" %>

<%= link_to config_value('blog_name'), { :controller => '/' } %>

  <%= @content_for_layout %>

  <%= render_partial "shared/search" %>

  <%= categorylist %>

  <%= render_partial "shared/links"  %>

  <%=
    # deliciouslist "http://del.icio.us/rss/username"
  -%>

  <%=
    # tadalist "http://<nick>.tadalist.com/l..."
  -%>

  <%= render_partial "shared/xml" %>

  <%=
    #flickrlist "http://www.flickr.com/services/feeds/..."
  -%>
  Valid XHTML 1.0

  <a href="http://jigsaw.w3.org/css-validator/validator?uri=<%= server_url_for :controller => 'articles' %>">Valid CSS

    Powered by Typo

    <%= link_to 'RSS', :controller => 'xml', :action => 'rss' %>
    and
    <%= link_to 'atom', :controller => 'xml', :action => 'atom' %>

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

  <title><%= page_title %></title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <link rel="EditURI" type="application/rsd+xml" title="RSD" href="<%= url_for :controller => '/xml/rsd' %>" />
  <link rel="alternate" type="application/rss+xml"  title="Recent changes (RSS 2.0)"  href="<%= url_for :controller => 'xml', :action => 'rss' %>" />
  <link rel="alternate" type="application/atom+xml"  title="Recent changes (ATOM 0.3)"  href="<%= url_for :controller => 'xml', :action => 'atom' %>" />
  <%= stylesheet_link_tag "typo" %>
  <%= javascript_include_tag "prototype" %>

<%= link_to config_value('blog_name'), { :controller => '/' } %>

  <%= @content_for_layout %>

  <%= render_partial "shared/search" %>

  <%= categorylist %>

  <%= render_partial "shared/links"  %>

  <%=
    # deliciouslist "http://del.icio.us/rss/username"
  -%>

  <%=
    # tadalist "http://<nick>.tadalist.com/l..."
  -%>

  <%= render_partial "shared/xml" %>

  <%=
    #flickrlist "http://www.flickr.com/services/feeds/..."
  -%>
  Valid XHTML 1.0

  Valid CSS

    Powered by Typo

    <%= link_to 'RSS', :controller => 'xml', :action => 'rss' %>
    and
    <%= link_to 'atom', :controller => 'xml', :action => 'atom' %>


Martin wants to see number of locations in show_user even if zero.

<%
  id   = @show_user.id
  name = @show_user.unique_text_name

  @title = :show_user_title.t(:user => name)

  links = {
    :comments => url_for(:controller => 'comment',
                              :action => 'show_comments_by_user', :id => id),
    :comments_for => url_for(:controller => 'comment',
                              :action => 'show_comments_for_user', :id => id),
    :images => url_for(:controller => 'image', :action => 'images_by_user',
                              :id => id),
    :location_descriptions_authors => url_for(:controller => 'location',
                              :action => 'location_descriptions_by_author', :id => id),
    :location_descriptions_editors => url_for(:controller => 'location',
                              :action => 'location_descriptions_by_editor', :id => id),
    :locations => url_for(:controller => 'location',
                              :action => 'locations_by_user', :id => id),
    :locations_versions => url_for(:controller => 'location',
                              :action => 'locations_by_editor', :id => id),
    :name_descriptions_authors => url_for(:controller => 'name',
                              :action => 'name_descriptions_by_author', :id => id),
    :name_descriptions_editors => url_for(:controller => 'name',
                              :action => 'name_descriptions_by_editor', :id => id),
    :names => url_for(:controller => 'name', :action => 'names_by_user',
                              :id => id),
    :names_versions => url_for(:controller => 'name', :action => 'names_by_editor',
                              :id => id),
    :observations => url_for(:controller => 'observer',
                              :action => 'observations_by_user', :id => id),
    :species_lists => url_for(:controller => 'species_list',
                              :action => 'species_lists_by_user', :id => id),
  }

  new_tab_set do
    add_tab(:show_user_contributors.t, :controller => 'observer',
            :action => 'users_by_contribution')
    if @show_user == @user
      add_tab(:show_user_your_observations.t, links[:observations])
      add_tab(:show_user_comments_for_you.t, links[:comments_for])
      add_tab(:show_user_your_notifications.t, :controller => "interest",
              :action => "list_interests")
      add_tab(:show_user_edit_profile.t, :controller => "account",
              :action => "profile")
      add_tab(:app_preferences.t, :controller => "account", :action => "prefs")
    else
      add_tab(:show_user_observations_by.t(:name => name), links[:observations])
      add_tab(:show_user_comments_for.t(:name => name), links[:comments_for])
      add_tab(:show_user_email_to.t(:name => name), :controller => "observer",
              :action => "ask_user_question", :id => id)
    end
  end

  if is_in_admin_mode?
    new_tab_set do
      add_tab(:change_user_bonuses.t, :controller => "observer",
              :action => "change_user_bonuses", :id => @show_user.id)
      add_tab(:user_alert_create_alert.t, :controller => "account",
              :action => "create_alert", :id => @show_user.id)
      add_tab(:DESTROY.t, :controller => "account", :action => "destroy_user",
              :id => @show_user.id)
    end
  end

  draw_prev_next_tabs(@show_user)
%>

<%= if @show_user.image_id
  thumbnail(@show_user.image_id, :border => 0, :style => 'float:right',
            :votes => false)
end %>

<%= :show_user_joined.t %>: <%= @show_user.verified %>

<% if @show_user.location %>
  <%= :show_user_primary_location.t %>:
     <%= location_link(nil, @show_user.location) %>

<% end %>
<% if !@show_user.mailing_address.blank? %>
  <%= :show_user_mailing_address.t %>:
     <%= @show_user.mailing_address %>

<% end %>
<% if !@show_user.notes.empty? %>

<% end %>
<%= if !@show_user.notes.empty?
  sanitize(@show_user.notes).tpl
end %>

      <% obs_length = 0
      if @observations
        obs_length = @observations.length
      end

      if obs_length > 3 %>

          <% for obs in @observations[3,3] %>
            <%= thumbnail(obs.thumb_image, :class => 'site_stats_image',
                          :link => :show_observation, :obs => obs.id,
                          :votes => true) %>

          <% end %>

      <% end %>

          <% total = 0

          # These are roughly in decreasing order of importance.
          rows = [
            :name_descriptions_authors,
            :name_descriptions_editors,
            :names,
            :names_versions,
            :location_descriptions_authors,
            :location_descriptions_editors,
            :locations,
            :locations_versions,
            :images,
            :species_lists,
            :species_list_entries,
            :observations,
            :comments,
            :namings,
            :votes,
          ].map do |field| {
            :field  => field,
            :label  => "user_stats_#{field}".to_sym.t,
            :count  => (count = @user_data[field].to_i),
            :weight => (weight = SiteData::FIELD_WEIGHTS[field]),
            :points => count * weight,
          } end

          # Add bonuses at the bottom.
          if @show_user.bonuses
            rows += @show_user.bonuses.map do |points, reason| {
              :label  => reason.to_s.t,
              :points => points.to_i,
            } end
          end

          # Do we want to sort by points?
          # rows = rows.sort_by {|row| row[:points]}.reverse

          for row in rows
            field  = row[:field]
            label  = row[:label]
            count  = row[:count]
            weight = row[:weight]
            points = row[:points]
            url    = links[field]
            link   = url ? link_to(label, url) : label
            total += points
            if !count %>

                <%= label %>
                =
                <%= points %>

            <% elsif !label.blank? %>

                <%= link %>
                <%= count %> * <%= weight %>
                =
                <%= points %>

            <% end
          end

          if total > 0 %>

              <%= :show_user_total.t %>

              =
              <%= total %>

          <% end %>

      <% if obs_length > 0 %>

          <% for obs in @observations[0,3] %>
            <%= thumbnail(obs.thumb_image, :class => 'site_stats_image',
                          :link => :show_observation, :obs => obs.id,
                          :votes => true) %>

          <% end %>

      <% end %>

<%
  id   = @show_user.id
  name = @show_user.unique_text_name

  @title = :show_user_title.t(:user => name)

  links = {
    :comments => url_for(:controller => 'comment',
                              :action => 'show_comments_by_user', :id => id),
    :comments_for => url_for(:controller => 'comment',
                              :action => 'show_comments_for_user', :id => id),
    :images => url_for(:controller => 'image', :action => 'images_by_user',
                              :id => id),
    :location_descriptions_authors => url_for(:controller => 'location',
                              :action => 'location_descriptions_by_author', :id => id),
    :location_descriptions_editors => url_for(:controller => 'location',
                              :action => 'location_descriptions_by_editor', :id => id),
    :locations => url_for(:controller => 'location',
                              :action => 'locations_by_user', :id => id),
    :locations_versions => url_for(:controller => 'location',
                              :action => 'locations_by_editor', :id => id),
    :name_descriptions_authors => url_for(:controller => 'name',
                              :action => 'name_descriptions_by_author', :id => id),
    :name_descriptions_editors => url_for(:controller => 'name',
                              :action => 'name_descriptions_by_editor', :id => id),
    :names => url_for(:controller => 'name', :action => 'names_by_user',
                              :id => id),
    :names_versions => url_for(:controller => 'name', :action => 'names_by_editor',
                              :id => id),
    :observations => url_for(:controller => 'observer',
                              :action => 'observations_by_user', :id => id),
    :species_lists => url_for(:controller => 'species_list',
                              :action => 'species_lists_by_user', :id => id),
  }

  new_tab_set do
    add_tab(:show_user_contributors.t, :controller => 'observer',
            :action => 'users_by_contribution')
    if @show_user == @user
      add_tab(:show_user_your_observations.t, links[:observations])
      add_tab(:show_user_comments_for_you.t, links[:comments_for])
      add_tab(:show_user_your_notifications.t, :controller => "interest",
              :action => "list_interests")
      add_tab(:show_user_edit_profile.t, :controller => "account",
              :action => "profile")
      add_tab(:app_preferences.t, :controller => "account", :action => "prefs")
    else
      add_tab(:show_user_observations_by.t(:name => name), links[:observations])
      add_tab(:show_user_comments_for.t(:name => name), links[:comments_for])
      add_tab(:show_user_email_to.t(:name => name), :controller => "observer",
              :action => "ask_user_question", :id => id)
    end
  end

  if is_in_admin_mode?
    new_tab_set do
      add_tab(:change_user_bonuses.t, :controller => "observer",
              :action => "change_user_bonuses", :id => @show_user.id)
      add_tab(:user_alert_create_alert.t, :controller => "account",
              :action => "create_alert", :id => @show_user.id)
      add_tab(:DESTROY.t, :controller => "account", :action => "destroy_user",
              :id => @show_user.id)
    end
  end

  draw_prev_next_tabs(@show_user)
%>

<%= if @show_user.image_id
  thumbnail(@show_user.image_id, :border => 0, :style => 'float:right',
            :votes => false)
end %>

<%= :show_user_joined.t %>: <%= @show_user.verified %>

<% if @show_user.location %>
  <%= :show_user_primary_location.t %>:
     <%= location_link(nil, @show_user.location) %>

<% end %>
<% if !@show_user.mailing_address.blank? %>
  <%= :show_user_mailing_address.t %>:
     <%= @show_user.mailing_address %>

<% end %>
<% if !@show_user.notes.empty? %>

<% end %>
<%= if !@show_user.notes.empty?
  sanitize(@show_user.notes).tpl
end %>

      <% obs_length = 0
      if @observations
        obs_length = @observations.length
      end

      if obs_length > 3 %>

          <% for obs in @observations[3,3] %>
            <%= thumbnail(obs.thumb_image, :class => 'site_stats_image',
                          :link => :show_observation, :obs => obs.id,
                          :votes => true) %>

          <% end %>

      <% end %>

          <% total = 0

          # These are roughly in decreasing order of importance.
          rows = [
            :name_descriptions_authors,
            :name_descriptions_editors,
            :names,
            :names_versions,
            :location_descriptions_authors,
            :location_descriptions_editors,
            :locations,
            :locations_versions,
            :images,
            :species_lists,
            :species_list_entries,
            :observations,
            :comments,
            :namings,
            :votes,
          ].map do |field| {
            :field  => field,
            :label  => "user_stats_#{field}".to_sym.t,
            :count  => (count = @user_data[field].to_i),
            :weight => (weight = SiteData::FIELD_WEIGHTS[field]),
            :points => count * weight,
          } end

          # Add bonuses at the bottom.
          if @show_user.bonuses
            rows += @show_user.bonuses.map do |points, reason| {
              :label  => reason.to_s.t,
              :points => points.to_i,
            } end
          end

          # Do we want to sort by points?
          # rows = rows.sort_by {|row| row[:points]}.reverse

          for row in rows
            field  = row[:field]
            label  = row[:label]
            count  = row[:count]
            weight = row[:weight]
            points = row[:points]
            url    = links[field]
            link   = url ? link_to(label, url) : label
            total += points
            if !count %>

                <%= label %>
                =
                <%= points %>

            <% elsif count > 0 and !label.blank? %>

                <%= link %>
                <%= count %> * <%= weight %>
                =
                <%= points %>

            <% end
          end

          if total > 0 %>

              <%= :show_user_total.t %>

              =
              <%= total %>

          <% end %>

      <% if obs_length > 0 %>

          <% for obs in @observations[0,3] %>
            <%= thumbnail(obs.thumb_image, :class => 'site_stats_image',
                          :link => :show_observation, :obs => obs.id,
                          :votes => true) %>

          <% end %>

      <% end %>


ActionItem964: better TinyMCE interface

ActionItem964: better TinyMCE interface

  * added font size select
  * removed useless help button

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

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

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

  return content;
}
</script>

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

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

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

  return content;
}
</script>


use new good way of merging a kev context object into the url

Loading complete information

Please wait, the following information is still loading. You will be automatically returned to the <%= app_name %> screen when finished.

Source	Content type

    <% @user_request.services_in_progress.each do |service|  %>

<%= service.display_name %>
            <%= service.service_types_generated.collect {|st| st.display_name_pluralize}.join('
') %>

    <% end %>

  <%=
    link_to ("View Current Results", url_for_with_co( {:action => 'index', :'umlaut.skip_resolve_menu' => 'false'}, @user_request.to_context_object))
   %>

Loading complete information

Please wait, the following information is still loading. You will be automatically returned to the <%= app_name %> screen when finished.

Source	Content type

    <% @user_request.services_in_progress.each do |service|  %>

<%= service.display_name %>
            <%= service.service_types_generated.collect {|st| st.display_name_pluralize}.join('
') %>

    <% end %>

  <%=
    link_to ("View Current Results",  @user_request.original_co_params( :add_request_id => true  ).merge!({ :action => 'index' , :'umlaut.skip_resolve_menu' => 'false' }))   %>


Add extra link as suggested by the OAIC

Add extra link as suggested by the OAIC

<% @title = "Making requests" %>

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

<%= @title %> #

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

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

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

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

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

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

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

Who can make a request? #

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

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

See the Information Commissioner's Guidelines Right of Access for more.

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

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

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

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

Why do you include some authorities that aren't formally subject to Freedom of Information?#

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

 Those formally subject to the Freedom of Information Act

 Those which choose to voluntarily comply with the Freedom of Information Act

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

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

Why must I keep my request focused?#

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

arguments about your cause

statements that could defame or insult others

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

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

Why do I have to ask for specific existing documents?#

Federal Australian Freedom of Information (FOI) law only gives you a right
to "documents", which is very broadly defined as information in recorded form.

When it comes to making your formal application, it needs to be in the form of
a request for existing documents — reports, briefs, memorandum, notes for file,
tenders, etc.

However, it's a mistake to ask for everything! Remember to
keep your request focused and ask for specific existing documents.

Does it cost me anything to make a request?#

  Making a Freedom of Information request is always free. A public body may choose to impose
  certain charges to provide the information but they can only charge you if
  you have specifically agreed in advance to pay.

  The
  law contains a 'lowest reasonable cost' objective, meaning that if
  the public body chooses to impose a charge it should fairly reflect the work
  involved in providing access to documents and must not be used to discourage
  you from exercising your right of access.

  If a public body decides to charge you for access to documents there are
  certain circumstances where the
  charges may be reduced or waived, such as:

Releasing the information is in the general public interest

The charges would cause you financial hardship (e.g. you're a pensioner)

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

How quickly will I get a response? #

  By law, the public authority must keep you informed about the progress of your Freedom of Information request.

  Within 14 days after they receive your request they must give you
  written acknowledgement and within 30 days they
  must provide you with either the documents you have asked for or a written
  decision on your request.

  For various reasons,
  this timeframe can be extended.

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

What if I never get a response?#

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

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

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

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

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

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

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

  Authorities often add legal boilerplate about the Commonwealth Copyright
  Administration, which at first glance implies you may not be able do
  anything with the information. This is likely to be incorrect as the latest

    Statement of IP Principles for Australian Government Agencies

  explicitly encourages reuse.

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

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

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

Have a look at the
Freedom of Information guidelines
and fact sheets
on the Information Commissioner's website.

Can I request information about myself? #

    No. Requests made using <%= site_name %> are publicly
    visible so cannot help you find information about yourself or another private individual.

    If you'd like to
    request personal information
    you can do so privately by asking the public body directly. Agencies will
    often give you this information when you ask for it or you can formally
    request it using the Privacy Act or Freedom of Information Act.

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

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

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

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

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

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

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

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

How do you moderate request annotations? #

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

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

Next, read about your privacy -->

<% @title = "Making requests" %>

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

<%= @title %> #

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

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

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

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

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

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

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

Who can make a request? #

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

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

See the Information Commissioner's Guidelines Right of Access for more.

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

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

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

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

Why do you include some authorities that aren't formally subject to Freedom of Information?#

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

 Those formally subject to the Freedom of Information Act

 Those which choose to voluntarily comply with the Freedom of Information Act

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

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

Why must I keep my request focused?#

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

arguments about your cause

statements that could defame or insult others

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

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

Why do I have to ask for specific existing documents?#

Federal Australian Freedom of Information (FOI) law only gives you a right
to "documents", which is very broadly defined as information in recorded form.

When it comes to making your formal application, it needs to be in the form of
a request for existing documents — reports, briefs, memorandum, notes for file,
tenders, etc.

However, it's a mistake to ask for everything! Remember to
keep your request focused and ask for specific existing documents.

Does it cost me anything to make a request?#

  Making a Freedom of Information request is always free. A public body may choose to impose
  certain charges to provide the information but they can only charge you if
  you have specifically agreed in advance to pay.

  The
  law contains a 'lowest reasonable cost' objective, meaning that if
  the public body chooses to impose a charge it should fairly reflect the work
  involved in providing access to documents and must not be used to discourage
  you from exercising your right of access.

  If a public body decides to charge you for access to documents there are
  certain circumstances where the
  charges may be reduced or waived, such as:

Releasing the information is in the general public interest

The charges would cause you financial hardship (e.g. you're a pensioner)

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

How quickly will I get a response? #

  By law, the public authority must keep you informed about the progress of your Freedom of Information request.

  Within 14 days after they receive your request they must give you
  written acknowledgement and within 30 days they
  must provide you with either the documents you have asked for or a written
  decision on your request.

  For various reasons,
  this timeframe can be extended.

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

What if I never get a response?#

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

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

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

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

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

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

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

  Authorities often add legal boilerplate about the Commonwealth Copyright
  Administration, which at first glance implies you may not be able do
  anything with the information. This is likely to be incorrect as the latest

    Statement of IP Principles for Australian Government Agencies

  explicitly encourages reuse.

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

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

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

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

Can I request information about myself? #

    No. Requests made using <%= site_name %> are publicly
    visible so cannot help you find information about yourself or another private individual.

    If you'd like to
    request personal information
    you can do so privately by asking the public body directly. Agencies will
    often give you this information when you ask for it or you can formally
    request it using the Privacy Act or Freedom of Information Act.

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

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

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

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

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

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

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

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

How do you moderate request annotations? #

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

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

Next, read about your privacy -->


Update marketing/website/cgi-bin/main.rhtml

        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">

      </button>

Home

Download

Download Ring 1.12

Download Ring 1.11

Download Ring 1.10

Download Ring 1.9

Download Ring 1.8

Download Ring 1.7

Download Ring 1.6

Download Ring 1.5

Download Ring 1.4

Download Ring 1.3

Download Ring 1.2

Download Ring 1.1

Download Ring 1.0

Why?

Documentation

Ring 1.12 Documentation

Ring 1.11 Documentation

Ring 1.10 Documentation

Ring 1.9 Documentation

Ring 1.8 Documentation

Ring 1.7 Documentation

Ring 1.6 Documentation

Ring 1.5 Documentation

Ring 1.4 Documentation

Ring 1.3 Documentation

Ring 1.2 Documentation

Ring 1.1 Documentation

Ring 1.0 Documentation

More

Try Online

Resources

GitHub

Team

		<form class="search" action="../doc1.12/search.html" method="get" style="width:200px" >

				<input name="q" type="text" class="form-control" placeholder="Search for...">

				<button class="btn btn-default" type="submit">Go!</button>

			<input name="check_keywords" value="yes" type="hidden">
			<input name="area" value="default" type="hidden">
		</form>

					Download

					Documents

					Try Online

					Resources

Innovative and practical general-purpose multi-paradigm language

        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">

      </button>

Home

Download

Download Ring 1.12

Download Ring 1.11

Download Ring 1.10

Download Ring 1.9

Download Ring 1.8

Download Ring 1.7

Download Ring 1.6

Download Ring 1.5

Download Ring 1.4

Download Ring 1.3

Download Ring 1.2

Download Ring 1.1

Download Ring 1.0

Why?

Documentation

Ring 1.12 Documentation

Ring 1.11 Documentation

Ring 1.10 Documentation

Ring 1.9 Documentation

Ring 1.8 Documentation

Ring 1.7 Documentation

Ring 1.6 Documentation

Ring 1.5 Documentation

Ring 1.4 Documentation

Ring 1.3 Documentation

Ring 1.2 Documentation

Ring 1.1 Documentation

Ring 1.0 Documentation

Community

Try Online

Resources

GitHub

Team

		<form class="search" action="../doc1.12/search.html" method="get" style="width:200px" >

				<input name="q" type="text" class="form-control" placeholder="Search for...">

				<button class="btn btn-default" type="submit">Go!</button>

			<input name="check_keywords" value="yes" type="hidden">
			<input name="area" value="default" type="hidden">
		</form>

					Download

					Documents

					Try Online

					Resources

Innovative and practical general-purpose multi-paradigm language


Update Ring Website - marketing/website/cgi-bin/main.rhtml


some code for file columns leaked in. taking it back out. file column support still exists only on my hard drive.

git-svn-id: b2ff2946fad280430023ee7ead77858f96a610fa@51 561dde7e-7729-0410-be8e-ef83869d6c7d

<% # should we pass in :name on our own? %>
<% scope ||= nil %>
<% record ||= nil %>
<% object = record.nil? ? :record : record %>
<% name = scope.nil? ? "record[#{column.name}]" : "#{scope}[#{column.name}]" %>

<label for="<%= "record_#{column.name}" %>"><%= column.label %>
<%= if override_form_field?(column)
  send(override_form_field(column), object)
elsif !column.association.nil? and column.ui_type == :select
  select(object, column.name, column.association.klass.find(:all).collect {|r| [r.to_label, r.id]}, {}, { :name => name })
else
  options = { :name => name }
  text_options = options.merge( :autocomplete => "off", :size => 20, :class => 'text-input' )
  if column.virtual?
    text_field(object, column.name, text_options)
  elsif [:text, :string, :integer, :float, :decimal].include?(column.column.type)
    input(object, column.name, text_options)
  else
    input(object, column.name, options)
  end
end
-%>

<% if column.description -%>

<%= column.description %>

<% end -%>

<% # should we pass in :name on our own? %>
<% scope ||= nil %>
<% record ||= nil %>
<% object = record.nil? ? :record : record %>
<% name = scope.nil? ? "record[#{column.name}]" : "#{scope}[#{column.name}]" %>

<label for="<%= "record_#{column.name}" %>"><%= column.label %>
<%= if override_form_field?(column)
  send(override_form_field(column), object)
elsif is_file_column?(column, record)
  file_column_field('record', column.name)
elsif !column.association.nil? and column.ui_type == :select
  select(object, column.name, column.association.klass.find(:all).collect {|r| [r.to_label, r.id]}, {}, { :name => name })
else
  options = { :name => name }
  text_options = options.merge( :autocomplete => "off", :size => 20, :class => 'text-input' )
  if column.virtual?
    text_field(object, column.name, text_options)
  elsif [:text, :string, :integer, :float, :decimal].include?(column.column.type)
    input(object, column.name, text_options)
  else
    input(object, column.name, options)
  end
end
-%>

<% if column.description -%>

<%= column.description %>

<% end -%>


don't know what session[:coins] used to do, but it's not something currently supported

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

<% holdings = get_service_type('holding') %>
<% unless holdings.empty? %>

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

<%= target[:collection_str] %>

        <%= target[:call_number]%>

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

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

        <%= link_to(image_tag("more_info.gif", "border" => 0, "alt" => 'more info'), {:controller=>"link_router", :id=>p.id}, "target" => "_blank") %>

        <% if target[:request_url] %>

          <%= link_to( image_tag("request.gif", "border" => "0", "alt" => "request"),  target[:request_url], "target" => "_blank" ) %>
        <% end %>

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

            <% unless target[:edition_str].blank? %>
              Edition information <%= target[:edition_str] %>
            <% else %>
              May be alternate edition.
            <% end %>

    <% end %>

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

<%= target[:notes] %>

    <% end %>

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

            <%=
              list_with_limit("copies_#{p.id}", target[:coverage_str_array]) do |item, index|
            %>

<%= item %>

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