Rework officers FAQ to be much nicer when they click the link. Add links to the ICO ruling.

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

Not using this site. 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.

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?

Yes, you can (although we encourage you to use your real name,
see the question just above). 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.  Saying that, you can avoid the problem
by simply making your pseudonym look like a real person's name, as there is no
general obligation to prove your identity.

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."

What will you do to me if I annotate requests with nonsense?

It won't be pretty :).

Seriously, 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, content-free political discussions are not allowed, but
do post a link to a suitable forum elsewhere.

For example, if you think you know the reason someone posted a request,
and you don't approve of it, do not write a complex rant in the annotation.
Instead, simply write a short sentence, and link to another website which
already explains it in detail.

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 got 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 copyright 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?

Freedom of Information responses contain public information, which anybody could
easily request again from the public authority. Therefore,
there is no reason they shouldn't be published on the Internet. There are lots
of benefits - everything from preventing duplicate requests, to getting the public
more involved and interested in the work of government.

Are the people making requests real people?

Yes. The people are real people, for whom we have a verified email address
unique to each person.

Each request made by each person is also given a unique email, so that we
can keep track of and publish the responses. But if it says the same name
on two requests, they were made by the same person.

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.

Won't I be breaking copyright law by sending a response that you then publish?

No, you will simply be replying to an FOI request by email (the "expressed
preference" of the requester, under
section
11(1) of the Freedom of Information Act). That we are later republishing your
response is a separate matter of copyright law, and not something which FOIA lists
as a reason for rejecting a request.

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.

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

Not using this site. 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.

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?

Yes, you can (although we encourage you to use your real name,
see the question just above). 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.  Saying that, you can avoid the problem
by simply making your pseudonym look like a real person's name, as there is no
general obligation to prove your identity.

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."

What will you do to me if I annotate requests with nonsense?

It won't be pretty :).

Seriously, 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, content-free political discussions are not allowed, but
do post a link to a suitable forum elsewhere.

For example, if you think you know the reason someone posted a request,
and you don't approve of it, do not write a complex rant in the annotation.
Instead, simply write a short sentence, and link to another website which
already explains it in detail.

FOI officer questions

Why are you publishing responses to FOI requests?

Freedom of Information responses contain public information, which anybody could
easily request again from the public authority. Therefore,
there is no reason they shouldn't be published on the Internet. There are lots
of benefits - everything from preventing duplicate requests, to getting the public
more involved and interested in the work of government.

Are the people making requests real people?

Yes. This website is a service to help ordinary members of the public
make FOI requests, and easily track the responses. The people are real
people, for whom we have a verified email address unique to each person.

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.

Won't I be breaking copyright law by sending a response that you then publish?

No, you will simply be replying to an FOI request by email (the "expressed
preference" of the requester, under
section
11(1) of the Freedom of Information Act). That we are later republishing your
response is a separate matter of copyright law, and not something which FOIA lists
as a reason for rejecting a request.

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.


Scribbish update 1.  Closes #1099

Scribbish update 1.  Closes #1099

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

  <% if @article.published_comments.any? -%>
    <% for comment in @article.published_comments -%>
    <li class="comment" id="comment-<%= comment.id %>">

        <%= content_tag(:div, gravatar_tag(comment.email)) if this_blog.use_gravatar and comment.email %>
        <%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url) %>
        <abbr title="<%= comment.created_at.xmlschema %>"><%= distance_of_time_in_words comment.article.published_at, comment.created_at %> later:

        <%= comment.html %>

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

No comments

  <% end -%>

  <% for comment in @article.published_comments -%>
        <li class="comment" id="comment-<%= comment.id %>">

            <%= content_tag(:div, gravatar_tag(comment.email)) if this_blog.use_gravatar and comment.email %>
            <%= (comment.url.blank?) ? h(comment.author) : link_to(h(comment.author), comment.url) %>
                <abbr title="<%= comment.created_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now comment.created_at %>

            <%= comment.html %>

        <% end -%>


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

Grade report: <%=@assignment.name%>

	Author
<%
	for i in 0...@assignment.num_reviews%>
		Review<%=i+1%>
<%
	end
%>
	Review of Review
	Final Score
<%
	for participant in @participants
		student =User.find(participant.user_id)
		if !@assignment.team_assignment
			review_mapping = ReviewMapping.find_by_sql("select * from review_mappings where author_id = "+student.id.to_s+" and assignment_id = "+@assignment.id.to_s)
		elsif @assignment.team_assignment
			teams = TeamsUser.find_by_sql("select * from teams_users where user_id = "+student.id.to_s)
			for team in teams
				if ReviewMapping.find(:all,:conditions => ["team_id = ? and assignment_id = ?", team.team_id, @assignment.id])
					review_mapping = ReviewMapping.find(:all,:conditions => ["team_id = ? and assignment_id = ?", team.team_id, @assignment.id])
				end
			end
		end
		review_mappings_for_student = ReviewMapping.find(:all,:conditions => ["reviewer_id = ?", participant.user_id])
		ror_count =0
		ror_final = 0
		for review_mapping_for_student in review_mappings_for_student
			ror = 0
			for review in review_mapping_for_student.reviews
				review_of_review_mapping = ReviewOfReviewMapping.find(:first,:conditions => ["review_id = ?", review.id])
				if review_of_review_mapping
					ror_count += 1
					for review_of_review in review_of_review_mapping.review_of_reviews
						ror_total = 0
						question_count = 0
						for review_of_review_score in review_of_review.review_of_review_scores
							ror_total += review_of_review_score.score
							question_count += 1
						end
						ror_total = ror_total*100/@sum_of_max.to_f
					end
				end
			end
			ror +=ror_total.to_f
		end
		ror_final +=ror
	end
	review_no = 1
	grade = 0
	_time = Time.now.month.to_s + "/" + Time.now.day.to_s + "/" + Time.now.year.to_s
%>

		<%=student.fullname%>

<%
		if review_mapping
			for review_map in review_mapping
				for review in review_map.reviews
					total = 0
					for review_score in review.review_scores
						total += review_score.score
					end
					grade += total.to_f
					review_no +=1
%>
					  <%= link_to User.find(review_map.reviewer_id).fullname, :controller=>'review', :action => 'view_review', :id=> review.id%>
  <%=sprintf("%.2f",total.to_f*100/@sum_of_max.to_f)%>%
<%
				end
			end
		end
		if review_no < (@assignment.num_reviews+1)
			for i in 0...@assignment.num_reviews+1-review_no
%>

<%
			end
		end
		if review_no-1 > 0
			ror_cnt = 1
			if ror_count > 0
				ror_cnt = ror_count
			end
			review = (grade.to_f/(review_no-1).to_f*100/@sum_of_max.to_f).to_f
			if ror_count < 1
				review_of_review = (100*(100-@assignment.review_weight)/100).to_f
			else
				review_of_review = (ror_final.to_f/(ror_cnt).to_f*100/@sum_of_max.to_f*(100-@assignment.review_weight)/100).to_f
			end
%>
			<%=sprintf("%.2f",(ror_final.to_f/(ror_cnt).to_f*100/@sum_of_max.to_f).to_f)%>%
			<%=sprintf("%.2f",review)%>%
<%
		end
%>

<%= link_to 'Back', :action=>'list'%>

Grade report: <%=@assignment.name%>

	Author
	<%for i in 0...@assignment.num_reviews%>
	Review<%=i+1%>
	<%end%>
	Review of Review
	Final Score
<%for participant in @participants
	student =User.find(participant.user_id)
	if !@assignment.team_assignment
		review_mapping = ReviewMapping.find_by_sql("select * from review_mappings where author_id = "+student.id.to_s+" and assignment_id = "+@assignment.id.to_s)
	elsif @assignment.team_assignment
		teams = TeamsUser.find_by_sql("select * from teams_users where user_id = "+student.id.to_s)
		for team in teams
			if ReviewMapping.find(:all,:conditions => ["team_id = ? and assignment_id = ?", team.team_id, @assignment.id])
				review_mapping = ReviewMapping.find(:all,:conditions => ["team_id = ? and assignment_id = ?", team.team_id, @assignment.id])
			end
		end
	end
	review_mappings_for_student = ReviewMapping.find(:all,:conditions => ["reviewer_id = ?", participant.user_id])
	ror_count =0
	ror_final = 0
	for review_mapping_for_student in review_mappings_for_student
		ror = 0
		for review in review_mapping_for_student.reviews
			review_of_review_mapping = ReviewOfReviewMapping.find(:first,:conditions => ["review_id = ?", review.id])
			if review_of_review_mapping
				ror_count += 1
				for review_of_review in review_of_review_mapping.review_of_reviews
					ror_total = 0
					question_count = 0
					for review_of_review_score in review_of_review.review_of_review_scores
					       ror_total += review_of_review_score.score
						   question_count += 1
					end
						ror_total = ror_total*100/@sum_of_max.to_f
					end
				end
			end
			ror +=ror_total.to_f
		end
		ror_final +=ror
	end
	review_no = 1
	grade = 0
    _time = Time.now.month.to_s + "/" + Time.now.day.to_s + "/" + Time.now.year.to_s%>

		<%=student.fullname%>

	<%if review_mapping

	for review_map in review_mapping
		for review in review_map.reviews
            total = 0
	        for review_score in review.review_scores
		        total += review_score.score
			end
			grade += total.to_f
            review_no +=1
			%>
			  <%= link_to User.find(review_map.reviewer_id).fullname, :controller=>'review', :action => 'view_review', :id=> review.id%>
  <%=sprintf("%.2f",total.to_f*100/@sum_of_max.to_f)%>%
           <%
        end
	end
	end
	if review_no < (@assignment.num_reviews+1)
		for i in 0...@assignment.num_reviews+1-review_no%>

		<%
		end
	end%>
	<%if review_no-1 > 0
		ror_cnt = 1
		if ror_count > 0
			ror_cnt = ror_count
		end
		review = (grade.to_f/(review_no-1).to_f*100/@sum_of_max.to_f).to_f
		if ror_count < 1
			review_of_review = (100*(100-@assignment.review_weight)/100).to_f
		else
			review_of_review = (ror_final.to_f/(ror_cnt).to_f*100/@sum_of_max.to_f*(100-@assignment.review_weight)/100).to_f
		end
		 %>
		<%=sprintf("%.2f",(ror_final.to_f/(ror_cnt).to_f*100/@sum_of_max.to_f).to_f)%>%
		<%=sprintf("%.2f",review)%>%
	<%end
end%>

<%= link_to 'Back', :action=>'list'%>


Streamlined menu options. Added ability to get back to current competition's overview page.

This competition

<%= link_to_unless_current 'Overview',
		{:action => 'competition'},
		{:title => "View the overview page for #{@competition.title}"} %>

<%= link_to_unless_current 'Results',
		{:action => 'results'},
		{:title => "View results for #{@competition.title}"} %>

<%= link_to_unless_current 'Fixtures',
		{:action => 'fixtures'},
		{:title => "View fixtures for #{@competition.title}"} %>
<% for stage in @stages %>

<%= link_to_unless_current stage.title,
		{:action => 'stage', :competition_slug => @competition,	:stage_slug => stage },
		{:title => "View #{@competition.title}'s #{stage.title}" } %>
<% end %>

<%= link_to('New stage...',
		{:action => 'new_stage'},
		{:class => 'admin', :title => "Add another stage to #{@competition.title}"}) %>

<% if @other_competitions.size > 0 %>

Other Competitions

<% for competition in @other_competitions %>

<%= link_to competition.title,
		{:action => 'competition', :competition_slug => competition},
		{:title => "View #{competition.title}"} %>
<% end %>

<% end %>

Stages

<% for stage in @stages %>

<%= link_to_unless_current stage.title,
		{:action => 'stage', :competition_slug => @competition,	:stage_slug => stage },
		{:title => "View #{@competition.title}'s #{stage.title}" } %>
<% end %>

<%= link_to('New stage...',
		{:action => 'new_stage'},
		{:class => 'admin', :title => "Add another stage to #{@competition.title}"}) %>

Matches

<%= link_to_unless_current 'Results',
		{:action => 'results'},
		{:title => "View results for #{@competition.title}"} %>

<%= link_to_unless_current 'Fixtures',
		{:action => 'fixtures'},
		{:title => "View fixtures for #{@competition.title}"} %>

<% if @other_competitions.size > 0 %>

Other Competitions

<% for competition in @other_competitions %>

<%= link_to competition.title,
		{:action => 'competition', :competition_slug => competition},
		{:title => "View #{competition.title}"} %>
<% end %>

<% end %>


Small change for #197

Small change for #197

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

<!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>Typo Administration:  <%= controller.controller_name %></title>
		<meta http-equiv="imagetoolbar" content="no" />
		<%= stylesheet_link_tag "administration.css" %>
		<%= javascript_include_tag "prototype", "effects", "dragdrop", "controls", "typo" %>

	    <%= current_user_notice rescue nil %> |
	    <%= link_to 'Your blog »', :controller => "/" %>

<%= link_to "Typo admin - #{config_value('blog_name')}", :controller => "/admin/" %>

  	    <%= tab "General", :controller=>"/admin/general", :action => 'index' %>
  	    <%= tab "Articles", :controller=>"/admin/content", :action => 'index' %>
  	    <%= tab "Pages", :controller=>"/admin/pages", :action => 'index' %>
  	    <%= tab "Categories", :controller=>"/admin/categories", :action => 'index' %>
  	    <%= tab "Blacklist", :controller=>"/admin/blacklist", :action => 'index' %>
  	    <%= tab "Sidebar", :controller=>"/admin/sidebar", :action => 'index' %>
  	    <%= tab "Users", :controller=>"/admin/users", :action => 'index' %>

  	  <%= render_flash rescue nil %>

<%= @page_heading %>

  	    <% if not first_render =~ /general|login|signup|logout|sidebar/ %>

Things you can do

	        <%= @content_for_tasks %>
          <%= task_overview unless first_render =~ /\/list$/ %>

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


Fix id passing

Fix id passing

<div<%= user && " class='logged-in'" %>>

    <% if @page.allow_edit?(user) && !remove_content_button(:edit) %>
      <% content = content_tag('span', label_for_edit_article(@page)) %>
      <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'edit', :id => @page.id }) %>
      <%= expirable_button @page, :edit, content, url %>
    <% end %>

    <% if @page != profile.home_page && !@page.has_posts?  && @page.allow_delete?(user) && !remove_content_button(:delete)%>
      <% content = content_tag( 'span', _('Delete') ) %>
      <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'destroy', :id => @page.id}) %>
      <% options = {:method => :post, :confirm => delete_article_message(@page)} %>
      <%= expirable_button @page, :delete, content, url, options %>
    <% end %>

    <% if !@page.folder? && @page.allow_spread?(user) && !remove_content_button(:spread) %>
      <% content = content_tag( 'span', _('Spread this') ) %>
      <% url = nil %>
      <% if profile.kind_of?(Person) %>
        <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'publish', :id => @page.id }) %>
      <% elsif profile.kind_of?(Community) && environment.portal_community %>
        <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'publish_on_portal_community', :id => @page.id }) %>
      <% end %>
      <%= expirable_button @page, :spread, content, url if url %>
    <% end %>

    <% if !@page.gallery? && (@page.allow_create?(user) || (@page.parent && @page.parent.allow_create?(user))) %>
      <% if @page.translatable? && !@page.native_translation.language.blank? && !remove_content_button(:locale) %>
        <% content = _('Add translation') %>
        <% parent_id = (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)) %>
        <% url = profile.admin_url.merge(:controller => 'cms', :action => 'new', :parent_id => parent_id, :type => @page.type, :article => { :translation_of_id => @page.native_translation.id })%>
        <%= expirable_button @page, :locale, content, url %>
      <% end %>

      <%= colorbox_button(:new, label_for_new_article(@page), profile.admin_url.merge(:controller => 'cms', :action => 'new', :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)))) unless remove_content_button(:new) %>
    <% end %>

    <% if @page.accept_uploads? && @page.allow_create?(user) %>
      <%= button('upload-file', _('Upload files'), profile.admin_url.merge(:controller => 'cms', :action => 'upload_files', :parent_id => (@page.folder? ? @page : @page.parent))) unless remove_content_button(:upload)%>
    <% end %>

    <% if !@page.allow_create?(user) && profile.community? && (@page.blog? || @page.parent && @page.parent.blog?) && !remove_content_button(:suggest) %>
      <% content = content_tag( 'span', _('Suggest an article') ) %>
      <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'suggest_an_article'}) %>
      <% options = {:id => 'suggest-article-link'} %>
      <%= expirable_button @page, :suggest, content, url, options %>
    <% end %>

    <% if @page.display_versions? %>
      <%= button(:clock, _('All versions'), {:controller => 'content_viewer', :profile => profile.identifier, :action => 'article_versions'}, :id => 'article-versions-link') %>
    <% end %>

    <%= report_abuse(profile, :link, @page) %>

    <% if @page.blog? and !@page.image.nil? %>

<%= image_tag(@page.image.public_filename())%>

    <% end %>
    <%= link_to(image_tag('icons-mime/rss-feed.png'), @page.feed.url, :class => 'blog-feed-link') if @page.has_posts? && @page.feed %>
    <%= @plugins.dispatch(:article_header_extra_contents, @page).collect { |content| instance_eval(&content) }.join("") %>
    <%= article_title(@page, :no_link => true) %>
    <%= article_translations(@page) %>

<div<%= user && " class='logged-in'" %>>

    <% if @page.allow_edit?(user) && !remove_content_button(:edit) %>
      <% content = content_tag('span', label_for_edit_article(@page)) %>
      <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'edit', :id => @page.id }) %>
      <%= expirable_button @page, :edit, content, url %>
    <% end %>

    <% if @page != profile.home_page && !@page.has_posts?  && @page.allow_delete?(user) && !remove_content_button(:delete)%>
      <% content = content_tag( 'span', _('Delete') ) %>
      <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'destroy', :id => @page}) %>
      <% options = {:method => :post, :confirm => delete_article_message(@page)} %>
      <%= expirable_button @page, :delete, content, url, options %>
    <% end %>

    <% if !@page.folder? && @page.allow_spread?(user) && !remove_content_button(:spread) %>
      <% content = content_tag( 'span', _('Spread this') ) %>
      <% url = nil %>
      <% if profile.kind_of?(Person) %>
        <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'publish', :id => @page }) %>
      <% elsif profile.kind_of?(Community) && environment.portal_community %>
        <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'publish_on_portal_community', :id => @page }) %>
      <% end %>
      <%= expirable_button @page, :spread, content, url if url %>
    <% end %>

    <% if !@page.gallery? && (@page.allow_create?(user) || (@page.parent && @page.parent.allow_create?(user))) %>
      <% if @page.translatable? && !@page.native_translation.language.blank? && !remove_content_button(:locale) %>
        <% content = _('Add translation') %>
        <% parent_id = (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)) %>
        <% url = profile.admin_url.merge(:controller => 'cms', :action => 'new', :parent_id => parent_id, :type => @page.type, :article => { :translation_of_id => @page.native_translation.id })%>
        <%= expirable_button @page, :locale, content, url %>
      <% end %>

      <%= colorbox_button(:new, label_for_new_article(@page), profile.admin_url.merge(:controller => 'cms', :action => 'new', :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)))) unless remove_content_button(:new) %>
    <% end %>

    <% if @page.accept_uploads? && @page.allow_create?(user) %>
      <%= button('upload-file', _('Upload files'), profile.admin_url.merge(:controller => 'cms', :action => 'upload_files', :parent_id => (@page.folder? ? @page : @page.parent))) unless remove_content_button(:upload)%>
    <% end %>

    <% if !@page.allow_create?(user) && profile.community? && (@page.blog? || @page.parent && @page.parent.blog?) && !remove_content_button(:suggest) %>
      <% content = content_tag( 'span', _('Suggest an article') ) %>
      <% url = profile.admin_url.merge({ :controller => 'cms', :action => 'suggest_an_article'}) %>
      <% options = {:id => 'suggest-article-link'} %>
      <%= expirable_button @page, :suggest, content, url, options %>
    <% end %>

    <% if @page.display_versions? %>
      <%= button(:clock, _('All versions'), {:controller => 'content_viewer', :profile => profile.identifier, :action => 'article_versions'}, :id => 'article-versions-link') %>
    <% end %>

    <%= report_abuse(profile, :link, @page) %>

    <% if @page.blog? and !@page.image.nil? %>

<%= image_tag(@page.image.public_filename())%>

    <% end %>
    <%= link_to(image_tag('icons-mime/rss-feed.png'), @page.feed.url, :class => 'blog-feed-link') if @page.has_posts? && @page.feed %>
    <%= @plugins.dispatch(:article_header_extra_contents, @page).collect { |content| instance_eval(&content) }.join("") %>
    <%= article_title(@page, :no_link => true) %>
    <%= article_translations(@page) %>


return false on chat channel add

return false on chat channel add

<% form_remote_tag :url => { :action => 'create_ajax' } ,
       :loading => "Element.show('loading');",
       :complete => "Element.hide('loading');",
       :html => { :id => 'channel-add-form' } do
%>

  <fieldset>
    <legend><%= _'New Room'%></legend>
    <%=_ 'Name' %><%= text_field 'channel', 'name', { :size => 17, :maxlength => 200 } %>

    <%=_ 'Project'%>
<select name="channel[project_id]" id="channel_project_id">
<% if current_user.admin > 0 %> <option value="" class="select_default" selected><%= _("[Any Project]") %></option> <% end %>
<% @clients = Customer.find(:all, :conditions => ["company_id = ?", current_user.company_id], :order => "name") %>
<% @clients.each do |c| %>
  <% @client_projects = current_user.projects.find(:all, :conditions => ["customer_id = #{c.id} AND completed_at IS NULL"], :order => "name" ) %>
  <% if @client_projects.size > 0 %>
    <optgroup class="select_heading" label="<%= h(c.name) %>">
    <% @client_projects.each do |p| %>
      <option value="<%=p.id%>" class="select_item"><%= p.name %></option>
    <% end %>
    </optgroup>
  <% end %>
<% end %>
</select>

    <%=_ 'Description' %><%= text_area 'channel', 'description', { :cols => 17, :rows => 4 } %>

<%= submit_tag _("Create"), :class => "nolabel" %>
 <%= _'or' %> <%= _'Cancel'%>

  </fieldset>
<% end %>

<%= _"You can have as many chat rooms as you like. They can be limited to a project or public across all your users."%>


fixed typo

fixed typo

Confirm a change of email address

Press the confirm button below to confirm your new email address.

<form method="post">
<input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
<input type="submit" name="confirm_action" value="Confirm">
</form>

Confirm a change of email address

Press the confirm button below to confirm your new email address.

<form method="post">
<input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
<input type="submit" name="confirm_action" value="Confrm">
</form>


r326: remove comment

r326: remove comment

      <%= link_to_unless_current 'Dashboard', :controller => 'projects', :action => 'index' %>

      <%= link_to 'Documentation', '/documentation/docs.html' %>

    <%= link_to image_tag("cruise_logo.png"), '/' %>

  <% if flash[:notice] and !flash[:notice].blank? -%>

<%= h flash[:notice] %>

  <% end -%>


Misplaced form element

Misplaced form element

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

<%=@title%>

<% form_tag '../move_request', { :class => "inline" } do %>

<%= hidden_field_tag 'info_request_id', @info_request.id %>
<% for column in InfoRequest.content_columns %>
  <%= column.human_name %>: <%=h @info_request.send(column.name) %>
  <% if column.name == 'described_state' %>
    Calculated status: <%= @info_request.calculate_status %>

Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>
        Date response required by: <%= @info_request.date_response_required_by %>
        Very overdue after: <%= @info_request.date_very_overdue_after %>
  <% end %>
  <% if ![ 'allow_new_responses_from' ].include?(column.name) %>

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

            (<%= link_to_function("move...", "$(this).up(1).childElements().invoke('toggle')") %>)

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

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

            (<%= link_to_function("move...", "$(this).up(1).childElements().invoke('toggle')") %>)

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

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

<% end %>

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


Show events higher up in admin interface.

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

<%=@title%>

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

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

Public body: <%= public_body_admin_link(@info_request.public_body) %>

Incoming email address: <%=h @info_request.incoming_email %>

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

Events

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

<% 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.map { |c| c.name } %>
    <%=h info_request_event.send(column) %>
  <% 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 } %>
    <%=h outgoing_message.send(column) %>
  <% 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 %>

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

<% end %>

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

<%=@title%>

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

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

Public body: <%= public_body_admin_link(@info_request.public_body) %>

Incoming email address: <%=h @info_request.incoming_email %>

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

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 } %>
    <%=h outgoing_message.send(column) %>
  <% 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 %>

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

<% end %>

Events

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

<% 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.map { |c| c.name } %>
    <%=h info_request_event.send(column) %>
  <% end %>

<% end %>


These alpha testers are good at finding spelling mistakes ;)

Hello! This site really isn't nearly finished yet, but it
    works and so we wanted to start sharing it with you.
    Things still to do:

 Design the site - the current appearance is purely placeholder.

 Find a name for the site - suggestions to us please.

 Add search, plus RSS feeds and email alerts based on search terms.

 Add things you tell us you want.

As always, if you want mySociety to do more stuff like this, please
    volunteer,
    donate,
    or commission us!

Hello! This site really isn't nearly finished yet, but it
    works and so we wanted to start sharing it with you.
    Things still to do:

 Design the site - the current appearance is purely placeholder.

 Find a name for the site - suggestions to us please.

 Add search, plus RSS feeds and email alerts based on search terms.

 Add things you tell us you want.

As always, if you want mySociety to do more stuff like this, please
    volunteer,
    donate,
    or commision us!


Update lib/views/help/about.rhtml

Update lib/views/help/about.rhtml

minor change (previously it said "The UKCOD's trustees".
I have removed the apostrophe and the "s".

<% @title = "About" %>

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

Introduction to WhatDoTheyKnow #

What is WhatDoTheyKnow for? #

To help you find out inside information about the UK Government and UK public bodies.
The site helps people access information about central government, local government,
Parliament, the NHS, the armed forces, state funded schools and universities and
other public authorities.

You can also use the site to find out information that regulators hold about businesses,
charities and other organisations.

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 received 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 health care 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.
Some people also use the site for research.

Why would the public authority bother to reply? #

Under Freedom of Information (FOI) law, they have to respond. The response
will either contain the information you want, or give a valid legal reason why
it has not been provided.

Does useful information get released through the site? #

Yes. Thousands of documents have been released through the site.
See also: 366
Interesting things that we know because of WhatDoTheyKnow.

How many people use the site? #

We have over 30,000 registered users and around 15% to 20% of requests to UK Central Government are made through the site.

Who makes WhatDoTheyKnow? #

WhatDoTheyKnow is run and maintained by
UK Citizens Online
Democracy (UKCOD) as part of its
mySociety project.
UKCOD is a registered charity in England and Wales (no.
1076346).
UKCOD is also registered company (no.
03277032)
and a registered data controller (no.
Z9602302).
The UKCOD trustees form the governing body of the charity
and are ultimately responsible for controlling the management and administration of the charity. UKCOD's registered
office is 483 Green Lanes, London, N13 4BS. UKCOD is not a public body.

The site was initially
funded by the JRSST
Charitable Trust.

If you like what we're doing, then you can
make a donation.

How can I keep up with news about WhatDoTheyKnow?#

We have a <a href="<%= blog_path %>">blog and a twitter feed.

Next, read about <a href="<%= help_requesting_path %>">making requests -->

<% @title = "About" %>

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

Introduction to WhatDoTheyKnow #

What is WhatDoTheyKnow for? #

To help you find out inside information about the UK Government and UK public bodies.
The site helps people access information about central government, local government,
Parliament, the NHS, the armed forces, state funded schools and universities and
other public authorities.

You can also use the site to find out information that regulators hold about businesses,
charities and other organisations.

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 received 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 health care 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.
Some people also use the site for research.

Why would the public authority bother to reply? #

Under Freedom of Information (FOI) law, they have to respond. The response
will either contain the information you want, or give a valid legal reason why
it has not been provided.

Does useful information get released through the site? #

Yes. Thousands of documents have been released through the site.
See also: 366
Interesting things that we know because of WhatDoTheyKnow.

How many people use the site? #

We have over 30,000 registered users and around 15% to 20% of requests to UK Central Government are made through the site.

Who makes WhatDoTheyKnow? #

WhatDoTheyKnow is run and maintained by
UK Citizens Online
Democracy (UKCOD) as part of its
mySociety project.
UKCOD is a registered charity in England and Wales (no.
1076346).
UKCOD is also registered company (no.
03277032)
and a registered data controller (no.
Z9602302).
The UKCOD's trustees form the governing body of the charity
and are ultimately responsible for controlling the management and administration of the charity. UKCOD's registered
office is 483 Green Lanes, London, N13 4BS. UKCOD is not a public body.

The site was initially
funded by the JRSST
Charitable Trust.

If you like what we're doing, then you can
make a donation.

How can I keep up with news about WhatDoTheyKnow?#

We have a <a href="<%= blog_path %>">blog and a twitter feed.

Next, read about <a href="<%= help_requesting_path %>">making requests -->


ActionItem862: no publishing if CMS is disabled.

workaround ("armengue") asked by Vicente.

<%
  # AddThis Button
  if block_given? and File.exists?( RAILS_ROOT + '/config/web2.0.yml')
    opts = YAML.load_file( RAILS_ROOT + '/config/web2.0.yml' )
    if opts['addthis']
      opts = opts['addthis']
%>

<a href="http://www.addthis.com/bookmark.php" id="bt_addThis" target="_blank" onmouseover="return addthis_open(this, '', '[URL]', '<%= escape_javascript( @environment.name()+' :: '+@page.title ) %>')" onmouseout="addthis_close()" onclick="return addthis_sendto()">

<% end; end %>

  <%= article_title(@page, :no_link => true) %>

  <% if logged_in?  && current_user.person.has_permission?('post_content', profile) %>

      <%= link_to content_tag( 'span', label_for_edit_article(@page) ),
          { :controller => 'cms', :action => 'edit', :id => @page },
          :class => 'button with-text icon-edit' %>
      <% if !(profile.kind_of?(Enterprise) && environment.enabled?('disable_cms')) %>
        <%= link_to content_tag( 'span', _('Delete') ),
            { :controller => 'cms', :action => 'destroy', :id => @page },
            :class => 'button with-text icon-delete' %>
        <% if profile.kind_of?(Person) && !environment.enabled?('disable_cms') %>
          <%= link_to content_tag( 'span', _('Spread this') ),
              { :controller => 'cms', :action => 'publish', :id => @page },
              :class => 'button with-text icon-spread' %>
        <% end %>
        <%= lightbox_button(:new, label_for_new_article(@page), :controller => 'cms', :action => 'new', :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent))) %>
      <% end %>

  <% end %>

<% if !@page.tags.empty? %>

    <%= _("This article's tags:") %>
    <%= @page.tags.map { |t| link_to(t, :controller => 'profile', :profile => @profile.identifier, :action => 'tag', :id => t.name ) }.join("\n") %>

<% end %>

<% if @page.parent && !@page.parent.path.blank? %>

  <%= link_to_document(@page.parent, _('Up')) %>

<% end %>

<% if profile.enterprise? and !profile.enabled? and !profile.blocks.select {|b| b.class == DisabledEnterpriseMessageBlock}.any? %>

    <%= environment.message_for_disabled_enterprise %>

<% end %>

  <%= article_to_html(@page) %>

<% if ! @page.categories.empty? %>

<%= _('Categories') %>

    <%= @page.categories.map {|item| link_to_category(item, false) }.join(", ") %>

<% end %>

  <% if @page.accept_comments? %>
  <h3 <%= 'class="no-comments-yet"' if @comments.size == 0 %>>
    <%= number_of_comments(@page) %>

  <%= render :partial => 'comment', :collection => @comments %>
  <%= render :partial => 'comment_form' %>
  <% end %>

<%
  # AddThis Button
  if block_given? and File.exists?( RAILS_ROOT + '/config/web2.0.yml')
    opts = YAML.load_file( RAILS_ROOT + '/config/web2.0.yml' )
    if opts['addthis']
      opts = opts['addthis']
%>

<a href="http://www.addthis.com/bookmark.php" id="bt_addThis" target="_blank" onmouseover="return addthis_open(this, '', '[URL]', '<%= escape_javascript( @environment.name()+' :: '+@page.title ) %>')" onmouseout="addthis_close()" onclick="return addthis_sendto()">

<% end; end %>

  <%= article_title(@page, :no_link => true) %>

  <% if logged_in?  && current_user.person.has_permission?('post_content', profile) %>

      <%= link_to content_tag( 'span', label_for_edit_article(@page) ),
          { :controller => 'cms', :action => 'edit', :id => @page },
          :class => 'button with-text icon-edit' %>
      <% if !(profile.kind_of?(Enterprise) && environment.enabled?('disable_cms')) %>
        <%= link_to content_tag( 'span', _('Delete') ),
            { :controller => 'cms', :action => 'destroy', :id => @page },
            :class => 'button with-text icon-delete' %>
        <% if profile.kind_of?(Person) %>
          <%= link_to content_tag( 'span', _('Spread this') ),
              { :controller => 'cms', :action => 'publish', :id => @page },
              :class => 'button with-text icon-spread' %>
        <% end %>
        <%= lightbox_button(:new, label_for_new_article(@page), :controller => 'cms', :action => 'new', :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent))) %>
      <% end %>

  <% end %>

<% if !@page.tags.empty? %>

    <%= _("This article's tags:") %>
    <%= @page.tags.map { |t| link_to(t, :controller => 'profile', :profile => @profile.identifier, :action => 'tag', :id => t.name ) }.join("\n") %>

<% end %>

<% if @page.parent && !@page.parent.path.blank? %>

  <%= link_to_document(@page.parent, _('Up')) %>

<% end %>

<% if profile.enterprise? and !profile.enabled? and !profile.blocks.select {|b| b.class == DisabledEnterpriseMessageBlock}.any? %>

    <%= environment.message_for_disabled_enterprise %>

<% end %>

  <%= article_to_html(@page) %>

<% if ! @page.categories.empty? %>

<%= _('Categories') %>

    <%= @page.categories.map {|item| link_to_category(item, false) }.join(", ") %>

<% end %>

  <% if @page.accept_comments? %>
  <h3 <%= 'class="no-comments-yet"' if @comments.size == 0 %>>
    <%= number_of_comments(@page) %>

  <%= render :partial => 'comment', :collection => @comments %>
  <%= render :partial => 'comment_form' %>
  <% end %>


oops, unclosed div, that was bad

oops, unclosed div, that was bad

<% highlighted_links = get_service_type('highlighted_link')
   if (! highlighted_links.blank? || service_type_in_progress?('highlighted_link')) %>

<%= ServiceTypeValue[:highlighted_link].section_heading %>

      <% if ServiceTypeValue[:highlighted_link].section_prompt %>

          <%= ServiceTypeValue[:highlighted_link].section_prompt %>

      <% end %>

  <% highlighted_links.each do |hl_st|
    target = hl_st.view_data %>

       <%= render(:partial => "fulltext_element", :object=> hl_st, :locals => { :show_source => true, :li_class => "see_also"}) %>

  <% end %>

<% if service_type_in_progress?('highlighted_link') %>

<%= render(:partial => "background_progress", :locals => { :svc_type => ServiceTypeValue[:highlighted_link],:current_set_empty => highlighted_links.empty? } ) %>

<% end %>

<% end %>


Hmm, tried Share This, but it is worrying proprietary now.

<% @title = h(@info_request.title) %>

<% if @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "1" } %>

<% end %>

<%=@title%>

A Freedom of Information request to
    <%= public_body_link(@info_request.public_body) %>
    by
    <%= user_link(@info_request.user) %>

    <% if @info_request.awaiting_description %>
        <% if @is_owning_user %>
            Please answer the question above so we know whether the
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> useful information.
        <% else %>
            This request has an unknown status. We're waiting for
            <%= user_link(@info_request.user) %> to read
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
            and update the status.
        <% end %>
    <% elsif @status == 'waiting_response' %>
        Currently waiting for a response from <%= public_body_link(@info_request.public_body) %>,
        due by <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'waiting_response_overdue' %>
        Currently overdue a response from <%=
        public_body_link(@info_request.public_body) %>. The
        <%= link_to "response was due", about_url + "#quickly_response" %>
        on <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'not_held' %>
        <%= public_body_link(@info_request.public_body) %> did not have the information requested.
    <% elsif @status == 'rejected' %>
        The request was rejected by <%= public_body_link(@info_request.public_body) %>.
    <% elsif @status == 'successful' %>
        The request was successful.
    <% elsif @status == 'partially_successful' %>
        The request was partially successful.
    <% elsif @status == 'waiting_clarification' %>
        <% if @is_owning_user %>
            <%=h @info_request.public_body.name %> is waiting for your clarification.
            Please
            <%= link_to "send a follow up message", show_response_url(:id => @info_request.id, :incoming_message_id => @info_request.get_last_response.id) + "#show_response_followup" %>.
        <% else %>
            The request is waiting for clarification.
            If you are
            <%= user_link(@info_request.user) %>, please
            <%= link_to "sign in", signin_url(:r => request.request_uri) %> to send a follow up message.
        <% end %>
    <% elsif @status == 'requires_admin' %>
        This request has had an unusual response, and requires attention from the WhatDoTheyKnow team.
    <% else %>
        <% raise "unknown status " + @status %>
    <% end %>

    <% for info_request_event in @info_request_events %>
        <%= render :partial => 'correspondence', :locals => { :info_request_event => info_request_event } %>
    <% end %>

People tracking this request

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

        <% for track_thing in @info_request.track_things %>

<%=user_link(track_thing.tracking_user)%>

        <% end %>

            <% if @existing_track %>
                You are already tracking this request
                (<%= link_to "alter your subscriptions", user_url(@user) %>).
            <% else %>
                <% if @info_request.user == @user %>

You will be emailed when there are updates to your own request.

You may also <%= link_to "get an RSS feed", track_request_url(:url_title => @info_request.url_title) %>

                <% else %>
                    <%= link_to "Track updates to this request", track_request_url(:url_title => @info_request.url_title) %>
                    (by email or RSS feed )
                <% end %>
            <% end %>

    <% else %>
        <% if @info_request.user == @user %>

You will be emailed when there are updates to your own request.

You may also get an <%= link_to 'RSS feed', track_request_url(:url_title => @info_request.url_title) %>

        <% else %>

Be the first to <%= link_to "track updates to this request", track_request_url(:url_title => @info_request.url_title) %>
            (by email or RSS feed )

        <% end %>
    <% end %>

Act on this request

     Write to your politician about it

 Pledge with others

    <% if @info_requests_same_user_same_body.size > 0 %>

Requests from same user to same authority

        <%= render :partial => 'sidebar_request_listing', :locals => { :info_requests => @info_requests_same_user_same_body } %>
        <% if @info_requests_same_user_same_body_more %>

<%= link_to "More such requests", search_url(:query => "variety:sent requested_from:" + @info_request.public_body.url_name + " requested_by:" + @info_request.user.url_name + " -request:" + @info_request.url_title, :sortby => "newest") %>

        <% end %>
    <% end %>

<% if @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "2" } %>

<% end %>

<% @title = h(@info_request.title) %>

<% if @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "1" } %>

<% end %>

<%=@title%>

A Freedom of Information request to
    <%= public_body_link(@info_request.public_body) %>
    by
    <%= user_link(@info_request.user) %>

    <% if @info_request.awaiting_description %>
        <% if @is_owning_user %>
            Please answer the question above so we know whether the
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'recent response contains', 'recent responses contain') %> useful information.
        <% else %>
            This request has an unknown status. We're waiting for
            <%= user_link(@info_request.user) %> to read
            <%= MySociety::Format.fancy_pluralize(@new_responses_count, 'a recent response', 'recent responses') %>
            and update the status.
        <% end %>
    <% elsif @status == 'waiting_response' %>
        Currently waiting for a response from <%= public_body_link(@info_request.public_body) %>,
        due by <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'waiting_response_overdue' %>
        Currently overdue a response from <%=
        public_body_link(@info_request.public_body) %>. The
        <%= link_to "response was due", about_url + "#quickly_response" %>
        on <%= simple_date(@info_request.date_response_required_by) %>.
    <% elsif @status == 'not_held' %>
        <%= public_body_link(@info_request.public_body) %> did not have the information requested.
    <% elsif @status == 'rejected' %>
        The request was rejected by <%= public_body_link(@info_request.public_body) %>.
    <% elsif @status == 'successful' %>
        The request was successful.
    <% elsif @status == 'partially_successful' %>
        The request was partially successful.
    <% elsif @status == 'waiting_clarification' %>
        <% if @is_owning_user %>
            <%=h @info_request.public_body.name %> is waiting for your clarification.
            Please
            <%= link_to "send a follow up message", show_response_url(:id => @info_request.id, :incoming_message_id => @info_request.get_last_response.id) + "#show_response_followup" %>.
        <% else %>
            The request is waiting for clarification.
            If you are
            <%= user_link(@info_request.user) %>, please
            <%= link_to "sign in", signin_url(:r => request.request_uri) %> to send a follow up message.
        <% end %>
    <% elsif @status == 'requires_admin' %>
        This request has had an unusual response, and requires attention from the WhatDoTheyKnow team.
    <% else %>
        <% raise "unknown status " + @status %>
    <% end %>

    <% for info_request_event in @info_request_events %>
        <%= render :partial => 'correspondence', :locals => { :info_request_event => info_request_event } %>
    <% end %>

People tracking this request

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

        <% for track_thing in @info_request.track_things %>

<%=user_link(track_thing.tracking_user)%>

        <% end %>

            <% if @existing_track %>
                You are already tracking this request
                (<%= link_to "alter your subscriptions", user_url(@user) %>).
            <% else %>
                <% if @info_request.user == @user %>

You will be emailed when there are updates to your own request.

You may also <%= link_to "get an RSS feed", track_request_url(:url_title => @info_request.url_title) %>

                <% else %>
                    <%= link_to "Track updates to this request", track_request_url(:url_title => @info_request.url_title) %>
                    (by email or RSS feed )
                <% end %>
            <% end %>

    <% else %>
        <% if @info_request.user == @user %>

You will be emailed when there are updates to your own request.

You may also get an <%= link_to 'RSS feed', track_request_url(:url_title => @info_request.url_title) %>

        <% else %>

Be the first to <%= link_to "track updates to this request", track_request_url(:url_title => @info_request.url_title) %>
            (by email or RSS feed )

        <% end %>
    <% end %>

    <% if @info_requests_same_user_same_body.size > 0 %>

Requests from same user to same authority

        <%= render :partial => 'sidebar_request_listing', :locals => { :info_requests => @info_requests_same_user_same_body } %>
        <% if @info_requests_same_user_same_body_more %>

<%= link_to "More such requests", search_url(:query => "variety:sent requested_from:" + @info_request.public_body.url_name + " requested_by:" + @info_request.user.url_name + " -request:" + @info_request.url_title, :sortby => "newest") %>

        <% end %>
    <% end %>

Things to do about this request

        <form method="get" action="http://www.writetothem.com/">

                    Contact Your Politician

                <input type="text" value="Your Postcode" name="pc" size="13"
                    style="width:90px;vertical-align:bottom;
                        font:8pt/11pt arial,helvetica,sans-serif;color:#666;"
                    onfocus="clearDefault(this)" onblur="fillDefault(this)" />
                <input type="image" value="Go" style="vertical-align:bottom;"
                    src="http://www.writetothem.com/envelope_arrow.gif" />

        </form>
        writetothem.com

<% if @info_request.awaiting_description %>

    <%= render :partial => 'describe_state', :locals => { :id_suffix => "2" } %>

<% end %>


changes made to hide and view display

changes made to hide and view display

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

View Review

<%if @assgt.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 @assgt.wiki_type.name == "DokuWiki" %>

DokuWiki Review Links:

<%= review_dokuwiki @assgt.directory_path, _time, @author_name  %>

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

MediaWiki Review Links:

<%if @assgt.team_assignment  # The lookup of all team members should be put in a wiki helper
  	for team_member in @team_members
		member_name = User.find(team_member.user_id).name
	%>
		<%= review_mediawiki_group @assgt.directory_path, _time, member_name  %>
	<%end%>
<%else%>
	<%= review_mediawiki @assgt.directory_path, _time, @author_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 @assgt.team_assignment %>
	<% for team_member in @team_members %>

	<% submitted = Participant.find(:first, :conditions =>["user_id = ? and assignment_id = ?",team_member.user_id,@assgt.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%>

View review

Hide review

Reviewed <%= @review.review_num_for_author %> at <%= @review.updated_at.strftime('%A %B %d %Y, %I:%M%p') %>
<%= render :partial => 'review/scores' %>
Additional Comment : <%=@review.additional_comment%>

<%
review_feedback = ReviewFeedback.find(:first,:conditions =>["review_id = ? and assignment_id = ?", @review.id, @assgt.id])
if(review_feedback) %>

View author feedback

Hide author feedback

<% @review_scores1 = ReviewScore.find(:all,:conditions =>["review_id =? AND questionnaire_type_id = ?", review_feedback.id, '4'])
%>

Author feedback:

<%= render :partial => 'review/score1' %>
Additional Comment:
<%=review_feedback.additional_comment%>

<% end%>

View Review

<%if @assgt.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 @assgt.wiki_type.name == "DokuWiki" %>

DokuWiki Review Links:

<%= review_dokuwiki @assgt.directory_path, _time, @author_name  %>

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

MediaWiki Review Links:

<%if @assgt.team_assignment  # The lookup of all team members should be put in a wiki helper
  	for team_member in @team_members
		member_name = User.find(team_member.user_id).name
	%>
		<%= review_mediawiki_group @assgt.directory_path, _time, member_name  %>
	<%end%>
<%else%>
	<%= review_mediawiki @assgt.directory_path, _time, @author_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 @assgt.team_assignment %>
	<% for team_member in @team_members %>

	<% submitted = Participant.find(:first, :conditions =>["user_id = ? and assignment_id = ?",team_member.user_id,@assgt.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%>
View review

Reviewed <%= @review.review_num_for_author %> at <%= @review.updated_at.strftime('%A %B %d %Y, %I:%M%p') %>
<%= render :partial => 'review/scores' %>
Additional Comment : <%=@review.additional_comment%>

<%
review_feedback = ReviewFeedback.find(:first,:conditions =>["review_id = ? and assignment_id = ?", @review.id, @assgt.id])
if(review_feedback) %>
View author feedback

<% @review_scores1 = ReviewScore.find(:all,:conditions =>["review_id =? AND questionnaire_type_id = ?", review_feedback.id, '4'])
%>

Author feedback:

<%= render :partial => 'review/score1' %>
Additional Comment:
<%=review_feedback.additional_comment%>

<% end%>


Use consistent link formatting

Use consistent link formatting

<%= error_messages_for 'censor_rule' %>

  <%=_("Applies to")%>
  <% unless info_request.nil? %>
    <%= request_both_links(info_request) %>
    <%= hidden_field 'censor_rule', 'info_request_id', { :value => info_request.id } %>
  <% end %>
  <% unless user.nil? %>
    <%= user_both_links(user) %>
    <%= hidden_field 'censor_rule', 'user_id', { :value => user.id } %>
<% end %>

  Is it regexp replacement?

    <%= check_box 'censor_rule', 'regexp' %>

      Leave unchecked if you are not sure about this

  Text

    <%= text_field 'censor_rule', 'text', :class => "span3" %>

      that you want to remove, case sensitive

  Replacement

    <%= text_field 'censor_rule', 'replacement', :class => "span3"  %>

      put it in [square brackets], e.g. [personal information removed]. applies to text in emails and HTML conversions of binaries; binaries themselves must stay the same length and the replacement is just a bunch of 'x's

  Comment for this edit

    <%= text_area 'censor_rule', 'last_edit_comment', :rows => 2, :class => "span6"  %>

      put purpose of the rule, and why the change

Warning and notes:

 This does replace text in binary files, but for
      most formats only in a naive way. It works well on surprisingly many Word documents. Notably
      it doesn't even do UCS-2 (unicode sometimes used in Word). There is also special code
      which works on some PDFs. Please carefully check all attachments have
      changed in the way you expect, and haven't become corrupted.

You may need to manually rebuild the search index afterwards. You can redact
      things by individual request or by user by adding the censor rule from the
      appropriate page.  If you need to redact across a whole
      authority, it will be easy enough to make code changes to add it, so do ask.

         Regexp rules that are hard to process will really slow down request display. Please only use regexps if you really need to.

<%= error_messages_for 'censor_rule' %>

  <%=_("Applies to")%>
  <% unless info_request.nil? %>
    <%= request_link(info_request)%>
    <%= link_to "(admin)", admin_request_show_url(info_request), :class => "btn btn-info" %>
    <%= hidden_field 'censor_rule', 'info_request_id', { :value => info_request.id } %>
  <% end %>
  <% unless user.nil? %>
    <%= user_link(user) %>
    <%= user_admin_link(user, "admin", "btn btn-info") %>
    <%= hidden_field 'censor_rule', 'user_id', { :value => user.id } %>
<% end %>

  Is it regexp replacement?

    <%= check_box 'censor_rule', 'regexp' %>

      Leave unchecked if you are not sure about this

  Text

    <%= text_field 'censor_rule', 'text', :class => "span3" %>

      that you want to remove, case sensitive

  Replacement

    <%= text_field 'censor_rule', 'replacement', :class => "span3"  %>

      put it in [square brackets], e.g. [personal information removed]. applies to text in emails and HTML conversions of binaries; binaries themselves must stay the same length and the replacement is just a bunch of 'x's

  Comment for this edit

    <%= text_area 'censor_rule', 'last_edit_comment', :rows => 2, :class => "span6"  %>

      put purpose of the rule, and why the change

Warning and notes:

 This does replace text in binary files, but for
      most formats only in a naive way. It works well on surprisingly many Word documents. Notably
      it doesn't even do UCS-2 (unicode sometimes used in Word). There is also special code
      which works on some PDFs. Please carefully check all attachments have
      changed in the way you expect, and haven't become corrupted.

You may need to manually rebuild the search index afterwards. You can redact
      things by individual request or by user by adding the censor rule from the
      appropriate page.  If you need to redact across a whole
      authority, it will be easy enough to make code changes to add it, so do ask.

         Regexp rules that are hard to process will really slow down request display. Please only use regexps if you really need to.


Text tweaks to describe form.

Text tweaks to describe form.

<% if @is_owning_user %>
    <% form_for(:incoming_message, @info_request, :url => describe_state_url(:id => @info_request.id)) do |f| %>

What is the status of this request now?

            <%= radio_button "incoming_message", "described_state", "waiting_response", :id => 'waiting_response' + id_suffix %>
            <label for="waiting_response<%=id_suffix%>">I'm still waiting for my information / a rejection (e.g. if the new response was just an acknowledgement)

            <%= radio_button "incoming_message", "described_state", "waiting_clarification", :id => 'waiting_clarification' + id_suffix %>
            <label for="waiting_clarification<%=id_suffix%>">I'm about to clarify my request

            <%= radio_button "incoming_message", "described_state", "not_held", :id => 'not_held' + id_suffix %>
            <label for="not_held<%=id_suffix%>">The authority does not have the information (perhaps they suggest making the request elsewhere)

            <%= radio_button "incoming_message", "described_state", "rejected", :id => 'rejected' + id_suffix %>
            <label for="rejected<%=id_suffix%>">My request has been rejected

            <%= radio_button "incoming_message", "described_state", "successful", :id => 'successful' + id_suffix %>
            <label for="successful<%=id_suffix%>">I've received all the information (or equivalents) that I asked for

            <%= radio_button "incoming_message", "described_state", "partially_successful", :id => 'partially_successful' + id_suffix %>
            <label for="partially_successful<%=id_suffix%>">I've received some of the information that I asked for

            <%= radio_button "incoming_message", "described_state", "requires_admin", :id => 'requires_admin' + id_suffix %>
            <label for="requires_admin<%=id_suffix%>">None of the above - e.g. add a new option here

Filling this in helps everyone track the progress of your request.

        <%= hidden_field_tag 'last_info_request_event_id', @last_info_request_event_id, :id => 'last_info_request_event_id' + id_suffix %>
        <%= hidden_field_tag 'submitted_describe_state', 1, :id => 'submitted_describe_state' + id_suffix %>
        <%= submit_tag "Next ..." %>

    <% end %>
<% else %>
        We don't know whether the most recent response to this request contains
        information or not
            –
        if you are
            <%= user_link(@info_request.user) %>,
        please
            <%= link_to "sign in as them", signin_url(:r => request.request_uri) %>
        and let everyone know.
<% end %>

<% if @is_owning_user %>
    <% form_for(:incoming_message, @info_request, :url => describe_state_url(:id => @info_request.id)) do |f| %>

What is the status of this request now?

            <%= radio_button "incoming_message", "described_state", "waiting_response", :id => 'waiting_response' + id_suffix %>
            <label for="waiting_response<%=id_suffix%>">I'm still waiting for my information / a rejection (e.g. if the new response was just an acknowledgement)

            <%= radio_button "incoming_message", "described_state", "waiting_clarification", :id => 'waiting_clarification' + id_suffix %>
            <label for="waiting_clarification<%=id_suffix%>">I'm about to clarify my request

            <%= radio_button "incoming_message", "described_state", "not_held", :id => 'not_held' + id_suffix %>
            <label for="not_held<%=id_suffix%>">The authority does not have the information (perhaps they suggest making the request elsewhere)

            <%= radio_button "incoming_message", "described_state", "rejected", :id => 'rejected' + id_suffix %>
            <label for="rejected<%=id_suffix%>">My request has been rejected

            <%= radio_button "incoming_message", "described_state", "successful", :id => 'successful' + id_suffix %>
            <label for="successful<%=id_suffix%>">I've received all the information (or equivalents) that I asked for

            <%= radio_button "incoming_message", "described_state", "partially_successful", :id => 'partially_successful' + id_suffix %>
            <label for="partially_successful<%=id_suffix%>">I've received some of the information that I asked for

            <%= radio_button "incoming_message", "described_state", "requires_admin", :id => 'requires_admin' + id_suffix %>
            <label for="requires_admin<%=id_suffix%>">None of the above - e.g. add a new option here

Filling this in each time you get a new response helps us track the progress of your request.

        <%= hidden_field_tag 'last_info_request_event_id', @last_info_request_event_id, :id => 'last_info_request_event_id' + id_suffix %>
        <%= hidden_field_tag 'submitted_describe_state', 1, :id => 'submitted_describe_state' + id_suffix %>
        <%= submit_tag "Next" %>

    <% end %>
<% else %>
        We don't know whether the most recent response to this request contains
        information or not
            –
        if you are
            <%= user_link(@info_request.user) %>,
        please
            <%= link_to "sign in as them", signin_url(:r => request.request_uri) %>
        and let everyone know.
<% end %>