Added join mailing list link.

Added join mailing list link.

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

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

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

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

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

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

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

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

								Observations:

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

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

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

								Species Lists:

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

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

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

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

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

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

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

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

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

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

								  Join Mailing List

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

										Admin:

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

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

									<% end %>
								<% end %>

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

									Powered by:

									Ruby on Rails

									Preferred browser:

									FireFox

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

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

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

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

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

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

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

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

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

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

								Observations:

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

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

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

								Species Lists:

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

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

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

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

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

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

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

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

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

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

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

										Admin:

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

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

									<% end %>
								<% end %>

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

									Powered by:

									Ruby on Rails

									Preferred browser:

									FireFox

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

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


Fix link

Fix link

<% @title = "About" %>

Contact us

If your question isn't answered here, or you just wanted to let us know
something about the site, contact us.

Introduction to WhatDoTheyKnow #

What is WhatDoTheyKnow for? #

To help you find out inside information about what the UK government
is doing.

How does the site work? #

You choose the public authority that you would like information from, then
write a brief note describing what you want to know. We then send your request
to the public authority. Any response they make is automatically published on the
website for you and anyone else to find and read.

Why would I bother to do this? #

You pay taxes, and then government does things with the money. All sorts of
things that affect your life, from healthcare through to national defence. Some
it does badly, some it does well. The more we find out about how government
works, the better able we are to make suggestions to improve the things that
are done badly, and to celebrate the things that are done well.

Why would the public authority bother to reply? #

Under Freedom of Information (FOI) law, they have to respond.

Who makes it? #

WhatDoTheyKnow is created and run by mySociety,
and was initially funded by the JRSST Charitable Trust. mySociety is a project of the
registered charity UK Citizens Online Democracy.
If you like what we're doing, then you can
make a donation.

Making requests #

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

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 of public authority to the site, for example all
primary care trusts or all schools, then please
edit this shared spreadsheet (Google account required).

How quickly will I get a response? #

By law public authorities must respond "promptly", and in any event not later
than 20 working days after receiving your request. The date of that hard limit
is shown on the page for your request. You will be emailed if this date goes by
without a response, so you can send the public authority another note to remind
them that they are breaking the law. Note: If you had to
clarify your request, the clock starts from that date, instead of the date they
received your initial request.

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?'.

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

Have a look at the
access to official information
pages on the Information Commisioner's website.

Can I request information about myself? #

No. Requests made using WhatDoTheyKnow are public, made under the Freedom of
Information Act, and cannot help you find information about a private
individual.

If you would like to know what information a public
authority holds about yourself, you should make a "Subject Access Request" in
private using Data Protection law.  The leaflet Subject
Access - A guide for data subjects (on the Information Commisioner's
website) explains how to do this.

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

WhatDoTheyKnow 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 FOI requests in secret, then contact us.

Why can I only request information about the environment from some authorities? #

Some public authorities, such as South East Water,
don't come under the Freedom of Information Act, but do come under another law called
the Environmental Information Regulations (EIR). It's a very similar law, so you make a request
to them using WhatDoTheyKnow in just the same way as an FOI request. The only difference
is that on the page where you write you request, it reminds you that you can only
request "environmental information" and tells you what that means. It is quite broad.

So can I request information using EIR from other authorities? #

Yes, just make a Freedom of Information (FOI) request as normal. The
authority has a duty to work out if the Environmental Information Regulations
(EIR) is the more appropriate legislation to reply under.

Privacy questions #

Who gets to see my email address? #

We will not disclose your email address to anyone, including the public
authority you are sending a request to, unless we are obliged to by law,
or you ask us to. If you send a message to another user on the site, then
it will reveal your email address to them. You will be told that this
is going to happen.

Will you send nasty, brutish spam to my email address? #

Nope. After you sign up to WhatDoTheyKnow we will only send you emails
relating to a request you made, an email alert that you have signed up for,
or for other reasons that you specifically authorise. We will never give or
sell your email addresses to anyone else, unless we are obliged to by law, or
you ask us to.

Why will my name appear publically on the site? #

It means that someone researching the same area can get in touch with you,
and maybe give you more information or ideas relating to your request.  Also,
we're going to publish the response with the name of the civil servant who
wrote it, so it seems only fair that your name should be public too!
Therefore, we encourage you to use your real name, but you may use a pseudonym
if you would like to be anonymous.

So I can make an FOI request using a pseudonym? #

It is good practice for the public authority to reply to an anonymous request,
except in special circumstances such as if they suspect you of making vexatious
requests. See Freedom of Information Good Practice Guidance No 6
for details.  You should refer to this if a public authority attempts to refuse
a request because you used a pseudonym.

However, there are good reasons to use your real name: see the previous
question.  If nothing else, it avoids the risk of an authority being picky,
ignoring the guidance and refusing your request.

They've asked for my postal address! #

If a public authority asks you for your full, physical address, reply to them saying
that section 8.1.b of the FOI Act asks for an "address for correspondence",
and that the email address you are using is sufficient.

The Ministry of Justice has guidance
on this –
"As well as hard copy written correspondence, requests that are
transmitted electronically (for example, in emails) are acceptable
... If a request is received by email and no postal address is given, the email
address should be treated as the return address."

As if that isn't enough, the Information Commissioner's
Hints for Practitioners say
"Any correspondence could include a request for information. If it is written (this includes e-mail), legible, gives the name of the applicant, an address for reply (which could be electronic), and includes a description of the information required, then it will fall within the scope of the legislation."

No no, they need a postal address to send a paper response! #

If an authority only has a paper copy of the information that you want,
they may ask you for a postal address. To start with, try persuading them
to scan in the documents for you. You can even offer to gift them a scanner, which in that particular case
embarrassed the authority into finding one they had already.

If that doesn't work, and you want to provide your postal address privately
in order to receive the documents, then please contact
us.

How do you moderate request annotations? #

Annotations on WhatDoTheyKnow 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.

FOI officer questions #

I just got here from bottom of an FOI request, what is going on? #

WhatDoTheyKnow is a service run by a charity. It helps ordinary members
of the public make FOI requests, and easily track and share the responses.

The FOI request you received was made by someone using WhatDoTheyKnow. You can
simply reply to the request as you would any other request from an individual.
The only difference is that your response will be automatically published on
the Internet.

If you have privacy or other concerns, please read the answers below.
You might also like to read this page from the top to find out more about what
the site does from the point of view of a user. You can also search the
site to find the authority that you work for, and view the status of
any requests made using the site.

Finally, we welcome comments and
thoughts from FOI officers, please get in touch.

Why are you publishing responses to FOI requests? #

We think there are lots of benefits. Most importantly it will encourage the
public to be more interested and involved in the work of government. We
also hope that it will reduce the number of duplicate requests on any
subject that a public body will receive. Given that Freedom of Information
responses contain public information, which anybody could easily request
again from the public authority, we think there should be no reason not to
publish it widely.

Are the people making requests real people? #

Yes. For the purposes of keeping track of responses we use
computer-generated email addresses for each request. However, before
they can send a request, each user must register on the site with a
unique email address that we then verify. You can search this site and
find a page listing all requests that each person has made.

An email isn't a sufficient address for an FOI request! #

Yes it is. This
letter from the ICO to Rother District Council gives guidance on the matter, specifically
in the context of requests made via WhatDoTheyKnow.

Aren't you making lots of vexatious requests? #

WhatDoTheyKnow is not making any requests. We are sending requests on
behalf of our users, who are real people making the requests.

Look at it like this - if lots of different people made requests from
different Hotmail email addresses, then you would not think that Microsoft were
making vexatious requests. It is exactly the same if lots of requests are made
via WhatDoTheyKnow. Moreover, since all requests are public it is much easier
for you to see if one of our users is making vexatious requests, and for us to
block them when that happens.

If that isn't enough for you, the
letter from the ICO to Rother District Council gives some guidance on the matter.

Isn't it a problem that you publish the names of civil servants and the text of emails? #

Officers or servants responding to requests are doing so on behalf of the
public as part of their job, and we publish their response on that
basis. Usually the names and phone numbers of FOI officers are already
available on authority websites. We also encourage our users to give their real
name too, so it is fair both ways.

Do you publish email addresses or mobile phone numbers? #

We automatically remove email addresses and labelled mobile phone numbers
that are in the email part of responses from public authorities. Please
contact us if we've missed one. We don't currently
remove these from attachments,
such as Word documents.

Can you take down private information about me? #

If you see any information on the site which you'd like us to remove or
hide, then please let us know. We'll then
remove it, provided it is genuinely private information.

Credit where credit is due #

Which people made WhatDoTheyKnow? #

Oh, nearly everyone (and maybe you too)!

    Heather Brooke
    (vampy!) has
    been pushing the idea of a UK FOI archive for years now.

    Both Phil Rodgers and Francis Irving
    entered it in a mySociety competition for ideas for public interest websites to build.

    It won,
    and then Chris Lightfoot (RIP :()
    thought up the wheeze of intercepting email responses to requests and
    automatically publishing them.

    Tom Steinberg got the cash to pay for the site from
    a dead chocolate mogul (thank you!) ...

    ... so that Francis Irving, Angie Ahl, Tommy Martin, Louise Crow, Matthew Somerville
    and Tom Steinberg could do the complex mixture of design and coding to build
    what you see today.

    Thanks particularly to Julian Todd (great blog!),
    Francis Davey, and Etienne Pollard for using the site early on and giving
    feedback (and/or legal advice!), and also to all our other users and
    testers.

    Lots of people have been looking up FOI email addresses, and a few
    volunteering to run the site - most especially Adam McGreggor, Alex
    Skene, John Cross and Tony Bowden.

Finally we couldn't do any of this without those
crazy people who volunteer,
amongst many other things, to do the accounts and fill in our VAT return.

You're all stars.


changes made to correct typo

changes made to correct typo

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

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

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

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

                        Question
                        Score
                        Comment

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

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

                    <%end%>

                    Additional comment : <%=review.additional_comment%>

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

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

Back

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

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

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

                        Question
                        Score
                        Comment

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

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

                    <%end%>

                    Additional comment : <%=review.additional_comment%>

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

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

Back


changes made to display

changes made to display

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

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

<%if @assignment.wiki_type.name == "No"%>
<%if @files.size == 0%>

<%else%>
Submitted Files

<%end%>
<%end%>

<%
 _time = Time.now.month.to_s + "/" + Time.now.day.to_s + "/" + Time.now.year.to_s
 if @assignment.wiki_type.name == "DokuWiki" %>

DokuWiki Review Links:

<%= review_dokuwiki @assignment.directory_path, _time, session[:user].name  %>

<% elsif @assignment.wiki_type.name == "MediaWiki" %>

MediaWiki Review Links:

<%if @assignment.team_assignment  # The lookup of all team members should be put in a wiki helper
	@team_members = TeamsUser.find("select * from teams_users where team_id in (select id from team where assignment_id = "+@assignment.id.to_s+") and user_id="+session[:user].id.to_s)
  	for team_member in @team_members
		member_name = User.find(team_member.user_id).name
	%>
		<%= review_mediawiki_group @assignment.directory_path, _time, member_name  %>
	<%end%>
<%else%>
	<%= review_mediawiki @assignment.directory_path, _time, session[:user].name  %>
<%end%>

<% end %>

<% for file in @files %>

<%= link_to File.basename(file), :action => 'edit_review', :id => @mapping_id, :fname => File.basename(file),"current_folder[name]" => @current_folder.name %>

<% end %>

<%if @assignment.team_assignment %>
	<% for team_member in @team_members %>

	<% submitted = Participant.find(:first, :conditions =>["user_id = ? and assignment_id = ?",team_member.user_id,@assignment.id]).submitted_hyperlink
	if submitted !=nil
	%>
	URL to file submission (if available):<%= submitted %>

	<% end%>
	<% end %>
<%else %>
	<% if @link != nil %>
		Hyperlink: <a href="<%= @link %>" target="new"><%= @link %>

	<% end %>
<%end
    review_no = 1
    grade = 0
    for review_map in @review_mapping
        for review in review_map.reviews%>
                Review <%=review_no%> <a href="#1" onClick="toggleVis('<%=review_no %>');">
                                <span class="inline" id="<%=review_no %>_show">View
                                <span class="inline" id="<%=review_no %>_hide" style="display: none">Hide

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

                        Question
                        Score
                        Comment

                     <%
                     for review_score in review.review_scores%>

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

                    <%end%>

                    Additional comment : <%=review.additional_comment%>

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

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

Back

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

<%
    _time = Time.now.month.to_s + "/" + Time.now.day.to_s + "/" + Time.now.year.to_s
 	review_no = 1
	grade = 0
    for review_map in @review_mapping
        for review in review_map.reviews%>

            Review <%=review_no%>:

                Question
				Score
				Comment

             <%
             for review_score in review.review_scores%>

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

            <%end%>

           <%review_no +=1%>
Additional comment : <%=review.additional_comment%>

		<%end
    end%>

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

Back


git-svn-id: http://svn.castleproject.org:8080/svn/castle/trunk@43 73e77b4c-caa6-f847-a29a-24ab75ae54b6

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<title>Castle Project
<% if !@page_title.nil? %>
- <%= @page_title %>
<% end %>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="/css/def.css" rel="stylesheet" type="text/css">

Castle
<% if !@subarea.nil? %>
- <%= @subarea %>
<% end %>

<% if has_topmenu %>

        <%= show_topmenu() %>

<% end %>

<%= @main_title %>

<%= @content_for_layout %>

<%= render "rightmenu" %>

            Site powered by
Ruby on Rails

            Sponsored by
DigitalCraftsmen

	        Infrastructure by


Text on no_projects page updated to reflect that there are no projects in the 'projects' directory (not the 'builds' directory).

git-svn-id: 50a8ad97cae5d6ab203d2d535a9b32cd3858a8ac@231 c04ce798-636b-4ca8-9149-0f9336831111

Welcome to CruiseControl.rb!

There are no projects in the projects directory yet.

      To add a project, open command line in the directory where you unpacked this tool, and type:

  cruise add my_project --url http://my/project/subversion/trunk

      If you have a problem with this command, you may find that cruise help is ... helpful.
      If it doesn't help, there is always <%= link_to_documentation('the manual') %>.

Welcome to CruiseControl.rb!

There are no projects in the builds directory yet.

      To add a project, open command line in the directory where you unpacked this tool, and type:

  cruise add my_project --url http://my/project/subversion/trunk

      If you have a problem with this command, you may find that cruise help is ... helpful.
      If it doesn't help, there is always <%= link_to_documentation('the manual') %>.


Show GitHub link in footer, add .gitignore

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

		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title><%= @page_title %></title>
		<%= stylesheet_link_tag "styles" %>
		<%= javascript_include_tag :defaults %>

Test

GetPaid!

			<% if ENV['RAILS_ENV'] != 'production' %>

				DEVELOPMENT MODE!

			<% end %>

					<%= main_nav %>

			<% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

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

<%= link_to nil, "http://github.com/somebox/getpaid" %>

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

		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title><%= @page_title %></title>
		<%= stylesheet_link_tag "styles" %>
		<%= javascript_include_tag :defaults %>

Test

GetPaid!

			<% if ENV['RAILS_ENV'] != 'production' %>

				DEVELOPMENT MODE!

			<% end %>

					<%= main_nav %>

			<% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

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

GetPaid


Theme color change

Theme color change

<!DOCTYPE html>

		<meta charset="utf-8">
		<link rel="alternate" type="application/rss+xml" title="EMRL Work Timeline Feed" href="https://projects.emrl.com/feeds/rss/da222717fb7b4dfc61f3ed49e3f62f4d">
		<link href="https://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic,300,300italic' rel='stylesheet" rel="stylesheet">
		<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
		<link rel="alternate" type="application/rss+xml" title="RSS" href="https://projects.emrl.com/feeds/rss/da222717fb7b4dfc61f3ed49e3f62f4d" />
		<link rel="apple-touch-icon" sizes="180x180" href="/assets/img/apple-touch-icon.png">
		<link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon-32x32.png">
		<link rel="icon" type="image/png" sizes="16x16" href="/assets/img/favicon-16x16.png">
		<link rel="manifest" href="/assets/img/site.webmanifest">
		<link rel="mask-icon" href="/assets/img/safari-pinned-tab.svg" color="#5bbad5">
		<link rel="shortcut icon" href="/assets/img/favicon.ico">
		<meta name="msapplication-TileColor" content="#47abdd">
		<meta name="msapplication-config" content="/assets/img/browserconfig.xml">
		<meta name="theme-color" content="#F8F8F8">

		<%= javascript_include_merged :base %>
		<%= yield :tinymce %>
		<%= javascript_include_merged :tt %>
		<%= javascript_include_tag "beast" if ['forums', 'posts', 'topics'].include? controller.controller_name %>
		<%= javascript_include_tag "swfobject" %>
		<%= javascript_include_tag "builder" if ['activities'].include? controller.controller_name %>
		<% if ['activities'].include? controller.controller_name %>
		<%= javascript_include_tag "portal" %>

		<%= javascript_include_tag "flotr" %><% end %><%= yield :tinymce_init %>

		<%= auto_discovery_link_tag(:rss, {:controller => 'feeds', :action => 'rss', :id => current_user.uuid }) %>

		<%= stylesheet_link_merged :tt %>
		<%= stylesheet_link_tag "widget" if ['activities'].include? controller.controller_name %>
		<%= stylesheet_link_tag "forum" if ['forums', 'posts', 'topics'].include? controller.controller_name %>
		<%= stylesheet_link_tag "wiki" if ['wiki'].include? controller.controller_name %>
		<%= stylesheet_link_tag "quickadd" if ['tasks', 'schedule'].include? controller.controller_name %>
		<%= stylesheet_link_tag "print", { :media => "print" } %>

		<title>
			<%= controller.controller_name + " / " + controller.action_name %>
		</title>

		<% @internal = Customer.find(:first, :conditions => ["company_id = ? AND (name = 'Internal' or name = ?)", current_user.company_id, current_user.company.name ]) %>

			<%= image_tag('spinner.gif', :border => 0) %>

						<%= render(:partial => "layouts/menu") %>

						  					<%= render :partial => "layouts/tabmenu" %>

			  		<% news = NewsItem.find(:first, :order => "id desc", :conditions => ["id > ?", current_user.seen_news_id ]) %><% unless news.nil? %>

										[<%= tz.utc_to_local(news.created_at).strftime("#{current_user.time_format} #{current_user.date_format}") %>]

										<%= news.body %>

									<%= link_to_remote "#{_('')}", :url => { :controller => 'users', :action => 'update_seen_news', :id => news.id }, :success => visual_effect(:fade, "news", :duration => 0.5) %>

					<% end %>

					<div id="flash" <%="style=\"display:none\"" unless flash['notice']%>>

					  				<%= flash['notice'] %>

										<%= @content_for_layout %>

									<td align="right" valign="top" style="width:15%;<%= "display:none;" if session[:collapse_menu].to_i > 0 %>" id="left_menu">

														<%= h(current_user.name) %>

														<%= "#{online_users} #{_('Online')}" %>

															<%= "" %>

														<% if total_today > 0 %>

														<%=_ 'You have worked'%> <%= distance_of_time_in_words(total_today.minutes) %>
														<%=_ 'today.'%>
														<% end %>

													<div <%= "style=\"display:none;\"" if @current_sheet.nil? || controller.action_name == "stop_work" %>
													id="work-log">

																	<div class="tooltip" title="<%= _'Text entered here will be saved to you work log.automatically to your current task.'%>">
																		<%= _'Work Log' %>

																	<form method="post" onsubmit="return false;" id="worklog_form">
																		<textarea name="worklog[body]" id="worklog_body" style="resize: vertical; font-size: 11px; margin: 0px; border:none; width:97%;" rows="7" placeholder="Text entered here will be saved automatically to your current task."><%= @current_sheet.body if @current_sheet%></textarea>
																	</form>

											<% if current_user.option_tracktime.to_i == 1 %>

												<td align="left" class="page_header_side tooltip" colspan="2" width="100%" title="<%= _'Custom saved filters showing a subset of your tasks'%>">

														<%=_ 'Task Views' %>

														<%= link_to _('
'), :controller => 'views', :action => 'new' %>

													<%= link_to _('My Open Tasks'), :controller => 'views', :action => 'my_tasks'%>

													<% project_ids = current_project_ids %><% client_ids = current_projects.collect(&:customer_id).uniq.join(',')
														client_ids = "0" if client_ids.nil? || client_ids.empty?
														views = View.find(:all, :conditions => ["company_id = ? AND (user_id = ? or shared = 1) AND (filter_customer_id = 0 OR filter_customer_id IS NULL OR filter_customer_id IN (#{client_ids})) AND (filter_project_id = 0 OR filter_project_id IS NULL OR filter_project_id IN (#{project_ids}))", current_user.company_id, current_user.id], :order => "shared, name")
														for view in views %>

													<%= link_to view.name, :controller => 'views', :action => 'select', :id => view %>
													<%= link_to _(''), :controller => 'views', :action => 'edit', :id => view if(view.user_id == current_user.id || current_user.admin?)%>

											<% end %>

												<td align="left" class="page_header_side tooltip" width="100%" colspan="2" title="<%= _'Quickly access recently edited Wikis'%>">

														<%=_ 'Recent Wikis'%>

											<% wikis = WikiPage.find(:all, :limit => 6, :order => "updated_at DESC") %>
											<% wiki_i = 0 %>
											<% for wiki in wikis %>

												<td class="views_item" style="white-space:nowrap;<%= "padding-top:0.2em;" if (wiki_i == 0) %>">

														<%= wiki.to_url_truncate(28) %>

												<td<%= " style=\"color: padding-top:0.2em\"" if (wiki_i == 0) %>>
													  <%= wiki.updated_at.strftime("%m/%d") %>

											<% wiki_i += 1 %>
											<% end %>

											<% end %>

												<td align="left" class="page_header_side tooltip" width="100%" colspan="2" title="<%= _'EMRL Blog'%>">

														<%=_ 'Agency Journal'%>

						<% if current_user.company.show_messaging %>

										<% current_user.chats.each do |@chat| @user = @chat.target %>
										<%= render :partial => 'shout/chat_user' if @chat.active >= 0%>
											<% if @chat.active == 1 %>

									  		<% end %>
								  		<% end %>

														<%= _'Loading'%>...

												<% all_users.each do |u| %>
													<% if u.id != current_user.id %>
														<% if u.online? %>

																<img src="<%= u.avatar_url(32) %>" class="photo tooltip" style="border-radius:50%" class="tooltip" title="<%= u.name %> <%= _('Active %s ago', (u.idle? ? time_ago_in_words(u.last_seen_at) : time_ago_in_words(u.last_ping_at) ) ) %>">

					  									<% elsif u.idle? %>
															<img src="<%= u.avatar_url(32) %>" class="photo desaturate tooltip" style="border-radius:50%;opacity:0.3;filter:alpha(opacity=30)" title="<%= u.name %> <%= _('Active %s ago', (u.idle? ? time_ago_in_words(u.last_seen_at) : time_ago_in_words(u.last_ping_at) ) ) %>">
					  									<% end %>
													<% end %>
			  									<% end %>

	  							<% end %>

								<%= periodically_call_remote(:url => { :controller => 'tasks', :action => 'update_sheet_info' }, :frequency => 90 ) -%>
								<%= flash_plugin(session[:channels]) %>

								<%#= query_review_output %>

<!DOCTYPE html>

		<meta charset="utf-8">
		<link rel="alternate" type="application/rss+xml" title="EMRL Work Timeline Feed" href="https://projects.emrl.com/feeds/rss/da222717fb7b4dfc61f3ed49e3f62f4d">
		<link href="https://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic,300,300italic' rel='stylesheet" rel="stylesheet">
		<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
		<link rel="alternate" type="application/rss+xml" title="RSS" href="https://projects.emrl.com/feeds/rss/da222717fb7b4dfc61f3ed49e3f62f4d" />
		<link rel="apple-touch-icon" sizes="180x180" href="/assets/img/apple-touch-icon.png">
		<link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon-32x32.png">
		<link rel="icon" type="image/png" sizes="16x16" href="/assets/img/favicon-16x16.png">
		<link rel="manifest" href="/assets/img/site.webmanifest">
		<link rel="mask-icon" href="/assets/img/safari-pinned-tab.svg" color="#5bbad5">
		<link rel="shortcut icon" href="/assets/img/favicon.ico">
		<meta name="msapplication-TileColor" content="#47abdd">
		<meta name="msapplication-config" content="/assets/img/browserconfig.xml">
		<meta name="theme-color" content="#ffffff">

		<%= javascript_include_merged :base %>
		<%= yield :tinymce %>
		<%= javascript_include_merged :tt %>
		<%= javascript_include_tag "beast" if ['forums', 'posts', 'topics'].include? controller.controller_name %>
		<%= javascript_include_tag "swfobject" %>
		<%= javascript_include_tag "builder" if ['activities'].include? controller.controller_name %>
		<% if ['activities'].include? controller.controller_name %>
		<%= javascript_include_tag "portal" %>

		<%= javascript_include_tag "flotr" %><% end %><%= yield :tinymce_init %>

		<%= auto_discovery_link_tag(:rss, {:controller => 'feeds', :action => 'rss', :id => current_user.uuid }) %>

		<%= stylesheet_link_merged :tt %>
		<%= stylesheet_link_tag "widget" if ['activities'].include? controller.controller_name %>
		<%= stylesheet_link_tag "forum" if ['forums', 'posts', 'topics'].include? controller.controller_name %>
		<%= stylesheet_link_tag "wiki" if ['wiki'].include? controller.controller_name %>
		<%= stylesheet_link_tag "quickadd" if ['tasks', 'schedule'].include? controller.controller_name %>
		<%= stylesheet_link_tag "print", { :media => "print" } %>

		<title>
			<%= controller.controller_name + " / " + controller.action_name %>
		</title>

		<% @internal = Customer.find(:first, :conditions => ["company_id = ? AND (name = 'Internal' or name = ?)", current_user.company_id, current_user.company.name ]) %>

			<%= image_tag('spinner.gif', :border => 0) %>

						<%= render(:partial => "layouts/menu") %>

						  					<%= render :partial => "layouts/tabmenu" %>

			  		<% news = NewsItem.find(:first, :order => "id desc", :conditions => ["id > ?", current_user.seen_news_id ]) %><% unless news.nil? %>

										[<%= tz.utc_to_local(news.created_at).strftime("#{current_user.time_format} #{current_user.date_format}") %>]

										<%= news.body %>

									<%= link_to_remote "#{_('')}", :url => { :controller => 'users', :action => 'update_seen_news', :id => news.id }, :success => visual_effect(:fade, "news", :duration => 0.5) %>

					<% end %>

					<div id="flash" <%="style=\"display:none\"" unless flash['notice']%>>

					  				<%= flash['notice'] %>

										<%= @content_for_layout %>

									<td align="right" valign="top" style="width:15%;<%= "display:none;" if session[:collapse_menu].to_i > 0 %>" id="left_menu">

														<%= h(current_user.name) %>

														<%= "#{online_users} #{_('Online')}" %>

															<%= "" %>

														<% if total_today > 0 %>

														<%=_ 'You have worked'%> <%= distance_of_time_in_words(total_today.minutes) %>
														<%=_ 'today.'%>
														<% end %>

													<div <%= "style=\"display:none;\"" if @current_sheet.nil? || controller.action_name == "stop_work" %>
													id="work-log">

																	<div class="tooltip" title="<%= _'Text entered here will be saved to you work log.automatically to your current task.'%>">
																		<%= _'Work Log' %>

																	<form method="post" onsubmit="return false;" id="worklog_form">
																		<textarea name="worklog[body]" id="worklog_body" style="resize: vertical; font-size: 11px; margin: 0px; border:none; width:97%;" rows="7" placeholder="Text entered here will be saved automatically to your current task."><%= @current_sheet.body if @current_sheet%></textarea>
																	</form>

											<% if current_user.option_tracktime.to_i == 1 %>

												<td align="left" class="page_header_side tooltip" colspan="2" width="100%" title="<%= _'Custom saved filters showing a subset of your tasks'%>">

														<%=_ 'Task Views' %>

														<%= link_to _('
'), :controller => 'views', :action => 'new' %>

													<%= link_to _('My Open Tasks'), :controller => 'views', :action => 'my_tasks'%>

													<% project_ids = current_project_ids %><% client_ids = current_projects.collect(&:customer_id).uniq.join(',')
														client_ids = "0" if client_ids.nil? || client_ids.empty?
														views = View.find(:all, :conditions => ["company_id = ? AND (user_id = ? or shared = 1) AND (filter_customer_id = 0 OR filter_customer_id IS NULL OR filter_customer_id IN (#{client_ids})) AND (filter_project_id = 0 OR filter_project_id IS NULL OR filter_project_id IN (#{project_ids}))", current_user.company_id, current_user.id], :order => "shared, name")
														for view in views %>

													<%= link_to view.name, :controller => 'views', :action => 'select', :id => view %>
													<%= link_to _(''), :controller => 'views', :action => 'edit', :id => view if(view.user_id == current_user.id || current_user.admin?)%>

											<% end %>

												<td align="left" class="page_header_side tooltip" width="100%" colspan="2" title="<%= _'Quickly access recently edited Wikis'%>">

														<%=_ 'Recent Wikis'%>

											<% wikis = WikiPage.find(:all, :limit => 6, :order => "updated_at DESC") %>
											<% wiki_i = 0 %>
											<% for wiki in wikis %>

												<td class="views_item" style="white-space:nowrap;<%= "padding-top:0.2em;" if (wiki_i == 0) %>">

														<%= wiki.to_url_truncate(28) %>

												<td<%= " style=\"color: padding-top:0.2em\"" if (wiki_i == 0) %>>
													  <%= wiki.updated_at.strftime("%m/%d") %>

											<% wiki_i += 1 %>
											<% end %>

											<% end %>

												<td align="left" class="page_header_side tooltip" width="100%" colspan="2" title="<%= _'EMRL Blog'%>">

														<%=_ 'Agency Journal'%>

						<% if current_user.company.show_messaging %>

										<% current_user.chats.each do |@chat| @user = @chat.target %>
										<%= render :partial => 'shout/chat_user' if @chat.active >= 0%>
											<% if @chat.active == 1 %>

									  		<% end %>
								  		<% end %>

														<%= _'Loading'%>...

												<% all_users.each do |u| %>
													<% if u.id != current_user.id %>
														<% if u.online? %>

																<img src="<%= u.avatar_url(32) %>" class="photo tooltip" style="border-radius:50%" class="tooltip" title="<%= u.name %> <%= _('Active %s ago', (u.idle? ? time_ago_in_words(u.last_seen_at) : time_ago_in_words(u.last_ping_at) ) ) %>">

					  									<% elsif u.idle? %>
															<img src="<%= u.avatar_url(32) %>" class="photo desaturate tooltip" style="border-radius:50%;opacity:0.3;filter:alpha(opacity=30)" title="<%= u.name %> <%= _('Active %s ago', (u.idle? ? time_ago_in_words(u.last_seen_at) : time_ago_in_words(u.last_ping_at) ) ) %>">
					  									<% end %>
													<% end %>
			  									<% end %>

	  							<% end %>

								<%= periodically_call_remote(:url => { :controller => 'tasks', :action => 'update_sheet_info' }, :frequency => 90 ) -%>
								<%= flash_plugin(session[:channels]) %>

								<%#= query_review_output %>


[Mezuro] Refactored number formatting.

[Mezuro] Refactored number formatting.

<% the_module = module_result.module %>
<% module_label = "#{the_module.name} (#{the_module.granularity})" %>

<%= _('Metric results for: ') + module_label %>

      Metric
      Value
      Weight
      Threshold

    <% module_result.metric_results.each do |metric_result|  %>
      <% range = metric_result.range %>
      <tr title="<%= range.nil? ? '' : range.comments %>">
        <%= metric_result.metric.name %>
        <%= metric_result.value.slice(/[0-9]+\.[0-9]{2}/) %>
        <%= metric_result.weight %>
        <% if range.nil? %>

        <% else %>
          <td style="background-color: #<%= range.color[2..-1] %>"><%= range.label %>
        <% end %>

    <% end %>

          <%= _('Grade:') %>
          <%=  module_result.grade.slice(/[0-9]+\.[0-9]{2}/) %>

<% the_module = module_result.module %>
<% module_label = "#{the_module.name} (#{the_module.granularity})" %>

<%= _('Metric results for: ') + module_label %>

      Metric
      Value
      Weight
      Threshold

    <% module_result.metric_results.each do |metric_result|  %>
      <% range = metric_result.range %>
      <tr title="<%= range.nil? ? '' : range.comments %>">
        <%= metric_result.metric.name %>
        <%= metric_result.value.to_f.round(2).to_s %>
        <%= metric_result.weight %>
        <% if range.nil? %>

        <% else %>
          <td style="background-color: #<%= range.color[2..-1] %>"><%= range.label %>
        <% end %>

    <% end %>

          <%= _('Grade:') %>
          <%=  module_result.grade.to_f.round(2).to_s %>


Show last sent date, due dates

Show last sent date, due dates

<% @title = "FOI request - " + h(@info_request.title) %>
<%= javascript_include_tag :defaults %>

<%=@title%>

<% for column in InfoRequest.content_columns %>
  <%= column.human_name %>: <%=h @info_request.send(column.name) %>

<% end %>
Created by: <%= user_both_links(@info_request.user) %>

Public authority: <%= public_body_both_links(@info_request.public_body) %>

Incoming email address: <%= link_to h(@info_request.incoming_email), "mailto:" + @info_request.incoming_email %>

Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>
    Date response required by: <%= @info_request.date_response_required_by %>
    Very overdue after: <%= @info_request.date_very_overdue_after %>

    <%= link_to 'Public page', main_url(request_url(@info_request)) %>
    | <%= link_to 'Edit', '../edit/' + @info_request.id.to_s %>
    | <%= link_to 'FOI officer upload URL', '../generate_upload_url/' + @info_request.id.to_s %> (see also links on incoming messages below)

Events

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

<% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h info_request_event.id %>
  <% for column in InfoRequestEvent.content_columns %>

      <% if column.name == 'params_yaml' %>
        <%= info_request_event.params_yaml_as_html %>
      <% elsif column.text? %>
        <%=h (info_request_event.send(column.name) || '').gsub(/_/,' ') %>
      <% else %>
        <%=h info_request_event.send(column.name) %>
      <% end %>

  <% end %>

    <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
        <% form_tag '../mark_event_as_clarification' do %>

              <%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
              <%= submit_tag "Was clarification request" %>

        <% end %>
    <% end %>

<% end %>

Outgoing messages

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

<% for outgoing_message in @info_request.outgoing_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h outgoing_message.id %>
  <% for column in OutgoingMessage.content_columns.map { |c| c.name } %>

    <% if column == 'body' %>

<%= simple_format( truncate(outgoing_message.body, :length => 400,
                 :omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( outgoing_message.body ) %>

    <% else %>
      <%= simple_format( outgoing_message.send(column) ) %>
    <% end %>

  <% end %>

  <% form_tag '../resend' do %>

          <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
          <%= submit_tag "Resend" %>

  <% end %>
  <%= link_to "Edit", '../edit_outgoing/' + outgoing_message.id.to_s %>

<% end %>

Incoming messages

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

<% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>" id="incoming-<%=incoming_message.id.to_s%>">
  <%=h incoming_message.id %>
  <% for column in IncomingMessage.content_columns.map { |c| c.name } %>
    <% if column =~ /^cached_.*?$/ %>

<%= simple_format( truncate(incoming_message.send(column), :length => 400,
               :omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( incoming_message.send(column) ) %>

    <% else %>
      <%= simple_format( incoming_message.send(column) ) %>
    <% end %>
  <% end %>

        <% if !incoming_message.raw_email_id.nil? %>

            <%= link_to "View raw email", "../show_raw_email/" + incoming_message.raw_email_id.to_s %>

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

<% end %>

Annotations

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

    Id
    Posted by
    <% for column in Comment.content_columns %>
      <%= column.human_name %>
    <% end %>
    Actions

  <% for comment in @info_request.comments %>
    <tr class="<%= cycle('odd', 'even') %>">
    <%=h comment.id %>
    <%= user_both_links(comment.user) %>
    <% for column in Comment.content_columns.map { |c| c.name } %>
      <% if column == 'body' && !comment.visible %>
          <s><%=h comment.send(column) %></s>
      <% else %>
          <%=h comment.send(column) %>
      <% end %>
    <% end %>

        <%= link_to "Edit", '../edit_comment/' + comment.id.to_s %>

  <% end %>

<% else %>

None yet.

<% end %>

Exim delivery logs

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

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

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

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

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

<% end %>

Censor rules

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

<% @title = "FOI request - " + h(@info_request.title) %>
<%= javascript_include_tag :defaults %>

<%=@title%>

<% for column in InfoRequest.content_columns %>
  <%= column.human_name %>: <%=h @info_request.send(column.name) %>

<% end %>
Created by: <%= user_both_links(@info_request.user) %>

Public authority: <%= public_body_both_links(@info_request.public_body) %>

Incoming email address: <%= link_to h(@info_request.incoming_email), "mailto:" + @info_request.incoming_email %>

    <%= link_to 'Public page', main_url(request_url(@info_request)) %>
    | <%= link_to 'Edit', '../edit/' + @info_request.id.to_s %>
    | <%= link_to 'FOI officer upload URL', '../generate_upload_url/' + @info_request.id.to_s %> (see also links on incoming messages below)

Events

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

<% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h info_request_event.id %>
  <% for column in InfoRequestEvent.content_columns %>

      <% if column.name == 'params_yaml' %>
        <%= info_request_event.params_yaml_as_html %>
      <% elsif column.text? %>
        <%=h (info_request_event.send(column.name) || '').gsub(/_/,' ') %>
      <% else %>
        <%=h info_request_event.send(column.name) %>
      <% end %>

  <% end %>

    <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
        <% form_tag '../mark_event_as_clarification' do %>

              <%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
              <%= submit_tag "Was clarification request" %>

        <% end %>
    <% end %>

<% end %>

Outgoing messages

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

<% for outgoing_message in @info_request.outgoing_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h outgoing_message.id %>
  <% for column in OutgoingMessage.content_columns.map { |c| c.name } %>

    <% if column == 'body' %>

<%= simple_format( truncate(outgoing_message.body, :length => 400,
                 :omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( outgoing_message.body ) %>

    <% else %>
      <%= simple_format( outgoing_message.send(column) ) %>
    <% end %>

  <% end %>

  <% form_tag '../resend' do %>

          <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
          <%= submit_tag "Resend" %>

  <% end %>
  <%= link_to "Edit", '../edit_outgoing/' + outgoing_message.id.to_s %>

<% end %>

Incoming messages

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

<% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>" id="incoming-<%=incoming_message.id.to_s%>">
  <%=h incoming_message.id %>
  <% for column in IncomingMessage.content_columns.map { |c| c.name } %>
    <% if column =~ /^cached_.*?$/ %>

<%= simple_format( truncate(incoming_message.send(column), :length => 400,
               :omission => link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( incoming_message.send(column) ) %>

    <% else %>
      <%= simple_format( incoming_message.send(column) ) %>
    <% end %>
  <% end %>

        <% if !incoming_message.raw_email_id.nil? %>

            <%= link_to "View raw email", "../show_raw_email/" + incoming_message.raw_email_id.to_s %>

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

<% end %>

Annotations

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

    Id
    Posted by
    <% for column in Comment.content_columns %>
      <%= column.human_name %>
    <% end %>
    Actions

  <% for comment in @info_request.comments %>
    <tr class="<%= cycle('odd', 'even') %>">
    <%=h comment.id %>
    <%= user_both_links(comment.user) %>
    <% for column in Comment.content_columns.map { |c| c.name } %>
      <% if column == 'body' && !comment.visible %>
          <s><%=h comment.send(column) %></s>
      <% else %>
          <%=h comment.send(column) %>
      <% end %>
    <% end %>

        <%= link_to "Edit", '../edit_comment/' + comment.id.to_s %>

  <% end %>

<% else %>

None yet.

<% end %>

Exim delivery logs

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

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

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

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

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

<% end %>

Censor rules

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


removed accidental displaying of resource_type in sharing form

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

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

<% @resource_type = text_for_resource(@resource_type) -%>

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

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

          You may:

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

Share with all other users, including those that are not a member of a <%= Seek::Config.project_name %> project.

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

Define more fine-grained sharing, by selecting Custom sharing permissions.
 By using custom sharing permissions you can share within your Project/Institution only,
 with specific individuals, or set up custom favourite groups for people you regularly need to share with.

<label for="sharing_scope_<%= Policy::PRIVATE -%>">
        <input type="hidden" name="sharing[access_type_<%= Policy::PRIVATE -%>]" value="<%= Policy::NO_ACCESS -%>">
        <input type="hidden" name="sharing[include_custom_sharing_<%= Policy::PRIVATE -%>]" value="0">

        <input <%= 'checked="checked"' if @sharing_mode == Policy::PRIVATE %> id="sharing_scope_<%= Policy::PRIVATE -%>" name="sharing[sharing_scope]"
                                                                              value="<%= Policy::PRIVATE -%>" type="radio" onclick="javascript:setSharingElementVisibility(<%= Policy::PRIVATE -%>);" />
        - Keep this <%= @resource_type -%> private.

Or share it with..

      <label for="sharing_scope_<%= Policy::ALL_REGISTERED_USERS -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_REGISTERED_USERS -%> id="sharing_scope_<%= Policy::ALL_REGISTERED_USERS -%>" name="sharing[sharing_scope]"
               value="<%= Policy::ALL_REGISTERED_USERS -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::ALL_REGISTERED_USERS -%>);" />
        - All users, including those that are not members of <%= Seek::Config.project_name %> projects, for

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

      <%= render :partial => "assets/sharing_form_custom_permissions_checkbox", :locals => { :custom_sharing_cb_for_scope => Policy::ALL_REGISTERED_USERS,
        :sharing_scope => @sharing_mode, :use_custom_sharing => @use_custom_sharing } -%>

      <label for="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_SYSMO_USERS -%> id="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>" name="sharing[sharing_scope]"
               value="<%= Policy::ALL_SYSMO_USERS -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::ALL_SYSMO_USERS -%>);" />
        - All registered users that are members of a <%= Seek::Config.project_name %> project for

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

      <%= render :partial => "assets/sharing_form_custom_permissions_checkbox", :locals => { :custom_sharing_cb_for_scope => Policy::ALL_SYSMO_USERS,
        :sharing_scope => @sharing_mode, :use_custom_sharing => @use_custom_sharing } -%>

      <label for="sharing_scope_<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::CUSTOM_PERMISSIONS_ONLY -%> id="sharing_scope_<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>" name="sharing[sharing_scope]"
               value="<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>);" />
        - Use custom sharing permissions only

    <div id="specific_sharing" style="display: <%= (@use_custom_sharing || @sharing_mode == Policy::CUSTOM_PERMISSIONS_ONLY) ? "block" : "none" -%>; margin-top: 2em;">

        Custom sharing permissions

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

          Loading...

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

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

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

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

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

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

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

<%= favourite_group_popup_link_action_new() -%>

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

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

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

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

              Step 3

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

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

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

                  Step 3: Choose access rights, review and submit

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

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

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

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

<%= workgroup_member_review_popup_link() -%>

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

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

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

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

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

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

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

    <%= "
" unless @enable_black_white_listing %>

Also include people in my..

          <input <%= "disabled" if @sharing_mode == Policy::PRIVATE -%> style="margin-right: 0.3em;" value="1" type="checkbox" name="sharing[use_whitelist]" id="cb_use_whitelist" <%= "checked='checked'" if @use_whitelist -%> />
          - "white list", who always get full access

        <% white_lst = current_user.get_whitelist -%>
        <%= hidden_field_tag "#{FavouriteGroup::WHITELIST_NAME}_group_id", (white_lst ? white_lst.id : "none") -%>
          [
          <span id="<%= FavouriteGroup::WHITELIST_NAME -%>_edit_span" style="display: <%= white_lst ? "inline" : "none" -%>;">
            <%= link_to "edit", "/", :onclick => "editWhitelistBlacklist('#{FavouriteGroup::WHITELIST_NAME}'); return(false);" -%>

          <% unless white_lst -%>
            <span id="<%= FavouriteGroup::WHITELIST_NAME -%>_create_span">
              <%= link_to "create", "/", :onclick => "createWhitelistBlacklist('#{FavouriteGroup::WHITELIST_NAME}'); return(false);" -%>

          <% end -%>
          ]
        <%= image_tag icon_filename_for_key("spinner"), :id => "#{FavouriteGroup::WHITELIST_NAME}_creation_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle;" -%>

          <input <%= "disabled" if @sharing_mode == Policy::PRIVATE -%> style="margin-right: 0.3em;" value="1" type="checkbox" name="sharing[use_blacklist]" id="cb_use_blacklist" <%= "checked='checked'" if @use_blacklist -%> />
          - "black list", who have no access at all

        <% black_lst = current_user.get_blacklist -%>
        <%= hidden_field_tag "#{FavouriteGroup::BLACKLIST_NAME}_group_id", (black_lst ? black_lst.id : "none") -%>
          [
          <span id="<%= FavouriteGroup::BLACKLIST_NAME -%>_edit_span" style="display: <%= black_lst ? "inline" : "none" -%>;">
            <%= link_to "edit", "/", :onclick => "editWhitelistBlacklist('#{FavouriteGroup::BLACKLIST_NAME}'); return(false);" -%>

          <% unless black_lst -%>
            <span id="<%= FavouriteGroup::BLACKLIST_NAME -%>_create_span">
              <%= link_to "create", "/", :onclick => "createWhitelistBlacklist('#{FavouriteGroup::BLACKLIST_NAME}'); return(false);" -%>

          <% end -%>
          ]
        <%= image_tag icon_filename_for_key("spinner"), :id => "#{FavouriteGroup::BLACKLIST_NAME}_creation_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle;" -%>

  <%# this DIV is to hold the 'redbox' links generated by a method in application_helper, -%>
  <%# these will be "clicked" by javascript, because hidden divs that are present in the -%>
  <%# generated code causes IE to break layout by inserting extra line break otherwise -%>
        <div id="<%= FavouriteGroup::WHITELIST_NAME -%>_redbox_link_div">
          <%= whitelist_blacklist_edit_popup_link(FavouriteGroup::WHITELIST_NAME) -%>

        <div id="<%= FavouriteGroup::BLACKLIST_NAME -%>_redbox_link_div">
          <%= whitelist_blacklist_edit_popup_link(FavouriteGroup::BLACKLIST_NAME) -%>

    <%= "
" unless @enable_black_white_listing %>

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

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

<%= @resource_type = text_for_resource(@resource_type) -%>

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

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

          You may:

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

Share with all other users, including those that are not a member of a <%= Seek::Config.project_name %> project.

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

Define more fine-grained sharing, by selecting Custom sharing permissions.
 By using custom sharing permissions you can share within your Project/Institution only,
 with specific individuals, or set up custom favourite groups for people you regularly need to share with.

<label for="sharing_scope_<%= Policy::PRIVATE -%>">
        <input type="hidden" name="sharing[access_type_<%= Policy::PRIVATE -%>]" value="<%= Policy::NO_ACCESS -%>">
        <input type="hidden" name="sharing[include_custom_sharing_<%= Policy::PRIVATE -%>]" value="0">

        <input <%= 'checked="checked"' if @sharing_mode == Policy::PRIVATE %> id="sharing_scope_<%= Policy::PRIVATE -%>" name="sharing[sharing_scope]"
                                                                              value="<%= Policy::PRIVATE -%>" type="radio" onclick="javascript:setSharingElementVisibility(<%= Policy::PRIVATE -%>);" />
        - Keep this <%= @resource_type -%> private.

Or share it with..

      <label for="sharing_scope_<%= Policy::ALL_REGISTERED_USERS -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_REGISTERED_USERS -%> id="sharing_scope_<%= Policy::ALL_REGISTERED_USERS -%>" name="sharing[sharing_scope]"
               value="<%= Policy::ALL_REGISTERED_USERS -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::ALL_REGISTERED_USERS -%>);" />
        - All users, including those that are not members of <%= Seek::Config.project_name %> projects, for

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

      <%= render :partial => "assets/sharing_form_custom_permissions_checkbox", :locals => { :custom_sharing_cb_for_scope => Policy::ALL_REGISTERED_USERS,
        :sharing_scope => @sharing_mode, :use_custom_sharing => @use_custom_sharing } -%>

      <label for="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_SYSMO_USERS -%> id="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>" name="sharing[sharing_scope]"
               value="<%= Policy::ALL_SYSMO_USERS -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::ALL_SYSMO_USERS -%>);" />
        - All registered users that are members of a <%= Seek::Config.project_name %> project for

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

      <%= render :partial => "assets/sharing_form_custom_permissions_checkbox", :locals => { :custom_sharing_cb_for_scope => Policy::ALL_SYSMO_USERS,
        :sharing_scope => @sharing_mode, :use_custom_sharing => @use_custom_sharing } -%>

      <label for="sharing_scope_<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::CUSTOM_PERMISSIONS_ONLY -%> id="sharing_scope_<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>" name="sharing[sharing_scope]"
               value="<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>);" />
        - Use custom sharing permissions only

    <div id="specific_sharing" style="display: <%= (@use_custom_sharing || @sharing_mode == Policy::CUSTOM_PERMISSIONS_ONLY) ? "block" : "none" -%>; margin-top: 2em;">

        Custom sharing permissions

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

          Loading...

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

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

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

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

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

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

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

<%= favourite_group_popup_link_action_new() -%>

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

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

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

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

              Step 3

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

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

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

                  Step 3: Choose access rights, review and submit

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

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

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

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

<%= workgroup_member_review_popup_link() -%>

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

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

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

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

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

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

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

    <%= "
" unless @enable_black_white_listing %>

Also include people in my..

          <input <%= "disabled" if @sharing_mode == Policy::PRIVATE -%> style="margin-right: 0.3em;" value="1" type="checkbox" name="sharing[use_whitelist]" id="cb_use_whitelist" <%= "checked='checked'" if @use_whitelist -%> />
          - "white list", who always get full access

        <% white_lst = current_user.get_whitelist -%>
        <%= hidden_field_tag "#{FavouriteGroup::WHITELIST_NAME}_group_id", (white_lst ? white_lst.id : "none") -%>
          [
          <span id="<%= FavouriteGroup::WHITELIST_NAME -%>_edit_span" style="display: <%= white_lst ? "inline" : "none" -%>;">
            <%= link_to "edit", "/", :onclick => "editWhitelistBlacklist('#{FavouriteGroup::WHITELIST_NAME}'); return(false);" -%>

          <% unless white_lst -%>
            <span id="<%= FavouriteGroup::WHITELIST_NAME -%>_create_span">
              <%= link_to "create", "/", :onclick => "createWhitelistBlacklist('#{FavouriteGroup::WHITELIST_NAME}'); return(false);" -%>

          <% end -%>
          ]
        <%= image_tag icon_filename_for_key("spinner"), :id => "#{FavouriteGroup::WHITELIST_NAME}_creation_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle;" -%>

          <input <%= "disabled" if @sharing_mode == Policy::PRIVATE -%> style="margin-right: 0.3em;" value="1" type="checkbox" name="sharing[use_blacklist]" id="cb_use_blacklist" <%= "checked='checked'" if @use_blacklist -%> />
          - "black list", who have no access at all

        <% black_lst = current_user.get_blacklist -%>
        <%= hidden_field_tag "#{FavouriteGroup::BLACKLIST_NAME}_group_id", (black_lst ? black_lst.id : "none") -%>
          [
          <span id="<%= FavouriteGroup::BLACKLIST_NAME -%>_edit_span" style="display: <%= black_lst ? "inline" : "none" -%>;">
            <%= link_to "edit", "/", :onclick => "editWhitelistBlacklist('#{FavouriteGroup::BLACKLIST_NAME}'); return(false);" -%>

          <% unless black_lst -%>
            <span id="<%= FavouriteGroup::BLACKLIST_NAME -%>_create_span">
              <%= link_to "create", "/", :onclick => "createWhitelistBlacklist('#{FavouriteGroup::BLACKLIST_NAME}'); return(false);" -%>

          <% end -%>
          ]
        <%= image_tag icon_filename_for_key("spinner"), :id => "#{FavouriteGroup::BLACKLIST_NAME}_creation_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle;" -%>

  <%# this DIV is to hold the 'redbox' links generated by a method in application_helper, -%>
  <%# these will be "clicked" by javascript, because hidden divs that are present in the -%>
  <%# generated code causes IE to break layout by inserting extra line break otherwise -%>
        <div id="<%= FavouriteGroup::WHITELIST_NAME -%>_redbox_link_div">
          <%= whitelist_blacklist_edit_popup_link(FavouriteGroup::WHITELIST_NAME) -%>

        <div id="<%= FavouriteGroup::BLACKLIST_NAME -%>_redbox_link_div">
          <%= whitelist_blacklist_edit_popup_link(FavouriteGroup::BLACKLIST_NAME) -%>

    <%= "
" unless @enable_black_white_listing %>


minor change to visual style of history table

<%= link_to(image_tag(@asset.image? ? @asset.public_filename(:preview) : @asset.big_icon),
            @asset.public_filename) %>

<%=
  links = [ link_to("Download", @asset.public_filename) ]
  links.push link_to_function("Upload new version", "$('upload-new').toggle()") if current_user.may? :edit, @page

  link_line links
%>

Information

  <%= 'Created by' %>:
  <%= link_to_user(@page.created_by, :avatar => 'xsmall') if @page.created_by %>

  <%= 'Created on' %>:
  <%= friendly_date(@page.created_at) %>

History

  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 -%>
      <%= link_to_remote(image_tag('actions/trash.png'), {:url => direct_url(:page_id => @page.id, :action => :destroy_version, :id => version.version, :controller => 'asset_page'), :confirm => 'are you sure you want to delete this version?', :before => "$($(this).up('td')).addClassName('busy')", :failure => "$($(this).up('td')).removeClassName('busy')"}, {:href => url_for(:controller => 'asset', :action => 'destroy', :id => @asset.id)}) %>
      <% end -%>

    <%= version.image? ? image_tag(version.public_filename(:thumb)) : image_tag(version.small_icon) %>
    <%= link_to "version #{version.version}", version.public_filename %>
    <%= full_time(version.updated_at) %>

  <% end -%>

  <% form_tag page_url(@page, :action => 'update'), :multipart => true do -%>
    <%= file_field_tag 'asset' %>
    <%= submit_tag 'upload' %>
  <% end %>

<%= link_to(image_tag(@asset.image? ? @asset.public_filename(:preview) : @asset.big_icon),
            @asset.public_filename) %>

<%=
  links = [ link_to("Download", @asset.public_filename) ]
  links.push link_to_function("Upload new version", "$('upload-new').toggle()") if current_user.may? :edit, @page

  link_line links
%>

Information

  <%= 'Created by' %>:
  <%= link_to_user(@page.created_by, :avatar => 'xsmall') if @page.created_by %>

  <%= 'Created on' %>:
  <%= friendly_date(@page.created_at) %>

History

  <% color = cycle('shade-odd', 'shade-even') -%>

  version
  updated on

  <% @asset.versions.reverse.each do |version| -%>
  <tr class="<%= color %>" id="asset_<%= @asset.id %>_version_<%= version.version %>">

      <% if @current_user.may? :edit, @page and version.version < @asset.version %>
      <%= link_to_remote(image_tag('actions/trash.png'), {:url => direct_url(:page_id => @page.id, :action => :destroy_version, :id => version.version, :controller => 'asset_page'), :confirm => 'are you sure you want to delete this version?', :before => "$($(this).up('td')).addClassName('busy')", :failure => "$($(this).up('td')).removeClassName('busy')"}, {:href => url_for(:controller => 'asset', :action => 'destroy', :id => @asset.id)}) %>
      <% end %>

    <%= version.image? ? image_tag(version.public_filename(:thumb)) : image_tag(version.small_icon) %>
    <%= link_to "version #{version.version}", version.public_filename %>
    <%= full_time(version.updated_at) %>

  <% end -%>

  <% form_tag page_url(@page, :action => 'update'), :multipart => true do -%>
    <%= file_field_tag 'asset' %>
    <%= submit_tag 'upload' %>
  <% end %>


changed index of task again

changed index of task again

Welcome, <%= User.active_user.name.capitalize %>...

  You can find all the solutions in this pdf.

  I would LOVE to get all the images and movies and notes and anything you would
  like to release. Mail everything you want (especially images of people and game progress) to
  ique@3h.se. I thank you all again for a wonderful game and congratulate MPUK!

  <%= episode_link_for_user(User.active_user) %>

  <% unless User.active_user.progresses.empty? %>

Episode	Task	Placement

  <% User.active_user.progresses.each do |p| %>

<%= p.episode.name %>	<%= p.task.name %>	<%= p.position %>

  <% end %>

  <% end %>

Welcome, <%= User.active_user.name.capitalize %>...

  You can find all the solutions in this pdf.

  <%= episode_link_for_user(User.active_user) %>

  <% unless User.active_user.progresses.empty? %>

Episode	Task	Placement

  <% User.active_user.progresses.each do |p| %>

<%= p.episode.name %>	<%= p.task.name %>	<%= p.position %>

  <% end %>

  <% end %>


Adding geo microformat to trace viewing pages.

<%= @title %>

<img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">

    Filename:
    <%= @trace.name %> (<%= link_to 'download', :controller => 'trace', :action => 'data', :id => @trace.id %>)

    Uploaded at:
    <%= @trace.timestamp %>

  <% if @trace.inserted? %>

    Points:
    <%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %>

    Start coordinate:

<%= @trace.latitude %>; <%= @trace.longitude %>
 (<%=link_to 'map', :controller => 'site', :action => 'index', :lat => @trace.latitude, :lon => @trace.longitude, :zoom => 14 %> / <%=link_to 'edit', :controller => 'site', :action => 'edit', :lat => @trace.latitude, :lon => @trace.longitude, :zoom => 14 %>)

  <% end %>

    Owner:
    <%= link_to @trace.user.display_name, {:controller => 'user', :action => 'view', :display_name => @trace.user.display_name} %>

    Description:
    <%= @trace.description %>

    Tags:

    <% if @trace.tags %>
      <% @trace.tags.each do |tag| %>
        <%= link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } %>
      <% end %>
    <% else %>
      None
    <% end %>

    <% unless @trace.public? %>
    <%= button_to 'Make this track public permanently', :controller => 'trace', :action => 'make_public', :id => @trace.id %>
    <% end %>
    <% if @trace.user.id == @user.id %>
    <%= button_to 'Delete this track', :controller => 'trace', :action => 'delete', :id => @trace.id %>
    <% end %>

<%= @title %>

<img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">

    Filename:
    <%= @trace.name %> (<%= link_to 'download', :controller => 'trace', :action => 'data', :id => @trace.id %>)

    Uploaded at:
    <%= @trace.timestamp %>

  <% if @trace.inserted? %>

    Points:
    <%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %>

    Start coordinate:
    <%= @trace.latitude %>, <%= @trace.longitude %> (<%=link_to 'map', :controller => 'site', :action => 'index', :lat => @trace.latitude, :lon => @trace.longitude, :zoom => 14 %> / <%=link_to 'edit', :controller => 'site', :action => 'edit', :lat => @trace.latitude, :lon => @trace.longitude, :zoom => 14 %>)

  <% end %>

    Owner:
    <%= link_to @trace.user.display_name, {:controller => 'user', :action => 'view', :display_name => @trace.user.display_name} %>

    Description:
    <%= @trace.description %>

    Tags:

    <% if @trace.tags %>
      <% @trace.tags.each do |tag| %>
        <%= link_to tag.tag, { :controller => 'trace', :action => 'list', :tag => tag.tag, :id => nil } %>
      <% end %>
    <% else %>
      None
    <% end %>

    <% unless @trace.public? %>
    <%= button_to 'Make this track public permanently', :controller => 'trace', :action => 'make_public', :id => @trace.id %>
    <% end %>
    <% if @trace.user.id == @user.id %>
    <%= button_to 'Delete this track', :controller => 'trace', :action => 'delete', :id => @trace.id %>
    <% end %>