changes made to remove constant 1 = true and replace it with true or false value

git-svn-id: f67d969b640da65cb7bc1d229e09fd6d2db44ae1@449 392d7b7b-3f31-0410-9dc3-c95a9635ea79

<% session[:return_to] = request.request_uri %>
<% if flash[:notice] != nil and flash[:notice].strip != "" %>

	<%= flash[:notice] %>

<% end %>

Reviews for <%= @assignment.name %>

  <%review_no = 1%>
  <%for review_map in @review_mapping %>
  <% @review = Review.find_by_review_mapping_id(review_map.id) %>
  <% if (@review)%>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review <%= review_no%>  <%= link_to "View",{:controller => 'review', :action => 'view_review', :id => @review.id} %>
  <% if StudentAssignmentHelper::get_current_stage(@assignment.id) != "Complete" %>
  	<%= link_to "Edit",{:controller => 'review', :action => 'edit_review', :id => @review.id} %>

  <% end %>
  <% else %>
  	<% if StudentAssignmentHelper::get_current_stage(@assignment.id) != "Complete" %>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review <%=review_no%>  <%= link_to "Begin",{:controller => 'review', :action => 'new_review', :id => review_map.id, :assignment => @assignment_id} %>

  	<% else %>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review <%=review_no%>  Begin

  	<% end %>
  <% end %>
  <%review_no += 1
  end %>

 <% if @can_view_metareview == true && @review_of_review_mappings.size > 0 %>

Reviews of reviews for <%= @assignment.name %>

  <%ror_no = 1%>
  <%for ror_map in @review_of_review_mappings %>
  <%
  @ror = ReviewOfReview.find_by_review_of_review_mapping_id(ror_map.id)
  %>
  <% if (@ror)%>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review of Review <%=ror_no%>  <%= link_to "View",{:controller => 'review_of_review', :action => 'view', :id => @ror.id} %>
  <% if StudentAssignmentHelper::get_current_stage(@assignment.id) != "Complete" %>
	  <%= link_to "Edit",{:controller => 'review_of_review', :action => 'edit', :id => @ror.id} %>

  <% end %>

  <% else %>
	<% if StudentAssignmentHelper::get_current_stage(@assignment.id) != "Complete" %>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review of Review <%=ror_no%>  <%= link_to "Begin",{:controller => 'review_of_review', :action => 'new', :id => ror_map.id, :assignment => @assignment_id} %>

	<%else%>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review of Review <%=ror_no%>  Begin

	<%end%>
  <% end %>
  <%ror_no += 1
  end %>

<%end%>

<%= link_to "Back", :controller=>'student_assignment', :action => 'view_actions', :id => @student.id %>

<% session[:return_to] = request.request_uri %>
<% if flash[:notice] != nil and flash[:notice].strip != "" %>

	<%= flash[:notice] %>

<% end %>

Reviews for <%= @assignment.name %>

  <%review_no = 1%>
  <%for review_map in @review_mapping %>
  <% @review = Review.find_by_review_mapping_id(review_map.id) %>
  <% if (@review)%>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review <%= review_no%>  <%= link_to "View",{:controller => 'review', :action => 'view_review', :id => @review.id} %>
  <% if StudentAssignmentHelper::get_current_stage(@assignment.id) != "Complete" %>
  	<%= link_to "Edit",{:controller => 'review', :action => 'edit_review', :id => @review.id} %>

  <% end %>
  <% else %>
  	<% if StudentAssignmentHelper::get_current_stage(@assignment.id) != "Complete" %>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review <%=review_no%>  <%= link_to "Begin",{:controller => 'review', :action => 'new_review', :id => review_map.id, :assignment => @assignment_id} %>

  	<% else %>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review <%=review_no%>  Begin

  	<% end %>
  <% end %>
  <%review_no += 1
  end %>

 <% if @can_view_metareview == 1 && @review_of_review_mappings.size > 0 %>

Reviews of reviews for <%= @assignment.name %>

  <%ror_no = 1%>
  <%for ror_map in @review_of_review_mappings %>
  <%
  @ror = ReviewOfReview.find_by_review_of_review_mapping_id(ror_map.id)
  %>
  <% if (@ror)%>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review of Review <%=ror_no%>  <%= link_to "View",{:controller => 'review_of_review', :action => 'view', :id => @ror.id} %>
  <% if StudentAssignmentHelper::get_current_stage(@assignment.id) != "Complete" %>
	  <%= link_to "Edit",{:controller => 'review_of_review', :action => 'edit', :id => @ror.id} %>

  <% end %>

  <% else %>
	<% if StudentAssignmentHelper::get_current_stage(@assignment.id) != "Complete" %>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review of Review <%=ror_no%>  <%= link_to "Begin",{:controller => 'review_of_review', :action => 'new_review_of_review', :id => ror_map.id, :assignment => @assignment_id} %>

	<%else%>

<%= Assignment.find_by_id(review_map.assignment_id).name %> Review of Review <%=ror_no%>  Begin

	<%end%>
  <% end %>
  <%ror_no += 1
  end %>

<%end%>

<%= link_to "Back", :controller=>'student_assignment', :action => 'view_actions', :id => @student.id %>


Corrected spelling error

Corrected spelling error

git-svn-id: f67d969b640da65cb7bc1d229e09fd6d2db44ae1@693 392d7b7b-3f31-0410-9dc3-c95a9635ea79

<% if @assignment.review_allowed or @assignment.get_current_stage == "Complete" %>

Reviews for <%= @assignment.name %>

  <%= render :partial => 'responses', :locals => {:mappings => @review_mappings, :title => 'Review'} %>
<% else %>

Reviews cannot be performed at this time

<% end %>

<% if @assignment.metareview_allowed or @assignment.get_current_stage == "Complete" %>

Metareviews for <%= @assignment.name %>

  <%= render :partial => 'responses', :locals => {:mappings => @metareview_mappings, :title => 'Metareview'} %>
<% else %>

Metareviews cannot be performed at this time

<% end %>

Back

<% if @assignment.review_allowed or @assignment.get_current_stage == "Complete" %>

Reviews for <%= @assignment.name %>

  <%= render :partial => 'responses', :locals => {:mappings => @review_mappings, :title => 'Review'} %>
<% else %>

Reviews cannot be performed at this time

<% end %>

<% if @assignment.metareview_allowed or @assignment.get_current_stage == "Complete" %>

Metareviews for <%= @assignment.name %>

  <%= render :partial => 'responses', :locals => {:mappings => @metareview_mappings, :title => 'Metaeview'} %>
<% else %>

Metareviews cannot be performed at this time

<% end %>

Back


Fix bad merge of d88b79d1aa24a78ed95255a37a0403d7e3c0117e

<% @title = "Summary" %>

<%=@title%>

<%=@public_body_count%> public authorities

        <%=@info_request_count%> requests, <%=@outgoing_message_count%> outgoing messages,
        <%=@incoming_message_count%> incoming messages

<%=@user_count%> users, <%=@track_thing_count%> tracked things

<%=@comment_count%> annotations

Things to do

  <% if @holding_pen_messages.size > 0 %>

        <%=@holding_pen_messages.size%><%= chevron_right %> Put misdelivered responses with the right request

            <% for message in @holding_pen_messages %>

                  <% if message.get_body_for_quoting.strip.size == 0 %>
                      <%= link_to "(no body)", admin_request_show_raw_email_path(message.raw_email_id) %>
                  <% else %>
                      <%= link_to excerpt(message.get_body_for_quoting, "", 60), admin_request_show_raw_email_path(message.raw_email_id) %>
                  <% end %>

                  <%=simple_date(message.sent_at)%>

            <% end %>

  <% end %>

  <% if @error_message_requests.size > 0 %>

        <%=@error_message_requests.size%> <%= chevron_right %>Fix these delivery and other errors

            <% for @request in @error_message_requests %>

                  <%= request_both_links(@request) %>

                  <%=simple_date(@request.info_request_events.last.created_at)%>

            <% end %>

  <% end %>

  <% if @attention_requests.size > 0 %>

        <%=@attention_requests.size%><%= chevron_right %> Review requests marked by users as requiring your attention

            <% for @request in @attention_requests %>

                  <%= request_both_links(@request) %>

                  <%=simple_date(@request.info_request_events.last.created_at)%>

            <% end %>

  <% end %>

  <% if @requires_admin_requests.size > 0 %>

        <%=@requires_admin_requests.size%><%= chevron_right %> These require administrator attention

            <% for @request in @requires_admin_requests %>

                  <%= request_both_links(@request) %>

                  <%=simple_date(@request.info_request_events.last.created_at)%>

            <% end %>

  <% end %>

  <% if @blank_contacts.size > 0 %>

        <%=@blank_contacts.size%><%= chevron_right %> Find missing FOI email for these public authorities (try phoning!)

            <% for @blank_contact in @blank_contacts %>

                  <%= public_body_both_links(@blank_contact) %>

                  <%=simple_date(@blank_contact.updated_at)%>

            <% end %>

  <% end %>

  <% if @old_unclassified.size > 0 %>

        <%=@old_unclassified.size%><%= chevron_right %> Classify responses that are still unclassified <%=InfoRequest::OLD_AGE_IN_DAYS.inspect %> after response

            <% for @request in @old_unclassified %>

                    <%= request_both_links(@request) %>

                    <%=simple_date(@request.get_last_response_event.created_at)%>

            <% end %>

  <% end %>

<% if @holding_pen_messages.size == 0 && @old_unclassified.size == 0 && @requires_admin_requests.size == 0 && @blank_contacts.size == 0 && @attention_requests.size == 0 %>

      No pending administration required.

<% end %>

<% @title = "Summary" %>

<%=@title%>

<%=@public_body_count%> public authorities

        <%=@info_request_count%> requests, <%=@outgoing_message_count%> outgoing messages,
        <%=@incoming_message_count%> incoming messages

<%=@user_count%> users, <%=@track_thing_count%> tracked things

<%=@comment_count%> annotations

Things to do

  <% if @holding_pen_messages.size > 0 %>

        <%=@holding_pen_messages.size%><%= chevron_right %> Put misdelivered responses with the right request

            <% for message in @holding_pen_messages %>

                  <% if message.get_body_for_quoting.strip.size == 0 %>
                      <%= link_to "(no body)", admin_request_show_raw_email_path(message.raw_email_id) %>
                  <% else %>
                      <%= link_to excerpt(message.get_body_for_quoting, "", 60), admin_request_show_raw_email_path(message.raw_email_id) %>
                  <% end %>

                  <%=simple_date(message.sent_at)%>

            <% end %>

  <% end %>

  <% if @error_message_requests.size > 0 %>

        <%=@error_message_requests.size%> <%= chevron_right %>Fix these delivery and other errors

            <% for @request in @error_message_requests %>

                  <%= request_both_links(@request) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @attention_requests.size > 0 %>

        <%=@attention_requests.size%><%= chevron_right %> Review requests marked by users as requiring your attention

            <% for @request in @attention_requests %>

                  <%= request_both_links(@request) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @requires_admin_requests.size > 0 %>

        <%=@requires_admin_requests.size%><%= chevron_right %> These require administrator attention

            <% for @request in @requires_admin_requests %>

                  <%= request_both_links(@request) %>

                  <%=simple_date(@request.get_last_event.created_at)%>

            <% end %>

  <% end %>

  <% if @blank_contacts.size > 0 %>

        <%=@blank_contacts.size%><%= chevron_right %> Find missing FOI email for these public authorities (try phoning!)

            <% for @blank_contact in @blank_contacts %>

                  <%= public_body_both_links(@blank_contact) %>

                  <%=simple_date(@blank_contact.updated_at)%>

            <% end %>

  <% end %>

  <% if @old_unclassified.size > 0 %>

        <%=@old_unclassified.size%><%= chevron_right %> Classify responses that are still unclassified <%=InfoRequest::OLD_AGE_IN_DAYS.inspect %> after response

            <% for @request in @old_unclassified %>

                    <%= request_both_links(@request) %>

                    <%=simple_date(@request.get_last_response_event.created_at)%>

            <% end %>

  <% end %>

<% if @holding_pen_messages.size == 0 && @old_unclassified.size == 0 && @requires_admin_requests.size == 0 && @blank_contacts.size == 0 && @attention_requests.size == 0 %>

      No pending administration required.

<% end %>


Show connected ways in the data browser. Closes #1882.

  <%= render :partial => "common_details", :object => way_details %>

    Nodes:

        <% way_details.way_nodes.each do |wn| %>

            <%= link_to h(printable_name(wn.node)), :action => "node", :id => wn.node_id.to_s %>
	    <% if wn.node.ways.size > 1 then %>
	      (also part of <%= wn.node.ways.reject { |w| w.id == way_details.id }.map { |w| link_to(h(printable_name(w)), :action => "way", :id => w.id.to_s) }.join(", ") %>)
            <% end %>

        <% end %>

  <% unless way_details.containing_relation_members.empty? %>

      Part of:

          <%= render :partial => "containing_relation", :collection => way_details.containing_relation_members %>

  <% end %>

  <%= render :partial => "common_details", :object => way_details %>

    Nodes:

        <% way_details.way_nodes.each do |wn| %>

<%= link_to h(printable_name(wn.node)), :action => "node", :id => wn.node_id.to_s %>

        <% end %>

  <% unless way_details.containing_relation_members.empty? %>

      Part of:

          <%= render :partial => "containing_relation", :collection => way_details.containing_relation_members %>

  <% end %>


Added Google Analytics

Added Google Analytics

  <META http-equiv=Content-Type content="text/html; charset=UTF-8"/>
  <%= auto_discovery_link_tag(:rss , :controller => 'observer', :action  =>  'rss') %>
  <title>Mushroom Observer: <%= if @title.nil? then controller.action_name else @title end %></title>
  <%= css = nil
	if CSS.member?(controller.action_name)
		css = controller.action_name
	else
		unless session['user'].nil?
        	css = session['user'].theme
		end
	end
	unless CSS.member?(css)
		css = CSS[rand(CSS.length)]
	end
	stylesheet_link_tag 'general', css %>
	<link REL="SHORTCUT ICON" HREF=<%= sprintf('"%s/images/favicon.ico"', DOMAIN) %> />

		<%= @page_title || "Mushroom Observer" %>

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

								<%= link_to('How To Use',
								            :controller => 'observer',
								            :action => 'how_to_use') %>

            					<%= link_to('Send a Comment', :controller => 'observer',
            								:action => 'ask_webmaster_question') %>

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

								<%= link_to('Latest Changes',
								            :controller => 'observer',
								            :action => 'list_rss_logs') %>

								<%= link_to('Index A->Z', :controller => 'observer',
								                          :action => 'name_index') %>

								Observations:

								  <%= link_to('Create Observation',
								                        :controller => 'observer',
								                        :action => 'create_observation')
								                 %>

								  <%= link_to('Sort by Date',
								                        :controller => 'observer',
								                        :action => 'list_observations') %>

								  <%= link_to('Sort by Name',
								                        :controller => 'observer',
								                        :action => 'observations_by_name')
								                 %>

								Species Lists:

								  <%= link_to('Create List',
								                        :controller => 'observer',
								                        :action => 'create_species_list')
								                 %>

								  <%= link_to('Sort by Date',
								                        :controller => 'observer',
								                        :action => 'list_species_lists')
								                 %>

								  <%= link_to('Sort by Title',
								                        :controller => 'observer',
								                        :action => 'species_lists_by_title')
								                        %>

								<%= link_to('Newest Images', :controller => 'observer',
								            :action => 'list_images') %>

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

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

                                <%= link_to('Site Stats', :controller => 'observer',
                                            :action => 'show_site_stats') %>

								<% if session['user'].nil? %>
								Account:

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

								  <%= link_to('Create Account',
								                        :controller => 'account',
														:action => 'signup') %>
								<% else %>
								Current user:

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

								  <%= link_to('Comments for You',
								                        :controller => 'observer',
								                        :action => 'show_comments_for_user',
								                        :id => session['user']) %>

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

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

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

								  Join Mailing List

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

										Admin:

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

										  <%= link_to('Email Features',
										                        :controller => 'observer',
										                        :action => 'email_features') %>

									<% end %>
								<% end %>

									<%= link_to(sprintf('Colors from %s', css),
												:controller => 'observer', :action => 'color_themes') %>

									Powered by:

									Ruby on Rails

									Preferred browser:

									FireFox

            		<% form_tag(:action => 'pattern_search',
            		                   :controller => 'observer', :id => @comment) do %>
                      Find: <%= text_field("search", "pattern", :size => 10)%>
                      <%= submit_tag 'Observations' %>
                      <%= submit_tag 'Images' %>
                      <%= submit_tag 'Locations' %>
                    <% end -%>
                    <% if flash[:notice] %>
					  <%= flash[:notice] %>

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


small change to make the footer format better in ubuntu firefox 2.0.0.11

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

  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <%= favicon %>
  <title><%=h title_from_context %></title>
  <link rel="stylesheet" href="/bundles/<%=CSS_VERSION%>/base.css" type="text/css" media="screen" charset="utf-8" />
  <%= stylesheet_link_tag stylesheet if stylesheet %>

  <% if need_extra_javascript? %><% end %>

<body class="<%=body_class||=''%>">

 <%= render 'layouts/menu' %>

<% if banner -%>

  <%= render :partial => banner %>

<% end -%>

    <%= display_messages %>

  <%= yield %>

    Get involved building crabgrass!

  <% if SVN_REVISION -%>
    crabgrass r<%= SVN_REVISION %>
  <% end -%>


last commit before migrating to authlogic

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

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>Anisette</title>
<meta name="generator" content="gnagna" />

<link rel="stylesheet" href="/stylesheets/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/stylesheets/style.css" type="text/css" media="screen" />

<meta name="generator" content="Anisette" />

Your HOUSE

Home

New Project

			<% if (logged_in?) %>

<a href="/users/edit/<%= @user.id %>" >Settings

Logout

      <% else %>

Login

Register

			<% end %>

<%= yield %>

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

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>Anisette</title>
<meta name="generator" content="gnagna" />

<link rel="stylesheet" href="/stylesheets/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="/stylesheets/style.css" type="text/css" media="screen" />

<meta name="generator" content="Anisette" />

Your HOUSE

Home

New Project

Settings

<%= yield %>


Fix typo

Fix typo

<%= _('Profile settings for %s') % profile.name %>

<%= error_messages_for :profile %>

<% labelled_form_for :profile_data, @profile, :html => { :id => 'profile-data', :multipart => true } do |f| %>

  <% if user.has_permission?('manage_environment_templates', profile.environment) %>

      <%= labelled_check_box(_('This profile is a template'), 'profile_data[is_template]', true, @profile.is_template) %>

  <% end %>

  <%= render :partial => partial_for_class(@profile.class), :locals => { :f => f } %>

<%= _('Change picture') %>

    <%= unchangeable_privacy_field @profile %>

    <% f.fields_for :image_builder, @profile.image do |i| %>
      <%= file_field_or_thumbnail(_('Image:'), @profile.image, i) %><%= _("Max size: %s (.jpg, .gif, .png)")% Image.max_size.to_humanreadable %>
    <% end %>

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

  <% if profile.person? %>

      <%= labelled_radio_button _('Public — show my contents to all internet users'), 'profile_data[public_profile]', true, @profile.public_profile? %>

      <%= labelled_radio_button _('Private — show my contents only to friends'), 'profile_data[public_profile]', false, !@profile.public_profile? %>

  <% else %>

      <%= labelled_radio_button _('Public — show content of this group to all internet users'), 'profile_data[public_profile]', true, @profile.public_profile? %>

      <%= labelled_radio_button _('Private — show content of this group only to members'), 'profile_data[public_profile]', false, !@profile.public_profile? %>

  <% end %>

  <% if environment.enabled?('allow_change_of_redirection_after_login') %>

<%= _('Page to redirect after login') %>

    <%=  select 'profile_data', 'redirection_after_login', Environment.login_redirection_options.map{|key,value|[value,key]}, { :selected => @profile.preferred_login_redirection} %>
  <% end %>

<%= _('Translations') %>

  <%= labelled_check_box(
    _('Automaticaly redirect the visitor to the article translated to his/her language'),
    'profile_data[redirect_l10n]', true, @profile.redirect_l10n
  )%>

  <%=
    @plugins.dispatch(:profile_editor_extras).map do |content|
      if content.respond_to?(:call) then instance_eval(&content).html_safe else content.html_safe end
    end.join("\n")
  %>

  <%= select_categories(:profile_data, _('Select the categories of your interest'), 2) %>

  <% button_bar do %>
    <%= submit_button('save', _('Save'), :cancel => {:action => 'index'}) %>
    <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
  <% end %>

  <% if user && user.has_permission?('destroy_profile', profile) %>
    <% button_bar(:id => 'delete-profile') do %>
      <%= button(:remove, _('Delete profile'), {:action => :destroy_profile}) %>
    <% end %>
  <% end %>

<% end %>

<%# = generate_form :info, @info, {...} %>

<%= _('Profile settings for %s') % profile.name %>

<%= error_messages_for :profile %>

<% labelled_form_for :profile_data, @profile, :html => { :id => 'profile-data', :multipart => true } do |f| %>

  <% if user.has_permission?('manage_environment_templates', profile.environment) %>

      <%= labelled_check_box(_('This profile is a template'), 'profile_data[is_template]', true, @profile.is_template) %>

  <% end %>

  <%= render :partial => partial_for_class(@profile.class), :locals => { :f => f } %>

<%= _('Change picture') %>

    <%= unchangeable_privacy_field @profile %>

    <% f.fields_for :image_builder, @profile.image do |i| %>
      <%= file_field_or_thumbnail(_('Image:'), @profile.image, i) %><%= _("Max size: %s (.jpg, .gif, .png)")% Image.max_size.to_humanreadable %>
    <% end %>

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

  <% if profile.person? %>

      <%= labelled_radio_button _('Public — show my contents to all internet users'), 'profile_data[public_profile]', true, @profile.public_profile? %>

      <%= labelled_radio_button _('Private — show my contents only to friends'), 'profile_data[public_profile]', false, !@profile.public_profile? %>

  <% else %>

      <%= labelled_radio_button _('Public — show content of this group to all internet users'), 'profile_data[public_profile]', true, @profile.public_profile? %>

      <%= labelled_radio_button _('Private — show content of this group only to members'), 'profile_data[public_profile]', false, !@profile.public_profile? %>

  <% end %>

  <% if environment.enabled?('allow_change_of_redirection_after_login') %>

<%= _('Page to redirect after login') %>

    <%=  select 'profile_data', 'redirection_after_login', Environment.login_redirection_options.map{|key,value|[value,key]}, { :selected => @profile.preferred_login_redirection} %>
  <% end %>

<%= _('Translations') %>

  <%= labelled_check_box(
    _('Automaticaly redirect the visitor to the article translated to his/her language'),
    'profile_data[redirect_l10n]', true, @profile.redirect_l10n
  )%>

  <%=
    @plugins.dispatch(:profile_editor_extras).map do |content|
      if content.respond_to?(:call) then instance_eval(&content).html_safe else content.html.safe end
    end.join("\n")
  %>

  <%= select_categories(:profile_data, _('Select the categories of your interest'), 2) %>

  <% button_bar do %>
    <%= submit_button('save', _('Save'), :cancel => {:action => 'index'}) %>
    <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
  <% end %>

  <% if user && user.has_permission?('destroy_profile', profile) %>
    <% button_bar(:id => 'delete-profile') do %>
      <%= button(:remove, _('Delete profile'), {:action => :destroy_profile}) %>
    <% end %>
  <% end %>

<% end %>

<%# = generate_form :info, @info, {...} %>


ActionItem1165: better signup screen

ActionItem1165: better signup screen

<%= error_messages_for :user, :person %>

<% if !@wizard %>
  <% if ! defined? hidden_atention || ! hidden_atention %>

  <%= _('Dear user, welcome to the %s network. To start your participation in this space, fill in the fields below. After this operation, your login and password will be registered, allowing you to create %s and %s in this environment.') % [environment.name, __('communities'), __('enterprises')] %>

  <% end %>
<% end %>

<% labelled_form_for :user, @user,
   :html => { :help=>_('Fill all this fields to join in this environment.
 If you forgot your password, do not create a new account, click on the "I forgot my password!" link. ;-)'), :id => 'profile-data'
            } do |f| -%>
<%= icaptcha_field() %>

<%= hidden_field_tag :invitation_code, @invitation_code %>

<%= hidden_field_tag :wizard, @wizard %>

<%= required_fields_message %>

<%= required f.text_field(:email,
    :help => help=_('This e-mail address will be used to contact you.')) %>

<%= help %>

<%= required f.text_field(:login,
      :help => help=_('Insert your login'),
      :onchange => 'this.value = convToValidLogin( this.value )') %>

<%= help %>

<%= observe_field 'user_login', :url => {:action => 'check_url'}, :with => 'identifier', :update => 'url-check' %>

<%= required f.password_field(:password,
    :help => help=_('Choose a password that you can remember easily. It must have at least 4 characters.')) %>

<%= help %>

<%= required f.password_field(:password_confirmation,
    :help => help=_('To confirm, repeat your password.')) %>

<%= help %>

<% labelled_fields_for :profile_data, @person do |f| %>
  <%= render :partial => 'profile_editor/person_form', :locals => {:f => f} %>
<% end %>

<% if @terms_of_use %>

    <%= _("By clicking on 'I accept the terms of use' below you are agreeing to the %s") %
    link_to_function(_('Terms of use'), nil) do |page|
      page['terms-of-use'].show
    end %>

      <%= @terms_of_use %>
      <%= link_to_function(_('Hide'), nil) do |page|
        page['terms-of-use'].hide
      end %>

<%= labelled_check_box(_('I accept the terms of use'), 'user[terms_accepted]') %>

<% end %>

<% if params[:enterprise_code] %>
  <%= hidden_field_tag :enterprise_code, params[:enterprise_code] %>
  <%= hidden_field_tag :answer, params[:answer] %>
  <%= hidden_field_tag :terms_accepted, params[:terms_accepted] %>
  <%= hidden_field_tag :new_user, true %>
<% end %>

<% button_bar do %>
  <% if @wizard %>
    <%= submit_button('save', _('Sign up'), :class => 'icon-menu-login') %>
  <% else %>
    <%= submit_button('save', _('Sign up'), :cancel => {:action => 'index'}, :class => 'icon-menu-login') %>
  <% end %>
<% end %>
<% end -%>


public form js requires madb module

public form js requires madb module

<% if params['embedded']=='t' %>
<%=# stylesheet_link_tag 'yui-container'
%>
<%=# javascript_include_tag "yui-yahoo"
%>
<%=# javascript_include_tag "yui-event"
%>
<%=# javascript_include_tag "yui-dom"
%>
<%=# javascript_include_tag "yui-container"
%>

<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?3.0.0/build/cssfonts/fonts-min.css&3.0.0/build/cssreset/reset-min.css&3.0.0/build/cssgrids/grids-min.css&3.0.0/build/cssbase/base-min.css">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/container/assets/skins/sam/container.css">

<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.0r4/build/container/assets/skins/sam/container.css">

<%= javascript_include_tag :defaults  %>
<%= javascript_include_tag "fat" %>
<%= javascript_include_tag "scriptaculous" %>
<%= javascript_include_tag "madb" %>
<%= javascript_include_tag "gau" %>
<% else %>

<% end %>

    <%= t("madb_insertion_was_successful") %>


con add users

con add users

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

		<%if current_user.superuser==true && session[:current_tab]=="Manage"%>
			<%= link_to "Spaces", :controller=>'spaces', :action=>'index', :container_id => @space.id %> |
			<%= link_to "Roles", :controller=>'roles', :action=>'index', :container_id => @space.id %> |
			<%= link_to "Users", manage_users_path(:container_id => @space.id, :container_type => :spaces) %> |
			<%= link_to "Resources", :controller=>'machines', :action=>'manage_resources', :container_id => @space.id %>
		<%elsif current_user.superuser==true && session[:current_tab]=="Home"%>
			<%= link_to "Edit Space", edit_space_path(@space) %> |
			<%= link_to "Delete Space", space_path(@space), :confirm => 'This will delete all the Space. Are you sure?', :method => :delete %>
		<%elsif session[:current_tab]=="Events"%>
			<%= link_to "New Event", :controller=>'events', :action=>'new', :container_id => @space.id %> |
			<%= link_to "Show Calendar", :controller=>'events', :action=>'show_calendar', :container_id => @space.id %>
		<%elsif session[:current_tab]=="Groups"%>
			<%if @space.manage_groups_by?(current_user)%>
				<%= link_to 'Create Group', create_group_path(:space,@container.id)%>
			<%end%>
		<%elsif session[:current_tab]=="MyProfile"%>
			<%= link_to 'Edit Profile', edit_space_user_profile_path(@space.id, current_user.id)%> |
			<%= link_to 'Edit Account' , edit_space_user_path(@space.id, current_user.id)%>
		<%elsif session[:current_tab]=="People"%>
			<%= link_to "Add Users", manage_users_path(:container_id => @space.id, :container_type => :spaces) %>
		<%end%>

		<%if current_user.superuser==true && session[:current_tab]=="Manage"%>
			<%= link_to "Spaces", :controller=>'spaces', :action=>'index', :container_id => @space.id %> |
			<%= link_to "Roles", :controller=>'roles', :action=>'index', :container_id => @space.id %> |
			<%= link_to "Users", manage_users_path(:container_id => @space.id, :container_type => :spaces) %> |
			<%= link_to "Resources", :controller=>'machines', :action=>'manage_resources', :container_id => @space.id %>
		<%elsif current_user.superuser==true && session[:current_tab]=="Home"%>
			<%= link_to "Edit Space", edit_space_path(@space) %> |
			<%= link_to "Delete Space", space_path(@space), :confirm => 'This will delete all the Space. Are you sure?', :method => :delete %>
		<%elsif session[:current_tab]=="Events"%>
			<%= link_to "New Event", :controller=>'events', :action=>'new', :container_id => @space.id %> |
			<%= link_to "Show Calendar", :controller=>'events', :action=>'show_calendar', :container_id => @space.id %>
		<%elsif session[:current_tab]=="Groups"%>
			<%if @space.manage_groups_by?(current_user)%>
				<%= link_to 'Create Group', create_group_path(:space,@container.id)%>
			<%end%>
		<%elsif session[:current_tab]=="MyProfile"%>
			<%= link_to 'Edit Profile', edit_space_user_profile_path(@space.id, current_user.id)%> |
			<%= link_to 'Edit Account' , edit_space_user_path(@space.id, current_user.id)%>
		<%elsif session[:current_tab]=="People"%>
			<%= link_to "Manage Users", manage_users_path(:container_id => @space.id, :container_type => :spaces) %>
		<%end%>


Removed Unused test link

Removed Unused test link

  <META http-equiv=Content-Type content="text/html; charset=UTF-8"/>
  <title>Mushroom Observer: <%= controller.action_name %></title>
  <%= css = nil
	if CSS.member?(controller.action_name)
		css = controller.action_name
	else
		unless @session['user'].nil?
        	css = @session['user'].theme
		end
	end
	unless CSS.member?(css)
		css = CSS[rand(CSS.length)]
	end
	stylesheet_link_tag 'general', css %>

		<%= @page_title || "Mushroom Observer" %>

								<%= link_to 'Introduction', :controller => 'observer',
								            :action => 'intro' %>

								<%= link_to 'New Observation', :controller => 'observer',
								            :action => 'new_observation' %>

								Observations:

								  <%= link_to 'Most Recent', :controller => 'observer',
								                        :action => 'list_observations' %>

								  <%= link_to 'By Name', :controller => 'observer',
								                        :action => 'observations_by_name' %>

								Images:

								  <%= link_to 'Most Recent', :controller => 'observer',
								                        :action => 'list_images' %>

								  <%= link_to 'By Title', :controller => 'observer',
								                        :action => 'images_by_title' %>

								<% if @session['user'].nil? %>
								Account:

								  <%= link_to 'Login', :controller => 'account',
								                        :action => 'login' %>

								  <%= link_to 'New Account', :controller => 'account',
														:action => 'signup' %>
								<% else %>
								Current user:

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

								  <%= link_to 'Preferences', :controller => 'account',
								                        :action => 'prefs' %>

								  <%= link_to 'Logout', :controller => 'account',
								                        :action => 'logout' %>
								<% end %>

									<%= link_to(sprintf('Colors from %s', css),
												:controller => 'observer', :action => 'color_themes') %>

<%= flash[:notice] %>

					<%= @content_for_layout %>

  <META http-equiv=Content-Type content="text/html; charset=UTF-8"/>
  <title>Mushroom Observer: <%= controller.action_name %></title>
  <%= css = nil
	if CSS.member?(controller.action_name)
		css = controller.action_name
	else
		unless @session['user'].nil?
        	css = @session['user'].theme
		end
	end
	unless CSS.member?(css)
		css = CSS[rand(CSS.length)]
	end
	stylesheet_link_tag 'general', css %>

		<%= @page_title || "Mushroom Observer" %>

								<%= link_to 'Introduction', :controller => 'observer',
								            :action => 'intro' %>

								<%= link_to 'New Observation', :controller => 'observer',
								            :action => 'new_observation' %>

								Observations:

								  <%= link_to 'Most Recent', :controller => 'observer',
								                        :action => 'list_observations' %>

								  <%= link_to 'By Name', :controller => 'observer',
								                        :action => 'observations_by_name' %>

								Images:

								  <%= link_to 'Most Recent', :controller => 'observer',
								                        :action => 'list_images' %>

								  <%= link_to 'By Title', :controller => 'observer',
								                        :action => 'images_by_title' %>

								<% if @session['user'].nil? %>
								Account:

								  <%= link_to 'Login', :controller => 'account',
								                        :action => 'login' %>

								  <%= link_to 'New Account', :controller => 'account',
														:action => 'signup' %>
								<% else %>
								Current user:

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

								  <%= link_to 'Preferences', :controller => 'account',
								                        :action => 'prefs' %>

								  <%= link_to 'Logout', :controller => 'account',
								                        :action => 'logout' %>
								<% end %>

								<%= link_to 'Unused', :controller => 'unused', :action => 'unused' %>

									<%= link_to(sprintf('Colors from %s', css),
												:controller => 'observer', :action => 'color_themes') %>

<%= flash[:notice] %>

					<%= @content_for_layout %>


Fix syntax error in template

Fix syntax error in template

(ActionItem1719)


Added transcribe links to table of contents

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

        <% for page in @work.pages %>
          <%= link_to(page.title,
                      { :action => 'display_page',
                        :page_id => page.id} ) %>
            <% if page.source_text.blank? %>
              <% if logged_in? && current_user.can_transcribe?(@work) %>
                (<%= link_to('Transcribe this page',
	                            { :controller => 'transcribe',
	                              :action => 'display_page',
	                              :page_id => page.id }) %>)
              <% else %>
                (No Transcription)
              <% end %>
          <% end %>

        <% end %>

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

        <% for page in @work.pages %>

          <%= link_to(page.title,
                      { :action => 'display_page',
                        :page_id => page.id} ) %>
          <% if page.current_version %>
            <% if page.current_version.page_version > 1 %>
              <% if logged_in? && current_user.can_transcribe?(@work) %>
                (<%= link_to('edit',
	                            { :controller => 'transcribe',
	                              :action => 'display_page',
	                              :page_id => page.id }) %>)
              <% end %>
            <% else %>
              <% if logged_in? && current_user.can_transcribe?(@work) %>
                (<%= link_to('transcribe',
	                            { :controller => 'transcribe',
	                              :action => 'display_page',
	                              :page_id => page.id }) %>)
              <% else %>
                (No Transcription)
              <% end %>
            <% end %>
          <% end %>

        <% end %>


removed incorrect italics

removed incorrect italics

Your playlist

  <% if logged_in? %>
    <% if current_playlist.media_files.size > 0 %>

        <% current_user.playlist.media_files.each do |f| %>
          <li id="media-file-<%= f.id %>" class="<%= cycle('odd', 'even') %>">
            <%= h(truncate(f.basename, 25)) %>

        <% end %>

<%= link_to 'Play!', :controller => 'playlists', :action => 'play', :id => current_user.playlist.id %>

    <% else %>

Your current playlist is empty. Drag files on this box to fill your
        playlist!

    <% end %>
  <% else %>

Please <%= link_to 'login', login_path %> to manage your playlists.

  <% end %>


And link to who request was to/by

And link to who request was to/by

  Title
  Authority
  User
  <% for column in InfoRequest.content_columns.map { |c| c.human_name } - [ "Url title", "Title" ] %>
    <%= column %>
  <% end %>

<% for info_request in info_requests %>
  <tr class="<%= cycle('odd', 'even') %>">
    <%= link_to h(info_request.title), (deep ? '../../request/show/' : 'show/') + info_request.id.to_s %>
    <%= link_to h(info_request.public_body.name), (deep ? '../../body/show/' : '../body/show/') + info_request.public_body.id.to_s %>
    <%= link_to h(info_request.user.name), (deep ? '../../user/show/' : '../user/show/') + info_request.user.id.to_s %>
  <% for column in InfoRequest.content_columns.map { |c| c.name } - [ "title", "url_title" ] %>
    <%=h info_request.send(column) %>
  <% end %>

<% end %>

  <% for column in InfoRequest.content_columns.map { |c| c.human_name } - [ "Url title" ] %>
    <%= column %>
  <% end %>

<% for info_request in info_requests %>
  <tr class="<%= cycle('odd', 'even') %>">
    <%= link_to h(info_request.title), (deep ? '../../request/show/' : 'show/') + info_request.id.to_s %>
  <% for column in InfoRequest.content_columns.map { |c| c.name } - [ "title", "url_title" ] %>
    <%=h info_request.send(column) %>
  <% end %>

<% end %>


added a bit of javascript to set the default settings in the sharing form for new items

<% set_parameters_for_sharing_form %>
<%# initialization: required to keep javascript independent of the access type codes, to allow the use the constants instead -%>
<%= render :partial=>"assets/sharing_constants" %>

<%# this hidden input will submit all permission data with the form -%>
<%= hidden_field_tag "sharing[permissions][contributor_types]", "" -%>
<%= hidden_field_tag "sharing[permissions][values]", "" -%>

    <%= help_icon("Here you can specify who can see#{', download' if @resource.is_downloadable?} and edit this #{@resource_type}.") -%>
    Sharing

        Here you can specify who can view the summary of<% if @resource.is_downloadable? %>, get access to the content of,<% end %> and edit the <%= @resource_type -%>.
        <%= link_to_function "More info " + expand_image, visual_effect(:toggle_blind, "more_sharing_info", :duration => 0.3) -%>

          You may:

Keep the <%= @resource_type -%> private, and only visible to yourself.

Share within the selected projects and with all other users that are a member of a <%= Seek::Config.project_name %> project.

          <% if try_block{@resource.can_publish?} %>

Share with the all visitors (including anonymous visitors with no login)

          <% end %>

Define more fine-grained sharing in the Advanced sharing: you can share within your Project/Institution only,
 with specific individuals, or set up custom favourite groups for people you regularly need to share with.

<label for="sharing_scope_<%= Policy::PRIVATE -%>">
            <input type="hidden" id='access_type_select_<%= Policy::PRIVATE -%>' name="sharing[access_type_<%= Policy::PRIVATE -%>]" value="<%= Policy::NO_ACCESS -%>">
        <input <%= 'checked="checked"' if @sharing_mode == Policy::PRIVATE %> id="sharing_scope_<%= Policy::PRIVATE -%>" name="sharing[sharing_scope]"
                                                                                value="<%= Policy::PRIVATE -%>" type="radio" />
            - Keep this <%= @resource_type -%> private (only visible to you)

Or share it with..

            <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_SYSMO_USERS -%> id="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>" name="sharing[sharing_scope]" value="<%= Policy::ALL_SYSMO_USERS -%>" />
            - Your project(s):

             <select name="sharing[your_proj_access_type]" id="sharing_your_proj_access_type">
                 <%= policy_selection_options([Policy::VISIBLE,Policy::ACCESSIBLE,Policy::EDITING,Policy::MANAGING], @resource, your_project_access_type(@policy, @resource)) -%>
             </select>
             and other registered users.
             <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::ALL_SYSMO_USERS,
               :sharing_scope => Policy::ALL_SYSMO_USERS, :access_type => @access_mode, :access_type_options=>[Policy::NO_ACCESS,Policy::VISIBLE,Policy::ACCESSIBLE,Policy::EDITING] } -%>

          <label for="sharing_scope_<%= Policy::EVERYONE -%>">
            <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::EVERYONE -%> id="sharing_scope_<%= Policy::EVERYONE -%>" name="sharing[sharing_scope]"
                   value="<%= Policy::EVERYONE -%>" <%= 'disabled="true"' if @resource.respond_to?(:can_publish?) && !@resource.can_publish? -%>/>
            - All visitors (including anonymous visitors with no login):

              <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::EVERYONE,
            :sharing_scope => @sharing_mode, :access_type => @access_mode } -%>

    <% if @resource.new_record? && @resource.errors.empty? -%>

    <% end -%>

    <%= link_to_function "Advanced permissions " + expand_image, :class => 'advanced_sharing_link', :style => "display:" + (@policy.permissions.empty? ? 'block;' : 'none;'), :id =>'advanced_sharing_expand_image' do |page|
        page.visual_effect :toggle_blind, "advanced sharing", :duration => 0.5
        page["advanced_sharing_expand_image"].toggle
        page["advanced_sharing_collapse_image"].toggle
        end
    -%>
    <%= link_to_function "Advanced permissions " + collapse_image, :class => 'advanced_sharing_link', :style => "display:" + (@policy.permissions.empty? ? 'none;' : 'block;'), :id =>'advanced_sharing_collapse_image'do |page|
        page.visual_effect :toggle_blind, "advanced sharing", :duration => 0.5
        page["advanced_sharing_expand_image"].toggle
        page["advanced_sharing_collapse_image"].toggle
        end
    -%>

    <div id="advanced sharing" class='sharing_box_form' style="display:<%= @policy.permissions.empty? ? 'none;' : 'block;'-%>">

Define more fine-grained sharing

              So far you have selected to share this <%= @resource_type -%> with:

              Loading...

              Build up the list of people and groups to share with.
              Select from the options below and click "Add" to apply
              your choices and add collaborators to your current selection:

                <%= image_tag icon_filename_for_key("spinner"), :id => "f_group_deleting_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
                <%= help_icon("Here you can choose your favourite groups to share this #{@resource_type} with.") -%>
                Favourite Groups

                  <% favourite_groups = FavouriteGroup.get_all_without_blacklists_and_whitelists(current_user.id) -%>
                  <% f_group_select_options = (favourite_groups.blank? ? "<option value=\"\">You don't have any favourite groups</option>" : options_for_select(favourite_groups)) -%>

                  <%= select_tag "favourite_group_select", f_group_select_options, :style => "width: 82%; vertical-align: middle; margin-right: 0.4em;", :disabled => (favourite_groups.blank?) -%>

                  <%= link_to "Add", "", :id => "add_f_group_link", :style => "font-weight: bold; vertical-align: middle;", :disabled => (favourite_groups.blank?),
                    :onclick => "javascript: if($('favourite_group_select').disabled) return(false); addContributor('FavouriteGroup', $('favourite_group_select').options[$('favourite_group_select').selectedIndex].text, parseInt($('favourite_group_select').options[$('favourite_group_select').selectedIndex].value), #{Policy::DETERMINED_BY_GROUP}); return(false);" -%>

                  <li id="edit_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;"><%= favourite_group_popup_link_action_edit(@resource.class.name) -%>

                  <li id="delete_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;">
                    <%= link_to "Delete selected favourite group", delete_favourite_group_path(0), :onclick => "deleteSelectedFavouriteGroup(); return(false);" -%>

<%= favourite_group_popup_link_action_new(@resource.class.name) -%>

                <%= help_icon("Here you can choose projects, institutions and workgroups to share this #{@resource_type} with.") -%>
                Projects and Institutions

                  <% right_arrow_image = icon_filename_for_key("arrow_right") -%>

                  Step 1
                  <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

                  Step 2
                  <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

                  Step 3

                    <input type="hidden" id="proj_select_step_index" value="1">

                      <%= image_tag icon_filename_for_key("spinner"), :id => "institutions_loading_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
                      Step 1: Select a project
                      <%= select("proj_project", "select",
                        Project.find(:all).collect {|p| [ p.name, p.id ] },
                        {:include_blank => 'All Projects @ Institution (from Step 2)'}, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                      Step 2: Select scope of the project
                      <%= select_tag("proj_institution_select", nil, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                      Step 3: Choose access rights, review and submit

                      <select name="proj_access_type_select" id="proj_access_type_select" onchange="javascript: replaceReviewWorkGroupURL();" style="width: 100%; vertical-align: middle; margin: 0.3em 0;">
                        <%= policy_selection_options [Policy::NO_ACCESS,Policy::VISIBLE,Policy::ACCESSIBLE,Policy::EDITING,Policy::MANAGING], @resource -%>
                      </select>

                        <%= link_to "< Previous step", "", :onclick => "javascript: projectInstitutionStepAction(-1); return(false);", :style => "font-weight: bold;" -%>

                        <%= link_to "Next step >", "", :onclick => "javascript: projectInstitutionStepAction(1); return(false);", :style => "font-weight: bold;" -%>

                            <%= link_to "Add immediately", "", :onclick => "javascript: addProjectInstitution(); return(false);", :style => "font-weight: bold; padding: 0;" -%>

<%= workgroup_member_review_popup_link(@resource.class.name) -%>

                <%= help_icon("Here you can specify individual people to share this #{@resource_type} with.") -%>
                Individual People

                    Please type names of people to share this <%= @resource_type -%> with into the box below - suggestions will be displayed as you type.
                    Select access rights from drop-down menu; these will be applied to all chosen people.
                    Clicking "Add" will add selected people to the list.

                          ^_^<input type="text" id="ip_hidden_input" tabindex="-1" >

                            <input type="text" size="1" tabindex="" id="ip_autocomplete_input" />

Type the name of a friend, friend list, or email address

                        <select name="individual_people_access_type_select" id="individual_people_access_type_select" style="width: 344px; vertical-align: middle; margin-top: 0.3em;">
                          <%= policy_selection_options nil, @resource -%>
                        </select>

                        <%= link_to "Add", "", :onclick => "javascript: addIndividualPeople(); return(false);" -%>

<% set_parameters_for_sharing_form %>
<%# initialization: required to keep javascript independent of the access type codes, to allow the use the constants instead -%>
<%= render :partial=>"assets/sharing_constants" %>

<%# this hidden input will submit all permission data with the form -%>
<%= hidden_field_tag "sharing[permissions][contributor_types]", "" -%>
<%= hidden_field_tag "sharing[permissions][values]", "" -%>

    <%= help_icon("Here you can specify who can see#{', download' if @resource.is_downloadable?} and edit this #{@resource_type}.") -%>
    Sharing

        Here you can specify who can view the summary of<% if @resource.is_downloadable? %>, get access to the content of,<% end %> and edit the <%= @resource_type -%>.
        <%= link_to_function "More info " + expand_image, visual_effect(:toggle_blind, "more_sharing_info", :duration => 0.3) -%>

          You may:

Keep the <%= @resource_type -%> private, and only visible to yourself.

Share within the selected projects and with all other users that are a member of a <%= Seek::Config.project_name %> project.

          <% if try_block{@resource.can_publish?} %>

Share with the all visitors (including anonymous visitors with no login)

          <% end %>

Define more fine-grained sharing in the Advanced sharing: you can share within your Project/Institution only,
 with specific individuals, or set up custom favourite groups for people you regularly need to share with.

<label for="sharing_scope_<%= Policy::PRIVATE -%>">
            <input type="hidden" id='access_type_select_<%= Policy::PRIVATE -%>' name="sharing[access_type_<%= Policy::PRIVATE -%>]" value="<%= Policy::NO_ACCESS -%>">
        <input <%= 'checked="checked"' if @sharing_mode == Policy::PRIVATE %> id="sharing_scope_<%= Policy::PRIVATE -%>" name="sharing[sharing_scope]"
                                                                                value="<%= Policy::PRIVATE -%>" type="radio" />
            - Keep this <%= @resource_type -%> private (only visible to you)

Or share it with..

            <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_SYSMO_USERS -%> id="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>" name="sharing[sharing_scope]" value="<%= Policy::ALL_SYSMO_USERS -%>" />
            - Selected projects:

             <select name="sharing[your_proj_access_type]" id="sharing_your_proj_access_type">
                 <%= policy_selection_options([Policy::VISIBLE,Policy::ACCESSIBLE,Policy::EDITING,Policy::MANAGING], @resource, your_project_access_type(@policy, @resource)) -%>
             </select>
             and all <%= Seek::Config.project_name %> users:
             <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::ALL_SYSMO_USERS,
               :sharing_scope => Policy::ALL_SYSMO_USERS, :access_type => @access_mode, :access_type_options=>[Policy::NO_ACCESS,Policy::VISIBLE,Policy::ACCESSIBLE,Policy::EDITING] } -%>

          <label for="sharing_scope_<%= Policy::EVERYONE -%>">
            <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::EVERYONE -%> id="sharing_scope_<%= Policy::EVERYONE -%>" name="sharing[sharing_scope]"
                   value="<%= Policy::EVERYONE -%>" <%= 'disabled="true"' if @resource.respond_to?(:can_publish?) && !@resource.can_publish? -%>/>
            - All visitors (including anonymous visitors with no login):

              <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::EVERYONE,
            :sharing_scope => @sharing_mode, :access_type => @access_mode } -%>

    <%= link_to_function "Advanced sharing " + expand_image, :class => 'advanced_sharing_link', :style => "display:" + (@policy.permissions.empty? ? 'block;' : 'none;'), :id =>'advanced_sharing_expand_image' do |page|
        page.visual_effect :toggle_blind, "advanced sharing", :duration => 0.5
        page["advanced_sharing_expand_image"].toggle
        page["advanced_sharing_collapse_image"].toggle
        end
    -%>
    <%= link_to_function "Advanced sharing " + collapse_image, :class => 'advanced_sharing_link', :style => "display:" + (@policy.permissions.empty? ? 'none;' : 'block;'), :id =>'advanced_sharing_collapse_image'do |page|
        page.visual_effect :toggle_blind, "advanced sharing", :duration => 0.5
        page["advanced_sharing_expand_image"].toggle
        page["advanced_sharing_collapse_image"].toggle
        end
    -%>

    <div id="advanced sharing" class='sharing_box_form' style="display:<%= @policy.permissions.empty? ? 'none;' : 'block;'-%>">

Define more fine-grained sharing

              So far you have selected to share this <%= @resource_type -%> with:

              Loading...

              Build up the list of people and groups to share with.
              Select from the options below and click "Add" to apply
              your choices and add collaborators to your current selection:

                <%= image_tag icon_filename_for_key("spinner"), :id => "f_group_deleting_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
                <%= help_icon("Here you can choose your favourite groups to share this #{@resource_type} with.") -%>
                Favourite Groups

                  <% favourite_groups = FavouriteGroup.get_all_without_blacklists_and_whitelists(current_user.id) -%>
                  <% f_group_select_options = (favourite_groups.blank? ? "<option value=\"\">You don't have any favourite groups</option>" : options_for_select(favourite_groups)) -%>

                  <%= select_tag "favourite_group_select", f_group_select_options, :style => "width: 82%; vertical-align: middle; margin-right: 0.4em;", :disabled => (favourite_groups.blank?) -%>

                  <%= link_to "Add", "", :id => "add_f_group_link", :style => "font-weight: bold; vertical-align: middle;", :disabled => (favourite_groups.blank?),
                    :onclick => "javascript: if($('favourite_group_select').disabled) return(false); addContributor('FavouriteGroup', $('favourite_group_select').options[$('favourite_group_select').selectedIndex].text, parseInt($('favourite_group_select').options[$('favourite_group_select').selectedIndex].value), #{Policy::DETERMINED_BY_GROUP}); return(false);" -%>

                  <li id="edit_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;"><%= favourite_group_popup_link_action_edit(@resource.class.name) -%>

                  <li id="delete_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;">
                    <%= link_to "Delete selected favourite group", delete_favourite_group_path(0), :onclick => "deleteSelectedFavouriteGroup(); return(false);" -%>

<%= favourite_group_popup_link_action_new(@resource.class.name) -%>

                <%= help_icon("Here you can choose projects, institutions and workgroups to share this #{@resource_type} with.") -%>
                Projects and Institutions

                  <% right_arrow_image = icon_filename_for_key("arrow_right") -%>

                  Step 1
                  <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

                  Step 2
                  <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

                  Step 3

                    <input type="hidden" id="proj_select_step_index" value="1">

                      <%= image_tag icon_filename_for_key("spinner"), :id => "institutions_loading_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
                      Step 1: Select a project
                      <%= select("proj_project", "select",
                        Project.find(:all).collect {|p| [ p.name, p.id ] },
                        {:include_blank => 'All Projects @ Institution (from Step 2)'}, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                      Step 2: Select scope of the project
                      <%= select_tag("proj_institution_select", nil, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                      Step 3: Choose access rights, review and submit

                      <select name="proj_access_type_select" id="proj_access_type_select" onchange="javascript: replaceReviewWorkGroupURL();" style="width: 100%; vertical-align: middle; margin: 0.3em 0;">
                        <%= policy_selection_options [Policy::NO_ACCESS,Policy::VISIBLE,Policy::ACCESSIBLE,Policy::EDITING,Policy::MANAGING], @resource -%>
                      </select>

                        <%= link_to "< Previous step", "", :onclick => "javascript: projectInstitutionStepAction(-1); return(false);", :style => "font-weight: bold;" -%>

                        <%= link_to "Next step >", "", :onclick => "javascript: projectInstitutionStepAction(1); return(false);", :style => "font-weight: bold;" -%>

                            <%= link_to "Add immediately", "", :onclick => "javascript: addProjectInstitution(); return(false);", :style => "font-weight: bold; padding: 0;" -%>

<%= workgroup_member_review_popup_link(@resource.class.name) -%>

                <%= help_icon("Here you can specify individual people to share this #{@resource_type} with.") -%>
                Individual People

                    Please type names of people to share this <%= @resource_type -%> with into the box below - suggestions will be displayed as you type.
                    Select access rights from drop-down menu; these will be applied to all chosen people.
                    Clicking "Add" will add selected people to the list.

                          ^_^<input type="text" id="ip_hidden_input" tabindex="-1" >

                            <input type="text" size="1" tabindex="" id="ip_autocomplete_input" />

Type the name of a friend, friend list, or email address

                        <select name="individual_people_access_type_select" id="individual_people_access_type_select" style="width: 344px; vertical-align: middle; margin-top: 0.3em;">
                          <%= policy_selection_options nil, @resource -%>
                        </select>

                        <%= link_to "Add", "", :onclick => "javascript: addIndividualPeople(); return(false);" -%>


ActionItem867: keeping the CMS for communities

<%= _("%s's profile: control panel") % profile.name %>

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

<% file_manager do %>

  <%= file_manager_button(_('Profile settings'), 'icons-app/edit-profile.png', :controller => 'profile_editor', :action => 'edit') %>

  <%= file_manager_button(_('Mail settings'), 'icons-app/mail.png', :controller => 'mailconf') if profile.person? && MailConf.enabled? %>

  <%= file_manager_button(_('Tasks'), 'icons-app/todo.png', :controller => 'tasks', :action => 'index') %>

  <%= file_manager_button(_('Edit sideboxes'), 'icons-app/design-editor.png', :controller => 'profile_design', :action => 'index') %>

  <%= file_manager_button(_('Edit Appearance'), 'icons-app/design-editor.png', :controller => 'themes', :action => 'index') %>

  <%= file_manager_button(_('Edit Header and Footer'), 'icons-app/header-and-footer.png', :controller => 'profile_editor', :action => 'header_footer') unless profile.enterprise? && environment.enabled?('disable_header_and_footer') && !user.is_admin? %>

  <%= file_manager_button(_('Manage Content'), 'icons-app/cms.png', :controller => 'cms') unless environment.enabled?('disable_cms') || profile.community? %>

  <%= file_manager_button(_('Change Password'), 'icons-app/change-password.png', :controller => 'account', :action => 'change_password') if profile.person? %>

  <%= file_manager_button(__('Manage friends'), 'icons-app/friends.png', :controller => 'friends', :action => 'index') if profile.person? %>

  <%= file_manager_button(_('Manage Members'), 'icons-app/members.png', :controller => 'profile_members') if profile.organization? && user.has_permission?(:manage_memberships, profile) %>

  <%= file_manager_button(_('Manage Products and Services'), 'icons-app/products.png', :controller => 'manage_products') if profile.enterprise? && !environment.enabled?('disable_products_for_enterprises') %>

  <%= file_manager_button(__('Enterprise Validation'), 'icons-app/validation.png', :controller => 'enterprise_validation') if profile.is_validation_entity? %>

  <%= file_manager_button(__('Favorite Enterprises'), 'icons-app/favorites.png', :controller => 'favorite_enterprises') if profile.person? %>

  <% if profile.enterprise? %>
    <% if profile.enabled? %>
      <%= file_manager_button(__('Disable Enterprise'), 'icons-app/disable.png', :action => 'disable') %>
    <% else %>
      <%= file_manager_button(__('Enable Enterprise'), 'icons-app/enable.png', :action => 'enable') %>
    <% end %>
  <% end %>

  <%= file_manager_button(_('Manage my groups'), 'icons-app/groups.png', :controller => 'memberships') if profile.person? %>

<% end %>

<%= _("%s's profile: control panel") % profile.name %>

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

<% file_manager do %>

  <%= file_manager_button(_('Profile settings'), 'icons-app/edit-profile.png', :controller => 'profile_editor', :action => 'edit') %>

  <%= file_manager_button(_('Mail settings'), 'icons-app/mail.png', :controller => 'mailconf') if profile.person? && MailConf.enabled? %>

  <%= file_manager_button(_('Tasks'), 'icons-app/todo.png', :controller => 'tasks', :action => 'index') %>

  <%= file_manager_button(_('Edit sideboxes'), 'icons-app/design-editor.png', :controller => 'profile_design', :action => 'index') %>

  <%= file_manager_button(_('Edit Appearance'), 'icons-app/design-editor.png', :controller => 'themes', :action => 'index') %>

  <%= file_manager_button(_('Edit Header and Footer'), 'icons-app/header-and-footer.png', :controller => 'profile_editor', :action => 'header_footer') unless profile.enterprise? && environment.enabled?('disable_header_and_footer') && !user.is_admin? %>

  <%= file_manager_button(_('Manage Content'), 'icons-app/cms.png', :controller => 'cms') unless environment.enabled?('disable_cms')%>

  <%= file_manager_button(_('Change Password'), 'icons-app/change-password.png', :controller => 'account', :action => 'change_password') if profile.person? %>

  <%= file_manager_button(__('Manage friends'), 'icons-app/friends.png', :controller => 'friends', :action => 'index') if profile.person? %>

  <%= file_manager_button(_('Manage Members'), 'icons-app/members.png', :controller => 'profile_members') if profile.organization? && user.has_permission?(:manage_memberships, profile) %>

  <%= file_manager_button(_('Manage Products and Services'), 'icons-app/products.png', :controller => 'manage_products') if profile.enterprise? && !environment.enabled?('disable_products_for_enterprises') %>

  <%= file_manager_button(__('Enterprise Validation'), 'icons-app/validation.png', :controller => 'enterprise_validation') if profile.is_validation_entity? %>

  <%= file_manager_button(__('Favorite Enterprises'), 'icons-app/favorites.png', :controller => 'favorite_enterprises') if profile.person? %>

  <% if profile.enterprise? %>
    <% if profile.enabled? %>
      <%= file_manager_button(__('Disable Enterprise'), 'icons-app/disable.png', :action => 'disable') %>
    <% else %>
      <%= file_manager_button(__('Enable Enterprise'), 'icons-app/enable.png', :action => 'enable') %>
    <% end %>
  <% end %>

  <%= file_manager_button(_('Manage my groups'), 'icons-app/groups.png', :controller => 'memberships') if profile.person? %>

<% end %>


added table layout to calendar and pass admin when rendering simple_calendar

<% %>

    <%= render :partial => 'shared/tabs' %>

          <%= image_tag 'top_left.png', :width => "14", :height => "14", :border => "0" %>

          <%= image_tag 'top_right.png', :width => "14", :height => "14", :border => "0" %>

              <% mode = controller.action_name == 'day_view' ? 'day' : 'month' %>
              <%= render :simple_calendar => session[:simple_calendar_name], :admin => session[:simple_calendar_admin],
                                                                             :layout => false,
                                                                             :mode   => @mode,
                                                                             :day    => @day,
                                                                             :month  => @month,
                                                                             :year   => @year %>

          <%= image_tag 'bottom_left.png', :width => "14", :height => "14", :border => "0" %>

          <%= image_tag 'bottom_right.png', :width => "14", :height => "14", :border => "0" %>

<% %>
  <%= render :partial => 'shared/tabs' %>

      <%= image_tag 'top_left.png', :width => "14", :height => "14", :border => "0", :alt => "..." %>

      <%= image_tag 'top_right.png', :width => "14", :height => "14", :border => "0", :alt => "..." %>

          <% mode = controller.action_name == 'day_view' ? 'day' : 'month' %>
          <%= render :simple_calendar => session[:simple_calendar_name], :layout => false,
                                                                         :mode   => mode,
                                                                         :day    => @day,
                                                                         :month  => @month,
                                                                         :year   => @year %>

      <%= image_tag 'bottom_left.png', :width => "14", :height => "14", :border => "0", :alt => "..." %>

      <%= image_tag 'bottom_right.png', :width => "14", :height => "14", :border => "0", :alt => "..." %>


Upgrade Highcharts dependency to 2.1.6.

Upgrade Highcharts dependency to 2.1.6.

<title>LOCat - <%= title %></title>
<link rel="icon" type="image/jpg" href="http://rubyworks.github.com/locat/assets/images/icon.jpg" />

<%= title %>

    <button onclick="change_tab('loc');">Counts</button>
    <button onclick="change_tab('pcnt');">Percentages</button>
    <button onclick="change_tab('ratio');">Ratios</button>
    <% if scm? %>
      <button onclick="change_tab('scm');">Timeline</button>
    <% end %>

LINE COUNTS

        <% counts.keys.each do |h| %>
          <%= h %>
        <% end %>
        Total

          <% counts.values.each do |v| %>
            <%= v %>
          <% end %>
          <%= total %>

      <input type="radio" name="loc" value="column"     onclick="rechart('loc', 'column');" />     Column
      <input type="radio" name="loc" value="bar"        onclick="rechart('loc', 'bar');" />        Bar
      <input type="radio" name="loc" value="scatter"    onclick="rechart('loc', 'scatter');" />    Scatter

      <input type="radio" name="loc" value="pie"        onclick="rechart('loc', 'pie');" />        Pie Chart

PERCENTAGES

        <% table_pcnt[0].each do |h| %>
          <%= h %>
        <% end %>

        <% table_pcnt[1..-1].each do |c| %>

            <% c.each_with_index do |v, j| %>
              <% if j == 0 %>
                <%= v %>
              <% else %>
                <%= v %>
              <% end %>
            <% end %>

        <% end %>

      <input type="radio" name="pcnt" value="column"     onclick="rechart('pcnt', 'column');" />     Column
      <input type="radio" name="pcnt" value="bar"        onclick="rechart('pcnt', 'bar');" />        Bar
      <input type="radio" name="pcnt" value="scatter"    onclick="rechart('pcnt', 'scatter');" />    Scatter

      <input type="radio" name="pcnt" value="pie"        onclick="rechart('pcnt', 'pie');" />        Pie Chart

RATIOS

        <% table_ratio[0].each do |h| %>
          <%= h %>
        <% end %>

        <% table_ratio[1..-1].each do |c| %>

            <% c.each_with_index do |v, j| %>
              <% if j == 0 %>
                <%= v %>
              <% else %>
                <%= v %>
              <% end %>
            <% end %>

        <% end %>

      <input type="radio" name="ratio" value="column"     onclick="rechart('ratio', 'column');" />     Column
      <input type="radio" name="ratio" value="bar"        onclick="rechart('ratio', 'bar');" />        Bar
      <input type="radio" name="ratio" value="scatter"    onclick="rechart('ratio', 'scatter');" />    Scatter

<% if scm? %>

TIMELINE

      <input type="radio" name="scm" value="column"     onclick="rechart('scm', 'column');" />     Column
      <input type="radio" name="scm" value="scatter"    onclick="rechart('scm', 'scatter');" />    Scatter
      <input type="radio" name="scm" value="line"       onclick="rechart('scm', 'line');" />       Line
      <input type="radio" name="scm" value="spline"     onclick="rechart('scm', 'spline');" />     Spline

<% end %>

    LOCat v0.1.0,
    Copyright © 2011 Thomas Sawyer, Rubyworks


Fix ambiguous class name.

Fix ambiguous class name.

<% unless @today.empty? %>

Today's Comments

    <% @today.each do |comment| %>

        <a href="<%== comment.url %>"><%== comment.title %>

          by
            <% if comment.author_url.empty? %>
              <%== comment.author %>
            <% else %>
              <a href="<%== comment.author_url %>" rel="nofollow">
                <%== comment.author %>

            <% end %>

            on <a href="<%== comment.post.url %>"><%== comment.post.title %>

    <% end %>

<% end %>

<% unless @ancient.empty? %>

Ancient History

    <% @ancient.each do |comment| %>

        <a href="<%== comment.url %>"><%== comment.title %>

          by
            <% if comment.author_url.empty? %>
              <%== comment.author %>
            <% else %>
              <a href="<%== comment.author_url %>" rel="nofollow">
                <%== comment.author %>

            <% end %>

            on <a href="<%== comment.post.url %>"><%== comment.post.title %>

    <% end %>

<% end %>

<% if @today.empty? && @ancient.empty? %>

Recent Comments

It's been pretty quiet around here.

<% end %>


Improve new request view layout and hide some of the tips

@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;
    }

/** REQUEST **/
#request_header {
    background: none;
}
    #request_header_body h3,
    #request_header_body .form_item_note {
        display: none;
    }
    #request_header_body #request_header_text {
        font-size: 1em;
    }

#request_search_ahead_results {
    font-size: 1em;
    margin-left: 110px;
    margin-top: 10px;
}

#request_header input,
#request_form textarea {
    width: 500px;
}

/** 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;
}

#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;
}


Trying to force an expiration date on documents. [#291].

# zena apache2 setup for <%= config[:balancer] %>
# automatically generated file

NameVirtualHost *
<% if config[:app_type] == :passenger  %>
LoadModule upload_progress_module <%= config[:app_root] %>/vendor/apache2_upload_progress/mod_upload_progress.so
<% elsif config[:app_type] == :mongrel %>
<Proxy *>
  Order allow,deny
  Allow from all
</Proxy>
<Proxy balancer://<%= config[:balancer] %>><% config[:ports].each do |port| %>
  BalancerMember http://127.0.0.1:<%= port %><% end %>
</Proxy>
<% end %>

<ifmodule mode_expires.c>
  ExpiresActive on
  ExpiresDefault A0
  ExpiresByType image/jpeg "access plus 1 year"
  ExpiresByType image/gif "access plus 1 year"
  ExpiresByType image/png "access plus 1 year"
  ExpiresByType text/css "access plus 1 year"
  ExpiresByType application/x-javascript "access plus 1 year"
</ifmodule>

# zena apache2 setup for <%= config[:balancer] %>
# automatically generated file

NameVirtualHost *
<% if config[:app_type] == :passenger  %>
LoadModule upload_progress_module <%= config[:app_root] %>/vendor/apache2_upload_progress/mod_upload_progress.so
<% elsif config[:app_type] == :mongrel %>
<Proxy *>
  Order allow,deny
  Allow from all
</Proxy>
<Proxy balancer://<%= config[:balancer] %>><% config[:ports].each do |port| %>
  BalancerMember http://127.0.0.1:<%= port %><% end %>
</Proxy>
<% end %>

<ifmodule mode_expires.c>
  <filesmatch "\.(jpg|gif|png|css|js)$">
    ExpiresActive on
    ExpiresDefault "access plus 1 year"
  </filesmatch>
</ifmodule>


yet another wording change

yet another wording change

<!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 => 'See more options', :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 %>

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

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