nil fix

nil fix

'<%= @assignment.title %>' turn-ins for '<%= @student.display_name %>'

Course: <%= @course.title %> (<%= @course.term.semester%>)

<%= link_to 'Back to all students', :controller => '/instructor/turnins', :course => @course, :assignment => @assignment %>

Turn-in Sets

<% if @display_turnin %>

<% if @display_turnin.id == @current_turnin.id %>

This is the student's most recent turn-in set.

<% else %>

This is NOT the student's final turn-in set.  You most likely do not want to grade these files.

<% end %>

Turn-in set

Originally Submitted: <%= @display_turnin.created_at.to_formatted_s(:friendly_date) %>

Last Updated: <%= @display_turnin.updated_at.to_formatted_s(:friendly_date) %>

Download entire turn-in set: <%= link_to 'as tar file', :action => 'download_set', :id => @display_turnin.id %>

<% if @display_turnin.id == @current_turnin.id && @current_turnin.user_turnin_files.size == 1 && @turnins.size > 1 %>

This student's current turn-in set does not have any files in it, and there are previous turn-in sets.  You may <%= link_to 'rollback to the previous turn-in set', :action => 'rollback', :id => @student %>

<% end %>

<% parent_spaces = Hash.new
   parent_spaces[0.to_s] = 0
   any_java = @display_turnin.any_java_files?
%>

    File
	Date
	<% if @assignment.programming %>
	  Main?
	  <% if any_java %>
	    Clean Java?
	    Instructor
 Override?
	  <% end %>
	<% end %>
	Download
	Review / Comment

<% count = 0 %>
<% previous_tif = nil %>
<% for @tif in @display_turnin.user_turnin_files %>
  <% count = count.next
     odd = "odd"
     odd = "even" if count.even?
   %>
  <tr class="<%=odd%> hover" id="user_turnin_file_<%=@tif.id%>">

    <%

       if @tif.directory_entry
	     parent_spaces[@tif.id.to_s] = parent_spaces[@tif.directory_parent.to_s] + 1
       end %>

    <% spaces = ''
       if @tif.directory_entry
         upper = parent_spaces[@tif.id.to_s] - 1
       else
	     upper = parent_spaces[@tif.directory_parent.to_s]
       end
       1.upto(upper*3) { |i| spaces = " #{spaces}" }
     %>

      <%= spaces %>
      <%= image_tag "#{@tif.icon}", :align => 'absmiddle' %>
      <%=h @tif.filename %>

     <%= @tif.created_at.to_formatted_s(:short) %>
    <% if @assignment.programming %>

      	<% if @tif.main %>
	      <%= image_tag 'accept' %> Current
	    <% elsif @tif.main_candidate && ! (@display_turnin.sealed || @display_turnin.finalized) %>
	      <%= image_tag 'add' %> Candidate
	         </acronym>
	    <% end %>

	   <% if any_java %>

		  <% if @tif.extension.eql?('java') ## will need to expand later w/ other languages %>
		    <% if @tif.gradable %>
		      <%= image_tag 'accept' %>
		    <% else %>
		      <%= image_tag 'cross' %> <%= link_to_function "Details", visual_effect(:toggle_appear, "dirty_details_#{@tif.id}" ) %>
		    <% end %>
		  <% end %>

		  <% if @tif.extension.eql?('java') ## will need to expand later w/ other languages %>
		    <% if ! @tif.gradable %>
		      <% if @tif.gradable_override %>
		        <%= image_tag 'accept' %> Yes
		      <% else %>
		        <%= image_tag 'cross' %> No
		      <% end %>
		    <% end %>
		  <% end %>

	  <% end %>

    <% end %>

     <% if @tif.directory_entry %>
       <s>Download</s>
     <% else %>
       <%= link_to 'Download', :action => 'download_file', :id => @tif.id %>
     <% end %>

      <% if @tif.directory_entry %>

      <% else %>
        <% if @tif.is_text_file? %>
          <%= link_to 'View/Comment', :action => 'view_file', :course => @course, :assignment => @assignment, :student => @student, :id => @tif %>
        <% else %>
          <%= link_to 'Download', :action => 'download_file', :course => @course, :assignment => @assignment, :student => @student, :id => @tif %>
        <% end %>
      <% end %>

  <% if any_java && @tif.extension.eql?('java') && !@tif.gradable %>
    <tr style="display: none;" id="dirty_details_<%=@tif.id%>">

Can not AutoGrade your assignment because '<%= @tif.filename %>' it contains the following disallowed strings.

<% unless @tif.gradable_message.nil? %><%= @tif.gradable_message.to_html %><% end %>

  <% end %>

  <% previous_tif = @tif %>
<% end %>

<% else %>

No files submitted

<% end %>

<% if @assignment.auto_grade_setting.io_check? ## Only kind of autograde supported %>

AutoGrade Results

<%= link_to "View I/O Check results for #{@student.display_name}.", :course => @course, :assignment => @assignment, :student => @student, :action => 'view_io_tests' %> From this screen you can also re-run the automatic tests.

<% end %>

Grade

<% unless @grade_item %>

Warning - this assignment is not connected with an entry in the GradeBook.

<% else %>

  <%= start_form_tag :action => 'submit_grade', :id => @student, :course => @course, :assignment => @assignment %>
    <%= error_messages_for 'grade_entry' %>

You can enter general assignment comments here.   You also have the ability to comment on individual files below as well as to make annotations tied to specific line numbers for text files.   If you enter a negative point value, the student's grade for this assignment will be deleted (including the comments entered below). Leaving the points value blank, results in a score of zero.

Points:
	  <%= text_field 'grade_entry', 'points', :size => 10  %> / <%= sprintf("%0.1f", @grade_item.points ) %>

General comments:

      <%= text_area 'grade_entry', 'comment', "cols" => 90, "rows" => 12, :class=>'short'  %>

      <%= link_to_function "More room to type", "Form.Element.toggleHeight(this, 'grade_entry_comment'); return false;", :class => 'bottab more' %>

<%= submit_tag "Submit Grade and Comments" %>

  <%= end_form_tag %>

<% end %>

Assignment Journals

<% if @journals.size == 0 %>

This student has not submitted any journal entries.

<% else %>

Reported Time: <%= pluralize(@days,'day') %>, <%= pluralize(@hours,'hour') %>, <%= pluralize(@minutes,'minute') %>.

     <% if @assignment.journal_field.start_time %>Start	<% end %>
     <% if @assignment.journal_field.end_time %>End	<% end %>
     <% if @assignment.journal_field.interruption_time %>Intr.	<% end %>
     <% if @assignment.journal_field.task %>Tasks	<% end %>
     <% if @assignment.journal_field.reason_for_stopping %>Stop Reason	<% end %>
     <% if @assignment.journal_field.completed %>Complete?	<% end %>

   <% count = 0 %>
   <% for journal in @journals %>
	<% count = count.next
	     odd = "odd"
	     odd = "even" if count.even?
	   %>
     <tr class="<%=odd%> hover" id="journal_<%=journal.id%>">
       <% if @assignment.journal_field.start_time %><%=h journal.start_time.to_formatted_s(:short) %>	<% end %>
       <% if @assignment.journal_field.end_time %><%=h journal.end_time.to_formatted_s(:short) %>	<% end %>
       <% if @assignment.journal_field.interruption_time %><%=h journal.interruption_time %>	<% end %>
       <% if @assignment.journal_field.task %>
         <% for task in journal.journal_tasks %>
           <%= task.task %>

         <% end %>

       <% end %>
       <% if @assignment.journal_field.reason_for_stopping %>
         <% for sr in journal.journal_stop_reasons %>
           <%= sr.reason %>

         <% end %>

       <% end %>
       <% if @assignment.journal_field.completed %>
         <%= journal.completed_text %>
       	<% end %>

     <tr class="<%=odd%> hover" id="journal_comments_<%=journal.id%>">
	   Comments:
       <%=(h journal.comments).gsub(/\n/,"
") %>

   <% end %>

<% end %>

Previous Turn-in sets (read-only)

Previous turn-in sets for <%= @student.display_name %>.   By selecting these previous turn-in sets you can view the files and AutoGrade reports to see how students progressed during development.  Any comments entered on previous turn-in sets are ultimately available to students as they browse their own turn-in history.

    #
    Previous Set	View

<% count = @turnins.size + 1 %>
<% for ut in @turnins %>
  <% count = count - 1
     odd = "odd"
     odd = "even" if count.even?
   %>
  <tr class="<%=odd%> hover" id="user_turnin_<%=ut.id%>">
    <%= count %>
    <%=h ut.updated_at.to_formatted_s(:long) %>
      <% if ut.id == @current_turnin.id %>current <%end%>

    <%= link_to 'View', :action => 'view_student', :course => @course, :assignment => @assignment, :id => @student, :ut => ut.id %>

<% end %>

'<%= @assignment.title %>' turn-ins for '<%= @student.display_name %>'

Course: <%= @course.title %> (<%= @course.term.semester%>)

<%= link_to 'Back to all students', :controller => '/instructor/turnins', :course => @course, :assignment => @assignment %>

Turn-in Sets

<% if @display_turnin %>

<% if @display_turnin.id == @current_turnin.id %>

This is the student's most recent turn-in set.

<% else %>

This is NOT the student's final turn-in set.  You most likely do not want to grade these files.

<% end %>

Turn-in set

Originally Submitted: <%= @display_turnin.created_at.to_formatted_s(:friendly_date) %>

Last Updated: <%= @display_turnin.updated_at.to_formatted_s(:friendly_date) %>

Download entire turn-in set: <%= link_to 'as tar file', :action => 'download_set', :id => @display_turnin.id %>

<% if @display_turnin.id == @current_turnin.id && @current_turnin.user_turnin_files.size == 1 && @turnins.size > 1 %>

This student's current turn-in set does not have any files in it, and there are previous turn-in sets.  You may <%= link_to 'rollback to the previous turn-in set', :action => 'rollback', :id => @student %>

<% end %>

<% parent_spaces = Hash.new
   parent_spaces[0.to_s] = 0
   any_java = @display_turnin.any_java_files?
%>

    File
	Date
	<% if @assignment.programming %>
	  Main?
	  <% if any_java %>
	    Clean Java?
	    Instructor
 Override?
	  <% end %>
	<% end %>
	Download
	Review / Comment

<% count = 0 %>
<% previous_tif = nil %>
<% for @tif in @display_turnin.user_turnin_files %>
  <% count = count.next
     odd = "odd"
     odd = "even" if count.even?
   %>
  <tr class="<%=odd%> hover" id="user_turnin_file_<%=@tif.id%>">

    <%

       if @tif.directory_entry
	     parent_spaces[@tif.id.to_s] = parent_spaces[@tif.directory_parent.to_s] + 1
       end %>

    <% spaces = ''
       if @tif.directory_entry
         upper = parent_spaces[@tif.id.to_s] - 1
       else
	     upper = parent_spaces[@tif.directory_parent.to_s]
       end
       1.upto(upper*3) { |i| spaces = " #{spaces}" }
     %>

      <%= spaces %>
      <%= image_tag "#{@tif.icon}", :align => 'absmiddle' %>
      <%=h @tif.filename %>

     <%= @tif.created_at.to_formatted_s(:short) %>
    <% if @assignment.programming %>

      	<% if @tif.main %>
	      <%= image_tag 'accept' %> Current
	    <% elsif @tif.main_candidate && ! (@display_turnin.sealed || @display_turnin.finalized) %>
	      <%= image_tag 'add' %> Candidate
	         </acronym>
	    <% end %>

	   <% if any_java %>

		  <% if @tif.extension.eql?('java') ## will need to expand later w/ other languages %>
		    <% if @tif.gradable %>
		      <%= image_tag 'accept' %>
		    <% else %>
		      <%= image_tag 'cross' %> <%= link_to_function "Details", visual_effect(:toggle_appear, "dirty_details_#{@tif.id}" ) %>
		    <% end %>
		  <% end %>

		  <% if @tif.extension.eql?('java') ## will need to expand later w/ other languages %>
		    <% if ! @tif.gradable %>
		      <% if @tif.gradable_override %>
		        <%= image_tag 'accept' %> Yes
		      <% else %>
		        <%= image_tag 'cross' %> No
		      <% end %>
		    <% end %>
		  <% end %>

	  <% end %>

    <% end %>

     <% if @tif.directory_entry %>
       <s>Download</s>
     <% else %>
       <%= link_to 'Download', :action => 'download_file', :id => @tif.id %>
     <% end %>

      <% if @tif.directory_entry %>

      <% else %>
        <% if @tif.is_text_file? %>
          <%= link_to 'View/Comment', :action => 'view_file', :course => @course, :assignment => @assignment, :student => @student, :id => @tif %>
        <% else %>
          <%= link_to 'Download', :action => 'download_file', :course => @course, :assignment => @assignment, :student => @student, :id => @tif %>
        <% end %>
      <% end %>

  <% if any_java && @tif.extension.eql?('java') && !@tif.gradable %>
    <tr style="display: none;" id="dirty_details_<%=@tif.id%>">

Can not AutoGrade your assignment because '<%= @tif.filename %>' it contains the following disallowed strings.

<%= @tif.gradable_message.to_html %>

  <% end %>

  <% previous_tif = @tif %>
<% end %>

<% else %>

No files submitted

<% end %>

<% if @assignment.auto_grade_setting.io_check? ## Only kind of autograde supported %>

AutoGrade Results

<%= link_to "View I/O Check results for #{@student.display_name}.", :course => @course, :assignment => @assignment, :student => @student, :action => 'view_io_tests' %> From this screen you can also re-run the automatic tests.

<% end %>

Grade

<% unless @grade_item %>

Warning - this assignment is not connected with an entry in the GradeBook.

<% else %>

  <%= start_form_tag :action => 'submit_grade', :id => @student, :course => @course, :assignment => @assignment %>
    <%= error_messages_for 'grade_entry' %>

You can enter general assignment comments here.   You also have the ability to comment on individual files below as well as to make annotations tied to specific line numbers for text files.   If you enter a negative point value, the student's grade for this assignment will be deleted (including the comments entered below). Leaving the points value blank, results in a score of zero.

Points:
	  <%= text_field 'grade_entry', 'points', :size => 10  %> / <%= sprintf("%0.1f", @grade_item.points ) %>

General comments:

      <%= text_area 'grade_entry', 'comment', "cols" => 90, "rows" => 12, :class=>'short'  %>

      <%= link_to_function "More room to type", "Form.Element.toggleHeight(this, 'grade_entry_comment'); return false;", :class => 'bottab more' %>

<%= submit_tag "Submit Grade and Comments" %>

  <%= end_form_tag %>

<% end %>

Assignment Journals

<% if @journals.size == 0 %>

This student has not submitted any journal entries.

<% else %>

Reported Time: <%= pluralize(@days,'day') %>, <%= pluralize(@hours,'hour') %>, <%= pluralize(@minutes,'minute') %>.

     <% if @assignment.journal_field.start_time %>Start	<% end %>
     <% if @assignment.journal_field.end_time %>End	<% end %>
     <% if @assignment.journal_field.interruption_time %>Intr.	<% end %>
     <% if @assignment.journal_field.task %>Tasks	<% end %>
     <% if @assignment.journal_field.reason_for_stopping %>Stop Reason	<% end %>
     <% if @assignment.journal_field.completed %>Complete?	<% end %>

   <% count = 0 %>
   <% for journal in @journals %>
	<% count = count.next
	     odd = "odd"
	     odd = "even" if count.even?
	   %>
     <tr class="<%=odd%> hover" id="journal_<%=journal.id%>">
       <% if @assignment.journal_field.start_time %><%=h journal.start_time.to_formatted_s(:short) %>	<% end %>
       <% if @assignment.journal_field.end_time %><%=h journal.end_time.to_formatted_s(:short) %>	<% end %>
       <% if @assignment.journal_field.interruption_time %><%=h journal.interruption_time %>	<% end %>
       <% if @assignment.journal_field.task %>
         <% for task in journal.journal_tasks %>
           <%= task.task %>

         <% end %>

       <% end %>
       <% if @assignment.journal_field.reason_for_stopping %>
         <% for sr in journal.journal_stop_reasons %>
           <%= sr.reason %>

         <% end %>

       <% end %>
       <% if @assignment.journal_field.completed %>
         <%= journal.completed_text %>
       	<% end %>

     <tr class="<%=odd%> hover" id="journal_comments_<%=journal.id%>">
	   Comments:
       <%=(h journal.comments).gsub(/\n/,"
") %>

   <% end %>

<% end %>

Previous Turn-in sets (read-only)

Previous turn-in sets for <%= @student.display_name %>.   By selecting these previous turn-in sets you can view the files and AutoGrade reports to see how students progressed during development.  Any comments entered on previous turn-in sets are ultimately available to students as they browse their own turn-in history.

    #
    Previous Set	View

<% count = @turnins.size + 1 %>
<% for ut in @turnins %>
  <% count = count - 1
     odd = "odd"
     odd = "even" if count.even?
   %>
  <tr class="<%=odd%> hover" id="user_turnin_<%=ut.id%>">
    <%= count %>
    <%=h ut.updated_at.to_formatted_s(:long) %>
      <% if ut.id == @current_turnin.id %>current <%end%>

    <%= link_to 'View', :action => 'view_student', :course => @course, :assignment => @assignment, :id => @student, :ut => ut.id %>

<% end %>


remove exceptions when footer can't link to app branch

Consultant Manager Beta Copyright 2007 <%= link_to 'Shortepic.com', 'http://www.shortepic.com/' %> All rights reserved

<%= Inflector.humanize(RAILS_ENV) %> environment on <%= $hostname %><%= Pathname.new(RAILS_ROOT).realpath %>

Source <%= link_to($app_branch, $app_branch) unless $app_branch.nil? %>@<%= $app_rev %>

Consultant Manager Beta Copyright 2007 <%= link_to 'Shortepic.com', 'http://www.shortepic.com/' %> All rights reserved

<%= Inflector.humanize(RAILS_ENV) %> environment on <%= $hostname %><%= Pathname.new(RAILS_ROOT).realpath %>

Source <%= link_to $app_branch, $app_branch %>@<%= $app_rev %>


fixed force not skip resolve menu when returning from status page

Loading complete information

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

Source	Content type

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

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

    <% end %>

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

Loading complete information

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

Source	Content type

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

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

    <% end %>

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


WDTK-228 Add nicer alt tag

WDTK-228 Add nicer alt tag

<%= Configuration::site_name %> is another project from the
        <% link_to "http://www.openaustraliafoundation.org.au" do %>
          <%= image_tag "/alavetelitheme/images/openaustralia_foundation.png", :width => "200", :id => "oaf_logo", :alt => "OpenAustralia Foundation logo" %>
        <% end %>

Like it? Then also take a look at

<%= image_tag "/alavetelitheme/images/oa_logo.png"%> <%= link_to "OpenAustralia.org", "http://www.openaustralia.org" %>

<%= image_tag "/alavetelitheme/images/el_logo.png"%> <%= link_to "ElectionLeaflets.org.au", "http://www.electionleaflets.org.au" %>

<%= image_tag "/alavetelitheme/images/pa_logo.png"%> <%= link_to "PlanningAlerts.org.au", "http://www.planningalerts.org.au" %>

        <%= _('Powered by Alaveteli') %>

            <%= link_to _("Contact {{site_name}}", :site_name => site_name), help_contact_url %>

             <a href="https://twitter.com/<%= Configuration::twitter_username %>"><%= _("Follow us on twitter") %>

<%= Configuration::site_name %> is another project from the
        <% link_to "http://www.openaustraliafoundation.org.au" do %>
          <%= image_tag "/alavetelitheme/images/openaustralia_foundation.png", :width => "200", :id => "oaf_logo" %>
        <% end %>

Like it? Then also take a look at

<%= image_tag "/alavetelitheme/images/oa_logo.png"%> <%= link_to "OpenAustralia.org", "http://www.openaustralia.org" %>

<%= image_tag "/alavetelitheme/images/el_logo.png"%> <%= link_to "ElectionLeaflets.org.au", "http://www.electionleaflets.org.au" %>

<%= image_tag "/alavetelitheme/images/pa_logo.png"%> <%= link_to "PlanningAlerts.org.au", "http://www.planningalerts.org.au" %>

        <%= _('Powered by Alaveteli') %>

            <%= link_to _("Contact {{site_name}}", :site_name => site_name), help_contact_url %>

             <a href="https://twitter.com/<%= Configuration::twitter_username %>"><%= _("Follow us on twitter") %>


Fix typo. Thanks Alexandra Mayhew for spotting the mistake

<% @title = "Making requests" %>

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

<%= @title %> #

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

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

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

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

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

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

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

Who can make a request? #

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

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

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

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

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

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

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

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

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

 Those formally subject to the Freedom of Information Act

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

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

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

Why must I keep my request focused?#

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

arguments about your cause

statements that could defame or insult others

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

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

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

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

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

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

Does it cost me anything to make a request?#

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

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

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

Releasing the information is in the general public interest

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

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

How quickly will I get a response? #

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

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

  For various reasons,
  this timeframe can be extended.

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

What if I never get a response?#

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

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

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

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

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

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

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

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

    Statement of IP Principles for Australian Government Agencies

  explicitly encourages reuse.

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

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

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

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

Can I request information about myself? #

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

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

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

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

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

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

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

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

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

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

How do you moderate request annotations? #

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

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

Next, read about your privacy -->

<% @title = "Making requests" %>

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

<%= @title %> #

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

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

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

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

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

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

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

Who can make a request? #

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

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

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

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

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

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

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

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

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

 Those formally subject to the Freedom of Information Act

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

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

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

Why must I keep my request focused?#

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

arguments about your cause

statements that could defame or insult others

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

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

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

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

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

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

Does it cost me anything to make a request?#

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

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

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

Releasing the information is in the general public interest

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

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

How quickly will I get a response? #

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

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

  For various reasons,
  this timeframe can be extended.

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

What if I never get a response?#

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

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

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

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

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

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

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

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

    Statement of IP Principles for Australian Government Agencies

  explicitly encourages reuse.

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

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

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

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

Can I request information about myself? #

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

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

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

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

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

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

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

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

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

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

How do you moderate request annotations? #

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

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

Next, read about your privacy -->


Elimina mensaje sobre estamos trabajando y pone la nota como comentario del codigo ruby.

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

    <%  # Codigo para poner un mensaje popup en todas las paginas.
    =begin

      ACA VA LA NOTA QUE QUEREMOS PONER.

Cerrar

    =end
    %>

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

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

Cerrar

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


ActionItem1003: fix

ActionItem1003: fix

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

<% if !environment.enabled?('disable_asset_enterprises') %>
  <%= render :partial => 'manage_enterprise_fields' %>
<% end %>

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

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

<% if environment.enabled?('disable_asset_enterprises') %>
  <%= render :partial => 'manage_enterprise_fields' %>
<% end %>

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


[Mezuro] changed the path view in the source tree

<%= _('Last Result') %>

    <%= _('Date') %>
    <%= project_result.date %>

    <%= _('Load time') %>
    <%= project_result.formatted_load_time %>

    <%= _('Analysis time') %>
    <%= project_result.formatted_analysis_time %>

<%= _('Source tree') %>

<% if !source_tree.nil? && project.name != source_tree.module.name %>
  <a href="#" class="module-result-link" data-module-name="<%= project_result.source_tree %>">
    <%= project.name %>

  <% split_link = source_tree.module.ancestor_names %>
  <% split_link.each do |link| %>
    <% if split_link.length - 1 != split_link.index(link) %>
      <a href="#" class="module-result-link" data-module-name="<%= link %>">
        <%= link.split(".").last %>

    <% end %>
  <% end %>
  <%= render :partial => 'content_viewer/source_tree', :locals => { :source_tree => source_tree } %>
<% else %>
  <%= render :partial => 'content_viewer/source_tree', :locals => { :source_tree => project_result.source_tree } %>
<% end %>

<%= _('Last Result') %>

    <%= _('Date') %>
    <%= project_result.date %>

    <%= _('Load time') %>
    <%= project_result.formatted_load_time %>

    <%= _('Analysis time') %>
    <%= project_result.formatted_analysis_time %>

<%= _('Source tree') %>

<% if !source_tree.nil? && project.name != source_tree.module.name %>
  <a href="#" class="module-result-link" data-module-name="<%= project_result.source_tree %>">
    <%= project.name %>

  <% split_link = source_tree.module.ancestor_names %>
  <% split_link.each do |link| %>
    <% if split_link.length - 1 != split_link.index(link) %>
      <a href="#" class="module-result-link" data-module-name="<%= link %>">
        <%= link %>

    <% end %>
  <% end %>
  <%= render :partial => 'content_viewer/source_tree', :locals => { :source_tree => source_tree } %>
<% else %>
  <%= render :partial => 'content_viewer/source_tree', :locals => { :source_tree => project_result.source_tree } %>
<% end %>


Only display a link for a metareview to begin if the review for which it is defined was completed. If no review is performed, no metareview should be made either.

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

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

	<%= flash[:notice] %>

<% end %>

Reviews for <%= @assignment.name %>

  <%review_no = 1%>
  <%for review_map in @review_mapping %>
  <% if @assignment.team_assignment
       author = AssignmentTeam.find(review_map.team_id)
     else
       author = AssignmentParticipant.find_by_user_id_and_parent_id(review_map.author_id,@assignment.id)
     end
     if author != nil %>
    <% @review = Review.find_by_review_mapping_id(review_map.id) %>
    <% if (@review)%>

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

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

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

  	  <% else %>

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

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

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

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

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

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

          <% end %>

        <% elsif Review.find_by_review_mapping_id(ror_map.review_mapping_id) != nil %>
              <% if StudentAssignmentHelper::get_current_stage(@assignment.id) != "Complete" %>

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

              <%else%>

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

              <%end%>
        <% else
            ror_no -= 1
           end %>

        <%ror_no += 1
     end %>

  <%end%>

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

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

	<%= flash[:notice] %>

<% end %>

Reviews for <%= @assignment.name %>

  <%review_no = 1%>
  <%for review_map in @review_mapping %>
  <% if @assignment.team_assignment
       author = AssignmentTeam.find(review_map.team_id)
     else
       author = AssignmentParticipant.find_by_user_id_and_parent_id(review_map.author_id,@assignment.id)
     end
     if author != nil %>
    <% @review = Review.find_by_review_mapping_id(review_map.id) %>
    <% if (@review)%>

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

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

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

  	  <% else %>

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

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

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

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

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

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

  <% end %>

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

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

	<%else%>

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

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

<%end%>

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


ActionItem1041: only show the title if there is data

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

<%= display_field(_('Name:'), profile, :name) { |name| link_to name, profile.url  } %>
<%= display_field(_('Gender:'), profile, :sex) { |gender| { 'male' => _('Male'), 'female' => _('Female') }[gender] } %>
<%= display_field(_('Date of birth:'), profile, :birth_date) { |date| show_date(date)  }%>

  <%= _('Contact')%>

<% if profile == user || profile.friends.include?(user) %>
  <%= display_field(_('Address:'), profile, :address) %>
  <%= display_field(_('ZIP code:'), profile, :zip_code) %>
  <%= display_field(_('Contact phone:'), profile, :contact_phone) %>
  <%= display_field(_('e-Mail:'), profile, :email) { |email| link_to_email(email) } %>
<% end %>
<%= display_field(_('Location:'), profile, :location) %>

<% if !(profile.organization.blank? && profile.organization_website.blank?) %>

  <%= _('Work')%>

<% end %>
<%= display_field(_('Organization:'), profile, :organization) %>
<%= display_field(_('Organization website:'), profile, :organization_website) { |url| link_to(url, url) }%>

<% if !profile.enterprises.empty? %>

    <%= __('Enterprises') %>

  <% profile.enterprises.each do |item| %>

      <%= button 'menu-enterprise', item.name, item.url %>

  <% end %>
<% end %>

  <%= _('Network')%>

  <%= link_to  __('Friends') + (' (%d)' % profile.friends.count), { :controller => 'profile', :action => 'friends' } %>
</tr

  <%= link_to __('Communities') + (' (%d)' % profile.communities.count), :controller => "profile", :action => 'communities' %>

<% if !environment.enabled?('disable_categories') && !profile.interests.empty? %>

    <%= _('Interests') %>

  <% profile.interests.each do |item| %>

      <%= link_to item.name, :controller => 'search', :action => 'category_index', :category_path => item.explode_path %>

  <% end %>
<% end %>

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

<%= display_field(_('Name:'), profile, :name) { |name| link_to name, profile.url  } %>
<%= display_field(_('Gender:'), profile, :sex) { |gender| { 'male' => _('Male'), 'female' => _('Female') }[gender] } %>
<%= display_field(_('Date of birth:'), profile, :birth_date) { |date| show_date(date)  }%>

  <%= _('Contact')%>

<% if profile == user || profile.friends.include?(user) %>
  <%= display_field(_('Address:'), profile, :address) %>
  <%= display_field(_('ZIP code:'), profile, :zip_code) %>
  <%= display_field(_('Contact phone:'), profile, :contact_phone) %>
  <%= display_field(_('e-Mail:'), profile, :email) { |email| link_to_email(email) } %>
<% end %>
<%= display_field(_('Location:'), profile, :location) %>

  <%= _('Work')%>

<%= display_field(_('Organization:'), profile, :organization) %>
<%= display_field(_('Organization website:'), profile, :organization_website) { |url| link_to(url, url) }%>

<% if !profile.enterprises.empty? %>

    <%= __('Enterprises') %>

  <% profile.enterprises.each do |item| %>

      <%= button 'menu-enterprise', item.name, item.url %>

  <% end %>
<% end %>

  <%= _('Network')%>

  <%= link_to  __('Friends') + (' (%d)' % profile.friends.count), { :controller => 'profile', :action => 'friends' } %>
</tr

  <%= link_to __('Communities') + (' (%d)' % profile.communities.count), :controller => "profile", :action => 'communities' %>

<% if !environment.enabled?('disable_categories') && !profile.interests.empty? %>

    <%= _('Interests') %>

  <% profile.interests.each do |item| %>

      <%= link_to item.name, :controller => 'search', :action => 'category_index', :category_path => item.explode_path %>

  <% end %>
<% end %>


fix to defects counting view to count open

Defects

      Phase
      <% to_statuses = Status.find_all_by_type_name_and_enabled('TestObservation', true, :order => 'sequence')
        to_statuses.each do |s| %>
          <%= s.value %>
      <% end %>
      Total
      Total open

    <% column_total = Hash.new
       row_total = 0
       row_total_open = 0
       table_total = 0
       table_total_open = 0
       @defect_counts.each_pair do |milestone, h| %>

        <%= link_to_action(milestone, 'open_defects') unless milestone.nil? %>
        <% to_statuses.each do |s| %>
           <%= h[s.id] %>
          <% column_total[s.id] = (column_total[s.id] || 0) + (h[s.id] || 0) %>
          <% row_total = row_total + (h[s.id] || 0) %>
          <% row_total_open = row_total_open + (h[s.id] || 0) if s.incomplete? %>
        <% end %>
        <%= row_total %>
        <%= row_total_open %>
        <% table_total = table_total + row_total %>
        <% row_total = 0 %>
        <% row_total_open = 0 %>
        <% table_total_open = table_total_open + row_total_open %>

    <% end %>

      Total
      <% to_statuses.each do |s| %>
         <%= column_total[s.id] %>
      <% end %>
      <%= table_total %>
      <%= table_total_open %>

Defects

      Phase
      <% to_statuses = Status.find_all_by_type_name_and_enabled('TestObservation', true, :order => 'sequence')
        to_statuses.each do |s| %>
          <%= s.value %>
      <% end %>
      Total
      Total open

    <% column_total = Hash.new
       row_total = 0
       row_total_open = 0
       table_total = 0
       @defect_counts.each_pair do |milestone, h| %>

        <%= link_to_action(milestone, 'open_defects') unless milestone.nil? %>
        <% to_statuses.each do |s| %>
           <%= h[s.id] %>
          <% column_total[s.id] = (column_total[s.id] || 0) + (h[s.id] || 0) %>
          <% row_total = row_total + (h[s.id] || 0) %>
          <% row_total_open = row_total_open + 1 if s.incomplete? %>
        <% end %>
        <%= row_total %>
        <%= row_total_open %>
        <% table_total = table_total + row_total %>
        <% row_total = 0 %>
        <% row_total_open = 0 %>

    <% end %>

      Total
      <% to_statuses.each do |s| %>
         <%= column_total[s.id] %>
      <% end %>
      <%= table_total %>


fixing the Rico.Corner problem. the problem was that the Rico.Corner elements weren't clearing the pagination link float.

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

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

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

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

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

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

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

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


Remove width:100%; from file_cells to attempt to fix IE

<div id="file_cell_<%= project_files.id%>" class="file_cell project-<%= project_files.project_id %>">

  <% if project_files.file_type == ProjectFile::FILETYPE_IMG %>

  <%= tag("img", {:src => "/project_files/thumbnail/#{project_files.id}", :border => 0 } ) %>

  <% else %>

  <%= image_tag(file_type_image(project_files), :border => 0) %>

  <% end %>

  <% filename = (project_files.name.nil? || project_files.name.empty?) ? project_files.filename : project_files.name %>

  <%= link_to( h(filename), {:action => 'download', :id => project_files}) %>

  <%= h project_files.project.name %>

  <%=h tz.utc_to_local(project_files.created_at).strftime("#{current_user.time_format} #{current_user.date_format}") %> - <%= number_to_human_size(project_files.file_size) %>

  <%= link_to _('Show'), :action => 'show', :id => project_files %>
  | <%= link_to_remote _('Edit'),
                                   :url => { :action => 'edit', :id => project_files},
                                   :loading => "Element.show('loading');",
                                   :complete => "Element.hide('loading');"
     %>
  | <%= link_to_remote _('Delete'),
                                   :url => { :action => 'destroy', :id => project_files},
                                   :loading => "Element.show('loading');",
                                   :complete => "Element.hide('loading');",
                                   :confirm => _("Are you sure?")
     %>

<%= draggable_element "file_cell_#{project_files.id}", { :revert => true, :ghosting => false, :handle => "'handle'", :onclick => "function(element){location.href='#{url_for(:action => 'show', :id => project_files)}';}" } %>


Reduce delay in debouncing notification of modified tasks in task list.

<%
task_id      = "task_#{task.id}"
details_id   = "#{task_id}_details"
links = []
task.users.each do |user|
  if user == current_user
    links << link_to(current_user.login, me_url(:action => 'tasks', :id => nil))
  else
    links << link_to_user(user, :action => 'tasks')
  end
end
-%>

      <%= friendly_date(task.updated_at) if task.updated_at? -%>

      <%= "#{links.join(', ')}:" if links.any? -%>

      <% if @upart and @upart.viewed_at? and task.created_at? %>
        <% if @upart.viewed_at < task.created_at - 10.seconds %>
          <%= "(new)"  -%>
        <% elsif @upart.viewed_at < task.updated_at - 10.seconds%>
          <%= "(modified)" -%>
        <% end %>
      <% end %>

      <% if task.description.any? -%>
        <%= link_to_function h(task.name), "Element.toggle('#{details_id}')" %>
      <% else -%>
        <%=h task.name %>
      <% end %>

    <div class='indent task_details' id="<%=details_id%>" style='display: none'>
      <%= task.description_html %>

<%
task_id      = "task_#{task.id}"
details_id   = "#{task_id}_details"
links = []
task.users.each do |user|
  if user == current_user
    links << link_to(current_user.login, me_url(:action => 'tasks', :id => nil))
  else
    links << link_to_user(user, :action => 'tasks')
  end
end
-%>

      <%= friendly_date(task.updated_at) if task.updated_at? -%>

      <%= "#{links.join(', ')}:" if links.any? -%>

      <% if @upart and @upart.viewed_at? and task.created_at? %>
        <% if @upart.viewed_at < task.created_at - 1.minute %>
          <%= "(new)"  -%>
        <% elsif @upart.viewed_at < task.updated_at - 1.minute%>
          <%= "(modified)" -%>
        <% end %>
      <% end %>

      <% if task.description.any? -%>
        <%= link_to_function h(task.name), "Element.toggle('#{details_id}')" %>
      <% else -%>
        <%=h task.name %>
      <% end %>

    <div class='indent task_details' id="<%=details_id%>" style='display: none'>
      <%= task.description_html %>


Say what blank is

Say what blank is

<%= error_messages_for 'public_body' %>

Name

<%= text_field 'public_body', 'name', :size => 60  %>

Short name (only put in abbreviations which are really used, otherwise leave blank. Short or long name is used in the URL - don't worry about breaking URLs through renaming, as the history is used to redirect)

<%= text_field 'public_body', 'short_name', :size => 60  %>

Request email (set to blank (empty string) if can't find an address; to not_apply if FOI no longer / never did apply to authority)

<%= text_field 'public_body', 'request_email', :size => 40  %>

Home page (of whole authority, not just their FOI page; set to blank (empty string) to guess it from the email)

<%= text_field 'public_body', 'home_page', :size => 60  %>

Tags (space separated:
    <% for category, description in PublicBody.categories_by_tag %>
        <% if category != "other" %>
            <%= category %>=<%= description %>;
        <% end %>
    <% end %>
)

<%= text_field 'public_body', 'tag_string', :size => 80  %>

Notes (for users to consider when making FOI requests to the authority)

<%= text_area 'public_body', 'notes', :rows => 4, :cols => 60  %>

Comment for this edit (put URL or other source of new info)

<%= text_area 'public_body', 'last_edit_comment', :rows => 2, :cols => 60  %>

Privacy note: The email addresses are assumed public data,
so we can share the love around later. If somebody wants to give us a
super-secret address (say to bypass spam traps) then we'll have to rethink
this.

<%= error_messages_for 'public_body' %>

Name

<%= text_field 'public_body', 'name', :size => 60  %>

Short name (only put in abbreviations which are really used, otherwise leave blank. Short or long name is used in the URL - don't worry about breaking URLs through renaming, as the history is used to redirect)

<%= text_field 'public_body', 'short_name', :size => 60  %>

Request email (set to blank (empty string) if can't find an address; to not_apply if FOI no longer / never did apply to authority)

<%= text_field 'public_body', 'request_email', :size => 40  %>

Home page (of whole authority, not just their FOI page; set to blank to guess it from the email)

<%= text_field 'public_body', 'home_page', :size => 60  %>

Tags (space separated:
    <% for category, description in PublicBody.categories_by_tag %>
        <% if category != "other" %>
            <%= category %>=<%= description %>;
        <% end %>
    <% end %>
)

<%= text_field 'public_body', 'tag_string', :size => 80  %>

Notes (for users to consider when making FOI requests to the authority)

<%= text_area 'public_body', 'notes', :rows => 4, :cols => 60  %>

Comment for this edit (put URL or other source of new info)

<%= text_area 'public_body', 'last_edit_comment', :rows => 2, :cols => 60  %>

Privacy note: The email addresses are assumed public data,
so we can share the love around later. If somebody wants to give us a
super-secret address (say to bypass spam traps) then we'll have to rethink
this.


Made the hover include the time of day (2:50 PM)

<tr bgcolor="<%= weigh_one_bat_counter.modulo(2).nonzero? ? "#e0e0e0" : "" %>">
<%= weigh_one_bat.band %>
<%= text_field 'weight', weigh_one_bat.id, :size => 4, :autocomplete => 'off' %> g
<%= text_field 'note', weigh_one_bat.id %>

<% if weigh_one_bat.weights.recent.length == 0 %>
No previous weights.
<% else %>
<% for weight in weigh_one_bat.weights.recent %>
<%= weight.weight.to_s + 'g' %>
<%=h nice_date_with_time(weight.date) %>

<% end %>
<% end %>

<%# See http://www.rubyonrails.org/api/classes/ActionView/Helpers/FormOptionsHelper.html#M000404 %>
<%= select 'bat_cage', weigh_one_bat.id.to_s , @cages.collect {|c| [c.name , c.id] }, :selected => weigh_one_bat.cage.id  %>
<%= text_field 'cage_change_note', weigh_one_bat.id %>

<tr bgcolor="<%= weigh_one_bat_counter.modulo(2).nonzero? ? "#e0e0e0" : "" %>">
<%= weigh_one_bat.band %>
<%= text_field 'weight', weigh_one_bat.id, :size => 4, :autocomplete => 'off' %> g
<%= text_field 'note', weigh_one_bat.id %>

<% if weigh_one_bat.weights.recent.length == 0 %>
No previous weights.
<% else %>
<% for weight in weigh_one_bat.weights.recent %>
<%= weight.weight.to_s + 'g' %>
<%=h nice_date(weight.date) %>

<% end %>
<% end %>

<%# See http://www.rubyonrails.org/api/classes/ActionView/Helpers/FormOptionsHelper.html#M000404 %>
<%= select 'bat_cage', weigh_one_bat.id.to_s , @cages.collect {|c| [c.name , c.id] }, :selected => weigh_one_bat.cage.id  %>
<%= text_field 'cage_change_note', weigh_one_bat.id %>


accepance typo

accepance typo

<% @accepted = Acceptance.find_all_by_project_id_and_support_coach_id(project.id, @viewer.id) %>

<% if @accepted.length > 0 %>

You are coaching the following people:

<%= sortable_table %>

            <%= th 'name' %>
            <%= th 'campus' %>
            <%= th 'email' %>
            <%= th 'permanent phone' %>
            <%= th 'local phone' %>

            <%= th 'support claimed', 'currency' %>
            <%= th 'support received', 'currency' %>

          <% for acceptance in @accepted %>
            <% viewer = acceptance.viewer %>

              <%=h viewer.name %>
              <%=h viewer.person.try(:primary_campus_involvement).try(:campus).try(:abbrv) %>
              <%=h viewer.person.email %>
              <%=h viewer.person.person_phone %>
              <%=h viewer.person.person_local_phone %>

              <%= format_currency acceptance.support_claimed %>
<%= format_date acceptance.support_claimed_updated_at %>
              <%= format_currency acceptance.donations_total %>
              <%= costing_link acceptance.id %> <%= profile_notes_link acceptance.id, acceptance.profile_notes.length %> <%= link_to("dashboard", profile_path(acceptance.id)) %>

        <% end %>

<% else %>
<% end %>

<% @accepted = Acceptance.find_all_by_project_id_and_support_coach_id(project.id, @viewer.id) %>

<% if @accepted.length > 0 %>

You are coaching the following people:

<%= sortable_table %>

            <%= th 'name' %>
            <%= th 'campus' %>
            <%= th 'email' %>
            <%= th 'permanent phone' %>
            <%= th 'local phone' %>

            <%= th 'support claimed', 'currency' %>
            <%= th 'support received', 'currency' %>

          <% for acceptance in @accepted %>
            <% viewer = acceptance.viewer %>

              <%=h viewer.name %>
              <%=h viewer.person.try(:primary_campus_involvement).try(:campus).try(:abbrv) %>
              <%=h viewer.person.email %>
              <%=h viewer.person.person_phone %>
              <%=h viewer.person.person_local_phone %>

              <%= format_currency acceptance.support_claimed %>
<%= format_date acceptance.support_claimed_updated_at %>
              <%= format_currency acceptance.donations_total %>
              <%= costing_link acceptance.id %> <%= profile_notes_link acceptance.id, acceptance.profile_notes.length %> <%= link_to("dashboard", profile_path(accepance.id)) %>

        <% end %>

<% else %>
<% end %>


added pre block to command output on the frontend to preserve spacing provided by the agent

<% if @commands == false or @output == false%>

Agent is not listening

The server had trouble connecting to the agent. Please verify that the agent is listening on the port set in the agent settings

<%else%>

	<%if params[:command].nil?%>

Available Commands for <%=@agent.name%>

		<% for command in @commands do%>

<%=link_to(command, :command => command, :action => 'commands')%>

		<%end%>

	<%else%>

Output of Command <%=params[:command]%>

<%=link_to("Back to Commands", :action => 'commands')%>

		<%= sanitize @output.gsub('\n', '
'), :tags => %w(br)%>

		<%end%>
<%end%>


Removed add site link for now

Removed add site link for now

git-svn-id: 4158f9403e16ea83fe8a6e07a45f1f3b56a747ab@1583 567b1171-46fb-0310-a4c9-b4bef9110e78

<% content_for :action_nav do %>

<%= link_to "Create new article", :controller => 'articles', :action => "new" %>

<%= link_to "Create new section", :controller => 'sections' %>

  <% if @articles.any? -%>

<%= link_to "Moderate Comments",  :controller => 'comments' %>

  <% end -%>

<% end %>

  <%= link_to 'Subscribe', overview_url, :class => 'feed right' %>

Today <%= todays_short_date %>

  <%= render_events @todays_events %>

Yesterday <%= yesterdays_short_date %>

  <%= render_events @yesterdays_events %>

Before <%= yesterdays_short_date %>

  <%= render_events @events, true %>

<% content_for :sidebar do %>
  <% if @articles.any? -%>

Comments awaiting your approval

    <% @articles.each do |article, count| -%>

<%= link_to "(#{count}) #{h(article.title)}", :controller => 'articles', :action => 'comments', :id => article.id, :filter => :unapproved %>

    <% end -%>

  <% end -%>

Recent activity

      <% for user in @users %>

<%= avatar_for user %><%= link_to who(user.login), :controller => 'users', :action => 'show', :id => user %>
 showed up <%= distance_of_time_in_words_to_now(user.updated_at) %> ago

      <% end %>

<% end %>

<% content_for :action_nav do %>

<%= link_to "Create new article", :controller => 'articles', :action => "new" %>

<%= link_to "Create new section", :controller => 'sections' %>

<%= link_to "Create new site", :controller => 'account' %>

  <% if @articles.any? -%>

<%= link_to "Moderate Comments",  :controller => 'comments' %>

  <% end -%>

<% end %>

  <%= link_to 'Subscribe', overview_url, :class => 'feed right' %>

Today <%= todays_short_date %>

  <%= render_events @todays_events %>

Yesterday <%= yesterdays_short_date %>

  <%= render_events @yesterdays_events %>

Before <%= yesterdays_short_date %>

  <%= render_events @events, true %>

<% content_for :sidebar do %>
  <% if @articles.any? -%>

Comments awaiting your approval

    <% @articles.each do |article, count| -%>

<%= link_to "(#{count}) #{h(article.title)}", :controller => 'articles', :action => 'comments', :id => article.id, :filter => :unapproved %>

    <% end -%>

  <% end -%>

Recent activity

      <% for user in @users %>

<%= avatar_for user %><%= link_to who(user.login), :controller => 'users', :action => 'show', :id => user %>
 showed up <%= distance_of_time_in_words_to_now(user.updated_at) %> ago

      <% end %>

<% end %>


fixed type on asset history partial (for real this time)

    version
    updated on

<% @asset.versions.reverse.each do |version| -%>
  <tr class="<%= cycle('shade-odd', 'shade-even') %>" id="asset_<%= @asset.id %>_version_<%= version.version %>">

      <% if @current_user.may?(:edit, @page) and version.version < @asset.version -%>
        <%= destroy_version_link(version) %>
      <% end -%>

    <%= link_to_asset(version, :small, :crop! => '32x32') %>
    <%= link_to "version #{version.version}", version.url %>
    <%= full_time(version.updated_at) %>

<% end -%>

    version
    updated on

<% @asset.versions.reverse.each do |version| -%>
  <tr class="<%= cycle('shade-odd', 'shade-even') %>" id="asset_<%= @asset.id %>_version_<%= version.version %>">

      <% if @current_user.may?(:edit, @page) and version.version < @asset.version -%>
        <%= destroy_version_link(version) %>
      <% end -%>

    <%= link_to_asset(version.thumbnails, :small, :crop! => '32x32') %>
    <%= link_to "version #{version.version}", version.url %>
    <%= full_time(version.updated_at) %>

<% end -%>


use utopian methods

use utopian methods

<% if @accepted.length > 0 %>
    <form>

<%= sortable_table %>

        <%= th 'name' %>
        <%= th 'campus' %>
        <%= th 'project' %>
        <% if @full_view || @restricted_full_view %>
            <%= th 'appln (entire)' %>
        <% end %>
        <%= th 'appln (summary)' %>
        <%= th 'accepted at', 'str', true %>
        <% if @full_view || @restricted_full_view %>
            <%= th 'support claimed', 'currency' %>
            <%= th 'support recvd', 'currency' %>
            <%= th 'support goal', 'currency'%>
            <%= th 'support coach', 'dropdown' %>
        <% end %>
        <%= th 'intern' %>
        <%= th 'other' %>

        <% for acceptance in @accepted %>
          <%
          if defined?(project).nil? || acceptance.project != project
            project = acceptance.project
            @viewer.set_project project

            @full_view = @viewer.fullview?
            @cache = ProfileDonation.cache project.id
          end
          %>

          <tr id="row_<%=acceptance.id%>">
	    <% appln = acceptance.appln; viewer = acceptance.viewer %>
	    <% viewer = appln.viewer if viewer.nil? && appln %>
	    <% if viewer.nil? %>
	      missing viewer for acceptance <%= acceptance.id %>
            <% else %>
              <%=h viewer.name %>
              <% if viewer.person %>
	        <%= h viewer.person.campus_abbrev %>
		  <% else %>
		    no person for viewer '<%= viewer.username %>' id <%= viewer.id %>
		  <% end %>

	    <% end %>
            <%= acceptance.project.title %>
            <% if @full_view %>

                  <%= view_entire_link acceptance.id %>

            <% elsif @restricted_full_view %>

            <% end %>

              <%= view_summary_link acceptance.id %>

            <%= format_date(acceptance.accepted_at) %>
            <% if @full_view %>
                <%= format_currency acceptance.support_claimed %>
<%= format_date acceptance.support_claimed_updated_at %>
                <%= format_currency acceptance.donations_total(:cache => @cache) %>
                <%= format_currency acceptance.cached_costing_total %>

                    <% if @viewer.can_modify_profile_in_project project %>
                        <% name = "support_coach_#{acceptance.id}" %>
                        <% support_coach_id = acceptance.support_coach.nil? ? '' : acceptance.support_coach_id %>
                        <%= render :partial => 'support_coach_choice', :locals => { :name => name,
                                                :current => support_coach_id, :project => project } %>

                  	    <%= observe_field name,
                                   :url => {
                                      :controller => :acceptance,
                                      :action => :update_support_coach,
                                      :id => acceptance.id,
                                      :update => "support_coach_#{acceptance.id}",
                                      :profile_id => acceptance.id,
                                   },
                              	:complete => visual_effect(:highlight, "row_#{acceptance.id}"),
                                  :with =>  "'support_coach_id='+escape($('#{name}').value)"
                         %>
                    <% else %>
                        <%= acceptance.support_coach_str
                          %>
                    <% end %>

            <% elsif @restricted_full_view %>

            <% end %>

            <%= render :partial => 'accepted_pile_table_intern', :object => acceptance %>

                <% if @viewer.is_eventgroup_coordinator?(@eg) %>
                  <% name = "acceptance_#{acceptance.id}" %>

                  <%= withdraw_move_link acceptance.id %>

                  <%= manual_donations_link acceptance.motivation_code %>

                  <%= costing_link acceptance.id %>
                <% else %>
                  <% if acceptance.as_intern? %>intern<% end %>

                  <% if @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_project_administrator? %>

                      <%= costing_link acceptance.id %>
                  <% end %>
                <% end %>

		<% if @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_processor? %>
		  <% if appln %>
                    <%= edit_always_editable_link acceptance.id %>
		  <% else %>
		    Error: no appln for acceptance <%= acceptance.id %>
		  <% end %>
                <% end %>

                <%= travel_link acceptance.id %>
                <%= profile_notes_link acceptance.id, acceptance.profile_notes.length %>

        <% end %>

  </form>
<% else %>

empty

<% end %>

<% if @accepted.length > 0 %>
    <form>

<%= sortable_table %>

        <%= th 'name' %>
        <%= th 'campus' %>
        <%= th 'project' %>
        <% if @full_view || @restricted_full_view %>
            <%= th 'appln (entire)' %>
        <% end %>
        <%= th 'appln (summary)' %>
        <%= th 'accepted at', 'str', true %>
        <% if @full_view || @restricted_full_view %>
            <%= th 'support claimed', 'currency' %>
            <%= th 'support recvd', 'currency' %>
            <%= th 'support goal', 'currency'%>
            <%= th 'support coach', 'dropdown' %>
        <% end %>
        <%= th 'intern' %>
        <%= th 'other' %>

        <% for acceptance in @accepted %>
          <%
          if defined?(project).nil? || acceptance.project != project
            project = acceptance.project
            @viewer.set_project project

            @full_view = @viewer.fullview?
            @cache = ProfileDonation.cache project.id
          end
          %>

          <tr id="row_<%=acceptance.id%>">
	    <% appln = acceptance.appln; viewer = acceptance.viewer %>
	    <% viewer = appln.viewer if viewer.nil? && appln %>
	    <% if viewer.nil? %>
	      missing viewer for acceptance <%= acceptance.id %>
            <% else %>
              <%=h viewer.name %>
              <% if viewer.person %>
	        <%= h viewer.person.campus_shortDesc %>
		  <% else %>
		    no person for viewer '<%= viewer.viewer_userID %>' id <%= viewer.id %>
		  <% end %>

	    <% end %>
            <%= acceptance.project.title %>
            <% if @full_view %>

                  <%= view_entire_link acceptance.id %>

            <% elsif @restricted_full_view %>

            <% end %>

              <%= view_summary_link acceptance.id %>

            <%= format_date(acceptance.accepted_at) %>
            <% if @full_view %>
                <%= format_currency acceptance.support_claimed %>
<%= format_date acceptance.support_claimed_updated_at %>
                <%= format_currency acceptance.donations_total(:cache => @cache) %>
                <%= format_currency acceptance.cached_costing_total %>

                    <% if @viewer.can_modify_profile_in_project project %>
                        <% name = "support_coach_#{acceptance.id}" %>
                        <% support_coach_id = acceptance.support_coach.nil? ? '' : acceptance.support_coach_id %>
                        <%= render :partial => 'support_coach_choice', :locals => { :name => name,
                                                :current => support_coach_id, :project => project } %>

                  	    <%= observe_field name,
                                   :url => {
                                      :controller => :acceptance,
                                      :action => :update_support_coach,
                                      :id => acceptance.id,
                                      :update => "support_coach_#{acceptance.id}",
                                      :profile_id => acceptance.id,
                                   },
                              	:complete => visual_effect(:highlight, "row_#{acceptance.id}"),
                                  :with =>  "'support_coach_id='+escape($('#{name}').value)"
                         %>
                    <% else %>
                        <%= acceptance.support_coach_str
                          %>
                    <% end %>

            <% elsif @restricted_full_view %>

            <% end %>

            <%= render :partial => 'accepted_pile_table_intern', :object => acceptance %>

                <% if @viewer.is_eventgroup_coordinator?(@eg) %>
                  <% name = "acceptance_#{acceptance.id}" %>

                  <%= withdraw_move_link acceptance.id %>

                  <%= manual_donations_link acceptance.motivation_code %>

                  <%= costing_link acceptance.id %>
                <% else %>
                  <% if acceptance.as_intern? %>intern<% end %>

                  <% if @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_project_administrator? %>

                      <%= costing_link acceptance.id %>
                  <% end %>
                <% end %>

		<% if @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_processor? %>
		  <% if appln %>
                    <%= edit_always_editable_link acceptance.id %>
		  <% else %>
		    Error: no appln for acceptance <%= acceptance.id %>
		  <% end %>
                <% end %>

                <%= travel_link acceptance.id %>
                <%= profile_notes_link acceptance.id, acceptance.profile_notes.length %>

        <% end %>

  </form>
<% else %>

empty

<% end %>


Updated to footer of upcoming notice

Updated to footer of upcoming notice

<% for event in @upcoming_events -%>

Upcoming event: <%= link_to event.title, :controller => 'events', :action => 'show', :id => event-%>

<%=event.agenda-%>

  <%=event.date.strftime("%d %b, %Y")-%><%=" | " if event.venue-%>
  <%= link_to "Venue", :controller => "events", :action => "show", :id => event.venue-%><%=" | " if event.upcoming_url and event.upcoming_url != ""-%>
  <%= link_to "Y! Upcoming", event.upcoming_url if (event.upcoming_url and event.upcoming_url != "")-%>

<% end -%>

<% for event in @upcoming_events -%>

Upcoming event: <%= link_to event.title, :controller => 'events', :action => 'show', :id => event-%>

<%=event.agenda-%>

  <%= link_to "More info", :controller => 'events', :action => 'show', :id => event -%> | Y! Upcoming | Venue
<% end -%>


Fixed premature fetching of node info after a move


link-list-block-view: fix default target value

<%= _('Links') %>

<%= _('Icon') %>	<%= _('Name') %>	<%= _('Address') %>	<%= _('Target') %>

  <% for link in @block.links do %>

         <%= icon_selector(link['icon']) %>

      <%= text_field_tag 'block[links][][name]', link[:name], :class => 'link-name', :maxlength => 20 %>
      <%= text_field_tag 'block[links][][address]', link[:address], :class => 'link-address' %>

        <%= select_tag('block[links][][target]', options_for_select(LinkListBlock::TARGET_OPTIONS, link[:target])) %>

  <% end %>

<%= link_to_function(_('New link'), nil, :class => 'button icon-add with-text') do |page|
    page.insert_html :bottom, 'links', content_tag('tr',
      content_tag('td', icon_selector('ok')) +
      content_tag('td', text_field_tag('block[links][][name]', '', :maxlength => 20)) +
      content_tag('td', text_field_tag('block[links][][address]', nil, :class => 'link-address'), :class => 'cel-address') +
      content_tag('td', select_tag('block[links][][target]',
options_for_select(LinkListBlock::TARGET_OPTIONS, '_self')))
    ) +
    javascript_tag("$('edit-link-list-block').scrollTop = $('edit-link-list-block').scrollHeight")
end %>

<%= _('Links') %>

<%= _('Icon') %>	<%= _('Name') %>	<%= _('Address') %>	<%= _('Target') %>

  <% for link in @block.links do %>

         <%= icon_selector(link['icon']) %>

      <%= text_field_tag 'block[links][][name]', link[:name], :class => 'link-name', :maxlength => 20 %>
      <%= text_field_tag 'block[links][][address]', link[:address], :class => 'link-address' %>

        <%= select_tag('block[links][][target]', options_for_select(LinkListBlock::TARGET_OPTIONS, link[:target])) %>

  <% end %>

<%= link_to_function(_('New link'), nil, :class => 'button icon-add with-text') do |page|
    page.insert_html :bottom, 'links', content_tag('tr',
      content_tag('td', icon_selector('ok')) +
      content_tag('td', text_field_tag('block[links][][name]', '', :maxlength => 20)) +
      content_tag('td', text_field_tag('block[links][][address]', nil, :class => 'link-address'), :class => 'cel-address') +
      content_tag('td', select_tag('block[links][][target]',
options_for_select(LinkListBlock::TARGET_OPTIONS, link[:target])))
    ) +
    javascript_tag("$('edit-link-list-block').scrollTop = $('edit-link-list-block').scrollHeight")
end %>


-Switch from transitional to strict DTD
-Replacement of window.location to window.location.href.

git-svn-id: 9512a22ec92b52636bbab2193a3e38f5e8e93632@24977 280ce282-5f28-0410-b095-e054cb237d46

<% # SPROUTCORE DEFAULT INDEX TEMPLATE
   # This template provide provides a basic wrapper for a SproutCore client.
   # Most of the time, it will be sufficient for your own needs.  However, if
   # you need to create your own template, you can do so by copying this file
   # into your client, naming it 'index.rhtml' and then adding the options
   # :index => 'index' to your client declaration in routes.rb.
   #
   # See the comments in this file for more information on what you can
   # change.
-%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<%  # @title will be defined if you passed :title in routes.rb -%>
    <title><%= (@title.to_s || bundle_name.to_s || '').capitalize %></title>
<% #
	 # This line should appear in your head area to include the stylesheets
	 # generated by your client.  If you need to include your own
	 # stylesheets, you don't need to change it here.  Instead, use the
	 # :requires option in routes.rb.
-%>
    <%= stylesheets_for_client %>
<%= @content_for_page_styles %>
  </head>
  <body class="<%= @theme || 'sc-theme' %> focus">
<% #
   # This is where you root body element will appear.  To cause your
   # content to appear here, just declare content_for('body') in one of
   # your partials.
-%>
    <!-- Main Page Body -->
    <%= @content_for_body %>

<% #
   # This is where the resources you delcare will appear.  You must
   # include the following three lines verbatim for the resources you
   # declare to be properly used.
-%>
    <!-- Resources to be removed from DOM on page load -->
    <div id="resources" style="display:none; visibility: hidden;">
      <%= @content_for_resources -%>
    </div>

<% #
   # This line should appear at the bottom of your page to include your
   # generated JavaScript and any libraries you reference.  If you need
   # to include other javascripts, add them to the :requires option of
   # your client in routes.rb instead of changing it here.
-%>
    <!-- Include Site Javascript -->
    <%= javascripts_for_client %>
<%= @content_for_page_javascript %>

<% #
   # The following lines to the closing body tag must be included at the
   # very end of your file.  This will actually setup the JavaScript
   # views on your page and register SproutCore to start on page load.
-%>
<!-- Render Page Views -->
<%= render_page_views %>

    <!-- Start SproutCore on Page Load -->
    <script type="text/javascript">window.onload = SC.didLoad;</script>
<%= @content_for_final %>
	</body>
</html>

<% # SPROUTCORE DEFAULT INDEX TEMPLATE
   # This template provide provides a basic wrapper for a SproutCore client.
   # Most of the time, it will be sufficient for your own needs.  However, if
   # you need to create your own template, you can do so by copying this file
   # into your client, naming it 'index.rhtml' and then adding the options
   # :index => 'index' to your client declaration in routes.rb.
   #
   # See the comments in this file for more information on what you can
   # change.
-%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<%  # @title will be defined if you passed :title in routes.rb -%>
    <title><%= (@title.to_s || bundle_name.to_s || '').capitalize %></title>
<% #
	 # This line should appear in your head area to include the stylesheets
	 # generated by your client.  If you need to include your own
	 # stylesheets, you don't need to change it here.  Instead, use the
	 # :requires option in routes.rb.
-%>
    <%= stylesheets_for_client %>
<%= @content_for_page_styles %>
  </head>
  <body class="<%= @theme || 'sc-theme' %> focus">
<% #
   # This is where you root body element will appear.  To cause your
   # content to appear here, just declare content_for('body') in one of
   # your partials.
-%>
    <!-- Main Page Body -->
    <%= @content_for_body %>

<% #
   # This is where the resources you delcare will appear.  You must
   # include the following three lines verbatim for the resources you
   # declare to be properly used.
-%>
    <!-- Resources to be removed from DOM on page load -->
    <div id="resources" style="display:none; visibility: hidden;">
      <%= @content_for_resources -%>
    </div>

<% #
   # This line should appear at the bottom of your page to include your
   # generated JavaScript and any libraries you reference.  If you need
   # to include other javascripts, add them to the :requires option of
   # your client in routes.rb instead of changing it here.
-%>
    <!-- Include Site Javascript -->
    <%= javascripts_for_client %>
<%= @content_for_page_javascript %>

<% #
   # The following lines to the closing body tag must be included at the
   # very end of your file.  This will actually setup the JavaScript
   # views on your page and register SproutCore to start on page load.
-%>
<!-- Render Page Views -->
<%= render_page_views %>

    <!-- Start SproutCore on Page Load -->
    <script type="text/javascript">window.onload = SC.didLoad;</script>
<%= @content_for_final %>
	</body>
</html>