context_content: fix pagination view

context_content: fix pagination view

<% if contents.total_pages > 1 %>
  <%= link_to_remote(nil, :url => {:profile => block.owner.identifier, :id => block.id, :controller => 'context_content_plugin_profile', :action => 'view_content', :page => contents.previous_page, :article_id => article_id }, :html => {:class => "button icon-button icon-left #{contents.previous_page ? '':'disabled'}".strip}, :condition => "#{!contents.previous_page.nil?}", :success => "jQuery('#context_content_#{block.id}').effect('slide', {direction: 'left'});" )%>
  <%= link_to_remote(nil, :url => {:profile => block.owner.identifier, :id => block.id, :controller => 'context_content_plugin_profile', :action => 'view_content', :page => contents.next_page, :article_id => article_id }, :html => {:class => "button icon-button icon-right #{contents.next_page ? '':'disabled'}".strip}, :condition => "#{!contents.next_page.nil?}", :success => "jQuery('#context_content_#{block.id}').effect('slide', {direction: 'right'});" )%>
<% end %>

<% if contents.total_pages > 1 %>
  <%= link_to_remote(nil, :url => {:id => block.id, :controller => 'context_content_plugin_profile', :action => 'view_content', :page => contents.previous_page, :article_id => article_id }, :html => {:class => "button icon-button icon-left #{contents.previous_page ? '':'disabled'}".strip}, :condition => "#{!contents.previous_page.nil?}", :success => "jQuery('#context_content_#{block.id}').effect('slide', {direction: 'left'});" )%>
  <%= link_to_remote(nil, :url => {:id => block.id, :controller => 'context_content_plugin_profile', :action => 'view_content', :page => contents.next_page, :article_id => article_id }, :html => {:class => "button icon-button icon-right #{contents.next_page ? '':'disabled'}".strip}, :condition => "#{!contents.next_page.nil?}", :success => "jQuery('#context_content_#{block.id}').effect('slide', {direction: 'right'});" )%>
<% end %>


Pedantic change to descriptive text - "Recently closed" to "Recently edited"

Recent Changes

Recently edited changesets:

    ID
    Saved at
    User
    Comment
    Area

  <%= render :partial => 'changeset', :locals => {:showusername => true},  :collection => @edits unless @edits.nil?  %>

For more changesets, select a user and view their edits, or see the editing 'history' of a specific area.

Recent Changes

Recently closed changesets:

    ID
    Saved at
    User
    Comment
    Area

  <%= render :partial => 'changeset', :locals => {:showusername => true},  :collection => @edits unless @edits.nil?  %>

For more changesets, select a user and view their edits, or see the editing 'history' of a specific area.


ActionItem129: Fixed misspelling

ActionItem129: Fixed misspelling

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

<% if @product_category %>
  <% if params[:lat] && params[:long] && params[:radius] %>
    <%= _('Listing sellers of %s witin %s km from %s %s') % [@product_category.name, params[:radius], params[:lat], params[:long]] %>
  <% else %>
    <%= _('Listing sellers of %s') % @product_category.name %>
  <% end %>
<% else %>
  <% if params[:lat] && params[:long] && params[:radius] %>
    <%= _('Listing sellers witin %s km from %s %s') % [params[:radius], params[:lat], params[:long]] %>
  <% else %>
    <%= _('Listing sellers') %>
  <% end %>
<% end %>

<% form_tag({}, {:method => 'get'}) do %>
  <%= _('Category: ') %> <%= select_tag 'category', options_from_collection_for_select(@categories, :id, :name, @product_category) %>

  <%= _('Distance from point: ') %> <%= text_field_tag 'radius' %>

  <%= _('Region') %> <%= select_tag 'region', options_from_collection_for_select(@regions, :id, :name, @region) %>

  <%= submit_tag _('Search') %>
<% end %>

">

 <%= render :partial => 'profile', :collection => @enterprises %>

<% if @product_category %>
  <% if params[:lat] && params[:long] && params[:radius] %>
    <%= _('Listing sellers of %s witin %s km from %s %s') % [@product_category.name, params[:radius], params[:lat], params[:long]] %>
  <% else %>
    <%= _('Listing sellers of %s') % @product_category.name %>
  <% end %>
<% else %>
  <% if params[:lat] && params[:long] && params[:radius] %>
    <%= _('Listing sellers witin %s km from %s %s') % [params[:radius], params[:lat], params[:long]] %>
  <% else %>
    <%= _('Listing sellers') %>
  <% end %>
<% end %>

<% form_tag({}, {:method => 'get'}) do %>
  <%= _('Category: ') %> <%= select_tag 'category', options_from_collection_for_select(@categories, :id, :name, @product_category) %>

  <%= _('Distance form point: ') %> <%= text_field_tag 'radius' %>

  <%= _('Region') %> <%= select_tag 'region', options_from_collection_for_select(@regions, :id, :name, @region) %>

  <%= submit_tag _('Search') %>
<% end %>

">

 <%= render :partial => 'profile', :collection => @enterprises %>


Fix helper

Fix helper

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

<% if @site_template -%>

<% else -%>

<% end -%>

  <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  <%= stylesheet_link_tag 'global.css' %>
  <%= stylesheet_link_tag "thickbox", "jquery.autocomplete.css" %>
  <%= airbrake_javascript_notifier %>
  <%= javascript_include_tag "jquery", "thickbox", "jquery.ui.all.packed.js", "jquery.bgiframe.min.js", "jquery.autocomplete.pack.js" %>
  <%= javascript_include_tag "application" %>
  <% if @rss_url %>
    <link rel="alternate" title="RSS Feed" href="<%=@rss_url%>" type="application/rss+xml"/>
  <% end %>

  <% if not @site_template.themeroller_css.blank? -%>
    <%= stylesheet_link_tag "#{site_template_url(@site_template)}/themeroller.css" %>
  <% else -%>
    <%= stylesheet_link_tag 'themeroller-default.css' %>
  <% end -%>
  <% if not @site_template.css.blank? -%>

  <% end -%>
  <title><%= page_title %></title>

<% if not @site_template.header.blank? -%>
  <%= @site_template.header %>
<% end -%>

<% if not @hide_chrome -%>

<%= page_title %>

          <% if @context and @context.parent -%>

Part of
              <%= link_to @context.parent.fullname, :controller => params[:controller], :context => @context.parent.id %>

          <% end -%>

<%= link_to "Home", :controller => :main, :action => :index %>

<%= link_to "My Events", :controller => :agenda, :action => :index %>

            <% if @context and @context.schedules.count(:conditions => ["published = ?", true]) == 1 -%>

<%= link_to "Event Schedule", schedule_path(@context.schedules[0]) %>

            <% elsif @context and @context.schedules.count(:conditions => ["published = ?", true]) > 1 -%>

<%= link_to "Event Schedules", schedules_path %>

            <% end -%>
            <% if logged_in_person_can_edit?(@context) -%>

Administration »

		  «

<%= link_to "Events", events_path %>

  		    <% if @context -%>

<%= link_to "Attendees", :controller => "agenda", :action => "attendees" %>

		    <% end -%>

<%= link_to "Locations", locations_path %>

<%= link_to "Site Templates", site_templates_path %>

<%= link_to "Schedules", schedules_path %>

					<% if global_admin? -%>

<%= link_to "Virtual Sites", virtual_sites_path %>

					<% end -%>

            <% end -%>

          	<% if logged_in? -%>
				<%= render :partial => "auth/mini_auth_form" %>
			<% else -%>

Log in

				<%= link_to "Click here to log into this site.", :controller => "auth", :action => "login" %>
			<% end -%>

<% end -%>

<% if flash[:error_messages].present? -%>

There were some errors processing your request:

      <% flash[:error_messages].each do |msg| -%>

<%= msg%>

      <% end -%>

<% end -%>

  <%= @content_for_layout %>

<% if not @site_template.footer.blank? -%>
  <%= @site_template.footer %>
<% end -%>

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

<% if @site_template -%>

<% else -%>

<% end -%>

  <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  <%= stylesheet_link_tag 'global.css' %>
  <%= stylesheet_link_tag "thickbox", "jquery.autocomplete.css" %>
  <%= hoptoad_javascript_notifier %>
  <%= javascript_include_tag "jquery", "thickbox", "jquery.ui.all.packed.js", "jquery.bgiframe.min.js", "jquery.autocomplete.pack.js" %>
  <%= javascript_include_tag "application" %>
  <% if @rss_url %>
    <link rel="alternate" title="RSS Feed" href="<%=@rss_url%>" type="application/rss+xml"/>
  <% end %>

  <% if not @site_template.themeroller_css.blank? -%>
    <%= stylesheet_link_tag "#{site_template_url(@site_template)}/themeroller.css" %>
  <% else -%>
    <%= stylesheet_link_tag 'themeroller-default.css' %>
  <% end -%>
  <% if not @site_template.css.blank? -%>

  <% end -%>
  <title><%= page_title %></title>

<% if not @site_template.header.blank? -%>
  <%= @site_template.header %>
<% end -%>

<% if not @hide_chrome -%>

<%= page_title %>

          <% if @context and @context.parent -%>

Part of
              <%= link_to @context.parent.fullname, :controller => params[:controller], :context => @context.parent.id %>

          <% end -%>

<%= link_to "Home", :controller => :main, :action => :index %>

<%= link_to "My Events", :controller => :agenda, :action => :index %>

            <% if @context and @context.schedules.count(:conditions => ["published = ?", true]) == 1 -%>

<%= link_to "Event Schedule", schedule_path(@context.schedules[0]) %>

            <% elsif @context and @context.schedules.count(:conditions => ["published = ?", true]) > 1 -%>

<%= link_to "Event Schedules", schedules_path %>

            <% end -%>
            <% if logged_in_person_can_edit?(@context) -%>

Administration »

		  «

<%= link_to "Events", events_path %>

  		    <% if @context -%>

<%= link_to "Attendees", :controller => "agenda", :action => "attendees" %>

		    <% end -%>

<%= link_to "Locations", locations_path %>

<%= link_to "Site Templates", site_templates_path %>

<%= link_to "Schedules", schedules_path %>

					<% if global_admin? -%>

<%= link_to "Virtual Sites", virtual_sites_path %>

					<% end -%>

            <% end -%>

          	<% if logged_in? -%>
				<%= render :partial => "auth/mini_auth_form" %>
			<% else -%>

Log in

				<%= link_to "Click here to log into this site.", :controller => "auth", :action => "login" %>
			<% end -%>

<% end -%>

<% if flash[:error_messages].present? -%>

There were some errors processing your request:

      <% flash[:error_messages].each do |msg| -%>

<%= msg%>

      <% end -%>

<% end -%>

  <%= @content_for_layout %>

<% if not @site_template.footer.blank? -%>
  <%= @site_template.footer %>
<% end -%>


Disabled sort until table_maker is fixed

<%= table_for(Position, {
  :object      => @project,
  :association => :positions,
  :controls    => (current_user.can_edit_users?(@project) ? :before : nil),
#  :sort        => :role,
}) %>

<%= table_for(Position, {
  :object      => @project,
  :association => :positions,
  :controls    => (current_user.can_edit_users?(@project) ? :before : nil),
  :sort        => :role,
}) %>


added sample add_item invocation with a block in the template

git-svn-id: f76eed8e487a44beae89d1eba0f570439618a0df@47 dbc01b36-f746-0410-8b88-c76c4e1ff24b

<%%
# this partial renders a navigation bar, you can call it in your views with:
#   <%% navigation :<%=name%> % >
#
# you can pass render_navigation a few options:
#   :generate_css => true|false #=> generates a default inline css for the tabnav, defaults to false
#   :html => aHash #=> sets html options for the tabnav's div (es :html => {:class=> 'myCssClass', :id=>'myCssId'})
#
render_navigation :<%=name%>, :generate_css => true do
    add_item :name => 'home',
             :link => {:controller => 'main'}
    add_item :name => 'www.seesaw.it',
             :link => 'http://www.seesaw.it'
    add_item :name => 'blog.seesaw.it',
             :link => 'http://blog.seesaw.it'

    # you can pass add_item a block to just like the tabnav!
    #
    # add_item do |i|
    #   i.html = {:id => 'logout_link'}
    #   i.named 'logout',
    #   i.links_to :action => 'logout'
    # end
    #
end
%>

<%%
# this partial renders a navigation bar, you can call it in your views with:
#   <%% navigation :<%=name%> % >
#
# you can pass render_navigation a few options:
#   :generate_css => true|false #=> generates a default inline css for the tabnav, defaults to false
#   :html => aHash #=> sets html options for the tabnav's div (es :html => {:class=> 'myCssClass', :id=>'myCssId'})
#
render_navigation :<%=name%>, :generate_css => true do
    add_item :name => 'home',
             :link => {:controller => 'main'}
    add_item :name => 'www.seesaw.it',
             :link => 'http://www.seesaw.it'
    add_item :name => 'blog.seesaw.it',
             :link => 'http://blog.seesaw.it'
end
%>


Formatted the calendar view.

Formatted the calendar view.

<% @heading="Calendar".t %>
<% @h1class='home' %>

<% @links = [] %>
<% @links += [{:url => "/tasks/workload", :title => "Workload", :accesskey => "w"}] %>
<% @links += [{:url => "/tasks/matrix", :title => "Hot Map", :accesskey => "m"}] %>
<% @links += [{:url => "/tasks/calendar", :title => "Calendar", :accesskey => "c"}] %>
<% @links += [{:url => "/tasks/collage", :title => "Collage", :accesskey => "o"}] %>
<% @links += [{:url => "/tasks/statistics", :title => "Statistics", :accesskey => "s"}] %>
<% @links += [{:url => "/tasks/print", :title => "Print outs", :accesskey => "p"}] %>

<%= render(:partial => 'messages') %>

<%= render(:partial => 'reschedule_link') %>

<% day = Date.parse("#{@year}-#{@month}-01") %>

<% days_in_month = ::Time.days_in_month(@month.to_i, @year.to_i) %>

<%= link_to(image_tag('arrow-left.png', :size => '15x12', :alt => "previous month".t), {'year' => @backyear, 'month' => @backmonth}) + day.localize("%B %Y") + link_to(image_tag('arrow-right.png', :size => '15x12', :alt => "next month".t), {'year' => @forwardyear, 'month' => @forwardmonth}) %>

<% day_of_month = 1 %>

<% year_string = @year.to_s -%>
<% month_string = @month.to_s -%>

        <% while day_of_month <= days_in_month %>

          <% day = Date.parse("#{@year}-#{@month}-#{day_of_month}") %>

          <tr<%= " class='calendar-today'" if day_of_month == @marktoday %>>
            <td class='calendar-date<%= " sunday" if day.wday == 0 %>'>
              <%= day_of_month %>

              <%= day.localize("%a") %>

            <td class='calendar-content droppable' id='drop_<%= year_string + "-" + month_string + "-" + day_of_month.to_s %>'>
              <% content_in_cell = false; %>
              <% for task in @this_months_tasks %>
                <% if task.next_due.mday == day_of_month %>
                  <% content_in_cell = true; %>

                  <% if task.list.team.use_colour == true
                    style=" style='background-color:#" + task.list.team.colour + "; color:#" + task.list.team.text_colour + ";'"
                  else
                    style=""
                  end %>

                  <span id='task-<%= task.id.to_s %>' class='draggable'>

                    <% if @enable_js -%>
                      <img src='/images/icons/drag-handle.png' class='drag-handle' width='13' height='13' alt='<%= "Drag to re-schedule".t %>' title='<%= "Drag to re-schedule".t %>' />
                    <% end -%>
                    <a title='<%= task.recurrence_description %>' href='/tasks/show/<%= task.id %>' <%= style %>><%= task.list.name %>: <%= task.name %>

                    <% if @enable_js == false %>
                      <%= link_to(image_tag('tick.png', :size => '12x12', :alt => 'done'), {:controller => 'tasks', :action => 'done', :id => task.id, :return => 'calendar'}) %>
                    <% else %>
                      <%= link_to_remote(image_tag('tick.png', :size => '12x12', :alt => 'done', 'onclick' => "new Effect.Fade('task-" + task.id.to_s + "', {duration:0.8});"), :url => {:controller => 'tasks', :action => 'done', :id => task.id, :return => 'calendar', :flash => 'none'}, :failure => "alert('" + "Apologies, something might have gone wrong. Please refresh your browser to check whether the task was updated properly.".t + "');") %>
                    <% end %>

                <% end %>
              <% end %>
              <%= " " if content_in_cell == false %>

          <% day_of_month += 1 %>

          <% if day_of_month == 17 %>

          <% end %>

        <% end %>

<% if @enable_js -%>

<% end -%>


WDTK-88 change every citizen to everyone with a link to some help text

  Your Right to Know

<%= link_to "Everyone", help_requesting_path(:anchor => "who") %> has the right to access information held by public bodies. By law, they have to respond. <a href="<%= help_about_url %>">Find out more about Freedom of Information.

  Your Right to Know

Every citizen has the right to access information held by public bodies. By law, they have to respond. <a href="<%= help_about_url %>">Find out more about Freedom of Information.


update data entry URL

update data entry URL

<%= image_tag 'new.png' %>
<%= link_to 'Add Other Data', user_accounts_path(@user || @current_user) %>

<%= image_tag 'new.png' %>
<%= link_to 'Add Other Data', { :controller => "/data_entry/index" } %>


Whoops, forgot to remove this MP expenses campaign ad

<%
    # Construct the main text of the mail
    main_text = ''
    for track_thing, alert_results, xapian_object in @email_about_things
        main_text += track_thing.params[:title_in_email] + "\n"
        main_text += ("=" * track_thing.params[:title_in_email].size) + "\n\n"
        @highlight_words = xapian_object.words_to_highlight
        for result in alert_results.reverse
            if result[:model].class.to_s == "InfoRequestEvent"
                event = result[:model]

                # Request title - only add title if we're not tracking a request.
                # e.g. -- Address and opening times of Post Office branches --
                if track_thing.info_request.nil?
                    main_text += "-- " + highlight_words(event.info_request.title, @highlight_words, false) + " --\n"
                end

                # e.g. Julian Burgess sent a request to Royal Mail Group (15 May 2008)
                if event.event_type == 'response'
                    url = main_url(incoming_message_url(event.incoming_message))
                    main_text += event.info_request.public_body.name + " sent a response to " + event.info_request.user.name
                elsif event.event_type == 'followup_sent'
                    url = main_url(outgoing_message_url(event.outgoing_message))
                    main_text += event.info_request.user.name + " sent a follow up message to " + event.info_request.public_body.name
                elsif event.event_type == 'sent'
                    # this is unlikely to happen in real life, but happens in the test code
                    url = main_url(outgoing_message_url(event.outgoing_message))
                    main_text += event.info_request.user.name + " sent a request to " + event.info_request.public_body.name
                elsif event.event_type == 'comment'
                    url = main_url(comment_url(event.comment))
                    main_text += event.comment.user.name + " added an annotation"
                else
                    raise "unknown type in event_digest " + event.event_type
                end
                main_text += " (" + simple_date(event.created_at) + ")\n"

                # Main text, wrapped, words highlighted with * and indented.
                if not event.outgoing_message.nil?
                    extract = highlight_and_excerpt(event.outgoing_message.body_without_salutation, @highlight_words, 150, false)
                elsif not event.incoming_message.nil?
                    extract = highlight_and_excerpt(event.incoming_message.get_text_for_indexing, @highlight_words, 150, false)
                elsif not event.comment.nil?
                    extract = highlight_and_excerpt(event.comment.body, @highlight_words, 150, false)
                else
                    extract = highlight_and_excerpt(info_request.initial_request_text, @highlight_words, 150, false)
                end
                extract.gsub!(/\s+/, ' ')
                main_text += MySociety::Format.wrap_email_body('"' + extract + '"').gsub(/\n+$/, "") + "\n"

                # Link to the request/response
                main_text += url + "\n"
                main_text += "\n"
            else
                raise "need to add other types to TrackMailer.event_digest"
            end
        end
        main_text += "\n"
    end

    #STDERR.puts main_text
    #STDERR.puts @unsubscribe_url
%><%=main_text%>Alter your subscription
=======================

Please click on the link below to cancel or alter these emails.
<%=@unsubscribe_url%>

-- the WhatDoTheyKnow team

Please help - only a few days left to prevent MPs from hiding their expenses on 22 Jan.
http://www.mysociety.org/2009/01/17/6-days-to-stop-mps-concealing-their-expenses/


Remove unused stuff (replaced by sniffer plugin)

<% if @product_category %>
  <% if params[:lat] && params[:long] && params[:radius] %>
    <%= _('Listing sellers of %s witin %s km from %s %s') % [@product_category.name, params[:radius], params[:lat], params[:long]] %>
  <% else %>
    <%= _('Listing sellers of %s') % @product_category.name %>
  <% end %>
<% else %>
  <% if params[:lat] && params[:long] && params[:radius] %>
    <%= _('Listing sellers witin %s km from %s %s') % [params[:radius], params[:lat], params[:long]] %>
  <% else %>
    <%= _('Listing sellers') %>
  <% end %>
<% end %>

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

">

 <%= render :partial => 'profile', :collection => @enterprises %>


Remove dangerous delete this article link and replace it with delete these comments

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

<% @filter = params[:filter].to_s.humanize.downcase %>
<% content_for :action_nav do %>

    <% if controller.action_name == 'comments' && @comments.any? -%>

<%= link_to_remote "Delete these #{@filter != 'all' ? @filter : ''} comments", :confirm => "Are you sure you wish to delete all #{@filter != 'all' ? @filter : ''} comments?",
          :url => { :action => 'destroy_comment', :id => @article }, :with => "ArticleForm.getAvailableComments().toQueryString('comment')"
        %>

    <% end -%>
  <% if (admin? || @article.user_id == current_user.id) && controller.action_name != 'comments' -%>

<%= link_to_remote 'Delete this article', :url => {:action => 'destroy', :id => @article}, :confirm => 'Are you sure you want to delete this article?' %>

  <% unless @article.comment_age == -1 -%>

<%= link_to_remote 'Close comments for this article',
      :url => { :controller => 'admin/comments', :action => 'close', :id => @article } %>

  <% end -%>
  <% end -%>
  <% if controller.action_name == 'edit' -%>

<%= link_to('Preview', {:action => 'show', :id => @article}, {:target => '_blank'}) %>

  <% end -%>

        <% unless @article.new_record? -%>

<%= link_to 'Edit this article', :action => :edit, :id => @article, :version => nil %>

        <% end -%>
        <% if @article.comments.any? && controller.action_name != 'comments' -%>

<%= link_to "View comments", :controller => 'articles', :action => 'comments', :id => @article %>

        <% end %>

    <% unless controller.action_name == 'comments' %>

Revision:

      <select name="filter" id="revisionnum">
        <option value="0">Newest</option>
        <%= options_from_collection_for_select @article.versions.reverse, :version, :version, params[:version].to_i %>
      </select>

    <% end %>
    <% if controller.action_name == 'comments' -%>

Show comments:

      <select id="comments-view">
        <%= options_for_select ['All', 'Unapproved', 'Approved'], params[:filter].to_s.humanize %>
      </select>

    <% end %>

<% end unless @article.new_record? && @article.comments.empty? -%>

<% @filter = params[:filter].to_s.humanize.downcase %>
<% content_for :action_nav do %>

  <% if admin? || @article.user_id == current_user.id -%>

<%= link_to_remote 'Delete this article', :url => {:action => 'destroy', :id => @article}, :confirm => 'Are you sure you want to delete this article?' %>

  <% unless @article.comment_age == -1 -%>

<%= link_to_remote 'Close comments for this article',
      :url => { :controller => 'admin/comments', :action => 'close', :id => @article } %>

  <% end -%>
  <% end -%>
  <% if controller.action_name == 'edit' -%>

<%= link_to('Preview', {:action => 'show', :id => @article}, {:target => '_blank'}) %>

  <% end -%>

        <% unless @article.new_record? -%>

<%= link_to 'Edit this article', :action => :edit, :id => @article, :version => nil %>

        <% end -%>
        <% if @article.comments.any? && controller.action_name != 'comments' -%>

<%= link_to "View comments", :controller => 'articles', :action => 'comments', :id => @article %>

        <% end %>
        <% if controller.action_name == 'comments' && @comments.any? -%>

<%= link_to_remote "Delete all #{@filter != 'all' ? @filter : ''} comments", :confirm => "Are you sure you wish to delete all #{@filter != 'all' ? @filter : ''} comments?",
              :url => { :action => 'destroy_comment', :id => @article }, :with => "ArticleForm.getAvailableComments().toQueryString('comment')"
            %>

        <% end -%>

    <% unless controller.action_name == 'comments' %>

Revision:

      <select name="filter" id="revisionnum">
        <option value="0">Newest</option>
        <%= options_from_collection_for_select @article.versions.reverse, :version, :version, params[:version].to_i %>
      </select>

    <% end %>
    <% if controller.action_name == 'comments' -%>

Show comments:

      <select id="comments-view">
        <%= options_for_select ['All', 'Unapproved', 'Approved'], params[:filter].to_s.humanize %>
      </select>

    <% end %>

<% end unless @article.new_record? && @article.comments.empty? -%>


removing nl lang

removing nl lang

git-svn-id: d1603dcb7491ee151ff70de202d9b83ccaad14cb@24 e33b1f69-7d32-0410-b14e-e151786d21f0

<% ['/wymeditor/jquery/jquery',
	'/wymeditor/wymeditor/jquery.wymeditor.js',
	'/wymeditor/wymeditor/jquery.wymeditor.explorer.js',
	'/wymeditor/wymeditor/jquery.wymeditor.mozilla.js',
	'/wymeditor/wymeditor/jquery.opera.js',
	'/wymeditor/wymeditor/jquery.safari.js',
	'/wymeditor/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js',
	'/wymeditor/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js',
	'/wymeditor/wymeditor/xhtml_parser.js', '/javascripts/radiant.wymeditor.js'].each {|script| @javascripts << script} %>
<% @stylesheets << '/wymeditor/wymeditor/skins/default/screen.css' %>

<% ['/wymeditor/jquery/jquery', '/wymeditor/wymeditor/lang/nl.js',
	'/wymeditor/wymeditor/jquery.wymeditor.js',
	'/wymeditor/wymeditor/jquery.wymeditor.explorer.js',
	'/wymeditor/wymeditor/jquery.wymeditor.mozilla.js',
	'/wymeditor/wymeditor/jquery.opera.js',
	'/wymeditor/wymeditor/jquery.safari.js',
	'/wymeditor/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js',
	'/wymeditor/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js',
	'/wymeditor/wymeditor/xhtml_parser.js', '/javascripts/radiant.wymeditor.js'].each {|script| @javascripts << script} %>
<% @stylesheets << '/wymeditor/wymeditor/skins/default/screen.css' %>


Add standard fields

Add standard fields

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

<div>
  <%= required labelled_form_field(_('Title'), text_field(:article, 'name', :size => '64', :maxlength => 150)) %>

  <%= render :partial => 'general_fields' %>
  <%= render :partial => 'translatable' %>

  <%= labelled_form_field(_('Text'), text_area(:article, 'body', :cols => 40, :style => 'width:99%', :class => 'mceEditor')) %>
</div>

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

<div>
  <%= required labelled_form_field(_('Title'), text_field(:article, 'name', :size => '64', :maxlength => 150)) %>

  <%= labelled_form_field(_('Text'), text_area(:article, 'body', :cols => 40, :style => 'width:99%', :class => 'mceEditor')) %>
</div>


use utopian methods

use utopian methods

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

<% if @accepted.length > 0 %>

You are coaching the following people:

<%= sortable_table %>

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

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

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

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

              <%= format_currency acceptance.support_claimed %>
<%= format_date acceptance.support_claimed_updated_at %>
              <%= format_currency acceptance.donations_total %>
              <%= costing_link acceptance.id %> <%= profile_notes_link acceptance.id, acceptance.profile_notes.length %>

        <% end %>

<% else %>
<% end %>

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

<% if @accepted.length > 0 %>

You are coaching the following people:

<%= sortable_table %>

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

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

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

              <%=h viewer.name %>
              <%=h viewer.person.campus_shortDesc %>
              <%=h viewer.person.email %>
              <%=h viewer.person.person_phone %>
              <%=h viewer.person.person_local_phone %>

              <%= format_currency acceptance.support_claimed %>
<%= format_date acceptance.support_claimed_updated_at %>
              <%= format_currency acceptance.donations_total %>
              <%= costing_link acceptance.id %> <%= profile_notes_link acceptance.id, acceptance.profile_notes.length %>

        <% end %>

<% else %>
<% end %>


more information to make sure client can connect to the same request easily on refreshes

<%
if any_services_in_progress? %>
  <complete value="false">false</complete>
  <in_progress>
    <% # URLS delivered by url_for already come with & rather than & seperating query params, no need to XML-escape them. I used to not realize that and send them through REXML::Text to escape them. Old versions of REXML were buggy, and avoided double escaping. New versions are not buggy and the unneccesary trip through REXML::Text messed them up. Phew, that was crazy to debug
    %>
    <umlaut_request_id><%= @user_request.id %></umlaut_request_id>
    <refresh_url><%=
    url_for(params.merge( :'umlaut.request_id' => @user_request.id, :only_path => false ) ) %></refresh_url>
    <refresh_url_path><%=  url_for(params.merge( :'umlaut.request_id' => @user_request.id, :only_path => true ) ) %></refresh_url_path>
    <refresh_url_partial_path><%=  url_for(params.merge( :'umlaut.request_id' => @user_request.id, :only_path => true, :skip_relative_url_root => true ) ) %></refresh_url_partial_path>
    <requested_wait_seconds><%= AppConfig.param("poll_wait_seconds", 4)%></requested_wait_seconds>
    <services_in_progress>
      <% @user_request.services_in_progress.collect { |s| s.service_types_generated}.flatten.uniq.each do |type| %>
          <service name="<%= type.name %>" />
      <% end %>
    </services_in_progress>
  </in_progress>
<% else %>
  <complete value="true">true</complete>
<% end %>

<%
if any_services_in_progress? %>
  <complete value="false">false</complete>
  <in_progress>
    <% # URLS delivered by url_for already come with & rather than & seperating query params, no need to XML-escape them. I used to not realize that and send them through REXML::Text to escape them. Old versions of REXML were buggy, and avoided double escaping. New versions are not buggy and the unneccesary trip through REXML::Text messed them up. Phew, that was crazy to debug
    %>
    <refresh_url><%=
    url_for(params.merge( :'umlaut.request_id' => @user_request.id, :only_path => false ) ) %></refresh_url>
    <refresh_url_path><%=  url_for(params.merge( :'umlaut.request_id' => @user_request.id, :only_path => true ) ) %></refresh_url_path>
    <requested_wait_seconds><%= AppConfig.param("poll_wait_seconds", 4)%></requested_wait_seconds>
    <services_in_progress>
      <% @user_request.services_in_progress.collect { |s| s.service_types_generated}.flatten.uniq.each do |type| %>
          <service name="<%= type.name %>" />
      <% end %>
    </services_in_progress>
  </in_progress>
<% else %>
  <complete value="true">true</complete>
<% end %>


added units for volume

added units for volume

<% show_date_modified = nil if local_assigns[:show_date_modified].nil? %>
<% allow_delete = nil if local_assigns[:allow_delete].nil? %>
<% data_field = nil if local_assigns[:data_field].nil? %>
<% show_export = nil if local_assigns[:show_export].nil? %>
<% ajax_pagination = nil if local_assigns[:ajax_pagination].nil? %>
<% total_records_for_graph = nil if local_assigns[:total_records_for_graph].nil? %>

<fieldset>

Bodysize Records

	    Owner
	    Period
	    Kingdom
	    Phylum
	    Class
	    Environment
	    Motility
			<%= h(data_field.sub("_"," ").titlecase) %> (mm3)
			<% if show_date_modified %>
				Date Modified
			<% end %>
	    View
	    Edit
			<% if allow_delete %>
				Delete
			<% end %>

	<% if bodysizes.size == 0 %>

			No Results Were Found!

	<% end %>

	<% bodysizes.each do |bodysize| %>

	    <%= link_to bodysize.creator, :controller => :profile, :action => :show, :id => bodysize.creator.id %>
	    <%= h(bodysize.period) %>
	    <%= h(bodysize.kingdom) %>
	    <%= h(bodysize.phylum) %>
	    <%= h(bodysize.class_classification) %>
	    <%= h(bodysize.environment) %>
	    <%= h(bodysize.motility) %>
	    <%= h("%.3f" % bodysize.read_attribute(data_field)) %>
			<% if show_date_modified %>
				<%= bodysize.updated_at.strftime("%m/%d/%Y") %>
			<% end %>
	    <%= link_to 'view', :action => 'view', :id => bodysize.id %>

					<% if user && user.can_edit?(bodysize) %>
						<%= link_to 'edit', :action => 'edit', :id => bodysize.id %>
					<% end %>

			<% if allow_delete && user && user.can_edit?(bodysize) %>

					<%= link_to 'delete', { :action => 'delete',
																:id => bodysize.id },
																:confirm => "Are you sure you want to delete this record?",
																:method => :POST
																%>

			<% end %>

	<% end %>

	<% if ajax_pagination %>
	<%= will_paginate @bodysizes, :renderer => 'AjaxLinkRenderer' , :remote => { :method => "POST" , :update => 'search_results'} %>
	<% else %>
		<%= will_paginate @bodysizes %>
	<% end %>

	<% if show_export %>
		<%= link_to "Export Results", { :action => :export }, :class => 'button right-button' %>
	<% end %>
</fieldset>

<% if @charts %>
 	<% count=0 %>

	<% @charts.each do |chart| %>
		<% count+=1 %>
		<% subcount=0 %>
		<fieldset>

<%= chart.title %>

		<div id="hook<%= count %>" style="height:400px;">
		<% for i in 1..chart.graph.subcharts_count %>
        	<div id="chart<%= count %><%= i %>" style="position:absolute; top:<%= 800+(2*(count-1)+i)*420 %>px;left: 200px;">
				<%= "" %>

		<% end %>

		</fieldset>
	<% end %>
<% end %>

<% show_date_modified = nil if local_assigns[:show_date_modified].nil? %>
<% allow_delete = nil if local_assigns[:allow_delete].nil? %>
<% data_field = nil if local_assigns[:data_field].nil? %>
<% show_export = nil if local_assigns[:show_export].nil? %>
<% ajax_pagination = nil if local_assigns[:ajax_pagination].nil? %>
<% total_records_for_graph = nil if local_assigns[:total_records_for_graph].nil? %>

<fieldset>

Bodysize Records

	    Owner
	    Period
	    Kingdom
	    Phylum
	    Class
	    Environment
	    Motility
			<%= h(data_field.sub("_"," ").titlecase) %>
			<% if show_date_modified %>
				Date Modified
			<% end %>
	    View
	    Edit
			<% if allow_delete %>
				Delete
			<% end %>

	<% if bodysizes.size == 0 %>

			No Results Were Found!

	<% end %>

	<% bodysizes.each do |bodysize| %>

	    <%= link_to bodysize.creator, :controller => :profile, :action => :show, :id => bodysize.creator.id %>
	    <%= h(bodysize.period) %>
	    <%= h(bodysize.kingdom) %>
	    <%= h(bodysize.phylum) %>
	    <%= h(bodysize.class_classification) %>
	    <%= h(bodysize.environment) %>
	    <%= h(bodysize.motility) %>
	    <%= h("%.3f" % bodysize.read_attribute(data_field)) %>
			<% if show_date_modified %>
				<%= bodysize.updated_at.strftime("%m/%d/%Y") %>
			<% end %>
	    <%= link_to 'view', :action => 'view', :id => bodysize.id %>

					<% if user && user.can_edit?(bodysize) %>
						<%= link_to 'edit', :action => 'edit', :id => bodysize.id %>
					<% end %>

			<% if allow_delete && user && user.can_edit?(bodysize) %>

					<%= link_to 'delete', { :action => 'delete',
																:id => bodysize.id },
																:confirm => "Are you sure you want to delete this record?",
																:method => :POST
																%>

			<% end %>

	<% end %>

	<% if ajax_pagination %>
	<%= will_paginate @bodysizes, :renderer => 'AjaxLinkRenderer' , :remote => { :method => "POST" , :update => 'search_results'} %>
	<% else %>
		<%= will_paginate @bodysizes %>
	<% end %>

	<% if show_export %>
		<%= link_to "Export Results", { :action => :export }, :class => 'button right-button' %>
	<% end %>
</fieldset>

<% if @charts %>
 	<% count=0 %>

	<% @charts.each do |chart| %>
		<% count+=1 %>
		<% subcount=0 %>
		<fieldset>

<%= chart.title %>

		<div id="hook<%= count %>" style="height:400px;">
		<% for i in 1..chart.graph.subcharts_count %>
        	<div id="chart<%= count %><%= i %>" style="position:absolute; top:<%= 800+(2*(count-1)+i)*420 %>px;left: 200px;">
				<%= "" %>

		<% end %>

		</fieldset>
	<% end %>
<% end %>


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

<% @page_title = "Mailing lists" %>
<% @main_title = "Mailing lists" %>
<%= render "/home/deflinks" %>

The preferred way to contact the Castle's team
is by subscribing to one of the available mailing lists:

  Developers:
castle-devel mailing list. Also on GMane

  Users:
castle-users mailing list

<% @page_title = "Mailing lists" %>
<% @main_title = "Mailing lists" %>
<%= render "/home/deflinks" %>

The preferred way to contact the Castle's team
is by subscribing to one of the available mailing lists:

  Developers:
castle-devel mailing list

  GMane web interface:
castle-devel web viewer

  Users:
castle-users mailing list


Adding missing parenthesis to text

Adding missing parenthesis to text

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

  <%= required_fields_message if @profile.required_fields.any? %>

  <%= required f.text_field(:name) %>

<% if @environment.enabled?('enable_organization_url_change') %>

<% end %>

  <%= _('Display name') %>

    <%= text_field_tag 'profile_data[nickname]', @profile_data.nickname, :id => 'profile_data_nickname', :size => 30, :maxlength => 16, :onchange => (@environment.enabled?('enable_organization_url_change') ? "updateUrlField(this, 'profile_data_identifier')" : "") %>
    <%= _('A short name by which the organization is know.')%>

<% if @environment.enabled?('enable_organization_url_change') %>

    <%= hidden_field_tag 'old_profile_identifier', @profile.identifier %>

      <%= labelled_form_field( _('Address'),
            content_tag('code',
              url_for(profile.url).gsub(/#{profile.identifier}$/, '') +
              text_field(:profile_data, :identifier, :onchange => "warn_value_change()", :size => 25)
            ) +
            content_tag('div',
              content_tag('strong', _('WARNING!')) + ' ' +
                _("You are about to change the address, and this will break external links to the homepage or to content inside it. Do you really want to change?") +
              content_tag('div',
                button_to_function(:ok, _("Yes"), "confirm_change()") + ' ' +
                button_to_function(:cancel, _('No'), 'no_change()')
              ),
              :id => 'identifier-change-confirmation',
              :class => 'change-confirmation',
              :style => 'display: none;'
            )
          )
      %>

<% end %>

  <%= f.text_field(:acronym) %>
  <%= f.text_field(:foundation_year) %>

  <%= render :partial => 'shared/custom_fields', :locals => { :f => f, :object_name => 'profile_data', :profile => @profile, :only_required => false } %>

  <%= labelled_check_box(_('Enable "contact us"'), 'profile_data[enable_contact_us]', "1", @profile.enable_contact_us) if @profile.enterprise? %>

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

  <% if profile.community? %>

    <%= _('New members must be approved:')%>

      <%= radio_button 'profile_data', 'closed', 'true', :style => 'float: left' %>

        <%= _('Before joining this group (a moderator has to accept the member in pending request before member can access the intranet and/or the website).') %>

      <%= radio_button 'profile_data', 'closed', 'false', :style => 'float: left' %>

        <%= _('After joining this group (a moderator can always desactivate access for users later).') %>

  <% end %>

  <%= _('New articles posted by members of this group must be approved:')%>

    <%= radio_button 'profile_data', 'moderated_articles', 'true', :style => 'float: left' %>

      <%= _('Before being published in this group (a moderator has to accept the article in pending request before the article be listed as a article of this group).') %>

    <%= radio_button 'profile_data', 'moderated_articles', 'false', :style => 'float: left' %>

      <%= _('After being published in this group (a moderator can always remove publicated articles later).') %>

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

  <%= required_fields_message if @profile.required_fields.any? %>

  <%= required f.text_field(:name) %>

<% if @environment.enabled?('enable_organization_url_change') %>

<% end %>

  <%= _('Display name') %>

    <%= text_field_tag 'profile_data[nickname]', @profile_data.nickname, :id => 'profile_data_nickname', :size => 30, :maxlength => 16, :onchange => (@environment.enabled?('enable_organization_url_change') ? "updateUrlField(this, 'profile_data_identifier')" : "") %>
    <%= _('A short name by which the organization is know.')%>

<% if @environment.enabled?('enable_organization_url_change') %>

    <%= hidden_field_tag 'old_profile_identifier', @profile.identifier %>

      <%= labelled_form_field( _('Address'),
            content_tag('code',
              url_for(profile.url).gsub(/#{profile.identifier}$/, '') +
              text_field(:profile_data, :identifier, :onchange => "warn_value_change()", :size => 25)
            ) +
            content_tag('div',
              content_tag('strong', _('WARNING!')) + ' ' +
                _("You are about to change the address, and this will break external links to the homepage or to content inside it. Do you really want to change?") +
              content_tag('div',
                button_to_function(:ok, _("Yes"), "confirm_change()") + ' ' +
                button_to_function(:cancel, _('No'), 'no_change()')
              ),
              :id => 'identifier-change-confirmation',
              :class => 'change-confirmation',
              :style => 'display: none;'
            )
          )
      %>

<% end %>

  <%= f.text_field(:acronym) %>
  <%= f.text_field(:foundation_year) %>

  <%= render :partial => 'shared/custom_fields', :locals => { :f => f, :object_name => 'profile_data', :profile => @profile, :only_required => false } %>

  <%= labelled_check_box(_('Enable "contact us"'), 'profile_data[enable_contact_us]', "1", @profile.enable_contact_us) if @profile.enterprise? %>

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

  <% if profile.community? %>

    <%= _('New members must be approved:')%>

      <%= radio_button 'profile_data', 'closed', 'true', :style => 'float: left' %>

        <%= _('Before joining this group (a moderator has to accept the member in pending request before member can access the intranet and/or the website).') %>

      <%= radio_button 'profile_data', 'closed', 'false', :style => 'float: left' %>

        <%= _('After joining this group (a moderator can always desactivate access for users later).') %>

  <% end %>

  <%= _('New articles posted by members of this group must be approved:')%>

    <%= radio_button 'profile_data', 'moderated_articles', 'true', :style => 'float: left' %>

      <%= _('Before being published in this group (a moderator has to accept the article in pending request before the article be listed as a article of this group.') %>

    <%= radio_button 'profile_data', 'moderated_articles', 'false', :style => 'float: left' %>

      <%= _('After being published in this group (a moderator can always remove publicated articles later).') %>


Se cambian varios estética

Se cambian varios estética

<% view_cache :ttl => 5.minutes.to_i, :tag => I18n.locale do %>

<%= _("¿Querés información sobre un organismo público?") %>

1

2

3

          <%= link_to _("Hacé click acá para comenzar."), body_index_path %>

<%= _("Elegí el organismo y formulá tu pregunta") %>

<%= _("El sistema le da formato y envía tu consulta") %>

<%= _("La respuesta llega a vos y queda registrada") %>

Twittear

<%= _("Novedades") %>

                <%
                  position = 0;
                  for item in @blog_items[0..3]:
                    position = position + 1; %>

                  <div class="frontpage-blog-post <%= position.even? ? 'right' : 'left' %>" <%= position == 3 ? '' 'style="clear:left"' : '' %> >
                    <% if item.has_key?('thumbnail') %>
                    	<img src="<%= ((item['thumbnail'])[0])['url']%>" width="278" height="128"/>
                  	<% else %>

                    <%end %>

                      <a href='<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>'><%= h item['title'] %>

<a href="<%= "#{blog_url}\##{Time.parse(item['pubDate'][0]).to_i}" %>"><%= _("Leer más »") %>

                <% end %>

<a href="<%= blog_url %>"><%= _("Más novedades...") %>

<%= _("Peticiones destacadas") %>

                <% @featured_requests.each do |featured_request| %>
                <%= render :partial => 'track/tracking_request_links',
                      :locals => {
                        :track_thing => TrackThing.create_track_for_request(featured_request),
                        :own_request => featured_request.user == @user,
                        :location => "frontpage"
                      } %>
                <% end %>

<%= _("Buscar un pedido:") %>

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

              <%= text_field_tag 'query', params[:query], { :size => 60 } %>
              <%= submit_tag _('Search') %>

            <% end %>

        <%= link_to image_tag("/quesabes-theme/images/rss_subscribe.png"), help_requesting_path(:anchor => 'making_requests') %>

<% end %>


Need to deploy again in a bit...

Need to deploy again in a bit...

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

        <%= javascript_include_tag :defaults %>

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - file and explore Freedom of Information (FOI) requests
        <% end %>
        </title>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green"  %>
        <%= stylesheet_link_tag 'main', :rel => "alternate stylesheet", :title => "Main" %>

            WhatDoTheyKnow?
            (<%= link_to "in development", about_url %>)

            Lift the lid on the UK public sector!

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

               <%= text_field_tag 'query', params[:query], { :size => 25, :id => "navigation_search_query" } %>
               <%= submit_tag "Search" %>

        <% end %>

Make request

<%= link_to "View requests", request_list_url(:view => nil) %>

<%= link_to "View authorities", list_public_bodies_url(:tag => 'department') %>

			<% if @user %>

<%=link_to "My requests", user_url(@user) %>

			<% end %>

<%= link_to "About", about_url %>

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

			<% if @user %>
				Hello, <%=h(@user.name)%>!
				(<%= link_to "Sign out", signout_url(:r => request.request_uri) %>)
			<% else %>
				Hello! (<%= link_to "Sign in or sign up", signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

        Built by mySociety ... and you.
        Get the source code (is on Rails).
        Dedicated to Chris Lightfoot.

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

        <%= javascript_include_tag :defaults %>

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - file and explore Freedom of Information (FOI) requests
        <% end %>
        </title>
        <%= stylesheet_link_tag 'yucky-green', :rel => "alternate stylesheet", :title => "Yucky Green"  %>
        <%= stylesheet_link_tag 'main', :title => "Main" %>

            WhatDoTheyKnow?
            (<%= link_to "in development", about_url %>)

            Lift the lid on the UK public sector!

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

               <%= text_field_tag 'query', params[:query], { :size => 25, :id => "navigation_search_query" } %>
               <%= submit_tag "Search" %>

        <% end %>

Make request

<%= link_to "View requests", request_list_url(:view => nil) %>

<%= link_to "View authorities", list_public_bodies_url(:tag => 'department') %>

			<% if @user %>

<%=link_to "My requests", user_url(@user) %>

			<% end %>

<%= link_to "About", about_url %>

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

			<% if @user %>
				Hello, <%=h(@user.name)%>!
				(<%= link_to "Sign out", signout_url(:r => request.request_uri) %>)
			<% else %>
				Hello! (<%= link_to "Sign in or sign up", signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

    <% if MySociety::Config.getbool("STAGING_SITE", 1) %>

            This is a test version of the site. FOI requests will not be sent to real public authorities.

    <% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

        Built by mySociety ... and you.
        Get the source code (is on Rails).
        Dedicated to Chris Lightfoot.


Removed show_name2.rhtml

Removed show_name2.rhtml

git-svn-id: bc266cc4dcdee41d9588461a87969679bbc3047f@858 7a65b82a-1d14-0410-b525-e2835e71a0b4

<%
  @title = :show_name_title.t(:name => @name.display_name)
  Textile.register_name(@name)

  # Google Images | Distribution Map | Email Tracking
  new_tab_set do
    add_tab(:google_images.t,
            "http://images.google.com/images?q=#{@name.text_name}")
    if @data != []
      add_tab(:show_name_distribution_map.t, :action => 'map', :id => @name.id,
              :params => query_params)
    end
    add_tab(:show_name_email_tracking.t, :action => 'email_tracking',
            :id => @name.id, :params => query_params)
  end

  # Edit Name | Bulk Name Edit | Add Name | Change Synonyms | Approve/Deprecate
  new_tab_set do
    add_tab(:show_name_edit_name.t, :action => 'edit_name', :id => @name.id,
            :params => query_params)
    add_tab(:show_name_bulk_name_edit.t, :action => 'bulk_name_edit',
            :params => query_params)
    add_tab(:show_name_add_name.t, :action => 'create_name',
            :params => query_params)
    add_tab(:show_name_change_synonyms.t, :action => 'change_synonyms',
            :id => @name.id, :params => query_params)
    if @name.deprecated
      add_tab(:APPROVE.t, :action => 'approve_name', :id => @name.id,
              :params => query_params)
    else
      add_tab(:DEPRECATE.t, :action => 'deprecate_name', :id => @name.id,
              :params => query_params)
    end
  end

  draw_prev_next_tabs(@name)
  draw_interest_icons(@name)
%>

    <%
    # ----------------------------------------
    #  Show the basic name information
    # ----------------------------------------
    %>

        <%= render(:partial => 'name', :object => @name, :locals =>
                   { :synonyms => true } ) %>

        <%= show_previous_version(@name) %>

        <% for parent in @parents %>
          <%= rank_as_string(@parents[0].rank) %>:
            <%= link_to(parent.display_name.t, :action => 'show_name2',
                        :id => parent.id, :params => query_params) %>

        <% end %>
        <% if @children_data.length > 0 %>
          <%= link_to("#{:show_object.t(:type => @children_data[0].rank.to_s)}", :action => 'index_name',
                      :params => query_params(@children_query)) %>

        <% end %>

        <%= set_export_status_controls(@name) %>

      <%= show_best_image(@consensus_data) %>

      <%= name_section_link(:show_name_observations.t, @consensus_data, @consensus_query) %>
      <%= name_section_link(:show_name_synonym_observations.t, @synonym_data, @synonym_query) %>
      <%= name_section_link(:show_name_other_observations.t, @other_data, @other_query) %>
      <%= name_section_link(:show_name_subtaxa_observations.t, @subtaxa_data, @subtaxa_query) %>

    <%
    # ----------------------------------------
    #  Show a list of NameDescriptions.
    # ----------------------------------------
    %>

      <%= show_alt_descriptions(@name, @projects) %>

<%
# ----------------------------------------
#  Show comments and notes.
# ----------------------------------------
%>
<% if @name.has_notes? %>

<%= :show_name_notes.t %>:

  <%= colored_notes_box(true, sanitize(@name.notes).tpl) %>
<% end %>

  <%= show_authors_and_editors(@name) %>

<%= render(:partial => 'comment/show_comments', :locals =>
           { :object => @name, :controls => true }) %>

<%= show_object_footer(@name) %>


File names is correct

File names is correct

<%  if thumb_list[:files] %>

        <% error_msg = thumb_list[:error_msg] || "" %>

<%= "#{image_tag("/lolita/images/cms/exclamation.gif",:alt=>"") if error_msg.size>0} #{error_msg}" %>

  <% for file in thumb_list[:files] %>
      <% if !file.nil?  %>

            <%= link_to "/upload#{file.name.to_s}",{:action=>'download',:controller=>'file',:file=>file.name}%>
            <input name="thumb[]" class="chk" type="checkbox" value="<%= file.id %> " />

      <% end %>
  <% end %>

<% end %>

<%  if thumb_list[:files] %>

        <% error_msg = thumb_list[:error_msg] || "" %>

<%= "#{image_tag("/lolita/images/cms/exclamation.gif",:alt=>"") if error_msg.size>0} #{error_msg}" %>

  <% for file in thumb_list[:files] %>
      <% if !file.nil?  %>

            <%= link_to "#{file.name.to_s.humanize}",{:action=>'download',:controller=>'file',:file=>file.name}%>
            <input name="thumb[]" class="chk" type="checkbox" value="<%= file.id %> " />

      <% end %>
  <% end %>

<% end %>


Set the display name correctly in the image URL.

<%= @title %>

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

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

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

  <% if @trace.inserted? %>

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

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

  <% end %>

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

description:	<%= @trace.description %>

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

<% unless @trace.public? %>

  <%= start_form_tag :controller => 'trace', :action => 'make_public', :id => @trace.id%>
  <%= submit_tag 'Make this track public permanently' %>
  <%= end_form_tag %>
<% end %>

<%= @title %>

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

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

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

  <% if @trace.inserted? %>

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

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

  <% end %>

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

description:	<%= @trace.description %>

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

<% unless @trace.public? %>

  <%= start_form_tag :controller => 'trace', :action => 'make_public', :id => @trace.id%>
  <%= submit_tag 'Make this track public permanently' %>
  <%= end_form_tag %>
<% end %>


Render emails in a readable form

Render emails in a readable form

<% @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 authority: <%= 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 %>
  Actions

<% 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 } %>
    <% if column == 'raw_data' %>
        <%=h(incoming_message.send(column)).gsub!(/\n/, '
') %>
    <% else %>
        <%=h incoming_message.send(column) %>
    <% end %>
  <% end %>

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

          <%= hidden_field_tag 'incoming_message_id', incoming_message.id %>
          <%= submit_tag "Destroy" %>

  <% 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 authority: <%= 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 %>
  Actions

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

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

          <%= hidden_field_tag 'incoming_message_id', incoming_message.id %>
          <%= submit_tag "Destroy" %>

  <% end %>

<% end %>


Update in development message.

Update in development message.

Hello! This site really isn't finished yet, but it
    works and so we wanted to start sharing it with you.
    Tell us what you think.

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:

 Finish designing the site - this appearance is just placeholder.

 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!


Update

Update


changed the meta charset encoding to utf-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title><%= "#{@page_title} | " if @page_title-%>Indian GNU/Linux Users Group of Mumbai</title>
  <%= stylesheet_link_tag "style" -%>
</head>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title><%= "#{@page_title} | " if @page_title-%>Indian GNU/Linux Users Group of Mumbai</title>
  <%= stylesheet_link_tag "style" -%>
</head>


Victory!

Victory!

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

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - file and browse Freedom of Information (FOI) requests
        <% end %>
        </title>

        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet"  %>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green", :rel => "alternate stylesheet" %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
            <% end %>
        <% end %>

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

Close

Blimey. It looks like the Internets won – a message from WhatDoTheyKnow

Sorry to interrupt, but we thought you’d like to know that you won!

On the 16th of May 2008 the High Court ruled that MPs’ expenses must be published under the Freedom of Information Act.

Tomorrow, MPs were going to vote on changing the law to keep their expenses secret after all,
    just before publication was due and after spending nearly a million of your pounds and seven months
    compiling the data.

However, after a tremendous response from you, with over 7,000 members
    on our Facebook group, 4,000 messages sent to MPs, help from

    Stephen Fry, and a helpful
    4th Report of the House of Lords
    Merits of Statutory Instruments Committee,
    it appears that the vote has been cancelled –
    Guardian,
    Times,
    BBC.

As President Obama said in his inauguration speech: “And
    those of us who manage the public’s dollars will be held to account – to
    spend wisely, reform bad habits, and do our business in the light of day –

    because only then can we restore the vital trust between a people and their
    government.”

Read our victory blog post. :-)

Close

            WhatDoTheyKnow?

            Make and explore Freedom of Information requests

		a site by mysociety.org

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

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

        <% end %>

Make request

<%= link_to "View requests", request_list_url(:view => 'successful') %>

<%= link_to "View authorities", list_public_bodies_default %>

			<% if @user %>

<%=link_to "My requests", user_url(@user) %>

			<% end %>

<%= link_to "Help", about_url %>

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

			<% if @user %>
				Hello, <%=h(@user.name)%>!
				(<%= link_to "Sign out", signout_url(:r => request.request_uri) %>)
			<% else %>
				Hello! (<%= link_to "Sign in or sign up", signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

        Contact WhatDoTheyKnow.com
        |
        Built by mySociety ...
        and you
        |
        Dedicated to Chris Lightfoot

<% if MySociety::Config.get("DOMAIN", '127.0.0.1:3000') == 'www.whatdotheyknow.com'  %>

<% end %>

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

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - file and browse Freedom of Information (FOI) requests
        <% end %>
        </title>

        <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet"  %>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green", :rel => "alternate stylesheet" %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
            <% end %>
        <% end %>

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

Close

DENIED

Sorry to interrupt, but democracy needs your help!

On the 16th of May 2008 the High Court ruled that MPs’ expenses must be published under the Freedom of Information Act.

This Thursday, MPs are voting to change the law to keep their expenses secret after all,
    just before publication was due and after spending nearly a million of your pounds and seven months
    compiling the data.

Your MP may not even know about this proposal (it was sneaked out under
    the Heathrow runway announcement). Please take a few minutes to alert
    them to this attack on Parliamentary transparency and ask them to vote
    against the measure.

The outcome of this vote will be prominently displayed on every MP’s page until after the next General Election.

What can you do?

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

Write to your MP to protest. Enter your postcode to do so online: <input type="text" name="pc" value="" size="8">
    <input type="submit" value="Go">

Join this Facebook group.

Blog about it, call a local newspaper (find one), text, email, and instant
    message your friends to let them know that about this campaign.

    </form>

Read more detail about mySociety’s thoughts on this issue.

Close

            WhatDoTheyKnow?

            Make and explore Freedom of Information requests

		a site by mysociety.org

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

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

        <% end %>

Make request

<%= link_to "View requests", request_list_url(:view => 'successful') %>

<%= link_to "View authorities", list_public_bodies_default %>

			<% if @user %>

<%=link_to "My requests", user_url(@user) %>

			<% end %>

<%= link_to "Help", about_url %>

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

			<% if @user %>
				Hello, <%=h(@user.name)%>!
				(<%= link_to "Sign out", signout_url(:r => request.request_uri) %>)
			<% else %>
				Hello! (<%= link_to "Sign in or sign up", signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

        Contact WhatDoTheyKnow.com
        |
        Built by mySociety ...
        and you
        |
        Dedicated to Chris Lightfoot

<% if MySociety::Config.get("DOMAIN", '127.0.0.1:3000') == 'www.whatdotheyknow.com'  %>

<% end %>


Get URL right now for Make Request nav link

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

        <%= javascript_include_tag :defaults %>
        <title><%=@title%> <%= @title ? "-" : "" %> foi.mysociety.org</title>
        <%= stylesheet_link_tag 'main' %>

            foi.mysociety.org
            (<%= link_to "in development", about_url %>)

Request information from the UK Government

Make Request

<%= link_to "All Requests", request_list_url %>

        <% if @user %>

<%=link_to "My Requests", user_url(@user) %>

        <% else %>
        <% end %>

<%= link_to "About", about_url %>

    <% if MySociety::Config.getbool("STAGING_SITE", 1) %>

            This is a test version of the site. FOI requests will not be sent to real public bodies.

    <% end %>

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

        <% if @user %>
            Hello, <%=h(@user.name)%>!
            (<%= link_to "Sign out", signout_url(:r => request.request_uri) %>)
        <% else %>
            Hello! (<%= link_to "Sign in or sign up", signin_url(:r => request.request_uri) %>)
        <% end %>

    <% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

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

<%= flash[:error] %>

            <% end %>

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

        Built by mySociety ... and you.
        Get the source code (is on Rails).


Sort the due dates in increasing order of date/time.

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

Editing assignment

<%= start_form_tag({:action => 'update', :id => @assignment, :review_limit => @limits[:review], :metareview_limit => @limits[:metareview], :teammate_limit => @limits[:teammate], :feedback_limit => @limits[:feedback]},:onsubmit => 'return checkForm();') %>
  <%= render :partial => 'content' %>
  <%= render :partial => 'rubrics' %>

        Deadline type
        Date & time
        Submission allowed
        Review allowed
        Resubmission allowed
        Re-review allowed
        Review of review allowed

  <% 	i = 0;
        duedates = @assignment.due_dates
        duedates.sort! {|a,b| a.due_at <=> b.due_at}

		for @due_date in duedates

		      if  @due_date.deadline_type_id == 1
		         heading = "Submission deadline"
		      end
		      if  @due_date.deadline_type_id == 2
		         heading = "Review deadline"
		      end
		      if  @due_date.deadline_type_id == 3
		         heading = "Resubmission deadline"
		      end
		      if  @due_date.deadline_type_id == 4
		         heading = "Re-review deadline"
		      end
		      if  @due_date.deadline_type_id == 5
		         heading = "Review of review deadline"
		      end

		 %>

		<%= heading%>
		<%= text_field 'due_date[]', 'due_at', :size=>30%>
		<%= select('due_date[]', 'submission_allowed_id', [ ['No', 1],['Late', 2],['OK', 3]])%>
		<%= select('due_date[]', 'review_allowed_id', [ ['No', 1],['Late', 2],['OK', 3]])%>
		<%= select('due_date[]', 'resubmission_allowed_id', [ ['No', 1],['Late', 2],['OK', 3]])%>
		<%= select('due_date[]', 'rereview_allowed_id', [ ['No', 1],['Late', 2],['OK', 3]])%>
		<%= select('due_date[]', 'review_of_review_allowed_id', [ ['No', 1],['Late', 2],['OK', 3]])%>

	<% 	i += 1;
		end %>

    <%= submit_tag "Save assignment" %>
<%= end_form_tag %>

<%= render :partial => '/shared_scripts/back' %>

Editing assignment

<%= start_form_tag({:action => 'update', :id => @assignment, :review_limit => @limits[:review], :metareview_limit => @limits[:metareview], :teammate_limit => @limits[:teammate], :feedback_limit => @limits[:feedback]},:onsubmit => 'return checkForm();') %>
  <%= render :partial => 'content' %>
  <%= render :partial => 'rubrics' %>

        Deadline type
        Date & time
        Submission allowed
        Review allowed
        Resubmission allowed
        Re-review allowed
        Review of review allowed

  <% 	i = 0;
		for @due_date in @assignment.due_dates

		      if  @due_date.deadline_type_id == 1
		         heading = "Submission deadline"
		      end
		      if  @due_date.deadline_type_id == 2
		         heading = "Review deadline"
		      end
		      if  @due_date.deadline_type_id == 3
		         heading = "Resubmission deadline"
		      end
		      if  @due_date.deadline_type_id == 4
		         heading = "Re-review deadline"
		      end
		      if  @due_date.deadline_type_id == 5
		         heading = "Review of review deadline"
		      end

		 %>

		<%= heading%>
		<%= text_field 'due_date[]', 'due_at', :size=>30%>
		<%= select('due_date[]', 'submission_allowed_id', [ ['No', 1],['Late', 2],['OK', 3]])%>
		<%= select('due_date[]', 'review_allowed_id', [ ['No', 1],['Late', 2],['OK', 3]])%>
		<%= select('due_date[]', 'resubmission_allowed_id', [ ['No', 1],['Late', 2],['OK', 3]])%>
		<%= select('due_date[]', 'rereview_allowed_id', [ ['No', 1],['Late', 2],['OK', 3]])%>
		<%= select('due_date[]', 'review_of_review_allowed_id', [ ['No', 1],['Late', 2],['OK', 3]])%>

	<% 	i += 1;
		end %>

    <%= submit_tag "Save assignment" %>
<%= end_form_tag %>

<%= render :partial => '/shared_scripts/back' %>


Update lib/views/help/about.rhtml

Update lib/views/help/about.rhtml

I have added a link to the list of trustees and explained what trustees are.
Text was based on Charity Commission guidance, here: http://www.charitycommission.gov.uk/publications/cc3a.aspx

<% @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 blog and a twitter feed.

Next, read about 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 address of 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 blog and a twitter feed.

Next, read about making requests -->


Changed req. field list from Name to Username.

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

Participants

Assignment: <%= @assignment.name %>

<%
   column_definitions = Array.new
   column_definitions << {:name => 'Participant Name',   :type => 'display',              :field => 'name'}
   column_definitions << {:name => 'Edit Participant',   :action => 'show',               :controller => 'users'}
   column_definitions << {:name => 'Remove Participant', :action => 'delete_participant', :controller => 'participants'}

   delete_options = {:enabled => true, :controller => 'participants'}
%>
<%= render :partial => 'shared_scripts/selectTable', :locals => {:column_definitions => column_definitions, :delete_options => delete_options, :elements => @participants} %>

<%=
	render :partial => 'add_individual',
		:locals => {:form_action => "add_assignment_participant",
					:obj_type => "assignment_id",
					:obj_id => @assignment.id}
%>

<%
  session[:return_to] = request.request_uri
  session[:expected_fields] = 'Username, "Full name (last, first[ middle])", E-mail address, Password'
  session[:assignment_id] = @assignment.id
%>
<%= link_to 'Import Participants', :controller=>'import_file', :action=>'start', :model => 'Participant' %>

Participants

Assignment: <%= @assignment.name %>

<%
   column_definitions = Array.new
   column_definitions << {:name => 'Participant Name',   :type => 'display',              :field => 'name'}
   column_definitions << {:name => 'Edit Participant',   :action => 'show',               :controller => 'users'}
   column_definitions << {:name => 'Remove Participant', :action => 'delete_participant', :controller => 'participants'}

   delete_options = {:enabled => true, :controller => 'participants'}
%>
<%= render :partial => 'shared_scripts/selectTable', :locals => {:column_definitions => column_definitions, :delete_options => delete_options, :elements => @participants} %>

<%=
	render :partial => 'add_individual',
		:locals => {:form_action => "add_assignment_participant",
					:obj_type => "assignment_id",
					:obj_id => @assignment.id}
%>

<%
  session[:return_to] = request.request_uri
  session[:expected_fields] = 'Name, "Full name (last, first[ middle])", E-mail address, Password'
  session[:assignment_id] = @assignment.id
%>
<%= link_to 'Import Participants', :controller=>'import_file', :action=>'start', :model => 'Participant' %>


[Mezuro] Fixed score history to display the graph


git-svn-id: e099d366fb13ea49c9e8e170ced890dab3ea84f7@1030 aaa19a3b-e121-0410-9d45-962fd44e537e

# zena apache2 vhost for <%= host %>
# automatically generated file

<VirtualHost *>
  ServerName www.<%= host %>

  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^www\.<%= host %>$ [NC]
  RewriteRule ^(.*)$ http://<%= host %>$1 [R=301,L]
</VirtualHost>

# zena apache2 vhost for <%= host %>
# automatically generated file

<VirtualHost *>
  ServerName <%= host %>

  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^www\.<%= host %>$ [NC]
  RewriteRule ^(.*)$ http://<%= host %>$1 [R=301,L]
</VirtualHost>


Remove SOTM advert.

Remove SOTM advert.


Actually use that title from the static sidebar config

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

<%= @sb_config['title'] %>

<%= @sb_config['body'] %>


Fix #824

Fix #824

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

AIM Status

<a class="im" href="aim:GoIM?screenname=<%= sn %>">
<img alt=" " src="http://api.oscar.aol.com/SOA/key=<%= devkey %>/presence/<%= sn %>" border="0" /> <%= sn %>

AIM Status

<a class="im" href="aim:GoIM?screenname=<%= @sb_config['sn'] %>">
<img alt=" " src="http://api.oscar.aol.com/SOA/key=<%=@sb_config['key'] %>/presence/<%= @sb_config['sn'] %>" border="0" /> <%= @sb_config['sn'] %>