Added language to prevent mailing module error

<% if @campaign %>
<%= render :partial => '/campaigns/campaign_steps' %>
<% end -%>

<% cms_unstyled_form_for :mail_template, @mail_template, :html => { :id => 'mail_template_form', :class => 'admin_form', :onsubmit => 'TemplateEditor.triggerSave(); return true;' } do |f| -%>

      <%= "Name*:".t %>
      <%= "(Missing Name)" if @mail_template.errors.on(:name) %>

      <%= f.text_field :name, :size => 30, :class=>'text_field' %>

        Options >

        < Options

        <%= "Template Type:".t %>

        <%= f.radio_buttons :template_type, MailTemplate.template_type_select_options, :separator => "
" %>

        <%= "Template Language:".t %>

        <%= f.select :language, Configuration.languages   %>

        <%= "Template Category:".t %>

        <%= f.text_field :category, :size => 20 %>

        <%= "Published:".t %>

        <%= f.datetime_field :published_at, :size => 20, :blank => true %>

        <%= "Mail Design Template:".t %>

        <%= f.select :site_template_id, @design_templates, {}, :onchange => 'TemplateEditor.changeTemplate();' %>

        <input type='hidden' name='mail_template[generate_text_body]' value='0' id='mail_template_generate_text_body' />

      <% if @generate_handlers.length > 0 -%>

      <% @generate_handlers.each do |hndler| -%>
        <a href='javascript:void(0);' onclick='SCMS.remoteOverlay("<%= url_for hndler[:url] %>");'><%= hndler[:name] %>

      <% end -%>

      <% end -%>

      <%= "Test This Template:".t %>

      <input type='text' name='email' id='test_email' size='20' value='<%= vh "[Enter Email]".t %>' onfocus='if(this.value == "<%= jvh "[Enter Email]".t %>") this.value=""; '><input type='submit' value='Send' onclick='TemplateEditor.sendTestTemplate();  return false;' />

    <% if @campaign %>
      <input type='submit' value='<%= "Cancel".t %>' onclick="document.location='<%= url_for :controller => 'campaigns', :action => 'message', :path => @campaign.id %>'; return false;" />     <input type='submit' value='<%= "Next".t %>' />

    <% else -%>
      <input type='submit' value='<%= "Save".t %>' />
    <% end -%>

      Subject:* <%= f.text_field :subject, :size => 120 %>
      <%= "(Missing Subject)" if @mail_template.errors.on(:subject) %>

<% ajax_tabs ['HTML Body','Text Body','Attachments'], 'HTML Body' do |t| %>

  <% t.tab do %>
      <input type='checkbox'  id='mail_template_body_value_html' name='mail_template[body_type][]' value='html' <%= "checked='checked'" if @mail_template.body_type.include?('html') %> /> <%= "Enabled HTML Body".t %>

      <input type='hidden' id='mail_template_body_html' name='mail_template[body_html]' value='<%= vh @mail_template.body_html %>' />

  <% end -%>

  <% t.tab do %>
    <input type='hidden' name='mail_template[body_type][]' value='' />
    <input type='checkbox' id='mail_template_body_value_text'  name='mail_template[body_type][]' value='text' <%= "checked='checked'" if @mail_template.body_type.include?('text') %> /> <%= "Enable Text Body".t %>
      Generate Text from HTML Body

<%= "Use %%Variable_Name%% to insert variables into the text template".t  %>

    <textarea id='template_body_text'  name='mail_template[body_text]' style='height:300px; width:100%;' ><%= h @mail_template.body_text %></textarea>
  <% end -%>

  <% t.tab do %>

      <%= link_to '+Add Attachment'.t, { :controller => '/file', :action => 'popup' , :select => 'file', :callback => 'TemplateEditor.attachDocument', :thumb_size => 'thumb' }, :popup => ['file_manager', 'height=400,width=600,resizable=yes,scrollbars=yes' ] %>

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

  <% end -%>

  <% end -%>

<% end -%>

<% if @campaign %>
<%= render :partial => '/campaigns/campaign_steps' %>
<% end -%>

<% cms_unstyled_form_for :mail_template, @mail_template, :html => { :id => 'mail_template_form', :class => 'admin_form', :onsubmit => 'TemplateEditor.triggerSave(); return true;' } do |f| -%>

      <%= "Name*:".t %>
      <%= "(Missing Name)" if @mail_template.errors.on(:name) %>

      <%= f.text_field :name, :size => 30, :class=>'text_field' %>

        Options >

        < Options

        <%= "Template Type:".t %>

        <%= f.radio_buttons :template_type, MailTemplate.template_type_select_options, :separator => "
" %>

        <%= "Template Language:".t %>

        <%= f.select :language, Configuration.languages if Configuration.languages.length > 1  %>

        <%= "Template Category:".t %>

        <%= f.text_field :category, :size => 20 %>

        <%= "Published:".t %>

        <%= f.datetime_field :published_at, :size => 20, :blank => true %>

        <%= "Mail Design Template:".t %>

        <%= f.select :site_template_id, @design_templates, {}, :onchange => 'TemplateEditor.changeTemplate();' %>

        <input type='hidden' name='mail_template[generate_text_body]' value='0' id='mail_template_generate_text_body' />

      <% if @generate_handlers.length > 0 -%>

      <% @generate_handlers.each do |hndler| -%>
        <a href='javascript:void(0);' onclick='SCMS.remoteOverlay("<%= url_for hndler[:url] %>");'><%= hndler[:name] %>

      <% end -%>

      <% end -%>

      <%= "Test This Template:".t %>

      <input type='text' name='email' id='test_email' size='20' value='<%= vh "[Enter Email]".t %>' onfocus='if(this.value == "<%= jvh "[Enter Email]".t %>") this.value=""; '><input type='submit' value='Send' onclick='TemplateEditor.sendTestTemplate();  return false;' />

    <% if @campaign %>
      <input type='submit' value='<%= "Cancel".t %>' onclick="document.location='<%= url_for :controller => 'campaigns', :action => 'message', :path => @campaign.id %>'; return false;" />     <input type='submit' value='<%= "Next".t %>' />

    <% else -%>
      <input type='submit' value='<%= "Save".t %>' />
    <% end -%>

      Subject:* <%= f.text_field :subject, :size => 120 %>
      <%= "(Missing Subject)" if @mail_template.errors.on(:subject) %>

<% ajax_tabs ['HTML Body','Text Body','Attachments'], 'HTML Body' do |t| %>

  <% t.tab do %>
      <input type='checkbox'  id='mail_template_body_value_html' name='mail_template[body_type][]' value='html' <%= "checked='checked'" if @mail_template.body_type.include?('html') %> /> <%= "Enabled HTML Body".t %>

      <input type='hidden' id='mail_template_body_html' name='mail_template[body_html]' value='<%= vh @mail_template.body_html %>' />

  <% end -%>

  <% t.tab do %>
    <input type='hidden' name='mail_template[body_type][]' value='' />
    <input type='checkbox' id='mail_template_body_value_text'  name='mail_template[body_type][]' value='text' <%= "checked='checked'" if @mail_template.body_type.include?('text') %> /> <%= "Enable Text Body".t %>
      Generate Text from HTML Body

<%= "Use %%Variable_Name%% to insert variables into the text template".t  %>

    <textarea id='template_body_text'  name='mail_template[body_text]' style='height:300px; width:100%;' ><%= h @mail_template.body_text %></textarea>
  <% end -%>

  <% t.tab do %>

      <%= link_to '+Add Attachment'.t, { :controller => '/file', :action => 'popup' , :select => 'file', :callback => 'TemplateEditor.attachDocument', :thumb_size => 'thumb' }, :popup => ['file_manager', 'height=400,width=600,resizable=yes,scrollbars=yes' ] %>

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

  <% end -%>

  <% end -%>

<% end -%>


ActionItem154: minor typing fix

ActionItem154: minor typing fix

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

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>
      <%= @environment.name() %>
      <%- if @category -%>
        → <%= @category.full_name -%>
      <%- end -%>
    </title>
    <meta name="description" content="FIXME: Descriptions of Noosfero" />
    <meta name="keywords" content="Noosfero, Community, Open Source" />
    <%#
     stylesheet_import is better then stylesheet_link_tag because the stylesheet
     must be loaded before the page show.
    %>
    <%= stylesheet_import %w( common help menu button search blocks forms login-box ) %>
    <%= import_blocks_stylesheets %>
    <%=
      # Load the controller's css file if it exists:
      css = "controller_"+ @controller.controller_name() +".css"
      stylesheet_link_tag( css ) if File.exists?( "public/stylesheets/"+css )
    %>

    <%# FIXME %>
    <%= stylesheet_link_tag '/designs/templates/default/stylesheets/style.css' %>
    <%= stylesheet_link_tag '/designs/icons/default/style.css' %>

    <%= javascript_include_tag(:defaults) %>
    <%= javascript_include_tag 'menu' %>
    <%= javascript_include_tag 'auto-open-menu' %>
    <%= include_lightbox_header %>
    <%# cms stuff %>
    <% if params[:controller] == 'cms' %>
      <%= javascript_include_tag 'cms' %>
    <% end %>

  <body class='noosfero category<%= category_color %><%=
    # Identify the current controller and action for the CSS:
    " controller_"+ @controller.controller_name() +
    " action_"+ @controller.controller_name() +"_"+ @controller.action_name()
    %>' onload='noosfero_init();'
    help=<%= _('Pass the mouse over page elements to get help on them. Click the question mark icon on the top-right corner to deactivate this help window.').inspect %> >

    <% unless flash[:notice].nil? %>

        <%= flash[:notice] %>
        <%= javascript_tag(visual_effect(:fade, "notice", :duration => 15)) %>

    <% end %>

      <%= _('Go to content') %>

      <% if @category -%>
        <%= @category.full_name(" → ") %>
      <% end -%>
      <%= javascript_tag(visual_effect(:fade, "path_category", :duration => 10)) %>

BETA

        <%= _("This is %s's shortcuts bar. Using it you have access to the main features of the environment and you find the information of your interest more quickly.") % @environment.name %>

        <%= _("This bar helps you find information following two paths or dimensions. First dimension is composed of categories, which you'll find in the colored tabs in the top. Second dimension has content types, and you'll find them in the animated bar on your right.") % @environment.name %>

          <%= render :file => 'shared/categories_menu' %>

          <%= render :file => 'shared/user_menu' %>
          <%=
          lightbox_link_to ''+ _('Search'),
                           { :controller => 'search', :action => 'popup' }, :id => 'open_search'
          %>

        <a href="#" id="btShowHelp" class="icon-help32on"
           title="<%= _('Turn help on/off') %>"
           onclick="mouseHelpOnOff()"><%= _('Help') %>

          <% if @controller.send(:boxes_editor?) %>
            <%= yield %>
            <%= display_boxes_editor(@controller.boxes_holder) %>
          <% else %>
            <% if uses_design_blocks?  %>
              <%= display_boxes(@controller.boxes_holder, yield) %>
            <% else %>
              <%= yield %>
            <% end %>
          <% end %>

        <%= render :file => 'shared/language_chooser' %>

      <%= footer %>

    <%= javascript_include_tag 'show-mouse-help' %>
    <%= javascript_include_tag 'noosfero-show-help' %>
    <%= javascript_tag('noosferoHelpInit(%s, %s)' % [ _('Do you want to activate the automatic help mode?').inspect, _('If needed, you can activate the automatic help mode by clicking the question mark symbol in the top-right corner').inspect ])  %>

<%=
      _('Your web browser is obsolete!') +'

'+
      _('This website will not look as good as it could.
         Don\'t you want to use Firefox? That is a great web browser, free,
         and made by people of all the world parts.')
      %>

      <%= _('Get Firefox Now!') %>

    <%= javascript_include_tag 'better-browser-promotion' %>


git-svn-id: https://svn.csc.ncsu.edu:8443/svn/research-expertiza/trunk@165 392d7b7b-3f31-0410-9dc3-c95a9635ea79

<% 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} %>
  <%= link_to "Edit",{:controller => 'review', :action => 'edit_review', :id => @review.id} %>

  <% else %>

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

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

 <% if @can_view_review_of_review == 1 %>

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

Review of Review <%=ror_no%>  <%= link_to "View",{:controller => 'review_of_review', :action => 'view_review_of_review', :id => @ror.id} %>

  <% else %>

Review of Review <%=ror_no%>  <%= link_to "Begin",{:controller => 'review_of_review', :action => 'new_review_of_review', :id => ror_map.id} %>

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

		<% if @can_view_review_of_review == 1
			current_ror = ReviewOfReviewMapping.count_by_sql("select count(*) from review_of_review_mappings, reviews where reviewer_id ="+@reviewer_id.to_s)
			max_ror = @assignment.num_review_of_reviews
			if current_ror < max_ror%>
			<%= link_to "New review of review",{:controller => 'review_of_review', :action => 'new_review_of_review', :user => @reviewer_id, :assignment => @assignment_id} %>
		    <% 	end
			else %>
			New review of review
		<% end %>

Existing reviews of reviews

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

Review of Review <%=ror_no%>  <%= link_to "View",{:controller => 'review_of_review', :action => 'view_review_of_review', :id => @ror.id} %>

  <% else %>

Review of Review <%=ror_no%>  <%= link_to "Begin",{:controller => 'review_of_review', :action => 'new_review_of_review', :id => ror_map.id} %>

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

 <% end %>


Moved fees to right side of screen

Moved fees to right side of screen

git-svn-id: 96bd6241e080dd4199045f7177cf3384e2eaed71@870 2d86388d-c40f-0410-ad6a-a69da6a65d20

<%= event.friendly_class_name %>: <%= event.name %>

					Name:
					<%= text_field 'event', 'name', :style => 'width: 100%;' %>

				<%- if event.is_a?(SingleDayEvent) and event.parent -%>

					Parent:

						<%= link_to event.parent.name,
							{:action => 'show', :id =>  event.parent.to_param},
							:style => 'color: red' %> (<%= event.parent.friendly_class_name %>)

				<%- end -%>

					Date:

						<%- if @event.is_a?(SingleDayEvent) -%>
						<%= text_field 'event', 'date' %>
						<%- else -%>
							<%= event.start_date.strftime('%A, %B %d, %Y') -%>
							<%- if event.start_date != event.end_date -%>
								  to

								<%= event.end_date.strftime('%A, %B %d, %Y') -%>
							<%- end -%>
						<%- end -%>

					<%= check_box 'event', 'cancelled' %> Cancelled

					Discipline:
					<%= select 'event', 'discipline', Discipline.find_all_names %>

					City:
					<%= text_field 'event', 'city' %>

					State:
					<%= text_field 'event', 'state' %>

								Promoter

								Name:
								<%= select("event",
											   "promoter_id",
											   Promoter.find(:all).sort_by{|p| p.name_or_contact_info}.collect {|p| [ p.name_or_contact_info, p.id ] },
											   { :include_blank => true}) %>
								    <%= observe_field(
											'event_promoter_id',
											:url => {:action => 'promoter_changed', :id => @event.id}, :with => 'promoter_id',
											:before => update_page {|page|
																		page.visual_effect(:fade, 'promoter_email', :duration => 0.5)
																		page.visual_effect(:fade, 'promoter_phone', :duration => 0.5)
																		page.visual_effect(:fade, 'edit_promoter_link', :duration => 0.5)
																	},
											:success => evaluate_remote_response
									) %>

								Email:
								<%= event.promoter_email %>

								Phone:
								<%= event.promoter_phone %>

									<%= link_to(
												'Edit',
												:controller => 'promoters',
												:action => 'show',
												:id => @event.promoter.id,
												:event_id => @event.id) if @event.promoter %>

									 <%= link_to(
												'New',
												:controller => 'promoters',
												:action => 'new',
												:event_id => @event.id) %>

								Sanctioned by:
								<%= select 'event', 'sanctioned_by', SANCTIONING_ORGANIZATIONS %>

					Notes:
					<%= text_field 'event', 'notes', :style => 'width: 100%;' %>

					Flyer URL:
					<%= text_field 'event', 'flyer', :style => 'width: 100%;' %>

					<%= check_box 'event', 'flyer_approved' %> Flyer Approved

					Pre-Event Fees Paid:
					<%= text_field 'event', 'pre_event_fees', :size => 9 %>

					Post-Event Fees Paid:
					<%= text_field 'event', 'post_event_fees', :size => 9 %>

					Flyer Ad Paid:
					<%= text_field 'event', 'flyer_ad_fee', :size => 9 %>

		Updated: <%= @event.updated_at.to_formatted_s(:long) unless @event.updated_at.nil? %>

			<%= submit_tag "Delete" %>
			<%= submit_tag "Save" %>


submit button hides if javascript is active

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

<% end %>

    <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
    <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
    <%= link_to(l(:label_overall_spent_time), { :controller => 'time_entries' }) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
    <%= link_to l(:label_overall_activity), { :controller => 'projects', :action => 'activity' }%>

<%=l(:label_project_plural)%>

<% form_tag('/projects', :method => :get, :id => :project_filtering) do %>

  <fieldset id="filters" class="collapsible">
    <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>

        <%= label_tag 'q', l('project_filtering_q_label') %>
        <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>

      <%= render :partial => 'custom_field', :collection => @custom_fields_used_for_project_filtering %>

<%= submit_tag( l(:button_send), :id => 'filter_button') -%>

  </fieldset>

<% end %>

<%= javascript_tag "Field.focus('search-input');" %>
<%= javascript_tag "$('filter_button').hide();" %>
<%= observe_form( :project_filtering,
  :frequency => 0.5,
  :url => { :controller => :projects, :action => :index, :format => :js },
  :method => :get
  )
%>

<%= render_project_hierarchy_with_filtering(@projects, @custom_fields, @question) %>

<% if User.current.logged? %>

<%= l(:label_my_projects) %>

<% end %>

<% other_formats_links do |f| %>
	<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
<% end %>

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

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

<% end %>

    <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
    <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
    <%= link_to(l(:label_overall_spent_time), { :controller => 'time_entries' }) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
    <%= link_to l(:label_overall_activity), { :controller => 'projects', :action => 'activity' }%>

<%=l(:label_project_plural)%>

<% form_tag('/projects', :method => :get, :id => :project_filtering) do %>

  <fieldset id="filters" class="collapsible">
    <legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>

        <%= label_tag 'q', l('project_filtering_q_label') %>
        <%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %>

      <%= render :partial => 'custom_field', :collection => @custom_fields_used_for_project_filtering %>

<%= submit_tag l(:button_send) -%>

  </fieldset>

<% end %>
<%= javascript_tag "Field.focus('search-input')" %>
<%= observe_form( :project_filtering,
  :frequency => 0.5,
  :url => { :controller => :projects, :action => :index, :format => :js },
  :method => :get
  )
%>

<%= render_project_hierarchy_with_filtering(@projects, @custom_fields, @question) %>

<% if User.current.logged? %>

<%= l(:label_my_projects) %>

<% end %>

<% other_formats_links do |f| %>
	<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
<% end %>

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


#1573 fix bug on completed loop

#1573 fix bug on completed loop

<% if @started.length > 0 %>

You can continue the following applications:

    <% for profile in @started %>

<%= link_to profile.form_title, :action => "continue", :profile_id => profile.id %> (started)

    <% end %>

<% end %>

<% if @not_started.length > 0 %>

You can start the following applications:

    <% for form in @not_started %>

<%= link_to form.title, :action => "start", :form_id => form.id %>

    <% end %>

<% end %>

<% if @submitted.length > 0 || @completed.length > 0 %>

You have submitted the following applications:

    <% for profile in @submitted %>

<%= link_to profile.form_title, :action => "continue", :profile_id => profile.id %> (submitted)

    <% end %>
    <% for profile in @completed %>

<%= link_to profile.form_title, :action => "continue", :profile_id => profile.id %> (completed)

    <% end %>

<% end %>

<% if @unsubmitted.length > 0 %>

You have submitted the following applications, but their status is now unsubmitted:

    <% for profile in @unsubmitted %>

<%= link_to profile.form_title, :action => "continue", :profile_id => profile.id %> (unsubmitted)

    <% end %>

<% end %>

<% if @acceptances.length > 0 %>

Your application has been accepted to the projects listed below!  Click on the link to go to an acceptance page.

    <% for acceptance in @acceptances %>

<%= link_to acceptance.project.title, :action => "acceptance", :profile_id => acceptance.id %> (accepted)

    <% end %>

<% end %>

<% if @withdrawn.length > 0 %>

Your application has been withdrawn:

    <% for appln in @withdrawn %>

<%= appln.form_title %> (<%= appln.status %>)

    <% end %>

<% end %>

<% if @started.length > 0 %>

You can continue the following applications:

    <% for profile in @started %>

<%= link_to profile.form_title, :action => "continue", :profile_id => profile.id %> (started)

    <% end %>

<% end %>

<% if @not_started.length > 0 %>

You can start the following applications:

    <% for form in @not_started %>

<%= link_to form.title, :action => "start", :form_id => form.id %>

    <% end %>

<% end %>

<% if @submitted.length > 0 || @completed.length > 0 %>

You have submitted the following applications:

    <% for profile in @submitted %>

<%= link_to profile.form_title, :action => "continue", :profile_id => profile.id %> (submitted)

    <% end %>
    <% for appln in @completed %>

<%= link_to profile.form_title, :action => "continue", :profile_id => profile.id %> (completed)

    <% end %>

<% end %>

<% if @unsubmitted.length > 0 %>

You have submitted the following applications, but their status is now unsubmitted:

    <% for profile in @unsubmitted %>

<%= link_to profile.form_title, :action => "continue", :profile_id => profile.id %> (unsubmitted)

    <% end %>

<% end %>

<% if @acceptances.length > 0 %>

Your application has been accepted to the projects listed below!  Click on the link to go to an acceptance page.

    <% for acceptance in @acceptances %>

<%= link_to acceptance.project.title, :action => "acceptance", :profile_id => acceptance.id %> (accepted)

    <% end %>

<% end %>

<% if @withdrawn.length > 0 %>

Your application has been withdrawn:

    <% for appln in @withdrawn %>

<%= appln.form_title %> (<%= appln.status %>)

    <% end %>

<% end %>


Show user tracking

Show user tracking

  Id
  User
  <% for column in TrackThing.content_columns %>
    <%= column.human_name %>
  <% end %>
  Items sent by email
  Actions

<% for track_thing in track_things %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h track_thing.id %>
  <%=user_both_links(track_thing.tracking_user) %>
  <% for column in TrackThing.content_columns.map { |c| c.name } %>
    <%=h track_thing.send(column) %>
  <% end %>
  <%= track_thing.track_things_sent_emails.size %>

      <% form_tag '../../user/destroy_track' do %>

              <%= hidden_field_tag 'track_id', track_thing.id %>
              <%= submit_tag "Destroy track" %>

      <% end %>

<% end %>

  Id
  <% for column in TrackThing.content_columns %>
    <%= column.human_name %>
  <% end %>
  Items sent by email
  Actions

<% for track_thing in track_things %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h track_thing.id %>
  <% for column in TrackThing.content_columns.map { |c| c.name } %>
    <%=h track_thing.send(column) %>
  <% end %>
  <%= track_thing.track_things_sent_emails.size %>

      <% form_tag '../../user/destroy_track' do %>

              <%= hidden_field_tag 'track_id', track_thing.id %>
              <%= submit_tag "Destroy track" %>

      <% end %>

<% end %>


add confirmation_number tot he itinerary csv report

<% if @include_profiles -%>
<%= (TravelSegment.restricted.keys.collect{ |k|
  k.to_s
} + [ 'profile notes', 'eticket', 'confirmation #' ]).join(',') %>
<% end -%>
<% itinerary_profiles_csv.each do |name_project_profile| -%>
<% name, project, profile = name_project_profile -%>
<% @pts = profile.profile_travel_segments -%>
"<%= name %>"<% if @many_projects %>,(<%=project.title%>) <% end %>
<% if !@include_profiles -%>
<% next -%>
<% elsif @pts.empty? -%>
,none
<% else -%>
<% for pts in @pts -%>
<%   ts = pts.travel_segment -%>
<%   next if ts.nil? -%>
<%=  (TravelSegment.restricted.keys.collect{ |k|
  v = ts.send(k)
  v = format_datetime(v, :ts) if v.class == Time || v.class == Date
  "\"#{v}\""
} + [ "\"#{pts.notes}\"", "\"#{pts.eticket}\"", "\"#{pts.confirmation_number}\"" ]).join(',') %>
<% end %>
<% end -%>
<% end -%>

<% if @include_profiles -%>
<%= (TravelSegment.restricted.keys.collect{ |k|
  k.to_s
} + [ 'profile notes', 'eticket' ]).join(',') %>
<% end -%>
<% itinerary_profiles_csv.each do |name_project_profile| -%>
<% name, project, profile = name_project_profile -%>
<% @pts = profile.profile_travel_segments -%>
"<%= name %>"<% if @many_projects %>,(<%=project.title%>) <% end %>
<% if !@include_profiles -%>
<% next -%>
<% elsif @pts.empty? -%>
,none
<% else -%>
<% for pts in @pts -%>
<%   ts = pts.travel_segment -%>
<%   next if ts.nil? -%>
<%=  (TravelSegment.restricted.keys.collect{ |k|
  v = ts.send(k)
  v = format_datetime(v, :ts) if v.class == Time || v.class == Date
  "\"#{v}\""
} + [ "\"#{pts.notes}\"", "\"#{pts.eticket}\"" ]).join(',') %>
<% end %>
<% end -%>
<% end -%>


Eliminar warning al pasar los tests

Eliminar warning al pasar los tests

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

	<meta http-equiv="Content-Type" content="text/javascript" >

Event Information

Name:

<%=h(@event.name)%>

<%if logged_in? && current_user.superuser==true%>

Service:
<%=Event.get_Service_name(h(@event.service))%>

Quality:
<%=h(@event.quality)%>

Resources:
<%=h(@event.get_participants)%>

<%end%>
<%if @event.description!=nil && @event.description!=""%>

Description:

<%=h(@event.description)%>

<%end%>
<%if @event.tag_list!=nil && @event.tag_list!=""%>

Keywords:
<%for tag in @event.tag_list %>

	<%= link_to(h(tag), {:action => :search_by_tag, :tag => tag}, { :class => "tag", :style => "margin: .15em", :rel=> "tag" } ) %>
<%end%>

<%end%>

Event Times

<%index = 0%>
<%@event.event_datetimes.sort!{|x,y| x.start_date <=> y.start_date} %>
<% for datetime in @event.event_datetimes %>

        Start date:
        <abbr title= <%= datetime.start_date.strftime("%Y%m%d") %> class="dtstart"><%= datetime.start_date.strftime("%b %d %H:%M") %>

        End date:
        <abbr title= <%= datetime.end_date.strftime("%Y%m%d") %> class="dtend"><%= datetime.end_date.strftime("%b %d %H:%M") %>

    <%index += 1 -%>
<% end -%>

Contact Information

<a href="mailto:<%=  %>" class="email">Contact Information

URLs for the session

 <% urls = @event.get_urls
    descriptions = @event.get_participants_description
    machine_names = @event.get_machine_names
    is_executing_now = false
    for datetime in @event.event_datetimes
        if datetime.start_date < Time.now && datetime.end_date > Time.now
            is_executing_now = true
        end
    end
    i=0
    for the_url in urls%>

            <%if descriptions[i]!=nil && descriptions[i]!=""%>
            <%=h(descriptions[i])%>:

            <%end-%>

                <%if is_executing_now%>
                    <%= link_to(the_url, :controller => "machines",:action => "get_file", :machine => h(machine_names[i]))%>
                <%else%>
                    <%=h(the_url)%>
                <%end-%>
            <%i+=1%>

    <%end%>

	<meta http-equiv="Content-Type" content="text/javascript" >

Event Information

Name:

<%=h(@event.name)%>

<%if logged_in? && current_user.superuser==true%>

Service:
<%=Event.get_Service_name(h(@event.service))%>

Quality:
<%=h(@event.quality)%>

Resources:
<%=h(@event.get_participants)%>

<%end%>
<%if @event.description!=nil && @event.description!=""%>

Description:

<%=h(@event.description)%>

<%end%>
<%if @event.tag_list!=nil && @event.tag_list!=""%>

Keywords:
<%for tag in @event.tag_list %>

	<%= link_to (h(tag), {:action => :search_by_tag, :tag => tag}, { :class => "tag", :style => "margin: .15em", :rel=> "tag" } ) %>
<%end%>

<%end%>

Event Times

<%index = 0%>
<%@event.event_datetimes.sort!{|x,y| x.start_date <=> y.start_date} %>
<% for datetime in @event.event_datetimes %>

        Start date:
        <abbr title= <%= datetime.start_date.strftime("%Y%m%d") %> class="dtstart"><%= datetime.start_date.strftime("%b %d %H:%M") %>

        End date:
        <abbr title= <%= datetime.end_date.strftime("%Y%m%d") %> class="dtend"><%= datetime.end_date.strftime("%b %d %H:%M") %>

    <%index += 1 -%>
<% end -%>

Contact Information

<a href="mailto:<%=  %>" class="email">Contact Information

URLs for the session

 <% urls = @event.get_urls
    descriptions = @event.get_participants_description
    machine_names = @event.get_machine_names
    is_executing_now = false
    for datetime in @event.event_datetimes
        if datetime.start_date < Time.now && datetime.end_date > Time.now
            is_executing_now = true
        end
    end
    i=0
    for the_url in urls%>

            <%if descriptions[i]!=nil && descriptions[i]!=""%>
            <%=h(descriptions[i])%>:

            <%end-%>

                <%if is_executing_now%>
                    <%= link_to(the_url, :controller => "machines",:action => "get_file", :machine => h(machine_names[i]))%>
                <%else%>
                    <%=h(the_url)%>
                <%end-%>
            <%i+=1%>

    <%end%>


fixed -> show medical problem partial name change

Dossier on <%=h @bat.band %>

Cage:
<% if @bat.cage %>
<%= link_to @bat.cage.name, :controller => 'cages', :action => 'show', :id => @bat.cage %>
<% else %>
<%= 'Inactive' %>
<% end %>

Species:
<% if @bat.species %><%= @bat.species.name %><% end %>

Gender:
<%= @bat.gender %>

Collection Date:
<%= nice_date @bat.collection_date %>

Time in the lab:
<% collection_year = @bat.collection_date.strftime("%Y").to_i %>
<% collection_month = @bat.collection_date.strftime("%m").to_i %>
<% collection_day = @bat.collection_date.strftime("%d").to_i %>
<% collection_date = Date.new(collection_year,collection_month,collection_day) %>
<%= Date.today - collection_date  %> days

Collection Age:
<%= @bat.collection_age %>

Collection Place:
<%= @bat.collection_place %>

Rabies Vaccination Date:
<%= @bat.vaccination_date ? nice_date(@bat.vaccination_date) : 'Not vaccinated' %>

<% if @bat.leave_date != nil %>

Leave Date:
<%= nice_date @bat.leave_date %>

Leave Reason:
<%= @bat.leave_reason %>

<% end %>

<%= render :partial => 'bats/display_bat_notes' %>

<% if @bat.medical_problems.current.length > 0 %>

Current Medical Problems:

Medical Problem
User
Date Opened

Treatment
  <% for medical_problem in @bat.medical_problems.current %>
    <%= render :partial => 'medical_problems/show_medical_problem', :locals => {:medical_problem => medical_problem, :show_bat => true} %>
  <% end %>

<% end %>

<% if @bat.medical_problems.expired.length > 0 %>
<% @list_all = true %>

Past Medical Problems:

Medical Problem
User
Date Opened
Date Closed

Treatment
  <% for medical_problem in @bat.medical_problems.expired %>
    <%= render :partial => 'medical_problems/show_medical_problem', :locals => {:medical_problem => medical_problem, :show_bat => true} %>
  <% end %>

<% end %>

<%= render :partial => 'bats/display_weights', :locals => {:display_weights => @bat} %>

<% if @cohs.length >0 %>

Cage History:

  Cage
  Date in
  Why
  Who
  Date out
  Why
  Who
  <% for coh in @cohs %>

    <%=h coh.cage.name %>
    <%=h nice_date coh.cage_in_history.date %>
    <%=h coh.cage_in_history.note %>
    <%=h coh.cage_in_history.user.initials %>
    <%=h nice_date coh.date %>
    <%=h coh.note %>
    <%=h coh.user.initials %>

  <% end %>

<% end %>

<%= link_to 'Edit', :action => 'edit', :id => @bat %> |
<%= link_to 'List Current Bats', :action => 'list' %>

Dossier on <%=h @bat.band %>

Cage:
<% if @bat.cage %>
<%= link_to @bat.cage.name, :controller => 'cages', :action => 'show', :id => @bat.cage %>
<% else %>
<%= 'Inactive' %>
<% end %>

Species:
<% if @bat.species %><%= @bat.species.name %><% end %>

Gender:
<%= @bat.gender %>

Collection Date:
<%= nice_date @bat.collection_date %>

Time in the lab:
<% collection_year = @bat.collection_date.strftime("%Y").to_i %>
<% collection_month = @bat.collection_date.strftime("%m").to_i %>
<% collection_day = @bat.collection_date.strftime("%d").to_i %>
<% collection_date = Date.new(collection_year,collection_month,collection_day) %>
<%= Date.today - collection_date  %> days

Collection Age:
<%= @bat.collection_age %>

Collection Place:
<%= @bat.collection_place %>

Rabies Vaccination Date:
<%= @bat.vaccination_date ? nice_date(@bat.vaccination_date) : 'Not vaccinated' %>

<% if @bat.leave_date != nil %>

Leave Date:
<%= nice_date @bat.leave_date %>

Leave Reason:
<%= @bat.leave_reason %>

<% end %>

<%= render :partial => 'bats/display_bat_notes' %>

<% if @bat.medical_problems.current.length > 0 %>

Current Medical Problems:

Medical Problem
User
Date Opened

Treatment
<% @show_bat = false %>
  <% for medical_problem in @bat.medical_problems.current %>
    <%= render :partial => 'medical_problems/medical_problem_for_bat', :locals => {:medical_problem => medical_problem} %>
  <% end %>

<% end %>

<% if @bat.medical_problems.expired.length > 0 %>
<% @list_all = true %>

Past Medical Problems:

Medical Problem
User
Date Opened
Date Closed

Treatment
<% @show_bat = false %>
  <% for medical_problem in @bat.medical_problems.expired %>
    <%= render :partial => 'medical_problems/medical_problem_for_bat', :locals => {:medical_problem => medical_problem} %>
  <% end %>

<% end %>

<%= render :partial => 'bats/display_weights', :locals => {:display_weights => @bat} %>

<% if @cohs.length >0 %>

Cage History:

  Cage
  Date in
  Why
  Who
  Date out
  Why
  Who
  <% for coh in @cohs %>

    <%=h coh.cage.name %>
    <%=h nice_date coh.cage_in_history.date %>
    <%=h coh.cage_in_history.note %>
    <%=h coh.cage_in_history.user.initials %>
    <%=h nice_date coh.date %>
    <%=h coh.note %>
    <%=h coh.user.initials %>

  <% end %>

<% end %>

<%= link_to 'Edit', :action => 'edit', :id => @bat %> |
<%= link_to 'List Current Bats', :action => 'list' %>


Update _before_head_end.rhtml

Update _before_head_end.rhtml

<%= stylesheet_link_tag "/kimittud-theme-2/stylesheets/custom" %>

<%= stylesheet_link_tag "/alavetelitheme/stylesheets/custom" %>


ActionItem6: Correcting word

ActionItem6: Correcting word

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

<%= _('Information') %>

Information about how to proceed

<%= link_to 'Next page', :action => 'register_form' %>

<%= _('Information') %>

Informatio about how to proceed

<%= link_to 'Next page', :action => 'register_form' %>


Remove obselete file

Remove obselete file

<%= render :file => "#{Rails.root}/app/views/manage_products/_categories_for_selection.rhtml", :locals => {:categories => categories, :level => level} %>

<% javascript_tag do %>
  jQuery(document).ready(function() {
    setTimeout(function() {
      jQuery('html, body').animate({
        scrollTop: jQuery('#new_product_title').offset().top - jQuery('#cirandas-top-bar').height() - 10
      }, 500);
    }, 100);
  });
<% end %>


Bug Fix:  Group archive page links for month and year were broken, and this makes them work.

<% unless @months.empty? -%>

  <% @start_year.upto(@current_year.to_s) do |year| -%>

     <%= year %>
    <% '1'.upto('12') do |month| -%>

      <% if @months.detect {|a| a['year'] == year and a['month'] == month}  -%>
        <%
        if @parsed.first_arg_for('year').to_i == year.to_i and @parsed.first_arg_for('month').to_i == month.to_i
          klass = 'invert'
        else
          klass = ''
        end
        -%>
        <%= link_to month, {:path => ['month', month.to_s, 'year', year.to_s]}, :class => klass %>
      <% else %>
        <%= month  %>
      <% end -%>

    <% end -%>

  <% end -%>

<% end -%>

<%= render :partial => 'pages/list/table', :locals => {:heading => true, :columns => [:icon, :title, :created_by, :created_at, :contributors_count]} %>

<% unless @months.empty? -%>

  <% @start_year.upto(@current_year.to_s) do |year| -%>

     <%= year %>
    <% '1'.upto('12') do |month| -%>

      <% if @months.detect {|a| a['year'] == year and a['month'] == month}  -%>
        <%
        if @parsed.first_arg_for('year').to_i == year.to_i and @parsed.first_arg_for('month').to_i == month.to_i
          klass = 'invert'
        else
          klass = ''
        end
        -%>
        <%= link_to month, {:path => 'month/' + month + '/year/' + year}, :class => klass %>
      <% else %>
        <%= month  %>
      <% end -%>

    <% end -%>

  <% end -%>

<% end -%>

<%= render :partial => 'pages/list/table', :locals => {:heading => true, :columns => [:icon, :title, :created_by, :created_at, :contributors_count]} %>


handle case where name is only whitespace

<% if !@viewers.nil? %>

Click on a person's name to see more information about what projects this person is associated with.

Inactive accounts will be gray.

  <% if @viewers.length > 0 %>

<%= sortable_table %>

          <%= th 'person record' %>
          <%= th 'name' %>
          <%= th 'viewer id', :type => 'int' %>
          <%= th 'username' %>
          <%= th 'email' %>
          <%= th 'campus' %>
          <%= th 'gcx' %>
          <%= th '# profiles' %>
          <%= th 'last login' %>
          <%= th '' %>

        <% for viewer in @viewers %>
          <tr id="row_<%=viewer.id%>" class="search_result <%= 'inactive' if viewer.viewer_isActive == 0 %>" >
            <% if viewer.person %>
              yes
            <% else %>
              no
            <% end %>

                <% view_result_params = { :url => {:action => 'get_viewer_specifics', :id => viewer.id},
                                  :update => 'viewer_specifics',
                                  :before => "Element.show('finding_viewer_specifics_#{viewer.id}');",
                                  :complete => "Element.hide('finding_viewer_specifics_#{viewer.id}');" } %>
                <% link_text = viewer.name =~ /^\s+$/ ? '(no name set)' : viewer.name %>
                <%= link_to_remote link_text, view_result_params %>
                <% @init_js = view_result_params if @viewers.length == 1 %>

            <%=h viewer.id %>
            <%=h viewer.viewer_userID %>
            <%=h viewer.person.person_email if viewer.person %>
            <%=h viewer.person.campus_shortDesc %>
            <%=h 'gcx' unless viewer.guid.empty? %>
            <%=h viewer.profiles.length %>
            <%=h viewer.viewer_lastLogin %>
          <% if @viewer.is_projects_coordinator? %> <%= link_to 'merge..', merge_viewer_url(viewer) %> <% end %>

              <span id="finding_viewer_specifics_<%= viewer.id %>" style="clear:both; display:none;">
                <%=image_tag('spinner.gif')%>

        <% end %>

  <% else %>

No results found.

  <% end %>
<% end %>

<% if !@viewers.nil? %>

Click on a person's name to see more information about what projects this person is associated with.

Inactive accounts will be gray.

  <% if @viewers.length > 0 %>

<%= sortable_table %>

          <%= th 'person record' %>
          <%= th 'name' %>
          <%= th 'viewer id', :type => 'int' %>
          <%= th 'username' %>
          <%= th 'email' %>
          <%= th 'campus' %>
          <%= th 'gcx' %>
          <%= th '# profiles' %>
          <%= th 'last login' %>
          <%= th '' %>

        <% for viewer in @viewers %>
          <tr id="row_<%=viewer.id%>" class="search_result <%= 'inactive' if viewer.viewer_isActive == 0 %>" >
            <% if viewer.person %>
              yes
            <% else %>
              no
            <% end %>

                <% view_result_params = { :url => {:action => 'get_viewer_specifics', :id => viewer.id},
                                  :update => 'viewer_specifics',
                                  :before => "Element.show('finding_viewer_specifics_#{viewer.id}');",
                                  :complete => "Element.hide('finding_viewer_specifics_#{viewer.id}');" } %>
                <%= link_to_remote viewer.name, view_result_params %>
                <% @init_js = view_result_params if @viewers.length == 1 %>

            <%=h viewer.id %>
            <%=h viewer.viewer_userID %>
            <%=h viewer.person.person_email if viewer.person %>
            <%=h viewer.person.campus_shortDesc %>
            <%=h 'gcx' unless viewer.guid.empty? %>
            <%=h viewer.profiles.length %>
            <%=h viewer.viewer_lastLogin %>
          <% if @viewer.is_projects_coordinator? %> <%= link_to 'merge..', merge_viewer_url(viewer) %> <% end %>

              <span id="finding_viewer_specifics_<%= viewer.id %>" style="clear:both; display:none;">
                <%=image_tag('spinner.gif')%>

        <% end %>

  <% else %>

No results found.

  <% end %>
<% end %>


Doing two placeholder-substitution operations in succession is a recipe for disaster. (In this case, a request whose title contains a % sign caused it to break.)

    <% if @internal_review %>

<%= _('Request an internal review from') %> <%=h OutgoingMailer.name_for_followup(@info_request, nil) %>

    <% elsif incoming_message.nil? || !incoming_message.valid_to_reply_to? %>

<%= _('Send a public follow up message to') %> <%=h OutgoingMailer.name_for_followup(@info_request, nil) %>

    <% else %>

<%= _('Send a public reply to') %>
        <%=h OutgoingMailer.name_for_followup(@info_request, incoming_message) %>

    <% end %>

    <% if @info_request.allow_new_responses_from == 'nobody' %>

<%= _('Follow ups and new responses to this request have been stopped to prevent spam. Please
        contact us if you are {{user_link}} and need to send a follow up.',:user_link=>user_link(@info_request.user) ) % [help_contact_path] %>

    <% else %>
        <% if @internal_review %>

            <%= _('If you are dissatisfied by the response you got from
            the public authority, you have the right to
            complain (details).') % "http://foiwiki.com/foiwiki/index.php/Internal_reviews" %>

        <% end %>

		<%= _('Please only write messages directly relating to your request {{request_link}}. If you would like to ask for information that was not in your original request, then file a new request.', :request_link=>request_link(@info_request), :new_request_link => new_request_to_body_url(:url_name => @info_request.public_body.url_name)) %>

        <% status = @info_request.calculate_status %>
        <% if status == 'waiting_response_overdue' %>

<%= _('The response to your request has been delayed.  You can say that,
            by law, the authority should normally have responded
            promptly and') %>
            <% if @info_request.public_body.is_school? %>
            <%= _('in term time') %>
            <% end %>
            <%= _('by {{date}}',:date=>simple_date(@info_request.date_response_required_by)) %>
            (<%= _('details') % ["#{help_requesting_path}#quickly_response"] %>).

        <% elsif status == 'waiting_response_very_overdue' %>

            <%= _('The response to your request is long overdue.   You can say that, by
            law, under all circumstances, the authority should have responded
            by now') %> (<%= _('details') % ["#{help_requesting_path}#quickly_response"] %>).

        <% end %>

        <% form_for(:outgoing_message, @outgoing_message, :html => { :id => 'followup_form' }, :url => incoming_message.nil? ? show_response_no_followup_url(:id => @info_request.id) : show_response_url(:id => @info_request.id, :incoming_message_id => incoming_message.id)) do |o| %>

                <%= o.text_area :body, :rows => 15, :cols => 55 %>

            <% if @internal_review %>
                <%= hidden_field_tag "outgoing_message[what_doing]", "internal_review" %>
            <% else %>

<%= _('What are you doing?') %>

                <% if !@outgoing_message.errors[:what_doing_dummy].nil? %>

                <% else %>

                <% end %>

                        <%= radio_button "outgoing_message", "what_doing", "internal_review", :id => "internal_review" %>
                        <%= _('I am requesting an internal review') %>
						<%= _('what\'s that?') % ["/help/unhappy"] %>

                        <%= radio_button "outgoing_message", "what_doing", "normal_sort", :id => "sort_normal" %>
                        <%= _('Anything else, such as clarifying, prompting, thanking') %>

            <% end %>

            <% if @internal_review %>

<%= _('Edit and add more details to the message above,
                explaining why you are dissatisfied with their response.') %>

            <% end %>

                <%= hidden_field_tag 'submitted_followup', 1 %>
                <%= hidden_field_tag(:preview, 1 ) %>
                <% if @internal_review_pass_on %>
                    <%= hidden_field_tag(:internal_review, 1 ) %>
                <% end %>
                <%= submit_tag _("Preview your message") %>

        <% end %>

            <% if not @is_owning_user %>
            (You will be asked to sign in as <%= user_link(@info_request.user) %>)
            <% end %>

    <% end %>

    <% if @internal_review %>

<%= _('Request an internal review from') %> <%=h OutgoingMailer.name_for_followup(@info_request, nil) %>

    <% elsif incoming_message.nil? || !incoming_message.valid_to_reply_to? %>

<%= _('Send a public follow up message to') %> <%=h OutgoingMailer.name_for_followup(@info_request, nil) %>

    <% else %>

<%= _('Send a public reply to') %>
        <%=h OutgoingMailer.name_for_followup(@info_request, incoming_message) %>

    <% end %>

    <% if @info_request.allow_new_responses_from == 'nobody' %>

<%= _('Follow ups and new responses to this request have been stopped to prevent spam. Please
        contact us if you are {{user_link}} and need to send a follow up.',:user_link=>user_link(@info_request.user) ) % [help_contact_path] %>

    <% else %>
        <% if @internal_review %>

            <%= _('If you are dissatisfied by the response you got from
            the public authority, you have the right to
            complain (details).') % "http://foiwiki.com/foiwiki/index.php/Internal_reviews" %>

        <% end %>

		<%= _('Please only write messages directly relating to your
				request {{request_link}}. If you would like to ask for information
				that was not in your original request, then file a new request.',:request_link=>request_link(@info_request)) % [new_request_to_body_url(:url_name => @info_request.public_body.url_name)] %>

        <% status = @info_request.calculate_status %>
        <% if status == 'waiting_response_overdue' %>

<%= _('The response to your request has been delayed.  You can say that,
            by law, the authority should normally have responded
            promptly and') %>
            <% if @info_request.public_body.is_school? %>
            <%= _('in term time') %>
            <% end %>
            <%= _('by {{date}}',:date=>simple_date(@info_request.date_response_required_by)) %>
            (<%= _('details') % ["#{help_requesting_path}#quickly_response"] %>).

        <% elsif status == 'waiting_response_very_overdue' %>

            <%= _('The response to your request is long overdue.   You can say that, by
            law, under all circumstances, the authority should have responded
            by now') %> (<%= _('details') % ["#{help_requesting_path}#quickly_response"] %>).

        <% end %>

        <% form_for(:outgoing_message, @outgoing_message, :html => { :id => 'followup_form' }, :url => incoming_message.nil? ? show_response_no_followup_url(:id => @info_request.id) : show_response_url(:id => @info_request.id, :incoming_message_id => incoming_message.id)) do |o| %>

                <%= o.text_area :body, :rows => 15, :cols => 55 %>

            <% if @internal_review %>
                <%= hidden_field_tag "outgoing_message[what_doing]", "internal_review" %>
            <% else %>

<%= _('What are you doing?') %>

                <% if !@outgoing_message.errors[:what_doing_dummy].nil? %>

                <% else %>

                <% end %>

                        <%= radio_button "outgoing_message", "what_doing", "internal_review", :id => "internal_review" %>
                        <%= _('I am requesting an internal review') %>
						<%= _('what\'s that?') % ["/help/unhappy"] %>

                        <%= radio_button "outgoing_message", "what_doing", "normal_sort", :id => "sort_normal" %>
                        <%= _('Anything else, such as clarifying, prompting, thanking') %>

            <% end %>

            <% if @internal_review %>

<%= _('Edit and add more details to the message above,
                explaining why you are dissatisfied with their response.') %>

            <% end %>

                <%= hidden_field_tag 'submitted_followup', 1 %>
                <%= hidden_field_tag(:preview, 1 ) %>
                <% if @internal_review_pass_on %>
                    <%= hidden_field_tag(:internal_review, 1 ) %>
                <% end %>
                <%= submit_tag _("Preview your message") %>

        <% end %>

            <% if not @is_owning_user %>
            (You will be asked to sign in as <%= user_link(@info_request.user) %>)
            <% end %>

    <% end %>


git-svn-id: svn+ssh://ko.meadowy.net/home/svn/inside/kozuchi/trunk@218 c938ebee-df10-0410-95fc-be8c4b0ebdd5

      <% if @flash[:notice] || @flash[:notice].to_s != ""%>

<%=@flash[:notice]%>

      <% end %>

          支出

        <% for summary in @expenses_summaries %>

            <%= summary.name %>
            <%= @expenses_sum != 0 ?
      (summary.sum * 100.0 / @expenses_sum).round : 0%>%
            <%= number_with_delimiter(summary.sum)%>

        <% end %>

          収入

        <% for summary in @incomes_summaries %>

            <%= summary.name %>
            <%= @incomes_sum != 0 ?
(summary.sum * 100.0 / @incomes_sum).round : 0 %>%
            <%= number_with_delimiter(summary.sum)%>

        <% end %>

          支出合計
          <%= number_with_delimiter(@expenses_sum)%>

          収入合計
          <%= number_with_delimiter(@incomes_sum)%>

<%
  labels = ''
  values = ''
  for summary in @expenses_summaries
     v = (@expenses_sum != 0 ? (summary.sum * 100.0 / @expenses_sum).round : 0)
     next if v == 100 || v == 0
     values += v.to_s + ','
     labels += summary.name + ','
  end
%>
     <% if labels.count(',') > 1 then %>
       <img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />
     <% else %>
       グラフは２つ以上の項目があるときに表示されます。
     <% end %>

<%
  labels = ''
  values = ''
  for summary in @incomes_summaries
     v = (@incomes_sum != 0 ? (summary.sum * 100.0 / @incomes_sum).round : 0)
     next if v == 100 || v == 0
     values += v.to_s + ','
     labels += summary.name + ','
  end
%>
<% if labels.count(',') > 1 then %>
　　　　　　　<img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />
<% else %>
       グラフは２つ以上の項目があるときに表示されます。
<% end %>

    <div class="<%= @profit >= 0 ? "profit" : "loss" %>">
      <%= @profit >= 0 ? "利益" : "損失" %>合計
      <%= number_with_delimiter(@profit.abs)%>円

            資産減少

          <% for summary in @asset_minus_summaries %>

              <%= summary.account.name %>
              -<%= number_with_delimiter(summary.diff.abs)%>

          <% end %>

            資産増加

          <% for summary in @asset_plus_summaries %>

              <%= summary.account.name %>
              +<%= number_with_delimiter(summary.diff)%>

          <% end %>

            減少合計
            -<%= number_with_delimiter(@assets_minus_sum.abs)%>

            増加合計
            +<%= number_with_delimiter(@assets_plus_sum)%>

      <% if @flash[:notice] || @flash[:notice].to_s != ""%>

<%=@flash[:notice]%>

      <% end %>

          支出

        <% for summary in @expenses_summaries %>

            <%= summary.name %>
            <%= @expenses_sum != 0 ?
      (summary.sum * 100.0 / @expenses_sum).round : 0%>%
            <%= number_with_delimiter(summary.sum)%>

        <% end %>

          収入

        <% for summary in @incomes_summaries %>

            <%= summary.name %>
            <%= @incomes_sum != 0 ?
(summary.sum * 100.0 / @incomes_sum).round : 0 %>%
            <%= number_with_delimiter(summary.sum)%>

        <% end %>

          支出合計
          <%= number_with_delimiter(@expenses_sum)%>

<%
  labels = ''
  values = ''
  for summary in @expenses_summaries
     v = (@expenses_sum != 0 ? (summary.sum * 100.0 / @expenses_sum).round : 0)
     next if v == 100 || v == 0
     values += v.to_s + ','
     labels += summary.name + ','
  end
%>
<% if labels.count(',') > 1 then %>

	     <img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />

<% end %>

          収入合計
          <%= number_with_delimiter(@incomes_sum)%>

<%
  labels = ''
  values = ''
  for summary in @incomes_summaries
     v = (@incomes_sum != 0 ? (summary.sum * 100.0 / @incomes_sum).round : 0)
     next if v == 100 || v == 0
     values += v.to_s + ','
     labels += summary.name + ','
  end
%>
<% if labels.count(',') > 1 then %>

	      <img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />

<% end %>

      test

    <div class="<%= @profit >= 0 ? "profit" : "loss" %>">
      <%= @profit >= 0 ? "利益" : "損失" %>合計
      <%= number_with_delimiter(@profit.abs)%>円

            資産減少

          <% for summary in @asset_minus_summaries %>

              <%= summary.account.name %>
              -<%= number_with_delimiter(summary.diff.abs)%>

          <% end %>

            資産増加

          <% for summary in @asset_plus_summaries %>

              <%= summary.account.name %>
              +<%= number_with_delimiter(summary.diff)%>

          <% end %>

            減少合計
            -<%= number_with_delimiter(@assets_minus_sum.abs)%>

            増加合計
            +<%= number_with_delimiter(@assets_plus_sum)%>


Explicit check to determine whether the rubric is "Review Rubric" or "Author Feedback" done

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

Feedback for <%= @student.assignment.name %>

<% @assgt = @assignment %>
<% @author = @student %>
<%= render :partial => '/review/wiki' %>
<%
    review_no = 1
    grade = 0
    for review_map in @review_mapping
        for review in review_map.reviews%>
                Review <%=review_no%> done on <%= review.created_at.strftime('%A %B %d %Y, %I:%M%p') %>  <a href="#1" onClick="toggleVis('<%=review_no %>');">
                                <span class="inline" id="<%=review_no %>_show">View
                                <span class="inline" id="<%=review_no %>_hide" style="display: none">Hide

                                <div id="<%=review_no%>_myDiv" style="display:none">

                        Question
                        Score
                        Comment

                     <%
                     for review_score in ReviewScore.find(:all, :conditions=>["review_id=? and questionnaire_type_id=?",review.id, QuestionnaireType.find_by_name("Author Feedback")])%>

                            <%=Question.find(review_score.question_id).txt%>	<%=review_score.score%>  	<%=review_score.comments%>

                    <%end%>

                    Additional comment : <%=review.additional_comment%>

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

    <% if review_no-1 <= 0 %>
        <%if @assignment.wiki_type_id == 2 %>
            <%if @assignment.team_assignment %>
                There is no feedback on your work yet.
            <%else%>
				<%_time1 = Time.now.month.to_s + "/" + Time.now.day.to_s + "/" + Time.now.year.to_s%>
                <%if review_mediawiki @assignment.directory_path, _time1, @user_name == ''%>
                    There is no feedback on your work because it seems that you have not submitted anything for this assignment.
                <%else%>
                    There is no feedback on your work yet.
                <%end%>
            <%end%>
        <%else%>
            There is no feedback on your work yet.
        <%end%>
    <%end%>

Back

Feedback for <%= @student.assignment.name %>

<% @assgt = @assignment %>
<% @author = @student %>
<%= render :partial => '/review/wiki' %>
<%
    review_no = 1
    grade = 0
    for review_map in @review_mapping
        for review in review_map.reviews%>
                Review <%=review_no%> done on <%= review.created_at.strftime('%A %B %d %Y, %I:%M%p') %>  <a href="#1" onClick="toggleVis('<%=review_no %>');">
                                <span class="inline" id="<%=review_no %>_show">View
                                <span class="inline" id="<%=review_no %>_hide" style="display: none">Hide

                                <div id="<%=review_no%>_myDiv" style="display:none">

                        Question
                        Score
                        Comment

                     <%
                     for review_score in review.review_scores%>

                            <%=Question.find(review_score.question_id).txt%>	<%=review_score.score%>  	<%=review_score.comments%>

                    <%end%>

                    Additional comment : <%=review.additional_comment%>

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

    <% if review_no-1 <= 0 %>
        <%if @assignment.wiki_type_id == 2 %>
            <%if @assignment.team_assignment %>
                There is no feedback on your work yet.
            <%else%>
                <%if review_mediawiki @assignment.directory_path, _time, @user_name == ''%>
                    There is no feedback on your work because it seems that you have not submitted anything for this assignment.
                <%else%>
                    There is no feedback on your work yet.
                <%end%>
            <%end%>
        <%else%>
            There is no feedback on your work yet.
        <%end%>
    <%end%>

Back


got rid of exception when viewing a group home without being logged in

Navigation

  <%= link_to 'search', groups_url(:action => 'search', :id => @group, :path => nil) %>

  <%= link_to 'archive', groups_url(:action => 'archive', :id => @group, :path => nil) %>

  <%= link_to 'tags', groups_url(:action => 'tags', :id => @group) %>

  <%= link_to 'tasks', groups_url(:action => 'tasks', :id => @group) %>

Actions

<% if logged_in? and current_user.member_of?(@group) -%>

  <%= link_to 'create page', {:controller => '/pages', :action => 'create', :group_id => @group.id} %>

<% unless committee? -%>

  <%= link_to 'join chat', :controller => 'chat', :action => 'channel', :id => @group.name %>

<% end -%>
<% if @group.users.size == 1 and current_user.direct_member_of? @group -%>

  <%= post_to "destroy #{@group_type}", group_url(:action => 'destroy', :id => @group), :confirm => "Are you sure you want to destroy this #{@group_type}?" %>

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

Navigation

  <%= link_to 'search', groups_url(:action => 'search', :id => @group, :path => nil) %>

  <%= link_to 'archive', groups_url(:action => 'archive', :id => @group, :path => nil) %>

  <%= link_to 'tags', groups_url(:action => 'tags', :id => @group) %>

  <%= link_to 'tasks', groups_url(:action => 'tasks', :id => @group) %>

Actions

<% if current_user.member_of?(@group) -%>

  <%= link_to 'create page', {:controller => '/pages', :action => 'create', :group_id => @group.id} %>

<% unless committee? -%>

  <%= link_to 'join chat', :controller => 'chat', :action => 'channel', :id => @group.name %>

<% end -%>
<% if @group.users.size == 1 and current_user.direct_member_of? @group -%>

  <%= post_to "destroy #{@group_type}", group_url(:action => 'destroy', :id => @group), :confirm => "Are you sure you want to destroy this #{@group_type}?" %>

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


Don't set the body class to admin when an admin user is using the front end. We don't want to apply admin styles to the front end in general.

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

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

        <link rel="shortcut icon" href="/favicon.ico">

        <%= render :partial => 'general/stylesheet_includes' %>
        <% if is_admin? %>
          <%= stylesheet_link_tag "/adminbootstraptheme/stylesheets/admin", :title => "Main", :rel => "stylesheet" %>
        <% end %>

        <%= javascript_include_tag 'jquery.js', 'jquery-ui.min','jquery.cookie.js', 'general.js' %>
        <% if @profile_photo_javascript %>

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

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

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

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

    <body class="<%= 'front' if params[:action] == 'frontpage' %>">
    <% if Configuration::force_registration_on_new_request && !@user %>
    <%= javascript_include_tag 'jquery.fancybox-1.3.4.pack' %>

    <% end %>

<% if session[:using_admin] %>
  <%= render :partial => 'admin_general/admin_navbar' %>
<% end %>

<% if !@popup_banner.blank? %>

<%= _('Close') %>

  <%= @popup_banner %>

<%= _('Close') %>

<% end %>

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

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

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

                <% if @user %>
                    <%=link_to _("My requests"), show_user_requests_path(:url_name => @user.url_name) %>
                    <%=link_to _("My profile"), show_user_profile_path(:url_name => @user.url_name) %>
                    <%=link_to _("My wall"), show_user_wall_path(:url_name => @user.url_name) %>
                <% end %>

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

        <% end %>

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

                   <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %>
                   <%= submit_tag 'search', :id => "navigation_search_button"  %>

            <% end %>

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

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

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

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

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

<input type="text">

    <%
      unless Configuration::ga_code.empty? || (@user && @user.super?) %>

      <% end %>

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

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

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

        <link rel="shortcut icon" href="/favicon.ico">

        <%= render :partial => 'general/stylesheet_includes' %>
        <% if is_admin? %>
          <%= stylesheet_link_tag "/adminbootstraptheme/stylesheets/admin", :title => "Main", :rel => "stylesheet" %>
        <% end %>

        <%= javascript_include_tag 'jquery.js', 'jquery-ui.min','jquery.cookie.js', 'general.js' %>
        <% if @profile_photo_javascript %>

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

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

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

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

    <body class="<%= 'admin' if is_admin? %> <%= 'front' if params[:action] == 'frontpage' %>">
    <% if Configuration::force_registration_on_new_request && !@user %>
    <%= javascript_include_tag 'jquery.fancybox-1.3.4.pack' %>

    <% end %>

<% if session[:using_admin] %>
  <%= render :partial => 'admin_general/admin_navbar' %>
<% end %>

<% if !@popup_banner.blank? %>

<%= _('Close') %>

  <%= @popup_banner %>

<%= _('Close') %>

<% end %>

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

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

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

                <% if @user %>
                    <%=link_to _("My requests"), show_user_requests_path(:url_name => @user.url_name) %>
                    <%=link_to _("My profile"), show_user_profile_path(:url_name => @user.url_name) %>
                    <%=link_to _("My wall"), show_user_wall_path(:url_name => @user.url_name) %>
                <% end %>

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

        <% end %>

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

                   <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %>
                   <%= submit_tag 'search', :id => "navigation_search_button"  %>

            <% end %>

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

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

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

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

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

<input type="text">

    <%
      unless Configuration::ga_code.empty? || (@user && @user.super?) %>

      <% end %>

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


Change pencil icons to tags icons on the admin home page

<% @title = "Summary" %>

Things to do

  <% if @holding_pen_messages.size > 0 %>

        <%=@holding_pen_messages.size%> 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)", "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% else %>
                      <%= link_to excerpt(message.get_body_for_quoting, "", 60), "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% end %>

                  <%=simple_date(message.sent_at)%>

            <% end %>

  <% end %>

  <% if @error_message_requests.size > 0 %>

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

            <% for @request in @error_message_requests %>

                  <%= link_to(''.html_safe, request_admin_url(@request))%>
                  <%= @request.title %>

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

            <% end %>

  <% end %>

  <% if @requires_admin_requests.size > 0 %>

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

            <% for @request in @requires_admin_requests %>

                  <%= link_to(''.html_safe, request_admin_url(@request))%>
                  <%= @request.title %>

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

            <% end %>

  <% end %>

  <% if @blank_contacts.size > 0 %>

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

            <% for @blank_contact in @blank_contacts %>

                  <%= link_to(''.html_safe, public_body_admin_url(@blank_contact))%>
                  <%= public_body_link(@blank_contact)%>

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

            <% end %>

  <% end %>

  <% if @old_unclassified.size > 0 %>

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

            <% for @request in @old_unclassified %>

                    <%= link_to("".html_safe, request_admin_url(@request)) %>
                    <%= request_link(@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 %>

      No pending administration required.

<% end %>

<% @title = "Summary" %>

Things to do

  <% if @holding_pen_messages.size > 0 %>

        <%=@holding_pen_messages.size%> 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)", "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% else %>
                      <%= link_to excerpt(message.get_body_for_quoting, "", 60), "request/show_raw_email/" + message.raw_email_id.to_s %>
                  <% end %>

                  <%=simple_date(message.sent_at)%>

            <% end %>

  <% end %>

  <% if @error_message_requests.size > 0 %>

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

            <% for @request in @error_message_requests %>

                  <%= link_to(''.html_safe, request_admin_url(@request))%>
                  <%= link_to("".html_safe, request_url(@request)) %>
                  <%= @request.title %>

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

            <% end %>

  <% end %>

  <% if @requires_admin_requests.size > 0 %>

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

            <% for @request in @requires_admin_requests %>

                  <%= link_to("".html_safe, request_url(@request)) %>
                  <%= link_to(''.html_safe, request_admin_url(@request))%>
                  <%= @request.title %>

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

            <% end %>

  <% end %>

  <% if @blank_contacts.size > 0 %>

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

            <% for @blank_contact in @blank_contacts %>

                  <%= link_to(''.html_safe, public_body_admin_url(@blank_contact))%>
                  <%= public_body_link(@blank_contact)%>

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

            <% end %>

  <% end %>

  <% if @old_unclassified.size > 0 %>

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

            <% for @request in @old_unclassified %>

                    <%= link_to("".html_safe, request_admin_url(@request)) %>
                    <%= link_to("".html_safe, request_url(@request)) %>
                    <%= request_link(@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 %>

      No pending administration required.

<% end %>


Removed the SEO preferences which Frederic accidentally re added.

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

<% @page_heading = _('Blog advanced settings') %>

    <% form_tag :action => 'update' do %>

<%= _("Things you can do")%>?

<%= link_to(_("Basic settings"), {:controller=>"general"}) %>

    <fieldset id="write" class="set">
        <legend><%= _("Write")%></legend>

                <%= _("Article filter")%>:
                <select name="setting[text_filter]" id="text_filter">
                  <%= options_for_select text_filter_options, TextFilter.find_by_name(this_blog.text_filter) %>
                </select>

                <%= _("Comments filter")%>:
                <select name="setting[comment_text_filter]" id="comment_text_filter">
                <%= options_for_select text_filter_options, TextFilter.find_by_name(this_blog.comment_text_filter) %>
                </select>

    </fieldset>

    <fieldset id="publish" class="set">
        <legend><%= _("Publish")%></legend>

                <%= _("When publishing articles, Typo can send trackbacks to websites that you link to. This should be disabled for private blogs as it will leak non-public information to sites that you're discussing. For public blogs, there's no real point in disabling this.")%>

              <%= _("Send trackbacks")%>:
              <input name="setting[send_outbound_pings]" id="send_outbound_pings" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.send_outbound_pings%> />
             <input name="setting[send_outbound_pings]" type="hidden" value="0" />

                <%= _("URLs to ping automatically")%>:
                <textarea name="setting[ping_urls]" id="ping_urls" rows="5" cols="50"><%=h this_blog.ping_urls %></textarea>

                <%= _("Latitude, Longitude")%>:
                <input name="setting[geourl_location]" size="20" id="geourl_location" type="text" value="<%= this_blog.geourl_location %>" />
                <%= _("Display")%> <%= _("your lattitude and longitude")%> (<%= _("exemple")%> <tt>47.774,-122.201</tt>)

    </fieldset>

    <fieldset id="seo" class="set" style="margin-top:10px;">
        <legend><%= _("Search Engine Optimisation")%></legend>

                <%= _("Show blog name")%>:
                <input type="radio" name="setting[title_prefix]" value="1" id="blog_title_prefix_1" <%= 'checked="checked"' if this_blog.title_prefix == 1 %>/>
                <%= _("At the beginning of page title")%>

                    <input type="radio" name="setting[title_prefix]" value="2" id="blog_title_prefix_2" <%= 'checked="checked"' if this_blog.title_prefix == 2 %>/>
                    <%= _("At the end of page title")%>

                    <input type="radio" name="setting[title_prefix]" value="0" id="blog_title_prefix_0" <%= 'checked="checked"' if this_blog.title_prefix == 0 %>/>
                    <%= _("Don't show blog name in page title")%>

    </fieldset>

    <fieldset id="discuss" class="set">
        <legend><%= _("Discuss")%></legend>

                <%= _("This setting allows you to disable trackbacks for every article in your blog.  It won't remove existing trackbacks, but it will prevent any further attempt to add a trackback anywhere on your blog.")%>

                <%= _("Disable trackbacks site-wide")%>:
                <input name="setting[global_pings_disable]" id="global_pings_disable" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.global_pings_disable%> />
                <input name="setting[global_pings_disable]" type="hidden" value="0" />

<%= _("You can enable site wide feeback moderation. If you do so, no comment or trackback will appear on your blog unless you validate it")%>.

                <%= _("Enable feedback moderation")%>:
                <input name="setting[default_moderate_comments]" id="default_moderate_comments" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.default_moderate_comments %> />
                <input name="setting[default_moderate_comments]" type="hidden" value="0" />

                <%= _("Show your email address") %>:
                <input name="setting[link_to_author]" id="link_to_author" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.link_to_author%> />
                <input name="setting[link_to_author]" type="hidden" value="0" />

                <%= _("You can optionally disable non-Ajax comments. Typo will always use Ajax for comment submission if Javascript is enabled, so non-Ajax comments are either from spammers or users without Javascript.")%>

                <%= _("Allow non-ajax comments") %>:
                <input name="setting[sp_allow_non_ajax_comments]" id="sp_allow_non_ajax_comments" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.sp_allow_non_ajax_comments%> />
                <input name="setting[sp_allow_non_ajax_comments]" type="hidden" value="0" />

                <%= _("Disable comments after")%>
                <input name="setting[sp_article_auto_close]" size="4" id="sp_article_auto_close" type="text" value="<%= this_blog.sp_article_auto_close %>" /> <%= _("days") %>
                <%= _("Set to 0 to never disable comments")%>

<%= _("Typo will automatically reject comments and trackbacks which contain over a certain amount of links in them")%>.

                <%= _("Max Links")%>:
                <input name="setting[sp_url_limit]" size="4" id="sp_url_limit" type="text" value="<%= this_blog.sp_url_limit %>" />
                <%= _("Set to 0 to never reject comments")%>

    </fieldset>

    <fieldset id="notification" class="set">
        <legend><%= _("Notification")%></legend>

<%= _("Typo can notify you when new articles or comments are posted")%>

                <%= _("Source Email")%>:
                <input name="setting[email_from]" size="25" id="email_from" type="text" value="<%= this_blog.email_from %>" />
                <%= _("Email address used by Typo to send notifications")%>.

                <%=_("Jabber account")%>:
                <input name="setting[jabber_address]" size="20" id="jabber_address" type="text" value="<%= this_blog.jabber_address %>" />
                <%= _("Jabber account to use when sending Jabber notifications") %>.

                <%= _("Jabber password")%>:
                <input name="setting[jabber_password]" size="20" id="jabber_password" type="password" value="<%= this_blog.jabber_password %>" />

    </fieldset>

    <fieldset id="resources" class="set">
        <legend><%= _("Resource Settings")%></legend>

<%= _("The below settings act as defaults when you choose to publish an enclosure with iTunes metadata")%>.

                <%= _("Author")%>:
                <input name="setting[itunes_author]" size="25" id="itunes_author" type="text" value="<%= this_blog.itunes_author %>" />

                <%= _("Subtitle")%>: *
                <input name="setting[itunes_subtitle]" size="25" id="itunes_subtitle" type="text" value="<%= this_blog.itunes_subtitle %>" />

                <%= _("Summary")%>: *
                <textarea name="setting[itunes_summary]" cols="40" rows="3"><%=h this_blog.itunes_summary %></textarea>
                * <%= _("Setting for channel")%>

              <%= _("Email")%>: **
              <input name="setting[itunes_email]" size="25" id="itunes_email" type="text" value="<%= this_blog.itunes_email %>" />

                <%= _("Optional Name")%>: **
                <input name="setting[itunes_name]" size="25" id="itunes_name" type="text" value="<%= this_blog.itunes_name %>" />
                ** <%= _("Not published by Apple")%>

                <%= _("Copyright Information")%>:
                <input name="setting[itunes_copyright]" size="25" id="itunes_copyright" type="text" value="<%= this_blog.itunes_copyright %>" />

                <%= _("Explicit")%>:
                <input name="setting[itunes_explicit]" id="itunes_explicit" type="checkbox"  value="1" <%= 'checked="checked"' if this_blog.itunes_explicit%> />
                <input name="setting[itunes_explicit]" type="hidden" value="0" />

    </fieldset>

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

  <% end %>

<% @page_heading = _('Blog advanced settings') %>

    <% form_tag :action => 'update' do %>

<%= _("Things you can do")%>?

<%= link_to(_("Basic settings"), {:controller=>"general"}) %>

    <fieldset id="write" class="set">
        <legend><%= _("Write")%></legend>

                <%= _("Article filter")%>:
                <select name="setting[text_filter]" id="text_filter">
                  <%= options_for_select text_filter_options, TextFilter.find_by_name(this_blog.text_filter) %>
                </select>

                <%= _("Comments filter")%>:
                <select name="setting[comment_text_filter]" id="comment_text_filter">
                <%= options_for_select text_filter_options, TextFilter.find_by_name(this_blog.comment_text_filter) %>
                </select>

    </fieldset>

    <fieldset id="publish" class="set">
        <legend><%= _("Publish")%></legend>

                <%= _("When publishing articles, Typo can send trackbacks to websites that you link to. This should be disabled for private blogs as it will leak non-public information to sites that you're discussing. For public blogs, there's no real point in disabling this.")%>

              <%= _("Send trackbacks")%>:
              <input name="setting[send_outbound_pings]" id="send_outbound_pings" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.send_outbound_pings%> />
             <input name="setting[send_outbound_pings]" type="hidden" value="0" />

                <%= _("URLs to ping automatically")%>:
                <textarea name="setting[ping_urls]" id="ping_urls" rows="5" cols="50"><%=h this_blog.ping_urls %></textarea>

                <%= _("Latitude, Longitude")%>:
                <input name="setting[geourl_location]" size="20" id="geourl_location" type="text" value="<%= this_blog.geourl_location %>" />
                <%= _("Display")%> <%= _("your lattitude and longitude")%> (<%= _("exemple")%> <tt>47.774,-122.201</tt>)

    </fieldset>

    <fieldset id="seo" class="set" style="margin-top:10px;">
        <legend><%= _("Search Engine Optimisation")%></legend>

                <%= _("Show blog name")%>:
                <input type="radio" name="setting[title_prefix]" value="1" id="blog_title_prefix_1" <%= 'checked="checked"' if this_blog.title_prefix == 1 %>/>
                <%= _("At the beginning of page title")%>

                    <input type="radio" name="setting[title_prefix]" value="2" id="blog_title_prefix_2" <%= 'checked="checked"' if this_blog.title_prefix == 2 %>/>
                    <%= _("At the end of page title")%>

                    <input type="radio" name="setting[title_prefix]" value="0" id="blog_title_prefix_0" <%= 'checked="checked"' if this_blog.title_prefix == 0 %>/>
                    <%= _("Don't show blog name in page title")%>

You can use either Typo traditional permalinks /articles/yyyy/mm/dd/title or search engine friendly permalinks /title

		 	  <%= _("Permalinks")%>:
			  <input type="radio" name="setting[seopermalinks]" value="0" id="blog_seopermalinks_1" <%= 'checked="checked"' if this_blog.seopermalinks == 0 %>/>
			  <%= _("Use Typo traditional permalinks")%>

			    <input type="radio" name="setting[seopermalinks]" value="1" id="blog_seopermalinks_2" <%= 'checked="checked"' if this_blog.seopermalinks == 1 %>/>
			    <%= _("Use search engine friendly permalinks")%>

    </fieldset>

    <fieldset id="discuss" class="set">
        <legend><%= _("Discuss")%></legend>

                <%= _("This setting allows you to disable trackbacks for every article in your blog.  It won't remove existing trackbacks, but it will prevent any further attempt to add a trackback anywhere on your blog.")%>

                <%= _("Disable trackbacks site-wide")%>:
                <input name="setting[global_pings_disable]" id="global_pings_disable" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.global_pings_disable%> />
                <input name="setting[global_pings_disable]" type="hidden" value="0" />

<%= _("You can enable site wide feeback moderation. If you do so, no comment or trackback will appear on your blog unless you validate it")%>.

                <%= _("Enable feedback moderation")%>:
                <input name="setting[default_moderate_comments]" id="default_moderate_comments" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.default_moderate_comments %> />
                <input name="setting[default_moderate_comments]" type="hidden" value="0" />

                <%= _("Show your email address") %>:
                <input name="setting[link_to_author]" id="link_to_author" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.link_to_author%> />
                <input name="setting[link_to_author]" type="hidden" value="0" />

                <%= _("You can optionally disable non-Ajax comments. Typo will always use Ajax for comment submission if Javascript is enabled, so non-Ajax comments are either from spammers or users without Javascript.")%>

                <%= _("Allow non-ajax comments") %>:
                <input name="setting[sp_allow_non_ajax_comments]" id="sp_allow_non_ajax_comments" type="checkbox" value="1" <%= 'checked="checked"' if this_blog.sp_allow_non_ajax_comments%> />
                <input name="setting[sp_allow_non_ajax_comments]" type="hidden" value="0" />

                <%= _("Disable comments after")%>
                <input name="setting[sp_article_auto_close]" size="4" id="sp_article_auto_close" type="text" value="<%= this_blog.sp_article_auto_close %>" /> <%= _("days") %>
                <%= _("Set to 0 to never disable comments")%>

<%= _("Typo will automatically reject comments and trackbacks which contain over a certain amount of links in them")%>.

                <%= _("Max Links")%>:
                <input name="setting[sp_url_limit]" size="4" id="sp_url_limit" type="text" value="<%= this_blog.sp_url_limit %>" />
                <%= _("Set to 0 to never reject comments")%>

    </fieldset>

    <fieldset id="notification" class="set">
        <legend><%= _("Notification")%></legend>

<%= _("Typo can notify you when new articles or comments are posted")%>

                <%= _("Source Email")%>:
                <input name="setting[email_from]" size="25" id="email_from" type="text" value="<%= this_blog.email_from %>" />
                <%= _("Email address used by Typo to send notifications")%>.

                <%=_("Jabber account")%>:
                <input name="setting[jabber_address]" size="20" id="jabber_address" type="text" value="<%= this_blog.jabber_address %>" />
                <%= _("Jabber account to use when sending Jabber notifications") %>.

                <%= _("Jabber password")%>:
                <input name="setting[jabber_password]" size="20" id="jabber_password" type="password" value="<%= this_blog.jabber_password %>" />

    </fieldset>

    <fieldset id="resources" class="set">
        <legend><%= _("Resource Settings")%></legend>

<%= _("The below settings act as defaults when you choose to publish an enclosure with iTunes metadata")%>.

                <%= _("Author")%>:
                <input name="setting[itunes_author]" size="25" id="itunes_author" type="text" value="<%= this_blog.itunes_author %>" />

                <%= _("Subtitle")%>: *
                <input name="setting[itunes_subtitle]" size="25" id="itunes_subtitle" type="text" value="<%= this_blog.itunes_subtitle %>" />

                <%= _("Summary")%>: *
                <textarea name="setting[itunes_summary]" cols="40" rows="3"><%=h this_blog.itunes_summary %></textarea>
                * <%= _("Setting for channel")%>

              <%= _("Email")%>: **
              <input name="setting[itunes_email]" size="25" id="itunes_email" type="text" value="<%= this_blog.itunes_email %>" />

                <%= _("Optional Name")%>: **
                <input name="setting[itunes_name]" size="25" id="itunes_name" type="text" value="<%= this_blog.itunes_name %>" />
                ** <%= _("Not published by Apple")%>

                <%= _("Copyright Information")%>:
                <input name="setting[itunes_copyright]" size="25" id="itunes_copyright" type="text" value="<%= this_blog.itunes_copyright %>" />

                <%= _("Explicit")%>:
                <input name="setting[itunes_explicit]" id="itunes_explicit" type="checkbox"  value="1" <%= 'checked="checked"' if this_blog.itunes_explicit%> />
                <input name="setting[itunes_explicit]" type="hidden" value="0" />

    </fieldset>

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

  <% end %>


Falta en mensaje de trabajando.

Falta en mensaje de trabajando.

<!DOCTYPE html>
<html lang="<%= I18n.locale %>" prefix="og: http://ogp.me/ns#">

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

        <meta property="og:type" content="website" />
        <meta property="og:image" content="http://www.quesabes.org/quesabes-theme/images/logo_cuadrado.png" />

        <link rel="shortcut icon" href="/quesabes-theme/images/favicon.gif">
        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet", :media => "all" %>
        <%= stylesheet_link_tag 'fonts', :rel => "stylesheet", :media => "all"  %>
        <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print"  %>
        <% if !params[:print_stylesheet].nil? %>
         <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "all"  %>
        <% end %>
        <%= javascript_include_tag 'jquery.js', 'jquery-ui.min','jquery.cookie.js' %>

        <% if @profile_photo_javascript %>

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

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

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

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

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

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

    Estamos trabajando. El registro esta deshabilitado hasta que lanzemos la realizacion de pedidos el 3 de Octubre.

Close

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

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

        <% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>
		<%= render :partial => 'general/usernav' %>

        <% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

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

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

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

  <input type="text">

<!DOCTYPE html>
<html lang="<%= I18n.locale %>" prefix="og: http://ogp.me/ns#">

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

        <meta property="og:type" content="website" />
        <meta property="og:image" content="http://www.quesabes.org/quesabes-theme/images/logo_cuadrado.png" />

        <link rel="shortcut icon" href="/quesabes-theme/images/favicon.gif">
        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet", :media => "all" %>
        <%= stylesheet_link_tag 'fonts', :rel => "stylesheet", :media => "all"  %>
        <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print"  %>
        <% if !params[:print_stylesheet].nil? %>
         <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "all"  %>
        <% end %>
        <%= javascript_include_tag 'jquery.js', 'jquery-ui.min','jquery.cookie.js' %>

        <% if @profile_photo_javascript %>

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

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

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

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

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

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

Close

    Estamos aün trabajando. El egistro esta deshabilitado hasta que lanzemos la realizacion de pedidos el 3 de Octubre.

Close

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

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

        <% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>
		<%= render :partial => 'general/usernav' %>

        <% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

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

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

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

  <input type="text">