Tweaked news.

Tweaked news.

<% @title = 'News' %>

<%= @title %>

This page lists the latest changes to and news about the Mushroom Observer website.

Wednesday February 7, 2007

Added checklists.  Items in the checklist are the results of the
                latest search or viewed species list.  Viewing large lists like
                'Latest Changes' or 'Name Index' will reset the checklist to all
                names.

Moved loading species lists from files to a separate page off of
                Edit Species List to avoid an interaction between the checklist
                and file loading.

Saturday January 27, 2007

Name edits now appear in the RSS feed.

Sunday January 21, 2007

Added How To Use page.

Changed 'New' links to 'Create'.

Fixed a bug with the search box.

Fixed a couple of bugs with the next/prev links.

Thursday January 11, 2007

Fixed a bug with creating new species.

Fixed many bugs with page titles, some of which were preventing pages from loading.

Tuesday January 9, 2007

Names are now database objects rather than just strings.  They have a
                rank, a text name an author and notes.

A show_name page shows this information as well as a list of all
        observations that use that Name.  The show_pages can be accessed from
        each show_observation page as well as the name_index page that is
        available in the left-side panel.

Names can be edited on the edit_name pages that are accessible from
        the show_name pages.  Anyone is allowed to edit any name, but
        following the Wikipedia model,
        a record is kept of every version.  The previous versions are stored as
        'past names'.  A show_past_name page shows the name information for a
        previous version of a name and is accessible from each show_name page.

Names are associated with observations through the 'what' field of the
        observation.  When the 'what' field is changed, the names are searched
        for a match.  The 'what' field can either be the text_name or the
        text_name and the author for a name.  No match is found for a 'what'
        value, then the user is given the option to create the new name.  If a
        'what' value matches more than one name (due to different authors
        publishing the same name), then the user is given a choice between the
        options.  The options list how many observations use each version of
        the name.  If you add an author to a 'what' field for a name that does
        not have an author already, it will ask you if you want to create the
        new name, but it will actually update the existing name.

Names given in species lists are treated in the exact same manner,
        except that all the new names and all of the multiple matches are
        dealt with on the same page.  There is also an option on the
        new_species_list and edit_species_list pages to 'Just Create New
        Names'.  This adds the names without updating the species list or
        creating the corresponding observations.

The search box is now available on every page.

Removed the Observation Index in favor of the Name Index.

Fixed some of the list ordering to make it more intuitive.

A filter was added to the account creation process that should reduce the
        number of bot created users.

Fixed a bug with bouncing between observations and images and using the
        next/prev links.

Monday December 18, 2006

Added prev/next links that follow the RSS feed.

Improved prev/next functionality throughout the site.

RSS feed descriptions now have appropriate line breaks.

Monday December 4, 2006

Species lists can now be uploaded from files.

Separated note for species list from note that applies to member observations.

Fixed use of multiple tabs by switching from session data to hidden fields.

mushroomobserver.org/# == mushroomobserver.org/observer/show_observation/#

Monday October 26, 2006

Switched Observations->By Name to include thumbnails and follow layout.

Maintained old By Name behavior as Observations->Index.

Added simple search box to Activity Log (Latest Changes) and Observation list pages.

Monday October 23, 2006

Changed default page to the RSS feed.

Changed page layout for observation and image list pages.

Added layout controls to user preferences.  Set to 10 rows x 1 column
			and turn off 'Put text below images' to get old layout.

Changed thumbnail image size from 100px to 160px with lower quality (jpeg 50 vs. 75).

Provided Prev/Next buttons for images.

Added link to ask the webmaster a question about the site.

Split up 'Manage Images' into 'Add Image', 'Reuse Image' and 'Remove Images' and made
			them more visible.

'Reuse Image' allows you to look at the images.

Added links for viewing the log for observations and species lists.

Made database lookup for all observations much more efficient.

Rearranged left-hand panel.

Images no longer have titles.  They are derived from the observation(s) they are
			connected to.

Removed Edit and Destroy links from view pages.

Add mini-icon for webpages.

Sunday September 9, 2006

Links to email the creator of observations or images with questions or commerical inquiries.  The creator receives an email with the address of the user who wants to contact them.  It is up to the creator whether they want to respond.

User preferences added to disable the above email feature and to stop receiving emails like this letting you know about new features.

RSS feed has been overhauled to reduce the number of entries and make them more relevant.

Copyright holder now has an option to be something other than a registered user.  The user who uploads the image is the default, but it can now be changed on a per image basis.

Monday August 21, 2006

	Added RSS feed for all interesting events that happen on the site.

	Added 'Create Account' link on login page to make it more obvious.

	Tweaked page titles to make the site easier to index.

Sunday August 13, 2006

	Added this news page.

	List pages now have a better interface for paging than just next/previous,
	and its at the top and bottom of each page.

Saturday August 12, 2006

	Added email verification system to user signup.

<% @title = 'News' %>

<%= @title %>

This page lists the latest changes to and news about the Mushroom Observer website.

Wednesday February 7, 2007

Added checklists.  Items in the checklist are the results of the
                latest search or viewed species list.  Viewing large lists like
                'Latest Changes' or 'Name Index' will reset the checklist to all
                names.

Saturday January 27, 2007

Name edits now appear in the RSS feed.

Sunday January 21, 2007

Added How To Use page.

Changed 'New' links to 'Create'.

Fixed a bug with the search box.

Fixed a couple of bugs with the next/prev links.

Thursday January 11, 2007

Fixed a bug with creating new species.

Fixed many bugs with page titles, some of which were preventing pages from loading.

Tuesday January 9, 2007

Names are now database objects rather than just strings.  They have a
                rank, a text name an author and notes.

A show_name page shows this information as well as a list of all
        observations that use that Name.  The show_pages can be accessed from
        each show_observation page as well as the name_index page that is
        available in the left-side panel.

Names can be edited on the edit_name pages that are accessible from
        the show_name pages.  Anyone is allowed to edit any name, but
        following the Wikipedia model,
        a record is kept of every version.  The previous versions are stored as
        'past names'.  A show_past_name page shows the name information for a
        previous version of a name and is accessible from each show_name page.

Names are associated with observations through the 'what' field of the
        observation.  When the 'what' field is changed, the names are searched
        for a match.  The 'what' field can either be the text_name or the
        text_name and the author for a name.  No match is found for a 'what'
        value, then the user is given the option to create the new name.  If a
        'what' value matches more than one name (due to different authors
        publishing the same name), then the user is given a choice between the
        options.  The options list how many observations use each version of
        the name.  If you add an author to a 'what' field for a name that does
        not have an author already, it will ask you if you want to create the
        new name, but it will actually update the existing name.

Names given in species lists are treated in the exact same manner,
        except that all the new names and all of the multiple matches are
        dealt with on the same page.  There is also an option on the
        new_species_list and edit_species_list pages to 'Just Create New
        Names'.  This adds the names without updating the species list or
        creating the corresponding observations.

The search box is now available on every page.

Removed the Observation Index in favor of the Name Index.

Fixed some of the list ordering to make it more intuitive.

A filter was added to the account creation process that should reduce the
        number of bot created users.

Fixed a bug with bouncing between observations and images and using the
        next/prev links.

Monday December 18, 2006

Added prev/next links that follow the RSS feed.

Improved prev/next functionality throughout the site.

RSS feed descriptions now have appropriate line breaks.

Monday December 4, 2006

Species lists can now be uploaded from files.

Separated note for species list from note that applies to member observations.

Fixed use of multiple tabs by switching from session data to hidden fields.

mushroomobserver.org/# == mushroomobserver.org/observer/show_observation/#

Monday October 26, 2006

Switched Observations->By Name to include thumbnails and follow layout.

Maintained old By Name behavior as Observations->Index.

Added simple search box to Activity Log (Latest Changes) and Observation list pages.

Monday October 23, 2006

Changed default page to the RSS feed.

Changed page layout for observation and image list pages.

Added layout controls to user preferences.  Set to 10 rows x 1 column
			and turn off 'Put text below images' to get old layout.

Changed thumbnail image size from 100px to 160px with lower quality (jpeg 50 vs. 75).

Provided Prev/Next buttons for images.

Added link to ask the webmaster a question about the site.

Split up 'Manage Images' into 'Add Image', 'Reuse Image' and 'Remove Images' and made
			them more visible.

'Reuse Image' allows you to look at the images.

Added links for viewing the log for observations and species lists.

Made database lookup for all observations much more efficient.

Rearranged left-hand panel.

Images no longer have titles.  They are derived from the observation(s) they are
			connected to.

Removed Edit and Destroy links from view pages.

Add mini-icon for webpages.

Sunday September 9, 2006

Links to email the creator of observations or images with questions or commerical inquiries.  The creator receives an email with the address of the user who wants to contact them.  It is up to the creator whether they want to respond.

User preferences added to disable the above email feature and to stop receiving emails like this letting you know about new features.

RSS feed has been overhauled to reduce the number of entries and make them more relevant.

Copyright holder now has an option to be something other than a registered user.  The user who uploads the image is the default, but it can now be changed on a per image basis.

Monday August 21, 2006

	Added RSS feed for all interesting events that happen on the site.

	Added 'Create Account' link on login page to make it more obvious.

	Tweaked page titles to make the site easier to index.

Sunday August 13, 2006

	Added this news page.

	List pages now have a better interface for paging than just next/previous,
	and its at the top and bottom of each page.

Saturday August 12, 2006

	Added email verification system to user signup.


fixed a typo in a link on the index

fixed a typo in a link on the index

Welcome to FreeCite!

FreeCite is an open-source application that classifies document citations into fielded data. You can use
    it as a web application
    or a <%= link_to "service", :controller => "welcome", :action => "api_instructions" %>. You can also
    download the source and run FreeCite on your
    own server. FreeCite is distributed under the <a href="http://www.opensource.org/licenses/mit-license.php"MIT license.

FreeCite was inspired by
    ParsCit.
    Much thanks to ParsCit's maintainer, Isaac Councill.

FreeCite was developed through a partnership between the
    Brown
    University Library and Providence-based start-up
    Public Display,
    with funding from the Mellon Foundation.

FreeCite is implemented in Ruby on Rails and
    uses the CRF++ library
    implementation of conditional random fields. Our model is trained on the
    CORA dataset.

If you're interested in a tool like FreeCite, you should check out these other
    citation tools:

ParaCite

ParsCit

    <%= link_to "Let us know", :action => "feedback" %> of any other tools you'd like to see listed here.

<%= link_to "Please get in touch with us", :action => "feedback" %> if you have any feedback to share.

    <%= render :partial => "citations/parse_string" %>

<%= link_to "Learn about our API", :controller => "welcome", :action => "api_instructions" %>

Welcome to FreeCite!

FreeCite is an open-source application that classifies document citations into fielded data. You can use
    it as a web application
    or a <%= link_to "service", :contoller => "welcome", :action => "api_instructions" %>. You can also
    download the source and run FreeCite on your
    own server. FreeCite is distributed under the <a href="http://www.opensource.org/licenses/mit-license.php"MIT license.

FreeCite was inspired by
    ParsCit.
    Much thanks to ParsCit's maintainer, Isaac Councill.

FreeCite was developed through a partnership between the
    Brown
    University Library and Providence-based start-up
    Public Display,
    with funding from the Mellon Foundation.

FreeCite is implemented in Ruby on Rails and
    uses the CRF++ library
    implementation of conditional random fields. Our model is trained on the
    CORA dataset.

If you're interested in a tool like FreeCite, you should check out these other
    citation tools:

ParaCite

ParsCit

    <%= link_to "Let us know", :action => "feedback" %> of any other tools you'd like to see listed here.

<%= link_to "Please get in touch with us", :action => "feedback" %> if you have any feedback to share.

    <%= render :partial => "citations/parse_string" %>

<%= link_to "Learn about our API", :controller => "welcome", :action => "api_instructions" %>


Fix typo.

Fix typo.

<% display_name = (User.find_by_id(params[:user_id])).display_name %>

Send a new message to <%= display_name %>

<% if params[:display_name] %>

Writing a new message to <%= params[:display_name] %>

TODO: drop down box of your friends

<%end%>

<%= error_messages_for 'message' %>

<% form_for :message do |f| %>

      Subject
      <%= f.text_field :title, :size => 60 %>

      Body
      <%= f.text_area :body, :cols => 80 %>

      <%= submit_tag 'Send' %>

<% end %>

<%= link_to 'Back to inbox', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>

<% display_name = (User.find_by_id(params[:user_id])).display_name %>

Send a new message to <%= display_name %>

<% if params[:display_name] %>

Writing a new message to <%= params[:display_name] %>

TODO: drop down box of your friends

<%end%>

<%= error_messages_for 'message' %>

<% form_for :message do |f| %>

      Subject
      <%= f.text_field :title, :size => 60 %>

      Body
      <%= f.text_area :body, :cols => 80 %>

      <%= f.submit_tag 'Send' %>

<% end %>

<%= link_to 'Back to inbox', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>


add edit link to accounts show

add edit link to accounts show

Account <%= @account.title %>

    <%= sort_header('value_date', 'Datum') %>
    Text
    Belastung
    Gutschrift
    Saldo
    Valuta

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

    <%= in_place_editor_field :booking, :in_place_value_date %>

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

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

      <%= link_to h(booking.in_place_value_date), :controller => :bookings, :action => :show, :id => booking %>
      <%= link_to 'Edit', { :controller => :bookings, :action => :edit, :id => booking }, :method => :post %>
      <%= link_to image_tag('insert_booking.png'), :controller => :bookings, :action => :new %>
      <%= link_to image_tag('delete.png'), { :controller => :bookings, :action => 'destroy', :id => booking }, :confirm => 'Sicher?', :method => :post %>

  <% end %>

    Umsatz

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

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

    <%= currency_fmt(total_credit - total_debit) %>

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

Account <%= @account.title %>

    <%= sort_header('value_date', 'Datum') %>
    Text
    Belastung
    Gutschrift
    Saldo
    Valuta

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

    <%= in_place_editor_field :booking, :in_place_value_date %>

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

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

      <%= link_to h(booking.in_place_value_date), :controller => :bookings, :action => :show, :id => booking %>
      <%= link_to image_tag('insert_booking.png'), :controller => :bookings, :action => :new %>
      <%= link_to image_tag('delete.png'), { :controller => :bookings, :action => 'destroy', :id => booking }, :confirm => 'Sicher?', :method => :post %>

  <% end %>

    Umsatz

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

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

    <%= currency_fmt(total_credit - total_debit) %>

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


show value date by default, not days ago

Listing bookings

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

<% for booking in @bookings %>

    <%=h booking.title%>
    <span id="time_ago_in_words_<%=booking.id %>" style="display: none"><%= link_to_function time_ago_in_words(booking.value_date), "toggle('time_ago_in_words_#{booking.id}', 'date_#{booking.id}')" unless booking.value_date.nil?%><span id="date_<%=booking.id %>"><%= link_to_function booking.value_date.strftime('%d.%m.%Y'), "toggle('date_#{booking.id}', 'time_ago_in_words_#{booking.id}')"  unless booking.value_date.nil? %>
    <%=link_to h(booking.credit_account.title), :controller => :accounts, :action => :show, :id => booking.credit_account unless booking.credit_account.nil? %>
    <%=link_to h(booking.debit_account.title), :controller => :accounts, :action => :show, :id => booking.debit_account unless booking.debit_account.nil? %>
    <%=h number_to_currency(booking.rounded_amount, :unit => "CHF ")  %>

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

<% end %>

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

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

Listing bookings

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

<% for booking in @bookings %>

    <%=h booking.title%>
    <span id="time_ago_in_words_<%=booking.id %>"><%= link_to_function time_ago_in_words(booking.value_date), "toggle('time_ago_in_words_#{booking.id}', 'date_#{booking.id}')" unless booking.value_date.nil?%><span id="date_<%=booking.id %>" style="display: none"><%= link_to_function booking.value_date.strftime('%d.%m.%Y'), "toggle('date_#{booking.id}', 'time_ago_in_words_#{booking.id}')"  unless booking.value_date.nil? %>
    <%=link_to h(booking.credit_account.title), :controller => :accounts, :action => :show, :id => booking.credit_account unless booking.credit_account.nil? %>
    <%=link_to h(booking.debit_account.title), :controller => :accounts, :action => :show, :id => booking.debit_account unless booking.debit_account.nil? %>
    <%=h number_to_currency(booking.rounded_amount, :unit => "CHF ")  %>

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

<% end %>

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

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


me había cargado un else

me había cargado un else

git-svn-id: 268669d3058f191005ae665964cd19b71efa10c4@14171 3f47a204-8049-4147-aab0-d444c64e7564

<% if logged_in? %>

		 	<%= nav_tab "Home", { :url => space_path(@space.id), :class=>'primero'} %>
		 	<%= nav_tab "MyProfile", { :url => user_profile_path(current_user.id, {:space_id => @space.id})} %>
		    <%= nav_tab "Events", { :url => space_events_path(@space)} %>
		 	<%= nav_tab "Posts", { :url => space_posts_path(@space)} %>
		 	<%if @space.id!=1%>
				<%= nav_tab "People", { :url => space_users_path(@space.id, {:only_space_users => true})} %>
		 		<%= nav_tab "Groups", { :url =>  space_groups_path(:space_id => @space.id)} %>
		 	<%else%>
				<%= nav_tab "People", { :url => space_users_path(@space.id)} %>
		 		<%= nav_tab "Spaces", { :url =>  spaces_path(:space_id => @space.id)} %>
			<%end%>

			<%if current_user.superuser==true%>

				<%= nav_tab "Manage", { :url => {:controller=>'spaces', :action=>'index', :container_id => @space.id,:manage=>true }, :class=>'ultimo'} %>

			<%end%>

<% elsif @space%>

      	    <%= nav_tab "Home", { :url => space_path(@space.id)} %>
		    <%= nav_tab "Events", { :url => space_events_path(@space.id)} %>
		 	<%= nav_tab "Posts", { :url => space_posts_path(@space)} %>
			<%if @space.id!=1%>
				<%= nav_tab "People", { :url => space_users_path(@space.id, {:only_space_users => true})} %>
		 		<%= nav_tab "Groups", { :url =>  space_groups_path(@space.id)} %>
			<%else%>
				<%= nav_tab "People", { :url => space_users_path(@space.id)} %>
		 		<%= nav_tab "Spaces", { :url =>  spaces_path(:space_id => @space.id)} %>
		 	<%end%>

  <%else%>

      	    <%= nav_tab "Home", { :url => space_path(1)} %>
		    <%= nav_tab "Events", { :url => space_events_path(1)} %>
		 	<%= nav_tab "Posts", { :url => {:controller=>'posts', :action=>'index', :container_id => 1}} %>

<% end %>

<% if logged_in? %>

		 	<%= nav_tab "Home", { :url => space_path(@space.id), :class=>'primero'} %>
		 	<%= nav_tab "MyProfile", { :url => user_profile_path(current_user.id, {:space_id => @space.id})} %>
		    <%= nav_tab "Events", { :url => space_events_path(@space)} %>
		 	<%= nav_tab "Posts", { :url => space_posts_path(@space)} %>
		 	<%if @space.id!=1%>
				<%= nav_tab "People", { :url => space_users_path(@space.id, {:only_space_users => true})} %>
		 		<%= nav_tab "Groups", { :url =>  space_groups_path(:space_id => @space.id)} %>
		 	<%else%>
				<%= nav_tab "People", { :url => space_users_path(@space.id)} %>
		 		<%= nav_tab "Spaces", { :url =>  spaces_path(:space_id => @space.id)} %>
			<%end%>

			<%if current_user.superuser==true%>

				<%= nav_tab "Manage", { :url => {:controller=>'spaces', :action=>'index', :container_id => @space.id,:manage=>true }, :class=>'ultimo'} %>

			<%end%>

<% elsif @space%>

      	    <%= nav_tab "Home", { :url => space_path(@space.id)} %>
		    <%= nav_tab "Events", { :url => space_events_path(@space.id)} %>
		 	<%= nav_tab "Posts", { :url => space_posts_path(@space)} %>
			<%if @space.id!=1%>
				<%= nav_tab "People", { :url => space_users_path(@space.id, {:only_space_users => true})} %>
		 		<%= nav_tab "Groups", { :url =>  space_groups_path(@space.id)} %>
			<%else%>
				<%= nav_tab "People", { :url => space_users_path(@space.id)} %>
		 		<%= nav_tab "Spaces", { :url =>  spaces_path(:space_id => @space.id)} %>
		 	<%end%>

<% end %>


Update app/views/projects/show.rhtml

Update app/views/projects/show.rhtml

fix issue #7#issuecomment-7450878

	<% if User.current.allowed_to?(:add_subprojects, @project) %>
		<%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
	<% end %>
    <%= link_to_if_authorized l(:label_edit_overview_page), {:controller => 'blocks', :action => 'edit_overview', :project_id => @project}, :class => 'icon icon-edit' %>

<%=l(:label_overview)%>

		<%= textilizable @project.description %>

	<% unless @project.homepage.blank? %>
<%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %>
<% end %>
  <% if @subprojects.any? %>

<%=l(:label_subproject_plural)%>:
	    <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %>

  <% end %>
	<% @project.custom_values.each do |custom_value| %>
	<% if !custom_value.value.blank? %>

<%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %>

	<% end %>
	<% end %>

  <%= call_hook(:view_projects_show_left, :project => @project) %>

  <%= call_hook(:view_projects_show_right, :project => @project) %>

<% content_for :sidebar do %>
    <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>

<%= l(:label_spent_time) %>

<%= l_hours(@total_hours) %>

<%= link_to(l(:label_details), {:controller => 'timelog', :action => '', :project_id => @project}) %> |
    <%= link_to(l(:label_report), {:controller => 'timelog', :action => 'report', :project_id => @project}) %>

    <% end %>
    <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
<% end %>

<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
<% end %>

<% html_title(l(:label_overview)) -%>

	<% if User.current.allowed_to?(:add_subprojects, @project) %>
		<%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
	<% end %>
    <%= link_to_if_authorized l(:label_edit_overview_page), {:controller => 'blocks', :action => 'edit_overview', :project_id => @project}, :class => 'icon icon-edit' %>

<%=l(:label_overview)%>

		<%= textilizable @project.description %>

	<% unless @project.homepage.blank? %>
<%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %>
<% end %>
  <% if @subprojects.any? %>

<%=l(:label_subproject_plural)%>:
	    <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %>

  <% end %>
	<% @project.custom_values.each do |custom_value| %>
	<% if !custom_value.value.blank? %>

<%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %>

	<% end %>
	<% end %>

  <%= call_hook(:view_projects_show_left, :project => @project) %>

  <%= call_hook(:view_projects_show_right, :project => @project) %>

<% content_for :sidebar do %>
    <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>

<%= l(:label_spent_time) %>

<%= l_hours(@total_hours) %>

<%= link_to(l(:label_details), {:controller => 'time_log', :action => '', :project_id => @project}) %> |
    <%= link_to(l(:label_report), {:controller => 'time_log', :action => 'report', :project_id => @project}) %>

    <% end %>
    <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
<% end %>

<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
<% end %>

<% html_title(l(:label_overview)) -%>


Fix task created due date in notifications

<%= @task.issue_name %>
<%= "-" * @task.issue_name.length %>

  Client:       <%= @task.project.customer.name %>
  Project:      <%= @task.project.name %>
<% if !@task.milestone.nil?  -%>
  Milestone:    <%= @task.milestone.name %>
<% end -%>
  Task Type:    <%= @task.issue_type %>
  Severity:     <%= @task.severity_type %>
  Priority:     <%= @task.priority_type %>
<% unless @task.due_at.nil? -%>
  Due:          <%= @user.tz.utc_to_local(@task.due_at).strftime("%A, %d %B %Y") %>
<% end -%>
  Assigned To:  <%= @task.users.collect{|u| u.name}.join(', ') unless @task.users.empty? %><%= "No one" if @task.users.empty? %>
<% if @task.requested_by && @task.requested_by.length > 0 -%>
  Requested By: <%= @task.requested_by %>
<% end -%>
  Created By:   <%= @user.name %>

<%= "#{@user.name}:\n#{@note}\n" if @note.length > 0 -%>
<%= "\n" if @note.length > 0 -%>
<%= "Description:\n" + @task.description if @task.description.length > 0 %>
--
Message automatically generated by ClockingIT
http://<%= @user.company.subdomain%>.<%= $CONFIG[:domain] %>/tasks/view/<%=@task.task_num%>

<%= @task.issue_name %>
<%= "-" * @task.issue_name.length %>

  Client:       <%= @task.project.customer.name %>
  Project:      <%= @task.project.name %>
<% if !@task.milestone.nil?  -%>
  Milestone:    <%= @task.milestone.name %>
<% end -%>
  Task Type:    <%= @task.issue_type %>
  Severity:     <%= @task.severity_type %>
  Priority:     <%= @task.priority_type %>
<% unless @task.due_at.nil? -%>
  Due:          <%= @user.tz.utc_to_local(@task.due_at.strftime("%A, %d %B %Y")) %>
<% end -%>
  Assigned To:  <%= @task.users.collect{|u| u.name}.join(', ') unless @task.users.empty? %><%= "No one" if @task.users.empty? %>
<% if @task.requested_by && @task.requested_by.length > 0 -%>
  Requested By: <%= @task.requested_by %>
<% end -%>
  Created By:   <%= @user.name %>

<%= "#{@user.name}:\n#{@note}\n" if @note.length > 0 -%>
<%= "\n" if @note.length > 0 -%>
<%= "Description:\n" + @task.description if @task.description.length > 0 %>
--
Message automatically generated by ClockingIT
http://<%= @user.company.subdomain%>.<%= $CONFIG[:domain] %>/tasks/view/<%=@task.task_num%>


Fixed issue 173 - support pluralization of FOUND.

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

      <td colspan="<%= active_scaffold_config.list.columns.length + 1 -%>" class="messages-container">
        <div id="<%= active_scaffold_messages_id -%>">
          <%= render :partial => 'messages' %>

        <p id="<%= empty_message_id %>" class="empty-message" <%= ' style="display:none;" ' unless @page.items.empty? %>>
          <%= _('NO_ENTRIES') %>

  <tbody class="records" id="<%= active_scaffold_tbody_id %>">
    <% if !@records.empty? -%>
      <%= render :partial => 'list_record', :collection => @page.items, :locals => { :hidden => false } %>
      <% if active_scaffold_config.list.columns.any? {|c| c.calculation?} -%>
        <%= render :partial => 'list_calculations' %>
      <% end -%>
    <% end -%>

    <%= render :partial => 'list_pagination_links', :locals => { :current_page => @page } unless @page.pager.number_of_pages == 1 %>

  <%= @page.pager.count -%> <%=_('FOUND', @page.pager.count )%>

<% # a hack for the Rico Corner problem %>

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

      <td colspan="<%= active_scaffold_config.list.columns.length + 1 -%>" class="messages-container">
        <div id="<%= active_scaffold_messages_id -%>">
          <%= render :partial => 'messages' %>

        <p id="<%= empty_message_id %>" class="empty-message" <%= ' style="display:none;" ' unless @page.items.empty? %>>
          <%= _('NO_ENTRIES') %>

  <tbody class="records" id="<%= active_scaffold_tbody_id %>">
    <% if !@records.empty? -%>
      <%= render :partial => 'list_record', :collection => @page.items, :locals => { :hidden => false } %>
      <% if active_scaffold_config.list.columns.any? {|c| c.calculation?} -%>
        <%= render :partial => 'list_calculations' %>
      <% end -%>
    <% end -%>

    <%= render :partial => 'list_pagination_links', :locals => { :current_page => @page } unless @page.pager.number_of_pages == 1 %>

  <%= @page.pager.count -%> <%=_('FOUND')%>

<% # a hack for the Rico Corner problem %>


Removed Jquery frog css UI

Removed Jquery frog css UI

<title><%= (@cms_page_info ? @cms_page_info[:page_title] : @title) ||  "CMS" %></title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW, NOCACHE">

<%= stylesheet_link_tag 'common' %>
<link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
<%= theme_stylesheet_link_tag  "admin_design", :media => 'all' %>
<%= theme_stylesheet_link_tag  "admin_framework", :media => 'all' %>
<script> var AUTH_TOKEN = "<%= form_authenticity_token.to_s %>";</script>

<%= remote_script 'ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js' %>
<%= remote_script 'ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js' %>
<script>
   $j = jQuery.noConflict();
</script>
<%= javascript_include_tag 'jaction' %>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>

<% unless @no_legacy_cs %>
<%= javascript_include_tag "overlib/overlib" %>
<%= javascript_include_tag :defaults %>

<%= javascript_include_tag "builder" %>
<%= javascript_include_tag "slider" %>
<%= javascript_include_tag "swfobject" %>
<%= javascript_include_tag "tiny_mce/tiny_mce" %>
<%= javascript_include_tag 'redbox' %>
<% end -%>
<%= javascript_include_tag 'active_table' %>
<%= javascript_include_tag 'shortcut' %>

<%= @header if @header %>
<%= @extra_header if @extra_header %>
<% if @js_header -%>
  <% @js_header.uniq.each do |js| -%>
    <% if js.to_s.include?('http://') -%>
      <script src="<%= vh js %>" type='text/javascript'></script>
    <% else -%>
      <%= javascript_include_tag js %>
    <% end -%>
  <% end -%>
<% end -%>
<% if @css_header -%>
  <% @css_header.uniq.each do |css| -%>
    <%= stylesheet_link_tag css %>
  <% end -%>
<% end -%>

<title><%= (@cms_page_info ? @cms_page_info[:page_title] : @title) ||  "CMS" %></title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW, NOCACHE">

<%= stylesheet_link_tag 'common' %>
<link href='http://fonts.googleapis.com/css?family=Droid+Sans' rel='stylesheet' type='text/css'>
<%= theme_stylesheet_link_tag  "admin_design", :media => 'all' %>
<%= theme_stylesheet_link_tag  "admin_framework", :media => 'all' %>
<script> var AUTH_TOKEN = "<%= form_authenticity_token.to_s %>";</script>

<%= remote_script 'ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js' %>
<%= remote_script 'ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/jquery-ui.min.js' %>
<%= stylesheet_link_tag "/javascripts/jquery/le-frog/jquery-ui-1.8.4.custom.css" %>

<script>
   $j = jQuery.noConflict();
</script>
<%= javascript_include_tag 'jaction' %>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>

<% unless @no_legacy_cs %>
<%= javascript_include_tag "overlib/overlib" %>
<%= javascript_include_tag :defaults %>

<%= javascript_include_tag "builder" %>
<%= javascript_include_tag "slider" %>
<%= javascript_include_tag "swfobject" %>
<%= javascript_include_tag "tiny_mce/tiny_mce" %>
<%= javascript_include_tag 'redbox' %>
<% end -%>
<%= javascript_include_tag 'active_table' %>
<%= javascript_include_tag 'shortcut' %>

<%= @header if @header %>
<%= @extra_header if @extra_header %>
<% if @js_header -%>
  <% @js_header.uniq.each do |js| -%>
    <% if js.to_s.include?('http://') -%>
      <script src="<%= vh js %>" type='text/javascript'></script>
    <% else -%>
      <%= javascript_include_tag js %>
    <% end -%>
  <% end -%>
<% end -%>
<% if @css_header -%>
  <% @css_header.uniq.each do |css| -%>
    <%= stylesheet_link_tag css %>
  <% end -%>
<% end -%>


Link to contact form, rather than email.

<%= @outgoing_message.body.strip %>

-------------------------------------------------------------------
Disclaimer: This message and any reply that you make will be
published on the internet. Our privacy and copyright policies:
http://www.whatdotheyknow.com/help/about#officers

Is <%= @info_request.public_body.request_email%> the wrong address
for <%= @info_request.law_used_full %> requests to <%= @info_request.public_body.name%>?
If so please contact us using this form:
http://www.whatdotheyknow.com/help/contact
-------------------------------------------------------------------

<%= @outgoing_message.body.strip %>

-------------------------------------------------------------------
Disclaimer: This message and any reply that you make will be
published on the internet. Our privacy and copyright policies:
http://www.whatdotheyknow.com/help/about#officers

Is <%= @info_request.public_body.request_email%> the wrong address
for <%= @info_request.law_used_full %> requests to <%= @info_request.public_body.name%>?
If so please let us know by emailing <%=@contact_email%> - we'll make
sure future ones go to the right place.
-------------------------------------------------------------------


Only showing the last 200 logs instead of 500 to help load faster.

<%
  service = _ob.get(:Service, _get["service_id"])

  print _site.header(sprintf(_("View service: %s"), service.name.html))
%>

  <input type="button" value="<%=_"Edit service"%>" onclick="location.href='/?s=service_edit&service_id=<%=service.id%>';" />

<%=_site.boxt(_("Information"), 350)%>

    <%
      print _kas.inputs({
        :title => _("Group"),
        :type => :info,
        :value => service.group_html,
        :descr => _("The group that this service belongs to.")
      })
    %>

<%=_site.boxb%>

<%=_site.boxt(_("Logs"), "100%")%>

        <%=_"ID"%>
        <%=_"Message"%>
        <%=_"Date"%>

      <%
        logs = _ob.list(:Log, {"object_lookup" => service, "limit" => 200, "orderby" => [["date_saved", "desc"]]})

        logs.each do |log|
          %>

                <%=log.id%>

                <%=log[:text].html%>

                <%=log[:date_saved_str].html%>

          <%
        end

        if logs.empty?
          %>

                <%=_"No logs has been saved for this service."%>

          <%
        end
      %>

<%=_site.boxb%>

<%
  service = _ob.get(:Service, _get["service_id"])

  print _site.header(sprintf(_("View service: %s"), service.name.html))
%>

  <input type="button" value="<%=_"Edit service"%>" onclick="location.href='/?s=service_edit&service_id=<%=service.id%>';" />

<%=_site.boxt(_("Information"), 350)%>

    <%
      print _kas.inputs({
        :title => _("Group"),
        :type => :info,
        :value => service.group_html,
        :descr => _("The group that this service belongs to.")
      })
    %>

<%=_site.boxb%>

<%=_site.boxt(_("Logs"), "100%")%>

        <%=_"ID"%>
        <%=_"Message"%>
        <%=_"Date"%>

      <%
        logs = _ob.list(:Log, {"object_lookup" => service, "limit" => 500, "orderby" => [["date_saved", "desc"]]})

        logs.each do |log|
          %>

                <%=log.id%>

                <%=log[:text].html%>

                <%=log[:date_saved_str].html%>

          <%
        end

        if logs.empty?
          %>

                <%=_"No logs has been saved for this service."%>

          <%
        end
      %>

<%=_site.boxb%>


Removed password from this page

Removed password from this page

Former-commit-id: 4d5f9592da6411d591b05f4552f2588bbe00b8a9

<% if @people.empty? %>

Sorry, but no one has registered!
  Send people <%= link_to "here", :controller => "account", :action => "new" %>!

<% else %>

      id
      first_name
      last_name
      email_address
      administrator?
      Most recent action
      See actions
      Become this user

    <% @people.each do |person| %>

      <%= person.id %>
      <%= person.first_name %>
      <%= person.last_name %>
      <%= mail_to person.email_address %>
      <%= "yes" if person.administrator? %>

        <% if person.latest_action_time %>
        <%= distance_of_time_in_words(Time.now, person.latest_action_time) -%> ago
      <% else %>
      -
      <% end %>

      <%= link_to "See user's actions", :controller => "admin", :action => "view_person_actions", :id => person.id %>

	<% if person.administrator? %>
	-
	<% else %>
	<%= link_to "Become this user", :action => :become_user, :id => person.id -%>
	<% end %>

    <% end %>

<% end %>

<% if @people.empty? %>

Sorry, but no one has registered!
  Send people <%= link_to "here", :controller => "account", :action => "new" %>!

<% else %>

      id
      first_name
      last_name
      email_address
      password
      administrator?
      Most recent action
      See actions
      Become this user

    <% @people.each do |person| %>

      <%= person.id %>
      <%= person.first_name %>
      <%= person.last_name %>
      <%= mail_to person.email_address %>
      <%= person.password %>
      <%= "yes" if person.administrator? %>

        <% if person.latest_action_time %>
        <%= distance_of_time_in_words(Time.now, person.latest_action_time) -%> ago
      <% else %>
      -
      <% end %>

      <%= link_to "See user's actions", :controller => "admin", :action => "view_person_actions", :id => person.id %>

	<% if person.administrator? %>
	-
	<% else %>
	<%= link_to "Become this user", :action => :become_user, :id => person.id -%>
	<% end %>

    <% end %>

<% end %>


Remove bogus action attribute from the submit button - it should have no effect as there is no such attribute defined, but Opera seems to decide that it should post the form to that URL instead of the one give on the form element.

<% user_id = params[:user_id] || @user_id %>
<% display_name = User.find_by_id(user_id).display_name %>

Send a new message to <%= h(display_name) %>

<% if params[:display_name] %>

Writing a new message to <%= h(params[:display_name]) %>

TODO: drop down box of your friends

<%end%>

<%= error_messages_for 'message' %>

<% form_for :message, :url => { :action => "new", :user_id => user_id } do |f| %>

      Subject
      <%= f.text_field :title, :size => 60, :value => @title %>

      Body
      <%= f.text_area :body, :cols => 80, :value => @body %>

      <%= submit_tag 'Send' %>

<% end %>

<%= link_to 'Back to inbox', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>

<% user_id = params[:user_id] || @user_id %>
<% display_name = User.find_by_id(user_id).display_name %>

Send a new message to <%= h(display_name) %>

<% if params[:display_name] %>

Writing a new message to <%= h(params[:display_name]) %>

TODO: drop down box of your friends

<%end%>

<%= error_messages_for 'message' %>

<% form_for :message, :url => { :action => "new", :user_id => user_id } do |f| %>

      Subject
      <%= f.text_field :title, :size => 60, :value => @title %>

      Body
      <%= f.text_area :body, :cols => 80, :value => @body %>

      <%= submit_tag 'Send', :action => 'new' %>

<% end %>

<%= link_to 'Back to inbox', :controller => 'message', :action => 'inbox', :display_name => @user.display_name %>


Transifex link to open in new window.

Transifex link to open in new window.

<% if I18n.locale.to_s == 'cy' %>
As you can see, we don't yet have a complete Welsh translation of WhatDoTheyKnow. Please help us get there by adding translations at Transifex. You can read more about working with translations for Alaveteli, the software that runs WhatDoTheyKnow, here.
<% end %>


Clean up terminology.  Closes #1009

Clean up terminology.  Closes #1009

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

<%= error_messages_for 'article' %>

  Title:

  <%= text_field 'article', 'title'  %>
  (<%= link_to_function "» edit permalink", "Toggle.display('permalink')" %>)

  Permalink:

  <%= text_field 'article', 'permalink'  %>

  Body:

  <%= text_area 'article', 'body', :rows => 25, :style => 'width: 48%;'  %>

<%= markup_help_popup @article.text_filter, "Markup Help" %>

  Categories:

  <select id="categories" name="categories[]" multiple="multiple" size="10" style="width:250px;">
  <%= options_from_collection_for_select(@categories, "id", "name", @selected) %>
  </select>

  Tags:

  <%= text_field 'article', 'keywords'  %>

  Add Extended Content

  Extended:

  <%= text_area 'article', 'extended', :rows => 30, :style => 'width: 48%;'  %>

Toggle Advanced Options (+/-)

Allow comments: <%= check_box 'article', 'allow_comments'  %>

Allow trackbacks: <%= check_box 'article', 'allow_pings'  %>

Published:<%= check_box 'article', 'published'  %>

Textfilter: <%= select 'article', 'text_filter', text_filter_options %>

Publish at:<%= datetime_select 'article', 'published_at', :include_blank => true  %>

Attachments (+/-)

<%= render :partial => 'admin/content/attachment', :locals => { :attachment_num => 1 } -%>

<%= error_messages_for 'article' %>

  Title:

  <%= text_field 'article', 'title'  %>
  (<%= link_to_function "» edit permalink", "Toggle.display('permalink')" %>)

  Permalink:

  <%= text_field 'article', 'permalink'  %>

  Body:

  <%= text_area 'article', 'body', :rows => 25, :style => 'width: 48%;'  %>

<%= markup_help_popup @article.text_filter, "Markup Help" %>

  Categories:

  <select id="categories" name="categories[]" multiple="multiple" size="10" style="width:250px;">
  <%= options_from_collection_for_select(@categories, "id", "name", @selected) %>
  </select>

  Keywords:

  <%= text_field 'article', 'keywords'  %>

  Add Extended Content

  Extended:

  <%= text_area 'article', 'extended', :rows => 30, :style => 'width: 48%;'  %>

Toggle Advanced Options (+/-)

Allow comments: <%= check_box 'article', 'allow_comments'  %>

Allow pings: <%= check_box 'article', 'allow_pings'  %>

Published:<%= check_box 'article', 'published'  %>

Textfilter: <%= select 'article', 'text_filter', text_filter_options %>

Publish at:<%= datetime_select 'article', 'published_at', :include_blank => true  %>

Attachments (+/-)

<%= render :partial => 'admin/content/attachment', :locals => { :attachment_num => 1 } -%>


Closes #197

Closes #197

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

<% @page_heading = 'Blog settings' %>

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

Which settings group would you like to edit?

General Settings

Text Filter

Spam Protection

General Settings

      Blog name:
      <input name="setting[blog_name]" id="blog_name" type="text" value="<%= config_value(:blog_name) %>" />

      Blog subtitle:
      <input name="setting[blog_subtitle]" id="blog_subtitle" type="text" value="<%= config_value(:blog_subtitle) %>" />

      Blog theme:
      <input name="setting[theme]" id="theme" type="text" value="<%= config_value(:theme) %>" />

      <input name="setting[default_allow_comments]" id="default_allow_comments" type="checkbox" value="1" <%= 'checked="checked"' if config_value(:default_allow_comments)%> />
      <input name="setting[default_allow_comments]" type="hidden" value="0"/>
        Enable comments by default

      <input name="setting[default_allow_pings]" id="default_allow_pings" type="checkbox" value="1" <%= 'checked="checked"' if config_value(:default_allow_pings)%> />
      <input name="setting[default_allow_pings]" type="hidden" value="0"/>
        Enable Trackbacks by default

        Display
        <input name="setting[limit_article_display]" size="4" id="limit_article_display" type="text" value="<%= config_value(:limit_article_display) %>" /> articles on my homepage by default.

        Display
        <input name="setting[limit_rss_display]" size="4" id="limit_rss_display" type="text" value="<%= config_value(:limit_rss_display) %>" /> articles in my rss feed by default.

Should the blog show mailto: links to your email address?

<input name="setting[link_to_author]" id="link_to_author" type="checkbox" value="1" <%= 'checked="checked"' if config_value(:link_to_author)%> /><input name="setting[link_to_author]" type="hidden" value="0"/> Enable E-Mail public display

Would you like to include your latitude and longitude in your blog's HTML pages? See GeoURL for details.
Example: <tt>47.774,-122.201</tt>

Latitude, Longitude:
      <input name="setting[geourl_location]" size="20" id="geourl_location" type="text" value="<%= config_value(:geourl_location) %>" />

<%= save("Save My Settings") %>

Text Filter

Your options depend on which gems you have installed. Following configurations are supported. RedCloth, BlueCloth and RubyPants gems are supported.

        <select name="setting[text_filter]" id="text_filter">
          <%= options_for_select text_filter_options, config_value(:text_filter) %>
        </select>
        Article filter

        <select name="setting[comment_text_filter]" id="comment_text_filter">
        <%= options_for_select text_filter_options, config_value(:comment_text_filter) %>
        </select>
        Comments filter

<%= save("Save My Settings") %>

Spam Protection

Enabling spam protection will make typo compare the IP address of posters against blacklists. Good defense against spam bots.

          <input name="setting[sp_global]" id="sp_global" type="checkbox" value="1" <%= 'checked="checked"' if config_value(:sp_global)%> /><input name="setting[sp_global]" type="hidden" value="0"/>
          Enable spam protection

          Disable comments after
          <input name="setting[sp_article_auto_close]" size="4" id="sp_article_auto_close" type="text" value="<%= config_value(:sp_article_auto_close) %>" /> days

(Set to 0 to never disable comments)

Typo will automatically reject comments and trackbacks which contain over a certain amount of links in them.

          Max URLs:
          <input name="setting[sp_url_limit]" size="4" id="sp_url_limit" type="text" value="<%= config_value(:sp_url_limit) %>" /> links

(Set to 0 to never reject comments)

<%= save("Save My Settings") %>

    <%= save("Save My Settings") %>

  <%= end_form_tag %>


changed wording

changed wording

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<% context_object = @user_request.referent.to_context_object -%>

<title><%= AppConfig.param('app_name', 'Find It') %> | <%= @user_request.referent.to_citation[:title] %></title>
 <%= stylesheet_link_tag 'basic'
 %>
 <%= render(:partial => 'shared/ensure_window_size') %>

    <%= resolver_link(nil, :target=>"_top", :params=>@user_request.original_co_params(:add_request_id => true).merge(:action => 'index', :'umlaut.skip_resolve_menu' => 'false')) %>

    <%= resolver_link(nil, :text => 'More options in full menu', :target=>"_top", :params=>@user_request.original_co_params(:add_request_id => true).merge(:action => 'index', :'umlaut.skip_resolve_menu' => 'false')) %>

    <%= link_to "#{ image_tag("frame_remove.gif", :border=>0, :align=>'bottom') } Remove banner", {:controller=>'link_router', :id=>(@service_type_join.id if @service_type_join)}, 'target'=>'_top', 'class'=>'smallText' %>

  <% displayed_data = @service_type_join.view_data %>
  <% unless displayed_data[:authentication].blank? %>
        Authentication: <%= displayed_data[:authentication] %>
  <% end %>

    <% help_responses = get_service_type('help')
       unless help_responses.blank?
    %>

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

  <% fulltxt = get_service_type('fulltext')
     title_level_fulltxt = get_service_type('fulltext_title_level')
     unless fulltxt.blank? && title_level_fulltxt.blank?
  %>

    <% if fulltxt.length + title_level_fulltxt.length > 1 %>

Other <%= ServiceTypeValue[:fulltext].display_name_pluralize.downcase%>:

    <% end %>

    <%
      fulltxt.each do | ft |
      target = ft.view_data
    %>
        <li class="fulltextlink <%= 'frameescaping' if known_frame_escaper?(ft) %>">
        <%  # Currently displayed one should not be a link, but should
            # be greyed-out instead.
            if ( ft == @service_type_join ) %>
            <%= target[:display_text] %>
        <% else %>
          <%= frameset_link_to(ft) %>
        <% end %>

    <% end
       unless title_level_request? || title_level_fulltxt.empty?
          genre = @user_request.referent.metadata['genre']
          genre = "Journal" if genre.downcase == 'article'
    %>

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

    <%
       end
       title_level_fulltxt.each do |ft|
       target = ft.view_data %>
        <li class="fulltextlink <%= 'frameescaping' if known_frame_escaper?(ft) %>">
        <%  # Currently displayed one should not be a link, but should
            # be greyed-out instead.
            if ( ft == @service_type_join ) %>
            <%= target[:display_text] %>
        <% else %>
          <%= frameset_link_to(ft) %>
        <% end %>

    <% end %>

  <% end %>

    ?Problem? Need help?
      <% help_responses.each do |help| %>
           <%= link_to help.view_data[:display_text], {:controller=>'link_router', :id=>help.id}, 'target'=>"_blank" %>
       <% end
     end
     %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<% context_object = @user_request.referent.to_context_object -%>

<title><%= AppConfig.param('app_name', 'Find It') %> | <%= @user_request.referent.to_citation[:title] %></title>
 <%= stylesheet_link_tag 'basic'
 %>
 <%= render(:partial => 'shared/ensure_window_size') %>

    <%= resolver_link(nil, :target=>"_top", :params=>@user_request.original_co_params(:add_request_id => true).merge(:action => 'index', :'umlaut.skip_resolve_menu' => 'false')) %>

    <%= resolver_link(nil, :text => 'More in full menu', :target=>"_top", :params=>@user_request.original_co_params(:add_request_id => true).merge(:action => 'index', :'umlaut.skip_resolve_menu' => 'false')) %>

    <%= link_to "#{ image_tag("frame_remove.gif", :border=>0, :align=>'bottom') } Remove banner", {:controller=>'link_router', :id=>(@service_type_join.id if @service_type_join)}, 'target'=>'_top', 'class'=>'smallText' %>

  <% displayed_data = @service_type_join.view_data %>
  <% unless displayed_data[:authentication].blank? %>
        Authentication: <%= displayed_data[:authentication] %>
  <% end %>

    <% help_responses = get_service_type('help')
       unless help_responses.blank?
    %>

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

  <% fulltxt = get_service_type('fulltext')
     title_level_fulltxt = get_service_type('fulltext_title_level')
     unless fulltxt.blank? && title_level_fulltxt.blank?
  %>

    <% if fulltxt.length + title_level_fulltxt.length > 1 %>

Other <%= ServiceTypeValue[:fulltext].display_name_pluralize.downcase%>:

    <% end %>

    <%
      fulltxt.each do | ft |
      target = ft.view_data
    %>
        <li class="fulltextlink <%= 'frameescaping' if known_frame_escaper?(ft) %>">
        <%  # Currently displayed one should not be a link, but should
            # be greyed-out instead.
            if ( ft == @service_type_join ) %>
            <%= target[:display_text] %>
        <% else %>
          <%= frameset_link_to(ft) %>
        <% end %>

    <% end
       unless title_level_request? || title_level_fulltxt.empty?
          genre = @user_request.referent.metadata['genre']
          genre = "Journal" if genre.downcase == 'article'
    %>

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

    <%
       end
       title_level_fulltxt.each do |ft|
       target = ft.view_data %>
        <li class="fulltextlink <%= 'frameescaping' if known_frame_escaper?(ft) %>">
        <%  # Currently displayed one should not be a link, but should
            # be greyed-out instead.
            if ( ft == @service_type_join ) %>
            <%= target[:display_text] %>
        <% else %>
          <%= frameset_link_to(ft) %>
        <% end %>

    <% end %>

  <% end %>

    ?Problem? Need help?
      <% help_responses.each do |help| %>
           <%= link_to help.view_data[:display_text], {:controller=>'link_router', :id=>help.id}, 'target'=>"_blank" %>
       <% end
     end
     %>


Added donate tab

Added donate tab

<%
  @title = :wrapup_2012_title.l
  new_tab_set do
    add_tab(:donate_tab.t, 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2TGUG7TNXYF7Q')
    add_tab(:donors_tab.t, :action => 'donors')
  end
%>

<p>
  <%= :wrapup_2012_body.tp %>
</p>

<%
  @title = :wrapup_2012_title.l
  new_tab_set do
    add_tab(:donors_tab.t, :action => 'donors')
  end
%>

<p>
  <%= :wrapup_2012_body.tp %>
</p>


git-svn-id: svn://beonebody.org/onebody/trunk@50 88fc0095-4724-0410-ab6c-c99dba55acc4

<%=h @verse.reference %> (<%=h @verse.translation %>)

<%= render :partial => 'shares/subnav' %>

<%=h @verse.text %>

<%= form_tag({:action => 'add_tags', :id => @verse}, :style => 'border:none;padding:0;') %>

    Tags:
    <%= render :partial => 'tags/tags_with_delete', :locals => {:object => @verse} %>
    Add tags: <%= text_field_tag :tag_string, nil, :style => 'width:125px;' %>

</form>

<% if @logged_in.verses.include? @verse %>

    <%= link_to 'Remove this verse', {:controller => 'people', :action => 'remove_verse', :id => @verse}, :post => true, :confirm => 'Are you sure?' %>
    from my list.

  <%= render :partial => 'add_verse' %>
<% else %>

    <%= link_to 'Add this verse', {:controller => 'people', :action => 'add_verse', :reference => @verse.reference}, :post => true %>
    to my list.

<% end %>

<% if @verse.translation == 'WEB' %>

    Scripture quotations marked "WEB" are taken from the World English Bible, a Modern English update of the American Standard Version of the Holy Bible. WEB is in the public domain. Copy and publish it freely.

<% end %>

People

  <% @verse.people.each do |person| %>

        <a href="<%= url_for :controller => 'people', :action => 'view', :id => person %>">
          <%= render :partial => 'people/thumbnail', :locals => {:person => person} %>

      <%= link_to person.name, :controller => 'people', :action => 'view', :id => person %>

  <% end %>

<%=h @verse.reference %> (<%=h @verse.translation %>)

<%= render :partial => 'shares/subnav' %>

<%=h @verse.text %>

<%= form_tag({:action => 'add_tags', :id => @verse}, :style => 'border:none;padding:0;') %>

    Tags:
    <%= render :partial => 'tags/tags_with_delete', :locals => {:object => @verse} %>
    Add tags: <%= text_field_tag :tag_string, nil, :style => 'width:125px;' %>

</form>

<% if @logged_in.verses.include? @verse %>
  <%= render :partial => 'add_verse' %>
<% else %>

<% end %>

<% if @verse.translation == 'WEB' %>

    Scripture quotations marked "WEB" are taken from the World English Bible, a Modern English update of the American Standard Version of the Holy Bible. WEB is in the public domain. Copy and publish it freely.

<% end %>

People

  <% @verse.people.each do |person| %>

        <a href="<%= url_for :controller => 'people', :action => 'view', :id => person %>">
          <%= render :partial => 'people/thumbnail', :locals => {:person => person} %>

      <%= link_to person.name, :controller => 'people', :action => 'view', :id => person %>

  <% end %>


Only show censor rules table if there are some.

<% if censor_rules.size > 0 %>

      Id
      <% for column in CensorRule.content_columns %>
        <%= column.human_name %>
      <% end %>
      Actions

  <% for censor_rule in censor_rules %>
    <tr class="<%= cycle('odd', 'even') %>">
      <%=h censor_rule.id %>
      <% for column in CensorRule.content_columns.map { |c| c.name } %>
        <%=h censor_rule.send(column) %>
      <% end %>

        <%= link_to "Edit", '../../censor/edit/' + censor_rule.id.to_s %>

  <% end %>

<% else %>

None yet.

<% end %>

    <%= link_to "New censor rule", '../../censor/new?info_request_id=' + info_request.id.to_s %>

  Id
  <% for column in CensorRule.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for censor_rule in censor_rules %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h censor_rule.id %>
  <% for column in CensorRule.content_columns.map { |c| c.name } %>
    <%=h censor_rule.send(column) %>
  <% end %>

      <%= link_to "Edit", '../../censor/edit/' + censor_rule.id.to_s %>

<% end %>

    <%= link_to "New censor rule", '../../censor/new?info_request_id=' + info_request.id.to_s %>


add info to the diff view so that you can see who made the change you are viewing, and when

<% content_for :style do  %>
pre.diff code{
    padding: 0px;
}
div.diff {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 8px 20px;
    margin: 15px 0px;
}
/* http://longren.org/2006/09/27/wrapping-text-inside-pre-tags */
/* Browser specific (not valid) styles to make preformatted text wrap */
pre.diff {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}
<% end %>

<%= return_to_page(@page) %>

Comparing changes by <%= link_to_user(@new.user_id)%> at <%= full_time @new.updated_at %> from
version <%= @old.version %>
to
version <%= @new.version %>

<% if @old.version.to_i != 1 %>
<%= link_to '« prev change', page_url(@page, :action => 'diff', :id => "#{@old.version.to_i-1}-#{@old.version}") %>
<% else %>
« prev change
<% end %>
<% if @wiki.versions.last.version != @new.version %>
<%= link_to 'next change »', page_url(@page, :action => 'diff', :id => "#{@new.version}-#{@new.version.to_i+1}") %>
<% else %>
next change »
<% end %>

<%= @difftext %>

<% content_for :style do  %>
pre.diff code{
    padding: 0px;
}
div.diff {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 8px 20px;
    margin: 15px 0px;
}
/* http://longren.org/2006/09/27/wrapping-text-inside-pre-tags */
/* Browser specific (not valid) styles to make preformatted text wrap */
pre.diff {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}
<% end %>

<%= return_to_page(@page) %>

Comparing changes from
version <%= @old.version %>
to
version <%= @new.version %>

<% if @old.version.to_i != 1 %>
<%= link_to '« prev change', page_url(@page, :action => 'diff', :id => "#{@old.version.to_i-1}-#{@old.version}") %>
<% else %>
« prev change
<% end %>
<% if @wiki.versions.last.version != @new.version %>
<%= link_to 'next change »', page_url(@page, :action => 'diff', :id => "#{@new.version}-#{@new.version.to_i+1}") %>
<% else %>
next change »
<% end %>

<%= @difftext %>


Don't include Rails default scripts (it breaks our jQuery!)

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

<%=@title%>

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

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

            <%= name %>:

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

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

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

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

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

            <% end %>

      <% end %>

          Created by

          <%= link_to("".html_safe, user_url(@info_request.user), :title => "view user's page on public website") %>
          <%= link_to(@info_request.user.name, user_admin_url(@info_request.user)) %>
          <%= link_to _("move..."), "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

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

          Public authority:

          <%= link_to("".html_safe, public_body_url(@info_request.public_body), :title => "view authority on public website") %>
          <%= link_to(@info_request.public_body.name, public_body_admin_url(@info_request.public_body)) %>
          <%= link_to "move...", "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

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

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

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

          <%=_("Tags")%>

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

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

     Other views of this request

    <%= link_to 'Public page', main_url(request_url(@info_request)), :class => "btn" %>
    <%= link_to 'Edit page', '../edit/' + @info_request.id.to_s, :class => "btn" %>

     FOI officer upload URL

    <%= link_to 'Generate URL', '../generate_upload_url/' + @info_request.id.to_s, :class => "btn" %>

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

   <% form_tag '../hide/' + @info_request.id.to_s, :class => "form form-inline", :info_request_id => @info_request.id.to_s, :id => "hide_request_form" do %>

    Hide the request and notify the user:

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

This request has already been hidden

     <% else %>

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

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

     <% end %>

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

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

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

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

    <% end %>
   <% end %>
</formset>

Events

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

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

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

        <%= info_request_event.created_at%>

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

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

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

                  <%=h name%>

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

            <% end %>

  <% end %>

Outgoing messages

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

       <%= link_to("".html_safe, "../edit_outgoing/#{outgoing_message.id}") %>
        <a href="#outgoing_<%=outgoing_message.id%>" data-toggle="collapse" data-parent="outgoing_messages">
          #<%= outgoing_message.id %> -- <%= outgoing_message.status.humanize %> <%= outgoing_message.message_type.humanize %>

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

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

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

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

                  <%=name%>

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

<%= simple_format( outgoing_message.body ) %>

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

            <% end %>

  <% end %>

Incoming messages

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

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

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

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

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

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

                  <%=name%>

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

<%= simple_format(value) %>

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

            <% end %>

  <% end %>

Annotations

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

    <% for comment in @info_request.comments %>

          <%= link_to("".html_safe, "../edit_comment/#{comment.id}") %>
          <a href="#comment_<%=comment.id%>" data-toggle="collapse" data-parent="comments">
            #<%=comment.id%>
            --
            <%=h(comment.user.name)%>
            <%=admin_value(comment.created_at)%>

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

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

                 By <%= link_to("".html_safe, user_url(comment.user), :title => "view user's page on public website") %>

                  <%= link_to(h(comment.user.name), user_admin_url(comment.user)) %>

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

                    <%=name%>

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

              <% end %>

    <% end %>

<% else %>

None yet.

<% end %>

Exim delivery logs

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

<% for exim_log_done_id, exim_logs in @info_request.exim_logs.group_by(&:exim_log_done_id) %>

<% for exim_log in exim_logs %><%=h exim_log.line%><% end %>

<% end %>
<% if @info_request.exim_logs.size == 0 %>

None (perhaps this is an old or a very new request)

<% end %>

Censor rules

<%= render :partial => 'admin_censor_rule/show', :locals => { :censor_rules => @info_request.censor_rules, :info_request => @info_request } %>

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

<%=@title%>

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

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

            <%= name %>:

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

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

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

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

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

            <% end %>

      <% end %>

          Created by

          <%= link_to("".html_safe, user_url(@info_request.user), :title => "view user's page on public website") %>
          <%= link_to(@info_request.user.name, user_admin_url(@info_request.user)) %>
          <%= link_to _("move..."), "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

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

          Public authority:

          <%= link_to("".html_safe, public_body_url(@info_request.public_body), :title => "view authority on public website") %>
          <%= link_to(@info_request.public_body.name, public_body_admin_url(@info_request.public_body)) %>
          <%= link_to "move...", "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

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

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

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

          <%=_("Tags")%>

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

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

     Other views of this request

    <%= link_to 'Public page', main_url(request_url(@info_request)), :class => "btn" %>
    <%= link_to 'Edit page', '../edit/' + @info_request.id.to_s, :class => "btn" %>

     FOI officer upload URL

    <%= link_to 'Generate URL', '../generate_upload_url/' + @info_request.id.to_s, :class => "btn" %>

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

   <% form_tag '../hide/' + @info_request.id.to_s, :class => "form form-inline", :info_request_id => @info_request.id.to_s, :id => "hide_request_form" do %>

    Hide the request and notify the user:

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

This request has already been hidden

     <% else %>

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

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

     <% end %>

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

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

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

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

    <% end %>
   <% end %>
</formset>

Events

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

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

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

        <%= info_request_event.created_at%>

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

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

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

                  <%=h name%>

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

            <% end %>

  <% end %>

Outgoing messages

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

       <%= link_to("".html_safe, "../edit_outgoing/#{outgoing_message.id}") %>
        <a href="#outgoing_<%=outgoing_message.id%>" data-toggle="collapse" data-parent="outgoing_messages">
          #<%= outgoing_message.id %> -- <%= outgoing_message.status.humanize %> <%= outgoing_message.message_type.humanize %>

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

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

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

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

                  <%=name%>

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

<%= simple_format( outgoing_message.body ) %>

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

            <% end %>

  <% end %>

Incoming messages

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

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

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

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

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

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

                  <%=name%>

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

<%= simple_format(value) %>

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

            <% end %>

  <% end %>

Annotations

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

    <% for comment in @info_request.comments %>

          <%= link_to("".html_safe, "../edit_comment/#{comment.id}") %>
          <a href="#comment_<%=comment.id%>" data-toggle="collapse" data-parent="comments">
            #<%=comment.id%>
            --
            <%=h(comment.user.name)%>
            <%=admin_value(comment.created_at)%>

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

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

                 By <%= link_to("".html_safe, user_url(comment.user), :title => "view user's page on public website") %>

                  <%= link_to(h(comment.user.name), user_admin_url(comment.user)) %>

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

                    <%=name%>

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

              <% end %>

    <% end %>

<% else %>

None yet.

<% end %>

Exim delivery logs

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

<% for exim_log_done_id, exim_logs in @info_request.exim_logs.group_by(&:exim_log_done_id) %>

<% for exim_log in exim_logs %><%=h exim_log.line%><% end %>

<% end %>
<% if @info_request.exim_logs.size == 0 %>

None (perhaps this is an old or a very new request)

<% end %>

Censor rules

<%= render :partial => 'admin_censor_rule/show', :locals => { :censor_rules => @info_request.censor_rules, :info_request => @info_request } %>


Improve modal sign-in layout

Improve modal sign-in layout

@import url(http://fonts.googleapis.com/css?family=Open+Sans:600,700);

/** LAYOUT **/
body {
    font-family: Verdana, Helvetica, Arial;
}
    body.front {
        background: none;
    }

#wrapper {
    padding-top: 10px;
    margin-bottom: 50px;
}

/** HEADER **/
#banner {
    background: #EAF5F6;
    border: none;
    height: 150px;
    position: relative;
}

#banner_inner {
    width: 950px;
    height: 150px;
}
    #banner_inner a:hover {
        text-decoration: underline;
    }

#logo {
    position: absolute;
    top: 20px;
}

#navigation_search {
    top: 50px;
    visibility: hidden;
}

div.lang {
    top: 23px;
    color: #00aaa6;
    font-size: 12px;
    text-transform: capitalize;
}
    div.lang a {
        color: #00aaa6;
        text-decoration: none;
    }

#logged_in_bar {
    top: 24px;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 8px 1px 8px;
    height: 19px;
    background: #009a9d;
    border-radius: 5px;
}
    #logged_in_bar, #logged_in_bar a, #logged_in_bar a:visited {
        color: #FFF;
        text-decoration: none;
    }

/** NAVIGATION BAR **/
#topnav {
    font-family: Helvetica, Arial;
    font-size: 14px;
    font-weight: bold;
    margin-left: 190px;
}
    #topnav ul li {
        padding-left: 8px;
        padding-right: 8px;
        margin-right: 8px;

        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
    #topnav ul li a {
        color: #00aaa6 !important;
    }

/** MAIN SITE **/
h1, h1 a {
    font-family: 'Open Sans', Helvetica, Arial;
    color: #009a9d;
    font-size: 28px;
    font-weight: 600;
    margin-top: 30px;
    text-decoration: none;
}

h2, h2 a {
    font-family: 'Open Sans', Helvetica, Arial;
    color: #7bbb58;
    font-size: 18px;
    font-weight: 700;
}

h3, h3 a {
    font-family: Helvetica, Arial;
    color: #00aaa6;
    font-size: 14px;
    font-weight: bold;
}

/** HELP **/
#left_column_flip {
    margin-top: 20px;
    width: 550px;
    margin-right: 40px;
}

#right_column_flip {
    text-align: right;
    width: 240px;
}

.controller_help {
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
}
    .controller_help a {
        color: #009a9d;
        text-decoration: none;
    }
    .controller_help a:hover {
        text-decoration: underline;
    }

.XXX {  /* TODO stuff */
    color: red;
    font-weight: bold;
    background-color: yellow;
}

/** FRONTPAGE **/
.front #wrapper, .front #content {
    width: 100%;
    padding: 0px;
    margin: 0px;
}

#frontpage-intro {
    width: 950px;
    margin: auto;
    position: relative;
}

#frontpage-lead {
    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #73c167;
}

#frontpage-left-balloon {
    float: left;
    width: 206px;
    height: 184px;
    background: url(/asktheeu-theme/images/yellow_balloon.gif);
    padding: 10px 20px 20px 50px;
    margin: 37px 8px 60px 0px;
}
    #frontpage-left-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }

#frontpage-middle-balloon {
    float: left;
    width: 314px;
    height: 283px;
    background: url(/asktheeu-theme/images/blue_balloon.gif);
    padding: 0px 30px 0px 30px;
}
    #frontpage-middle-balloon h1 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 42px;
        font-weight: 700;
        color: #fff;
        text-align: center;
        padding-right: 20px;
        margin-bottom: 5px;
    }
    #frontpage-middle-balloon p {
        margin-left: 15px;
    }
    #frontpage-middle-balloon .frontpage-button-link {
        margin-left: 95px;
    }

#frontpage-right-balloon {
    float: left;
    width: 218px;
    height: 174px;
    background: url(/asktheeu-theme/images/green_balloon.gif);
    padding: 5px 20px 20px 50px;
    margin: 42px 0px 60px 4px;
}
    #frontpage-right-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }

#frontpage-left-balloon p,
#frontpage-right-balloon p,
#frontpage-middle-balloon p {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-top: 0px;
}

#frontpage-intro a {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
    #frontpage-intro a:hover {
        text-decoration: underline;
    }

.frontpage-button-link {
    height: 24px;
    width: 100px;
    background: url(/asktheeu-theme/images/button_gradient.gif);
    border-radius: 5px;
    text-align: center;
    padding-top: 3px;
    padding-bottom: 3px;
}

#frontpage-content {
    background: #EAF5F6;
    border-top: 1px solid #b2dcde;
}

#frontpage-inner-content {
    width: 950px;
    margin: auto;
    position: relative;
    padding-bottom: 20px;
}

#left-column {
    float: left;
    background: #EAF5F6;
    width: 450px;
}

#right-column {
    float: right;
    width: 450px;
}

#frontpage-content p {
    color: #6f6f6e;
    font-size: 12px;
    line-height: 1.5;
}

#frontpage-content p a {
    color: #009a9d;
    font-size: 12px;
    text-decoration: none;
}
    #frontpage-content a:hover {
        text-decoration: underline;
    }

.picture-frame {
    width: 450px;
    height: 270px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
}
    .picture-frame img,
    .picture-frame iframe {
        width: 420px;
        height: 240px;
        margin: 15px;
    }

#follow-us-frame {
    width: 390px;
    height: 60px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
    margin-top: 50px;
    padding: 20px 30px 20px 30px;
}
    #follow-us-frame p {
        float: left;
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 18px;
        color: #009a9d;
    }
    #follow-us-frame span {
        float: left;
        margin-top: 12px;
        margin-left: 20px;
    }

.link-arrow {
    background: no-repeat url(/asktheeu-theme/images/arrow_icon.gif) ;
    padding-top: 6px;
    padding-left: 35px;
    height: 30px;
}
    .link-arrow a {
        font-family: Helvetica, Arial;
        color: #00aaa6;
        font-size: 14px;
        font-weight: bold;
        text-decoration: none;
    }

/** MODAL SIGN-IN **/

#signin-successful,
#signin-successful a {
    font-family: Helvetica, Arial;
    color: #00aaa6;
    font-size: 14px;
    font-weight: bold;
    padding-top: 50px;
}

#sign_together h1 {
    margin-top: 10px;
}

#sign_together .errorExplanation {
    width: 360px;
    text-align: left;
}

/** FOOTER **/
#footer {
    height: 170px;
    margin: 0px;
    border-top-width: 1px;
}

#footer-inner {
    width: 950px;
    margin: auto;
    position: relative;
}

#access-info-logo {
    position: absolute;
    left: 0px;
    top: 10px;
}

#footer-links {
    margin-left: 150px;
    margin-top: 10px;
    float: left;

    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 18px;
}
    #footer-links ul {
        list-style: none outside none;
    }
    #footer-links ul li {
        float: left;
        margin-right: 40px;
    }
    #footer-links ul a {
        text-decoration: none;
        color: #009a9d;
    }
    #footer-links ul a:hover {
        text-decoration: underline;
    }

#credits {
    margin-top: 30px;
    margin-right: 20px;

    font-family: Verdana, Helvetica, Arial;
    font-size: 11px;
}
    #credits a {
        text-decoration: none;
        color: #00aaa6;
    }

#creative-commons-logo {
    position: absolute;
    right: 5px;
    top: 30px;
}

@import url(http://fonts.googleapis.com/css?family=Open+Sans:600,700);

/** LAYOUT **/
body {
    font-family: Verdana, Helvetica, Arial;
}
    body.front {
        background: none;
    }

#wrapper {
    padding-top: 10px;
    margin-bottom: 50px;
}

/** HEADER **/
#banner {
    background: #EAF5F6;
    border: none;
    height: 150px;
    position: relative;
}

#banner_inner {
    width: 950px;
    height: 150px;
}
    #banner_inner a:hover {
        text-decoration: underline;
    }

#logo {
    position: absolute;
    top: 20px;
}

#navigation_search {
    top: 50px;
    visibility: hidden;
}

div.lang {
    top: 23px;
    color: #00aaa6;
    font-size: 12px;
    text-transform: capitalize;
}
    div.lang a {
        color: #00aaa6;
        text-decoration: none;
    }

#logged_in_bar {
    top: 24px;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 8px 1px 8px;
    height: 19px;
    background: #009a9d;
    border-radius: 5px;
}
    #logged_in_bar, #logged_in_bar a, #logged_in_bar a:visited {
        color: #FFF;
        text-decoration: none;
    }

/** NAVIGATION BAR **/
#topnav {
    font-family: Helvetica, Arial;
    font-size: 14px;
    font-weight: bold;
    margin-left: 190px;
}
    #topnav ul li {
        padding-left: 8px;
        padding-right: 8px;
        margin-right: 8px;

        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
    #topnav ul li a {
        color: #00aaa6 !important;
    }

/** MAIN SITE **/
h1, h1 a {
    font-family: 'Open Sans', Helvetica, Arial;
    color: #009a9d;
    font-size: 28px;
    font-weight: 600;
    margin-top: 30px;
    text-decoration: none;
}

h2, h2 a {
    font-family: 'Open Sans', Helvetica, Arial;
    color: #7bbb58;
    font-size: 18px;
    font-weight: 700;
}

h3, h3 a {
    font-family: Helvetica, Arial;
    color: #00aaa6;
    font-size: 14px;
    font-weight: bold;
}

/** HELP **/
#left_column_flip {
    margin-top: 20px;
    width: 550px;
    margin-right: 40px;
}

#right_column_flip {
    text-align: right;
    width: 240px;
}

.controller_help {
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
}
    .controller_help a {
        color: #009a9d;
        text-decoration: none;
    }
    .controller_help a:hover {
        text-decoration: underline;
    }

.XXX {  /* TODO stuff */
    color: red;
    font-weight: bold;
    background-color: yellow;
}

/** FRONTPAGE **/
.front #wrapper, .front #content {
    width: 100%;
    padding: 0px;
    margin: 0px;
}

#frontpage-intro {
    width: 950px;
    margin: auto;
    position: relative;
}

#frontpage-lead {
    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #73c167;
}

#frontpage-left-balloon {
    float: left;
    width: 206px;
    height: 184px;
    background: url(/asktheeu-theme/images/yellow_balloon.gif);
    padding: 10px 20px 20px 50px;
    margin: 37px 8px 60px 0px;
}
    #frontpage-left-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }

#frontpage-middle-balloon {
    float: left;
    width: 314px;
    height: 283px;
    background: url(/asktheeu-theme/images/blue_balloon.gif);
    padding: 0px 30px 0px 30px;
}
    #frontpage-middle-balloon h1 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 42px;
        font-weight: 700;
        color: #fff;
        text-align: center;
        padding-right: 20px;
        margin-bottom: 5px;
    }
    #frontpage-middle-balloon p {
        margin-left: 15px;
    }
    #frontpage-middle-balloon .frontpage-button-link {
        margin-left: 95px;
    }

#frontpage-right-balloon {
    float: left;
    width: 218px;
    height: 174px;
    background: url(/asktheeu-theme/images/green_balloon.gif);
    padding: 5px 20px 20px 50px;
    margin: 42px 0px 60px 4px;
}
    #frontpage-right-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }

#frontpage-left-balloon p,
#frontpage-right-balloon p,
#frontpage-middle-balloon p {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-top: 0px;
}

#frontpage-intro a {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
    #frontpage-intro a:hover {
        text-decoration: underline;
    }

.frontpage-button-link {
    height: 24px;
    width: 100px;
    background: url(/asktheeu-theme/images/button_gradient.gif);
    border-radius: 5px;
    text-align: center;
    padding-top: 3px;
    padding-bottom: 3px;
}

#frontpage-content {
    background: #EAF5F6;
    border-top: 1px solid #b2dcde;
}

#frontpage-inner-content {
    width: 950px;
    margin: auto;
    position: relative;
    padding-bottom: 20px;
}

#left-column {
    float: left;
    background: #EAF5F6;
    width: 450px;
}

#right-column {
    float: right;
    width: 450px;
}

#frontpage-content p {
    color: #6f6f6e;
    font-size: 12px;
    line-height: 1.5;
}

#frontpage-content p a {
    color: #009a9d;
    font-size: 12px;
    text-decoration: none;
}
    #frontpage-content a:hover {
        text-decoration: underline;
    }

.picture-frame {
    width: 450px;
    height: 270px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
}
    .picture-frame img,
    .picture-frame iframe {
        width: 420px;
        height: 240px;
        margin: 15px;
    }

#follow-us-frame {
    width: 390px;
    height: 60px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
    margin-top: 50px;
    padding: 20px 30px 20px 30px;
}
    #follow-us-frame p {
        float: left;
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 18px;
        color: #009a9d;
    }
    #follow-us-frame span {
        float: left;
        margin-top: 12px;
        margin-left: 20px;
    }

.link-arrow {
    background: no-repeat url(/asktheeu-theme/images/arrow_icon.gif) ;
    padding-top: 6px;
    padding-left: 35px;
    height: 30px;
}
    .link-arrow a {
        font-family: Helvetica, Arial;
        color: #00aaa6;
        font-size: 14px;
        font-weight: bold;
        text-decoration: none;
    }

/** MODAL SIGN-IN **/

#signin-successful,
#signin-successful a {
    font-family: Helvetica, Arial;
    color: #00aaa6;
    font-size: 14px;
    font-weight: bold;
    padding-top: 50px;
}

/** FOOTER **/
#footer {
    height: 170px;
    margin: 0px;
    border-top-width: 1px;
}

#footer-inner {
    width: 950px;
    margin: auto;
    position: relative;
}

#access-info-logo {
    position: absolute;
    left: 0px;
    top: 10px;
}

#footer-links {
    margin-left: 150px;
    margin-top: 10px;
    float: left;

    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 18px;
}
    #footer-links ul {
        list-style: none outside none;
    }
    #footer-links ul li {
        float: left;
        margin-right: 40px;
    }
    #footer-links ul a {
        text-decoration: none;
        color: #009a9d;
    }
    #footer-links ul a:hover {
        text-decoration: underline;
    }

#credits {
    margin-top: 30px;
    margin-right: 20px;

    font-family: Verdana, Helvetica, Arial;
    font-size: 11px;
}
    #credits a {
        text-decoration: none;
        color: #00aaa6;
    }

#creative-commons-logo {
    position: absolute;
    right: 5px;
    top: 30px;
}