Scraps reply submiting with enter

Scraps reply submiting with enter

<li class='profile-wall-item' id='profile-wall-item-<%= scrap.id %>'>

    <%= link_to(profile_image(scrap.sender, :minor), scrap.sender.url) %>
    <% if logged_in? && current_person.follows?(scrap.sender) && current_person != scrap.sender %>

<%= link_to_function _('Scrap'), "hide_and_show(['#profile-wall-message-response-#{scrap.id}'],['#profile-wall-message-#{scrap.id}', '#profile-wall-form-#{scrap.id}']);$('content_#{scrap.id}').value='';return false", :class => "profile-send-message", :title => _("Send a message to %s") % scrap.sender.name %>

    <% end %>

  <% comment_balloon :class => 'profile-wall-description' do %>

<%= link_to scrap.sender.name, scrap.sender.url %>

<%= txt2html scrap.content %>

<%= time_ago_as_sentence(scrap.created_at) + ' ' + _('ago') %>

    <% if logged_in? && current_person.follows?(scrap.sender) && scrap.root.nil? %>
      <%= link_to_function _('Comment'), "hide_and_show(['#profile-wall-reply-response-#{scrap.id}'],['#profile-wall-reply-#{scrap.id}', '#profile-wall-reply-form-#{scrap.id}']);$('reply_content_#{scrap.id}').value='';$('scrap_id_#{scrap.id}').value='#{scrap.id}';return false", :class => "profile-send-reply" %>
    <% end %>
    <%= link_to_remote(content_tag(:span, _('Remove')), :url =>{:action => 'remove_scrap', :scrap_id => scrap.id}, :update => "profile-wall-item-#{scrap.id}") if logged_in? && user.can_control_scrap?(scrap) %>
  <% end %>

    <% scrap.replies.map do |reply| %>
      <%= render :partial => 'profile_scrap', :locals => {:scrap => reply} %>
    <% end %>

  <div id='profile-wall-message-<%= scrap.id%>' style='display:none;'>
    <div id='profile-wall-form-<%= scrap.id%>' style='display:none;'>

        <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap', :not_load_scraps => true}, :update => "profile-wall-message-response-#{scrap.id}", :success =>"hide_and_show(['#profile-wall-form-#{scrap.id}'],['#profile-wall-message-response-#{scrap.id}'])" do %>
          <%= limited_text_area :scrap, :content, 420, "content_#{scrap.id}", :cols => 50, :rows => 2 %>
          <%= hidden_field_tag 'receiver_id', scrap.sender.id %>
          <%= submit_button :add, _('Leave a scrap') %>
          <%= button_to_function :cancel, _('Cancel'), "hide_and_show(['#profile-wall-message-#{scrap.id}'],[]);return false" %>
        <% end %>

    <div id='profile-wall-message-response-<%=scrap.id%>' class='profile-wall-message-response'>

  <div id='profile-wall-reply-<%= scrap.id%>' style='display:none;'>
    <div id='profile-wall-reply-form-<%= scrap.id%>' style='display:none;'>

        <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap'}, :update => "profile_activities", :success =>"hide_and_show(['#profile-wall-reply-form-#{scrap.id}'],['#profile-wall-reply-response-#{scrap.id}'])" do %>
          <%= text_area :scrap, :content, { :id => "reply_content_#{scrap.id}", :cols => 50, :rows => 2, :class => 'submit-with-keypress' } %>
          <%= hidden_field :scrap, :scrap_id, :id => "scrap_id_#{scrap.id}" %>
          <%= hidden_field_tag 'receiver_id', scrap.sender.id %>
        <% end %>

    <div id='profile-wall-message-response-<%=scrap.id%>' class='profile-wall-message-response'>

<li class='profile-wall-item' id='profile-wall-item-<%= scrap.id %>'>

    <%= link_to(profile_image(scrap.sender, :minor), scrap.sender.url) %>
    <% if logged_in? && current_person.follows?(scrap.sender) && current_person != scrap.sender %>

<%= link_to_function _('Scrap'), "hide_and_show(['#profile-wall-message-response-#{scrap.id}'],['#profile-wall-message-#{scrap.id}', '#profile-wall-form-#{scrap.id}']);$('content_#{scrap.id}').value='';return false", :class => "profile-send-message", :title => _("Send a message to %s") % scrap.sender.name %>

    <% end %>

  <% comment_balloon :class => 'profile-wall-description' do %>

<%= link_to scrap.sender.name, scrap.sender.url %>

<%= txt2html scrap.content %>

<%= time_ago_as_sentence(scrap.created_at) + ' ' + _('ago') %>

    <% if logged_in? && current_person.follows?(scrap.sender) && scrap.root.nil? %>
      <%= link_to_function _('Comment'), "hide_and_show(['#profile-wall-reply-response-#{scrap.id}'],['#profile-wall-reply-#{scrap.id}', '#profile-wall-reply-form-#{scrap.id}']);$('reply_content_#{scrap.id}').value='';$('scrap_id_#{scrap.id}').value='#{scrap.id}';return false", :class => "profile-send-reply" %>
    <% end %>
    <%= link_to_remote(content_tag(:span, _('Remove')), :url =>{:action => 'remove_scrap', :scrap_id => scrap.id}, :update => "profile-wall-item-#{scrap.id}") if logged_in? && user.can_control_scrap?(scrap) %>
  <% end %>

    <% scrap.replies.map do |reply| %>
      <%= render :partial => 'profile_scrap', :locals => {:scrap => reply} %>
    <% end %>

  <div id='profile-wall-message-<%= scrap.id%>' style='display:none;'>
    <div id='profile-wall-form-<%= scrap.id%>' style='display:none;'>

        <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap', :not_load_scraps => true}, :update => "profile-wall-message-response-#{scrap.id}", :success =>"hide_and_show(['#profile-wall-form-#{scrap.id}'],['#profile-wall-message-response-#{scrap.id}'])" do %>
          <%= limited_text_area :scrap, :content, 420, "content_#{scrap.id}", :cols => 50, :rows => 2 %>
          <%= hidden_field_tag 'receiver_id', scrap.sender.id %>
          <%= submit_button :add, _('Leave a scrap') %>
          <%= button_to_function :cancel, _('Cancel'), "hide_and_show(['#profile-wall-message-#{scrap.id}'],[]);return false" %>
        <% end %>

    <div id='profile-wall-message-response-<%=scrap.id%>' class='profile-wall-message-response'>

  <div id='profile-wall-reply-<%= scrap.id%>' style='display:none;'>
    <div id='profile-wall-reply-form-<%= scrap.id%>' style='display:none;'>

        <% form_remote_tag :url => {:controller => 'profile', :action => 'leave_scrap'}, :update => "profile_activities", :success =>"hide_and_show(['#profile-wall-reply-form-#{scrap.id}'],['#profile-wall-reply-response-#{scrap.id}'])" do %>
          <%= limited_text_area :scrap, :content, 420, "reply_content_#{scrap.id}", :cols => 50, :rows => 2 %>
          <%= hidden_field :scrap, :scrap_id, :id => "scrap_id_#{scrap.id}" %>
          <%= hidden_field_tag 'receiver_id', scrap.sender.id %>
          <%= submit_button :add, _('Leave a scrap') %>
          <%= button_to_function :cancel, _('Cancel'), "hide_and_show(['#profile-wall-reply-#{scrap.id}'],[]);return false" %>
        <% end %>

    <div id='profile-wall-message-response-<%=scrap.id%>' class='profile-wall-message-response'>


removed xhtml validity url

removed xhtml validity url

Copyright © 2000-2008 Indian GNU/Linux Users
  Group of Mumbai.
Verbatim copying and redistribution of content is
  permitted, provided this notice is preserved.

  XHTML  |  CSS | Web site
  Design by : WDD


Force commit for trigger stack migration


Changing text of button

Changing text of button

(ActionItem1344)

<%= __("%s's friends") % profile.name %>

<% cache_timeout(profile.manage_friends_cache_key(params), 4.hours.from_now) do %>
  <% if @friends.empty? %>

    <%= __('You have no friends yet.') %>
    <%= link_to _('Do you want to see other people in this environment?'), :controller => 'search', :action => 'assets', :asset => 'people' %>

  <% else %>
    <% button_bar do %>
      <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
      <%= button(:search, _('Find people'), :controller => 'search', :action => 'assets', :asset => 'people') %>
      <%= button(:search, _('Invite people from my e-mail contacts'), :action => 'invite') %>
    <% end %>
  <% end %>

    <% @friends.each do |friend| %>

      <%= link_to_profile profile_image(friend) + '
' + friend.short_name,
                          friend.identifier, :class => 'profile-link' %>

        <%= link_to content_tag('span',_('remove')),
            { :action => 'remove', :id => friend.id },
              :class => 'button icon-delete',
              :title => _('remove'),
              :help => __('Clicking on this button will remove your friend relation with %s.') % friend.name %>
        <%= link_to content_tag('span',_('contact')),
              friend.url.merge(:controller => 'contact', :action => 'new'),
              :class => 'button icon-menu-mail',
              :title => _('contact'),
              :help => __('Clicking on this button will let you send a message to %s.') % friend.name %>

    <% end %>

    <%= pagination_links @friends, :param_name => 'npage' %>

<% button_bar do %>
  <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
  <%= button(:search, _('Find people'), :controller => 'search', :action => 'assets', :asset => 'people') %>
  <%= button(:search, _('Invite people from my e-mail contacts'), :action => 'invite') %>
<% end %>
<% end %>

<%= __("%s's friends") % profile.name %>

<% cache_timeout(profile.manage_friends_cache_key(params), 4.hours.from_now) do %>
  <% if @friends.empty? %>

    <%= __('You have no friends yet.') %>
    <%= link_to _('Do you want to see other people in this environment?'), :controller => 'search', :action => 'assets', :asset => 'people' %>

  <% else %>
    <% button_bar do %>
      <%= button(:back, _('Go back'), :controller => 'profile_editor') %>
      <%= button(:search, _('Find people'), :controller => 'search', :action => 'assets', :asset => 'people') %>
      <%= button(:search, _('Invite people from my e-mail contacts'), :action => 'invite') %>
    <% end %>
  <% end %>

    <% @friends.each do |friend| %>

      <%= link_to_profile profile_image(friend) + '
' + friend.short_name,
                          friend.identifier, :class => 'profile-link' %>

        <%= link_to content_tag('span',_('remove')),
            { :action => 'remove', :id => friend.id },
              :class => 'button icon-delete',
              :title => _('remove'),
              :help => __('Clicking on this button will remove your friend relation with %s.') % friend.name %>
        <%= link_to content_tag('span',_('contact')),
              friend.url.merge(:controller => 'contact', :action => 'new'),
              :class => 'button icon-menu-mail',
              :title => _('contact'),
              :help => __('Clicking on this button will let you send a message to %s.') % friend.name %>

    <% end %>

    <%= pagination_links @friends, :param_name => 'npage' %>

<% button_bar do %>
  <%= button(:back, _('Go back'), :controller => 'profile_editor') %>
  <%= button(:search, _('Find people'), :controller => 'search', :action => 'assets', :asset => 'people') %>
  <%= button(:search, _('Invite people from my e-mail contacts'), :action => 'invite') %>
<% end %>
<% end %>


It's called WhatDoTheyKnow now, not FOIFA

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

      <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
      <title>WhatDoTheyKnow admin<%= @title ? ":" : "" %> <%=@title%></title>
      <%
        # Have to do explicit tag for stylesheet, to get absolute path on main server
      %>
      <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => admin_public_url(stylesheet_path('admin')) }) %>

WhatDoTheyKnow admin interface:
    <%= link_to 'Overview', admin_url('') %>
    | <%= link_to 'Timeline', admin_url('timeline') %>
    | <%= link_to 'Public bodies', admin_url('body/list') %>
    | <%= link_to 'Requests', admin_url('request/list') %>
    | <%= link_to 'Users', admin_url('user/list') %>

<%= flash[:notice] %>

    <%= yield  %>

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

      <meta http-equiv="content-type" content="text/html;charset=UTF-8" >
      <title>FOIFA admin<%= @title ? ":" : "" %> <%=@title%></title>
      <%
        # Have to do explicit tag for stylesheet, to get absolute path on main server
      %>
      <%= tag("link", { "rel" => "Stylesheet", "type" => "text/css", "media" => "screen", "href" => admin_public_url(stylesheet_path('admin')) }) %>

FOIFA admin interface:
    <%= link_to 'Overview', admin_url('') %>
    | <%= link_to 'Timeline', admin_url('timeline') %>
    | <%= link_to 'Public bodies', admin_url('body/list') %>
    | <%= link_to 'Requests', admin_url('request/list') %>
    | <%= link_to 'Users', admin_url('user/list') %>

<%= flash[:notice] %>

    <%= yield  %>


Sorry, messed up CSS positioning, fixed now

<%
if genre = @user_request.referent.metadata['genre']
	type = genre.capitalize+'s'
else
	type = 'Resources'
end
%>

Finding <%=type%>

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

Electronic version  via:

<% fulltxt = get_service_type('fulltext').each do | ft |
    target = ServiceList.get(ft.service_response.service_id).to_fulltext(ft.service_response)
%>

 <%= link_to target[:display_text], {:controller=>'link_router', :id=>ft.id}, 'target'=>"_blank" %>

<% unless target[:coverage].blank? %>

<%= target[:coverage] %>
<% end
%>
<% unless target[:note].blank? %>

<%= target[:note] %>
<% end
%>

<%
end

if fulltxt.empty?
%>

Not Available

<%
end
%>

Paper version  via:

<%
src = ""
holdings = get_service_type('holding').each do |p|
  target = ServiceList.get(p.service_response.service_id).to_holding(p.service_response)
  if src != target[:source_name]
  %>

<%= target[:source_name] %>

  <%
  src = target[:source_name]
  end
  if target[:call_number] == ""
  	display_text = target[:display_text]
  else
  	display_text = target[:call_number]
  end
  %>

<%= link_to display_text, {:controller=>'link_router', :id=>p.id}, 'target'=>'_blank' %>

<%
    unless display_text == target[:display_text]%>

<%= target[:display_text] %>
    <% end
    if target.has_key?(:status)%>

      <% if target[:status] == "Not Charged" or target[:status] == "Available" %>
      <%= target[:status].sub(/Not Charged/, "Available")%>
      <% else %>
      <%= target[:status] %>
      <% end %>

      <%
      end%>

  <%

  end
  %>

<%
if holdings.empty?
    unless title_search = search_opac_for_title(@user_request)
%>

Not Available

<%
else %>

<%= title_search -%>

<% end end %>

<% if session[:coins] %>

Check for holdings:

<%    session[:coins].each { | coins |
        unless coins[:text]
          label = image_tag(coins[:icon], :border=>0)
        else
          label = coins[:text]
        end
    %>

<a href="<%= coins[:host]%>?<%= @user_request.referent.to_context_object.kev %>" target="_blank"><%= label %>

    <%}%>

<%   end
%>

<% if display_ill?
%>

Request a copy via:

<% get_service_type('document_delivery').each do | doc_del |

    if @user_request.referent.format == 'journal'
        #doc_del[:url].sub!(/genre=[^\&]*/, 'genre=article')
    end
    %>

<%= link_to doc_del[:display_text], {:controller=>'link_router', :id=>doc_del.id}, 'target'=>'_blank'%>

<% end %>

<% end %>

<%
unless get_service_type('relevant links').empty? %>

Closest Web Results:  [<%= link_to_function "hide", "activelyHideWebResults()"%>]

<% get_service_type('relevant links').each do |web|
   target = web.service.to_web_link
%>

<%= link_to target[:title], {:controller=>'link_router', :id=>web.id}, 'target'=>"_blank"%>

<%= target[:description] %>
<%
end %>

[<%= link_to_function "Show closest web results", "activelyShowWebResults()"%>]

<% end %>

  <%= render :partial=>"menu" %>
  <%= render :partial=>"highlighted_links_start" %>


Add div around successful sign-in modal message so it can be themed

<%= _("You're in. Continue sending your request") %>


Simplify and tighten up wording on describe dialog (thank to David Jones).

<% if @is_owning_user || @requires_admin_describe %>
    <% 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

            <%= 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", "gone_postal", :id => 'gone_postal' + id_suffix %>
            <label for="gone_postal<%=id_suffix%>">They are going to reply by post

            <%= radio_button "incoming_message", "described_state", "not_held", :id => 'not_held' + id_suffix %>
            <label for="not_held<%=id_suffix%>">They do not have the information (maybe they say who does)

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

            <%= radio_button "incoming_message", "described_state", "successful", :id => 'successful' + id_suffix %>
            <label for="successful<%=id_suffix%>">I've received all the information

            <%= 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", "requires_admin", :id => 'requires_admin' + id_suffix %>
            <label for="requires_admin<%=id_suffix%>">None of the above

        <%= 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 "Submit status" %> (and we'll suggest what to do 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 || @requires_admin_describe %>
    <% 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", "gone_postal", :id => 'gone_postal' + id_suffix %>
            <label for="gone_postal<%=id_suffix%>">They would like to / are going to reply by post

            <%= 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", "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", "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", "rejected", :id => 'rejected' + id_suffix %>
            <label for="rejected<%=id_suffix%>">My request has been rejected

           <%= radio_button "incoming_message", "described_state", "requires_admin", :id => 'requires_admin' + id_suffix %>
            <label for="requires_admin<%=id_suffix%>">None of the above (please read them first!)

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 "Submit status" %> (and we'll advise you on what to do 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 %>


Don't use comma to separate values in the location cookie, as rails 2.0.2 will treat comma (as well as semicolon) as a cookie separate. Also change the name of the location cookie to avoid problems parsing old ones.

<% content_for :greeting do %>
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<%= link_to_function 'home', "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
<% end %>
<% end %>

<%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %>
<%= render :partial => 'key' %>
<%= render :partial => 'search' %>

You are either using a browser that doesn't support javascript, or you have disabled javascript.

OpenStreetMap uses javascript for its slippy map.

You may want to try the Tiles@Home static tile browser if you are unable to enable javascript.

Permalink

http://creativecommons.org/licenses/by-sa/2.0/
http://openstreetmap.org/

Licensed under the Creative Commons Attribution-Share Alike 2.0 license
by the OpenStreetMap project and its contributors.

<% if params['mlon'] and params['mlat'] %>
<% marker = true %>
<% mlon = h(params['mlon']) %>
<% mlat = h(params['mlat']) %>
<% end %>

<% if params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat'] %>
<% bbox = true %>
<% minlon = h(params['minlon']) %>
<% minlat = h(params['minlat']) %>
<% maxlon = h(params['maxlon']) %>
<% maxlat = h(params['maxlat']) %>
<% end %>

<% if params['lon'] and params['lat'] %>
<% lon =  h(params['lon']) %>
<% lat =  h(params['lat']) %>
<% zoom =  h(params['zoom'] || '5') %>
<% layers = h(params['layers']) %>
<% elsif params['mlon'] and params['mlat'] %>
<% lon = h(params['mlon']) %>
<% lat = h(params['mlat']) %>
<% zoom =  h(params['zoom'] || '12') %>
<% layers = h(params['layers']) %>
<% elsif cookies.key?("_osm_location") %>
<% lon,lat,zoom,layers = cookies["_osm_location"].split("|") %>
<% elsif @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<% lon =  @user.home_lon %>
<% lat =  @user.home_lat %>
<% zoom = '10' %>
<% else %>
<% session[:location] = OSM::IPLocation(request.env['REMOTE_ADDR']) unless session[:location] %>
<% if session[:location] %>
<% bbox = true %>
<% minlon = session[:location][:minlon] %>
<% minlat = session[:location][:minlat] %>
<% maxlon = session[:location][:maxlon] %>
<% maxlat = session[:location][:maxlat] %>
<% else %>
<% lon =  '-0.1' %>
<% lat =  '51.5' %>
<% zoom =  h(params['zoom'] || '5') %>
<% end %>
<% layers = h(params['layers']) %>
<% end %>

<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
<%= javascript_include_tag 'map.js' %>

<% content_for :greeting do %>
<% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<%= link_to_function 'home', "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)" %> |
<% end %>
<% end %>

<%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %>
<%= render :partial => 'key' %>
<%= render :partial => 'search' %>

You are either using a browser that doesn't support javascript, or you have disabled javascript.

OpenStreetMap uses javascript for its slippy map.

You may want to try the Tiles@Home static tile browser if you are unable to enable javascript.

Permalink

http://creativecommons.org/licenses/by-sa/2.0/
http://openstreetmap.org/

Licensed under the Creative Commons Attribution-Share Alike 2.0 license
by the OpenStreetMap project and its contributors.

<% if params['mlon'] and params['mlat'] %>
<% marker = true %>
<% mlon = h(params['mlon']) %>
<% mlat = h(params['mlat']) %>
<% end %>

<% if params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat'] %>
<% bbox = true %>
<% minlon = h(params['minlon']) %>
<% minlat = h(params['minlat']) %>
<% maxlon = h(params['maxlon']) %>
<% maxlat = h(params['maxlat']) %>
<% end %>

<% if params['lon'] and params['lat'] %>
<% lon =  h(params['lon']) %>
<% lat =  h(params['lat']) %>
<% zoom =  h(params['zoom'] || '5') %>
<% layers = h(params['layers']) %>
<% elsif params['mlon'] and params['mlat'] %>
<% lon = h(params['mlon']) %>
<% lat = h(params['mlat']) %>
<% zoom =  h(params['zoom'] || '12') %>
<% layers = h(params['layers']) %>
<% elsif cookies.key?("location") %>
<% lon,lat,zoom,layers = cookies["location"].split(",") %>
<% elsif @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
<% lon =  @user.home_lon %>
<% lat =  @user.home_lat %>
<% zoom = '10' %>
<% else %>
<% session[:location] = OSM::IPLocation(request.env['REMOTE_ADDR']) unless session[:location] %>
<% if session[:location] %>
<% bbox = true %>
<% minlon = session[:location][:minlon] %>
<% minlat = session[:location][:minlat] %>
<% maxlon = session[:location][:maxlon] %>
<% maxlat = session[:location][:maxlat] %>
<% else %>
<% lon =  '-0.1' %>
<% lat =  '51.5' %>
<% zoom =  h(params['zoom'] || '5') %>
<% end %>
<% layers = h(params['layers']) %>
<% end %>

<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
<%= javascript_include_tag 'map.js' %>


Make tag links work again.

Make tag links work again.

<% content_for "optionals" do %>

    Tags

    <% if @all_tags %>
      <% @all_tags.each do |tag| %>
        <%= link_to tag, :tag => tag %>

      <% end %>
    <% end %>

<% end %>

<% content_for "optionals" do %>

    Tags

    <% if @all_tags %>
      <% @all_tags.each do |tag| %>
        <%= link_to tag, :controller => 'trace', :action => @paging_action, :tag => tag %>

      <% end %>
    <% end %>

<% end %>


fix syntax error in migration generator

fix syntax error in migration generator

<%
require 'rubygems'
require 'pokerstats/hand_statistics'
%>

class CreatePokerstats < ActiveRecord::Migration
  def self.up
	  create_table :hand_statistics do |t|
		<%= Pokerstats::HandStatistics.hand_statistics_migration_data -%>
	    t.timestamps
	  end
	  create_table :player_statistics do |t|
		t.integer :hand_statistic_id
		t.integer :player_id
		<%= Pokerstats::HandStatistics.player_statistics_migration_data -%>
	    t.timestamps
	  end
	  create_table :player do |t|
	    t.string :name
	  end
  end

  def self.down
	drop_table :player
    drop_table :player_statistics
	drop_table :hand_statistics
  end
end

<%
require 'rubygems'
require 'pokerstats/hand_statistics'
%>

class CreatePokerstats < ActiveRecord::Migration
  def self.up
	  create_table :hand_statistics do |t|
		<%= Pokerstats::HandStatistics.hand_statistics_migration_data -%>
	    t.timestamps
	  end
	  create_table :player_statistics do |t|
		t.integer :hand_statistic_id
		t.integer :player_id
		<%= Pokerstats::HandStatistics.player_statistics_migration_data -%>
	    t.timestamps
	  end
	  create_table :player
	    t.string :name
	  end
  end

  def self.down
	drop_table :player
    drop_table :player_statistics
	drop_table :hand_statistics
  end
end


HTML syntax typo

HTML syntax typo

<%= error_messages_for 'public_body' %>

List of tags

    <% first_row = true %>
    <% for row in PublicBody.categories_with_headings %>
        <% if row.instance_of?(Array) %>
            <% if row[0] != 'other' %>
                <%= row[0] %>=<%= row[1] %>

            <% end %>
        <% elsif row != 'Miscellaneous' %>
            <% if not first_row %>
            <% else %>
                <% first_row = false %>
            <% end %>

<%=h row%>

        <% end %>
    <% end %>

Name

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

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

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

Request email (set to blank (empty string) if can't find an address; to not_apply if FOI no longer / never did apply to authority; these emails are public as anyone can view with a CAPTCHA)

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

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

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

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

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

Tags (space separated; see list of tags on the right)

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

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

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


Added specific class id for CSS override

<%= render :partial => partial, :locals => view_data %>


Fix utf-8 encoding issue with HTML template. [bug]

  <title><%= title %></title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

  <% if css %>
  <link rel="stylesheet" href="<%= css %>" type="text/css">
  <% end %>

<%= title %>

Table of Contents

      <%= spec %>

  <title><%= title %></title>

  <% if css %>
  <link rel="stylesheet" href="<%= css %>" type="text/css">
  <% end %>

<%= title %>

Table of Contents

      <%= spec %>


Remove duplicate edit comment box

Remove duplicate edit comment box

<%= error_messages_for 'public_body' %>

  <% I18n.available_locales.each_with_index do |locale, i| %>

<a href="#div-locale-<%=locale.to_s%>" data-toggle="tab" ><%=locale_name(locale.to_s) || _("Default locale")%>

  <% end %>

<%
    for locale in I18n.available_locales do
        if locale==I18n.default_locale  # The default locale is submitted as part of the bigger object...
            prefix = 'public_body'
            object = @public_body
        else                            # ...but additional locales go "on the side"
            prefix = "public_body[translated_versions][]"
            object = @public_body.new_record? ?
                        PublicBody::Translation.new :
                        @public_body.translation(locale.to_s) || PublicBody::Translation.new
        end

        fields_for prefix, object do |t|
%>
    <div class="tab-pane" id="div-locale-<%=locale.to_s%>">

        <%= t.hidden_field :locale, :value => locale.to_s %>
        <label for="<%= form_tag_id(t.object_name, :name, locale) %>" class="control-label">Name

          <%= t.text_field :name, :id => form_tag_id(t.object_name, :name, locale), :class => "span4" %>

        <label for="<%= form_tag_id(t.object_name, :short_name, locale) %>", class="control-label"><%=_("Short name")%>

          <%= t.text_field :short_name, :id => form_tag_id(t.object_name, :short_name, locale), :class => "span2"  %>

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

        <label for="<%= form_tag_id(t.object_name, :request_email, locale) %>" class="control-label"><%=_("Request email")%>

          <%= t.text_field :request_email, :id => form_tag_id(t.object_name, :request_email, locale), :class => "span3" %>

<%=_("set to blank (empty string) if can't find an address; these emails are public as anyone can view with a CAPTCHA")%>

        <label for="<%= form_tag_id(t.object_name, :publication_scheme, locale) %>" class="control-label"><%=_("Publication scheme URL")%>

          <%= t.text_field :publication_scheme, :size => 60, :id => form_tag_id(t.object_name, :publication_scheme, locale), :class => "span3" %>

        <label for="<%= form_tag_id(t.object_name, :notes, locale) %>" class="control-label"><%=_("Public notes")%>

          <%= t.text_area :notes, :rows => 3, :id => form_tag_id(t.object_name, :notes, locale), :class => "span6" %>

            HTML, for users to consider when making FOI requests to the authority

<%
        end
    end
%>

Common Fields

  <%=_("Tags")%>

    <%= f.text_field :tag_string, :class => "span4" %>

space separated; see list of tags on the right; also not_apply if FOI and EIR no longer apply to authority, eir_only if EIR but not FOI applies to authority, defunct if the authority no longer exists; charity:NUMBER if a registered charity

  <%=_("Home page")%>

    <%= f.text_field :home_page, :class => "span4"  %>

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

  Comment for this edit

    <%= f.text_area :last_edit_comment, :rows => 3, :class => "span6"  %>

put URL or other source of new info

  Comment for this edit

    <%= f.text_area :last_edit_comment, :rows => 3, :class => "span6"  %>

put URL or other source of new info


Fixed incompat with Active-Support

Fixed incompat with Active-Support

<%

    month_names = {
      '01' => tl(:january),
      '02' => tl(:february),
      '03' => tl(:march),
      '04' => tl(:april),
      '05' => tl(:may),
      '06' => tl(:june),
      '07' => tl(:july),
      '08' => tl(:august),
      '09' => tl(:september),
      '10' => tl(:october),
      '11' => tl(:november),
      '12' => tl(:december)
    }

    prev_month = (month.to_i-1).to_s
    next_month = (month.to_i+1).to_s
    prev_year = year.to_i
    next_year = year.to_i
    if(month.to_i == 1) then
      prev_month = 12
      prev_year = year.to_i - 1
    elsif(month.to_i == 12) then
      next_month = 1
      next_year = year.to_i + 1
    end
    prev_month = 'Calendar::Calendar/show/year='+(prev_year).to_s+'&month='+(prev_month).to_s
    next_month = 'Calendar::Calendar/show/year='+(next_year).to_s+'&month='+(next_month).to_s

%>

      <nobr>
        <a onclick="Aurita.load({ element: 'calendar_box_month', action: '<%= prev_month %>' }); ">((

            <%=
              gui.link_to(:controller => 'Calendar::Event', :action => :month, :month => date.strftime("%Y-%m")) {
                month_names[date.strftime("%m")] + " " << year.to_s
              }
            %>

        <a onclick="Aurita.load({ element: 'calendar_box_month', action: '<%= next_month %>' }); ">))
      </nobr>

<% ['KW','Mo','Di','Mi','Do','Fr','Sa', 'So'].each do |index| %>
    <%= index %>
<% end %>

    <%= (Month.new(year,month).days.first.cweek) %>
<%
  count = 1
  Month.new(year,month).days.each do |day|
%>
  <%
    provide_link = true
    if day.is_proxy? then
      style = 'color: #555555;'
      provide_link = false
    elsif day == Date.today then
      style = 'color: #ff0000;'
    elsif day.is_weekend? and !day.is_proxy? then
      style = 'color: #999999;'
    else
      style = ''
    end

    events = []
    events = Aurita::Plugins::Calendar::Event.events_for(day, Aurita.user.category_ids)
    if events.length > 0 then
      style << ' font-weight: bold; '
    end
  %>

    <%=
    if provide_link then
      gui.link_to(:controller => 'Calendar::Event',
                  :action => :list,
                  :day => year.to_s+'.'+day.strftime("%m")+'.'+day.strftime("%d") ) {
        ('<span style="' << style + '">' << day.strftime("%d") + '')
      }
    else
      ''
    end
    %>

  <% if (count % 7) == 0 then %>

    <% if provide_link then %>
      <%= (day.cweek < 53)? day.cweek+1 : 1 %>
    <% end %>
  <% end %>

<%
  count += 1
  end
%>

<%

    month_names = {
      '01' => tl(:january),
      '02' => tl(:february),
      '03' => tl(:march),
      '04' => tl(:april),
      '05' => tl(:may),
      '06' => tl(:june),
      '07' => tl(:july),
      '08' => tl(:august),
      '09' => tl(:september),
      '10' => tl(:october),
      '11' => tl(:november),
      '12' => tl(:december)
    }

    prev_month = (month.to_i-1).to_s
    next_month = (month.to_i+1).to_s
    prev_year = year.to_i
    next_year = year.to_i
    if(month.to_i == 1) then
      prev_month = 12
      prev_year = year.to_i - 1
    elsif(month.to_i == 12) then
      next_month = 1
      next_year = year.to_i + 1
    end
    prev_month = 'Calendar::Calendar/show/year='+(prev_year).to_s+'&month='+(prev_month).to_s
    next_month = 'Calendar::Calendar/show/year='+(next_year).to_s+'&month='+(next_month).to_s

%>

      <nobr>
        <a onclick="Aurita.load({ element: 'calendar_box_month', action: '<%= prev_month %>' }); ">((

            <%=
              gui.link_to(:controller => 'Calendar::Event', :action => :month, :month => date.strftime("%Y-%m")) {
                month_names[date.strftime("%m")] + " " << year.to_s
              }
            %>

        <a onclick="Aurita.load({ element: 'calendar_box_month', action: '<%= next_month %>' }); ">))
      </nobr>

<% ['KW','Mo','Di','Mi','Do','Fr','Sa', 'So'].each do |index| %>
    <%= index %>
<% end %>

    <%= (Month.new(year,month).days.first.cweek) %>
<%
  count = 1
  Month.new(year,month).days.each do |day|
%>
  <%
    provide_link = true
    if day.is_proxy? then
      style = 'color: #555555;'
      provide_link = false
    elsif day.today? then
      style = 'color: #ff0000;'
    elsif day.is_weekend? and !day.is_proxy? then
      style = 'color: #999999;'
    else
      style = ''
    end

    events = []
    events = Aurita::Plugins::Calendar::Event.events_for(day, Aurita.user.category_ids)
    if events.length > 0 then
      style << ' font-weight: bold; '
    end
  %>

    <%=
    if provide_link then
      gui.link_to(:controller => 'Calendar::Event',
                  :action => :list,
                  :day => year.to_s+'.'+day.strftime("%m")+'.'+day.strftime("%d") ) {
        ('<span style="' << style + '">' << day.strftime("%d") + '')
      }
    else
      ''
    end
    %>

  <% if (count % 7) == 0 then %>

    <% if provide_link then %>
      <%= (day.cweek < 53)? day.cweek+1 : 1 %>
    <% end %>
  <% end %>

<%
  count += 1
  end
%>


Fix typo

Fix typo

<!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" xml:lang="<%= html_language %>" lang="<%= html_language %>">

    <title><%= h page_title %></title>
    <%= yield(:feeds) %>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="description" content="<%= @environment.name %>" />

    <meta name="twitter:card" value="summary">
    <meta name="twitter:title" content="<%= h page_title %>">
    <meta name="twitter:description" content="<%= meta_description_tag(@page) %>">

    <meta property="og:type" content="<%= @page ? 'article' : 'website' %>">
    <meta property="og:url" content="<%= @page ? url_for(@page.url) : @environment.top_url %>">
    <meta property="og:title" content="<%= h page_title %>">
    <meta property="og:site_name" content="<%= profile ? profile.name : @environment.name %>">
    <meta property="og:description" content="<%= @page ? truncate(strip_tags(@page.body.to_s), :length => 200) : @environment.name %>">

    <% if @page %>
      <meta property="article:published_time" content="<%= show_date(@page.published_at) %>">
      <% @page.body_images_paths.each do |img| %>
        <meta name="twitter:image" content="<%= img.to_s %>">
        <meta property="og:image" content="<%= img.to_s %>">
      <% end %>
    <% end %>

    <link rel="shortcut icon" href="<%= image_path(theme_favicon) %>" type="image/x-icon" />
    <%= noosfero_javascript %>
    <%= noosfero_stylesheets %>

    <%# Add custom tags/styles/etc via content_for %>
    <%= yield :head %>
    <%=
      @plugins.dispatch(:head_ending).map do |content|
        if content.respond_to?(:call) then instance_eval(&content).html_safe else content.html_safe end
      end.join("\n")
    %>

  <body class="<%= h body_classes %>">
    <%= _("Go to the content") %>

    <%=
      @plugins.dispatch(:body_beginning).map do |content|
        if content.respond_to?(:call) then instance_eval(&content).html_safe else content.html_safe end
      end.join("\n")
    %>

        <%= theme_header %>

        <%= render :partial => 'layouts/user' %>

          <%= theme_site_title %>

            <%= theme_extra_navigation %>

          <%= render 'layouts/content' %>

    <%= render_environment_features(:logged_in) %>

      <%= theme_footer %>

    <%= noosfero_layout_features %>
    <%= addthis_javascript %>

<!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" xml:lang="<%= html_language %>" lang="<%= html_language %>">

    <title><%= h page_title %></title>
    <%= yield(:feeds) %>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="description" content="<%= @environment.name %>" />

    <meta name="twitter:card" value="summary">
    <meta name="twitter:title" content="<%= h page_title %>">
    <meta name="twitter:description" content="<%= meta_description_tag(@page) %>">

    <meta property="og:type" content="<%= @page ? 'article' : 'website' %>">
    <meta property="og:url" content="<%= @page ? url_for(@page.url) : @environment.top_url %>">
    <meta property="og:title" content="<%= h page_title %>">
    <meta property="og:site_name" content="<%= profile ? profile.name : @environment.name %>">
    <meta property="og:description" content="<%= @page ? truncate(strip_tags(@page.body.to_s), :length => 200) : @environment.name %>">

    <% if @page %>
      <meta property="article:published_time" content="<%= show_date(@page.published_at) %>">
      <% @page.body_images_paths.each do |img| %>
        <meta name="twitter:image" content="<%= img.to_s %>">
        <meta property="og:image" content="<%= img.to_s %>">
      <% end %>
    <% end %>

    <link rel="shortcut icon" href="<%= image_path(theme_favicon) %>" type="image/x-icon" />
    <%= noosfero_javascript %>
    <%= noosfero_stylesheets %>

    <%# Add custom tags/styles/etc via content_for %>
    <%= yield :head %>
    <%=
      @plugins.dispatch(:head_ending).map do |content|
        if content.respond_to?(:call) then instance_eval(&content).html_safe else content.html.safe end
      end.join("\n")
    %>

  <body class="<%= h body_classes %>">
    <%= _("Go to the content") %>

    <%=
      @plugins.dispatch(:body_beginning).map do |content|
        if content.respond_to?(:call) then instance_eval(&content).html_safe else content.html.safe end
      end.join("\n")
    %>

        <%= theme_header %>

        <%= render :partial => 'layouts/user' %>

          <%= theme_site_title %>

            <%= theme_extra_navigation %>

          <%= render 'layouts/content' %>

    <%= render_environment_features(:logged_in) %>

      <%= theme_footer %>

    <%= noosfero_layout_features %>
    <%= addthis_javascript %>


Display better when the user hasn't filed any requests.

<% @title = h(@display_users[0].name) %>

<% if (@display_users.size > 1) %>

There is more than one user with this name.
<% end%>

<% for display_user in @display_users %>

<%=@title%>

Joined on <%= simple_date(display_user.created_at) %>

    <% if display_user.info_requests.empty? %>

This person has made no Freedom of Information requests using this site.

    <% else %>

Freedom of Information requests made by this person:

        <% for info_request in display_user.info_requests %>

        <%= info_request_link(info_request) %>
        on <%= simple_date(info_request.created_at) %>

        <% end %>

    <% end %>

<% end %>

<% @title = h(@display_users[0].name) %>

<% if (@display_users.size > 1) %>

There is more than one user with this name.
<% end%>

<% for display_user in @display_users %>

<%=@title%>

Joined on <%= simple_date(display_user.created_at) %>

Freedom of Information requests made by this person:

    <% for info_request in display_user.info_requests %>

    <%= info_request_link(info_request) %>
    on <%= simple_date(info_request.created_at) %>

    <% end %>

<% end %>


WDTK-74 Update time to respond help text

<% @title = "Making requests" %>

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

<%= @title %> #

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

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

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

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

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

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

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

Who can make a request? #

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

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

See the Attorney General's department FOI Guidelines – Fundamental principles and procedures - section 3.2 for more.

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

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

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

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

Why do you include some authorities that aren't formally subject to FOI?#

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

 Those formally subject to the FOI Act

 Those which voluntarily comply with the FOI Act

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

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

Why must I keep my request focused?#

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

arguments about your cause

statements that could defame or insult others

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

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

Does it cost me anything to make a request?#

Making an FOI request is nearly always free.

Authorities often include unnecessary, scary, boilerplate in
acknowledgement messages saying they "may" charge a fee. Ignore such notices.
They hardly ever will actually charge a fee.  If they do, they can only charge you if
you have specifically agreed in advance to pay.  More
    details from the Information Commissioner.

The latest version of the FOI Act (s 3(4)) makes it clear that

… functions and powers given by this Act are to be performed and exercised, as far as possible, to facilitate and promote public access to information, promptly and at the lowest reasonable cost.

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

How quickly will I get a response? #

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

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

  For various reasons,
  this timeframe can be extended.

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

What if I never get a response?#

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

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

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

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

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

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

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

Authorities often add legal boilerplate about the
Commonwealth Copyright Adminstration, which at first glance implies you may not
be able do anything with the information. This is likely to be incorrect as the latest Statement of IP Principles for Australian Government Agencies explictly encourages reuse.

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

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

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

Have a look at the
Freedom of Information guidelines
pages on the Information Commissioner's website.

Can I request information about myself? #

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

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

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

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

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

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

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

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

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

How do you moderate request annotations? #

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

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

Next, read about your privacy -->

<% @title = "Making requests" %>

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

<%= @title %> #

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

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

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

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

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

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

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

Who can make a request? #

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

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

See the Attorney General's department FOI Guidelines – Fundamental principles and procedures - section 3.2 for more.

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

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

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

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

Why do you include some authorities that aren't formally subject to FOI?#

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

 Those formally subject to the FOI Act

 Those which voluntarily comply with the FOI Act

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

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

Why must I keep my request focused?#

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

arguments about your cause

statements that could defame or insult others

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

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

Does it cost me anything to make a request?#

Making an FOI request is nearly always free.

Authorities often include unnecessary, scary, boilerplate in
acknowledgement messages saying they "may" charge a fee. Ignore such notices.
They hardly ever will actually charge a fee.  If they do, they can only charge you if
you have specifically agreed in advance to pay.  More
    details from the Information Commissioner.

The latest version of the FOI Act (s 3(4)) makes it clear that

… functions and powers given by this Act are to be performed and exercised, as far as possible, to facilitate and promote public access to information, promptly and at the lowest reasonable cost.

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

How quickly will I get a response? #

By law, public authorities must respond promptly to
requests.

Even if they are not prompt, in nearly all cases they must respond within
30 calendar days and must have sent you an acknowledgment within 14 calendar days.
If you had to clarify your request, or one or two other cases, then they may have more time
(full details).

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

What if I never get a response?#

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

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

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

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

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

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

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

Authorities often add legal boilerplate about the
Commonwealth Copyright Adminstration, which at first glance implies you may not
be able do anything with the information. This is likely to be incorrect as the latest Statement of IP Principles for Australian Government Agencies explictly encourages reuse.

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

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

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

Have a look at the
Freedom of Information guidelines
pages on the Information Commissioner's website.

Can I request information about myself? #

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

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

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

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

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

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

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

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

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

How do you moderate request annotations? #

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

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

Next, read about your privacy -->


obe-25 removed ability to enlarge profile picture

<% avatar_can_be_edited_by_current_user = mine?(@avatar_owner_instance) || @avatar_owner_instance.can_be_edited_by?(current_user) -%>

<%= icon(@avatar_owner_instance.class.name.downcase, url_for(@avatar_owner_instance), nil, nil, 'Return to Profile')%>

  <% if avatar_can_be_edited_by_current_user -%>

<%= icon('avatar', new_avatar_link(@avatar_owner_instance), nil, nil, 'Upload New Picture')%>

  <% end %>

<%= @avatar_for -%> Pictures: <%= link_to @avatar_owner_instance.name, url_for(@avatar_owner_instance) -%>

<% unless @avatars.empty? %>

<% odd_row = false -%>
<% for avatar in @avatars -%>
  <tr class="<%= (odd_row = !odd_row) ? "odd_row" : "even_row" -%>">

      <% if avatar.selected? -%>
				<%= icon "tick", nil, nil, nil, "" -%>

        Current
      <% end -%>

      <%= image_tag avatar_url(@avatar_owner_instance, avatar.id, 100), :alt => @avatar_owner_instance.name, :class => 'framed' -%>

			<% if avatar_can_be_edited_by_current_user -%>
				<% avatar_link = avatar_url(@avatar_owner_instance, avatar.id) -%>
				<% unless avatar.selected? -%>
					<%= icon "avatar", avatar_link + "/select", nil, { :method => :post }, "Set as Main Picture" -%>
				<% end -%>
			<% end -%>
			<%# "enlarge" option is shown to everyone -%>
			<%#= icon "show", avatar_url(@avatar_owner_instance, avatar.id, "large"), nil, nil, "Enlarge" -%>
			<% if avatar_can_be_edited_by_current_user -%>
				<%= icon "destroy", avatar_link, nil, { :confirm => 'Are you sure?', :method => :delete }, "Delete" -%>
			<% end -%>

<% end -%>

<% else -%>

  	No avatars yet!

<% end -%>

<% avatar_can_be_edited_by_current_user = mine?(@avatar_owner_instance) || @avatar_owner_instance.can_be_edited_by?(current_user) -%>

<%= icon(@avatar_owner_instance.class.name.downcase, url_for(@avatar_owner_instance), nil, nil, 'Return to Profile')%>

  <% if avatar_can_be_edited_by_current_user -%>

<%= icon('avatar', new_avatar_link(@avatar_owner_instance), nil, nil, 'Upload New Picture')%>

  <% end %>

<%= @avatar_for -%> Pictures: <%= link_to @avatar_owner_instance.name, url_for(@avatar_owner_instance) -%>

<% unless @avatars.empty? %>

<% odd_row = false -%>
<% for avatar in @avatars -%>
  <tr class="<%= (odd_row = !odd_row) ? "odd_row" : "even_row" -%>">

      <% if avatar.selected? -%>
				<%= icon "tick", nil, nil, nil, "" -%>

        Current
      <% end -%>

      <%= image_tag avatar_url(@avatar_owner_instance, avatar.id, 100), :alt => @avatar_owner_instance.name, :class => 'framed' -%>

			<% if avatar_can_be_edited_by_current_user -%>
				<% avatar_link = avatar_url(@avatar_owner_instance, avatar.id) -%>
				<% unless avatar.selected? -%>
					<%= icon "avatar", avatar_link + "/select", nil, { :method => :post }, "Set as Main Picture" -%>
				<% end -%>
			<% end -%>
			<%# "enlarge" option is shown to everyone -%>
			<%= icon "show", avatar_url(@avatar_owner_instance, avatar.id, "large"), nil, nil, "Enlarge" -%>
			<% if avatar_can_be_edited_by_current_user -%>
				<%= icon "destroy", avatar_link, nil, { :confirm => 'Are you sure?', :method => :delete }, "Delete" -%>
			<% end -%>

<% end -%>

<% else -%>

  	No avatars yet!

<% end -%>


 r219@sede:  terceiro | 2007-07-28 12:24:45 -0300
 ActionItem7: fixing typo

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

<%= _('There is no such page: %s') % (content_tag('tt', @path)) %>

<%= _('There is not such page: %s') % (content_tag('tt', @path)) %>


fix @eg bug put in by my search and replace

<% node_label = if node.has_logo? then render(:partial => 'logo', :locals => { :node => node }) else
    node.to_s end %>

<% if (@viewer.is_eventgroup_coordinator?(@eg) || !node.projects.empty?) && node.children.empty? %>
  <%= link_to node_label, set_as_scope_event_group_url(node.id) %>
<% else %>
  <%= node_label %>
<% end %>

<% node_label = if node.has_logo? then render(:partial => 'logo', :locals => { :node => node }) else
    node.to_s end %>

<% if (@viewer.is_eventgroup_coordinator?(@eg) || !node.projects.empty?) && node.children.empty?(@eg) %>
  <%= link_to node_label, set_as_scope_event_group_url(node.id) %>
<% else %>
  <%= node_label %>
<% end %>


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

New Team for <%= @assignment.name %>

<%= form_tag :action => 'create', :assignment_id => params[:assignment_id] %>
<%= render :partial => 'form' %>

New Team for <%= @assignment.name %>

<%= form_tag :action => 'create' %>
<%= render :partial => 'form' %>


Fix checkboxes in my tasks view, it was broken in a previous commit

<% if @projects_milestonestasks.length > 0 %>

<% @projects_milestonestasks.each do |project| -%>
<% if project[:milestones].length > 0 or project[:tasks].length > 0 %>

<%= link_to (h project[:name]), project_path(:id => project[:id]) %>

<% if project[:milestones].length > 0 %>

<%= link_to 'Milestones', milestones_path(:active_project => project[:id]) %>:

<% project[:milestones].each do |milestone| -%>

          <%= checkbox_link complete_milestone_path(:id => milestone.id, :active_project => milestone.project_id), false, nil, {:method => :put} %>

<% if not milestone.assigned_to.nil? %>
            <%= h milestone.assigned_to.object_name %>:
<% else %>
            <%= :anyone.l %>:
<% end %>
            <%= link_to (h milestone.name), milestone_path(:id => milestone.id, :active_project => project[:id]) %> -
<% if milestone.is_upcoming? %>
            <%= :milestone_days_left.l_with_args(:days => milestone.days_left) %>
<% elsif milestone.is_late? %>
            <%= :milestone_days_late.l_with_args(:days => milestone.days_late) %>
<% elsif milestone.is_today? %>
            <%= :today.l %>
<% end %>

<% end %>

<% end %>

<% if project[:tasks].length > 0 %>

<%= link_to :tasks.l, task_lists_path(:active_project => project[:id]) %>:

<% project[:tasks].each do |task| -%>

          <input class="checkbox completion" type="checkbox" url="<%= status_task_path(:task_list_id => task.task_list_id, :id => task.id, :active_project => project[:id]) %>" <% if task.is_completed? %>checked="true"<% end %>/>

<% if not task.assigned_to.nil? %>
            <%= h task.assigned_to.object_name  %>:
<% else %>
            <%= :anyone.l %>:
<% end %>
            <%= h task.text %>
<% if not task.task_list.nil? %>
            (<%= :tasks_in_list.l_with_args(:list => link_to(h(task.task_list.name), task_list_path(:id => task.task_list_id, :active_project => project[:id]))) %>)
<% end %>

<% end %>

<% end %>

<% end %>

<% end %>

<% else %>

<%= :no_active_projects.l %>

<% end  %>

<% if not @has_assigned_tasks %>

<%= :no_tasks_assigned_to_you.l %>

<% end %>

<% if @projects_milestonestasks.length > 0 %>

<% @projects_milestonestasks.each do |project| -%>
<% if project[:milestones].length > 0 or project[:tasks].length > 0 %>

<%= link_to (h project[:name]), project_path(:id => project[:id]) %>

<% if project[:milestones].length > 0 %>

<%= link_to 'Milestones', milestones_path(:active_project => project[:id]) %>:

<% project[:milestones].each do |milestone| -%>

          <%= checkbox_link complete_milestone_path(:id => milestone.id, :active_project => milestone.project_id), false, nil, {:method => :put} %>

<% if not milestone.assigned_to.nil? %>
            <%= h milestone.assigned_to.object_name %>:
<% else %>
            <%= :anyone.l %>:
<% end %>
            <%= link_to (h milestone.name), milestone_path(:id => milestone.id, :active_project => project[:id]) %> -
<% if milestone.is_upcoming? %>
            <%= :milestone_days_left.l_with_args(:days => milestone.days_left) %>
<% elsif milestone.is_late? %>
            <%= :milestone_days_late.l_with_args(:days => milestone.days_late) %>
<% elsif milestone.is_today? %>
            <%= :today.l %>
<% end %>

<% end %>

<% end %>

<% if project[:tasks].length > 0 %>

<%= link_to :tasks.l, task_lists_path(:active_project => project[:id]) %>:

<% project[:tasks].each do |task| -%>

          <input class="checkbox" type="checkbox completion" url="<%= status_task_path(:task_list_id => task.task_list_id, :id => task.id, :active_project => project[:id]) %>" <% if task.is_completed? %>checked="true"<% end %>/>

<% if not task.assigned_to.nil? %>
            <%= h task.assigned_to.object_name  %>:
<% else %>
            <%= :anyone.l %>:
<% end %>
            <%= h task.text %>
<% if not task.task_list.nil? %>
            (<%= :tasks_in_list.l_with_args(:list => link_to(h(task.task_list.name), task_list_path(:id => task.task_list_id, :active_project => project[:id]))) %>)
<% end %>

<% end %>

<% end %>

<% end %>

<% end %>

<% else %>

<%= :no_active_projects.l %>

<% end  %>

<% if not @has_assigned_tasks %>

<%= :no_tasks_assigned_to_you.l %>

<% end %>


We have search now.

We have search now.

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.

 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.

 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!


show all versions, limit to 5 per article

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

<%= render :partial => "page_nav" %>

<% content_for :sidebar do %>
  <%= render :partial => 'shared_options' %>

Markup options

    <% fields_for :article, @version do |f| -%>

        <select name="article[filters][]" id="article_filters">
          <%= options_for_select(filter_options, (@version.filters || []).first.to_s) %>
        </select>

<%= f.check_box :parse_macros %>Use macro filters

    <% end -%>

Revisions<% if params[:version] -%> (<%= link_to 'current', :action => :edit, :id => @article, :version => nil %>)<% end -%>

    <% @article.versions.reverse.each do |version| -%>

        <%= link_to avatar_for(version.updater), {:action => 'edit', :id => @article, :version => version.version }, :title => 'Edit this revision' %>

<%=h who(version.updater.login) %>

        edited this <%= time_ago_in_words version.updated_at %> ago.
        <%= version.version %>

    <% end -%>

<% end %>

<%= error_messages_for :article %>

<% content_for :form do -%>
  <%= start_form_tag({:action => 'update', :id => @article}, {:id => 'article-form'}) %>
<% end -%>

<% fields_for :article, @version do |f| -%>
<%= render :partial => 'form', :object => f %>

  <%= submit_tag 'Apply Changes' %>
  <%= submit_tag 'Save without Revision' %>
  <%= link_to "cancel", :controller => "articles" %>

<% end -%>

<%= render :partial => "page_nav" %>

<% content_for :sidebar do %>
  <%= render :partial => 'shared_options' %>

Markup options

    <% fields_for :article, @version do |f| -%>

        <select name="article[filters][]" id="article_filters">
          <%= options_for_select(filter_options, (@version.filters || []).first.to_s) %>
        </select>

<%= f.check_box :parse_macros %>Use macro filters

    <% end -%>

Revisions<% if params[:version] -%> (<%= link_to 'current', :action => :edit, :id => @article, :version => nil %>)<% end -%>

    <% @article.versions.find(:all, :order => 'updated_at DESC', :limit => 4).each do |version| -%>

        <%= link_to avatar_for(version.updater), {:action => 'edit', :id => @article, :version => version.version }, :title => 'Edit this revision' %>

<%=h who(version.updater.login) %>

        edited this <%= time_ago_in_words version.updated_at %> ago.
        <%= version.version %>

    <% end -%>

<% end %>

<%= error_messages_for :article %>

<% content_for :form do -%>
  <%= start_form_tag({:action => 'update', :id => @article}, {:id => 'article-form'}) %>
<% end -%>

<% fields_for :article, @version do |f| -%>
<%= render :partial => 'form', :object => f %>

  <%= submit_tag 'Apply Changes' %>
  <%= submit_tag 'Save without Revision' %>
  <%= link_to "cancel", :controller => "articles" %>

<% end -%>


Removed proxy error/hosting notice

Removed proxy error/hosting notice

git-svn-id: 3ebd8a4fd9006ff03462623fffc479a1d4750d42@618 7a65b82a-1d14-0410-b525-e2835e71a0b4

<!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" />
  <%= auto_discovery_link_tag(:rss, {:controller => 'observer', :action  =>  'rss'}, {:title => :app_rss.l}) %>
  <title><%= :app_title.l %>: <%= if @title.nil? then controller.action_name else @title.strip_html end %></title>
  <%= "<link rel=\"SHORTCUT ICON\" href=\"#{DOMAIN}/images/favicon.ico\" />"%>

  <%= check_if_user_turned_javascript_on %>

  <%=
    css = nil
    if @user and @user.id == 0
      css = 'Admin'
    elsif is_robot?
      css = 'Agaricus'
    else
      if CSS.member?(controller.action_name)
        css = controller.action_name
      else
        unless @user.nil?
          css = @user.theme
        end
      end
      unless CSS.member?(css)
        css = CSS[rand(CSS.length)]
      end
    end
    stylesheet_link_tag 'general', css
  %>

  <%= sort_javascript_includes.map {|m| javascript_include_tag(m)} %>

  <% if @header %>
    <%= @header %>
  <% end %>

  <% if @user and @user.id == 0 %>

      DANGER: You are in administrator mode. Proceed with caution.

  <% end %>

                <%= link_to(@page_title || :app_banner.t, :controller => 'observer', :action => 'index') %>

                <%= link_to(:app_intro.t, :controller => 'observer', :action => 'intro') %>

                <%= link_to(:app_how_to_use.t, :controller => 'observer', :action => 'how_to_use') %>

                <%= link_to(:app_how_to_help.t, :controller => 'observer', :action => 'how_to_help') %>

                <%= link_to(:app_send_a_comment.t, :controller => 'observer', :action => 'ask_webmaster_question') %>

                <%= link_to(:app_index_a_z.t, :controller => 'name', :action => 'observation_index') %>

                <%= link_to(:app_list_projects.t, :controller => 'project', :action => 'list_projects') %>

                <%= :app_latest.t %>:

                  <%= link_to(:app_latest_changes.t, :controller => 'observer', :action => 'list_rss_logs') %>

                  <%= link_to(:app_newest_images.t, :controller => 'image', :action => 'list_images') %>

                  <%= link_to(:app_comments.t, :controller => 'comment', :action => 'list_comments') %>

                  <%= link_to(:app_news.t, :controller => 'observer', :action => 'news') %>

                <%= :app_observations_left.t %>:

                  <%= link_to(:app_create_observation.t, :controller => 'observer', :action => 'create_observation') %>

                  <%= link_to(:app_sort_by_date_obs.t, :controller => 'observer', :action => 'list_observations') %>

                <%= :app_species_list.t %>:

                  <%= link_to(:app_create_list.t, :controller => 'species_list', :action => 'name_lister') %>

                  <%= link_to(:app_sort_by_date_spl.t, :controller => 'species_list', :action => 'list_species_lists') %>

                  <%= link_to(:app_sort_by_title.t, :controller => 'species_list', :action => 'species_lists_by_title') %>

                <% if @user.nil? %>
                  <%= :app_account.t %>:

                    <%= link_to(:app_login.t, :controller => 'account', :action => 'login') %>

                    <%= link_to(:app_create_account.t, :controller => 'account', :action => 'signup') %>
                <% else %>
                  <%= :app_current_user.t %>:

                    <%= h(@user.login) %>

                    <%= link_to(:app_comments_for_you.t, :controller => 'comment', :action => 'show_comments_for_user', :id => @user.id) %>

                    <%= link_to(:app_your_observations.t, :controller => 'observer', :action => 'show_user_observations', :id => @user.id) %>

                    <%= link_to(:app_your_summary.t, :controller => 'observer', :action => 'show_user', :id => @user.id) %>

                    <%= link_to(:app_preferences.t, :controller => 'account', :action => 'prefs') %>

                    <%= :app_join_mailing_list.t%>

                    <%= link_to(:app_logout.t, :controller => 'account', :action => 'logout_user') %>
                  <% if @user.id == 0 %>

                    <%= :app_admin.t %>:

                      <%= link_to(:app_users.t, :controller => 'observer', :action => 'users_by_name') %>

                      <%= link_to(:app_email_all_users.t, :controller => 'observer', :action => 'email_features') %>

                      <%= link_to(:app_add_to_group.t, :controller => 'account', :action => 'add_user_to_group') %>

                  <% end %>
                <% end %>

                <%= :app_languages.t %>:

                <% for locale in all_locales %>
                    <%= link_to(locale.sub('-','_').to_sym.t, h(reload_with_args(:user_locale => locale))) %>

                <% end %>

                <%= link_to(:app_contributors.t, :controller => 'observer', :action => 'users_by_contribution') %>

                <%= link_to(:app_site_stats.t, :controller => 'observer', :action => 'show_site_stats') %>

                <%= link_to(:translators_note_title.t, :controller => 'observer', :action => 'translators_note') %>

                  <%= link_to(:app_colors_from.t(:theme => css), :controller => 'observer', :action => 'color_themes') %>

                  <%= :app_powered_by.t %>:

                  Ruby on Rails

                  <%= :app_preferred_browser.t %>:

                  FireFox
                  <% if @invalid.nil? %>

                  <% end %>

            <% pattern = session[:pattern]
            form_tag(:controller => 'observer', :action => 'pattern_search') do %>
              <%= :app_find.t %>: <%= text_field("search", "pattern", :size => 30, :value => pattern)%>
              <%= submit_tag :app_observations_find.l %>
              <%= submit_tag :app_images_find.l %>
              <%= submit_tag :app_names_find.l %>
              <%= submit_tag :app_locations_find.l %>
              <%= link_to(:app_advanced_search.l, :controller => 'observer', :action => 'advanced_search') %>
              <% if @start %>
                Start: <%= Time.now.to_f - @start.to_f %>
                <% @start = nil %>
              <% end %>
            <% end %>

            <% if flash[:notice] %>
              <%= boxify(flash[:notice_level]) %>
                <%= flash[:notice] %>
              <%= end_boxify %>
              <% flash_clear %>
            <% end %>

            <% no_session = !session_working?
            no_javascript = !javascript_enabled? && session[:js_override] != :off
            no_ajax       = can_do_ajax? == false && javascript_enabled? && session[:js_override] != :on
            no_browser    = can_do_ajax? == nil   && javascript_enabled? && session[:js_override] != :on
            if no_session || no_javascript || no_ajax || no_browser
              new_tab_set do
                add_tab(:app_no_session.t,    :controller => 'observer', :action => 'no_session')    if no_session
                add_tab(:app_no_javascript.t, :controller => 'observer', :action => 'no_javascript') if no_javascript
                add_tab(:app_no_ajax.t,       :controller => 'observer', :action => 'no_ajax')       if no_ajax
                add_tab(:app_no_browser.t,    :controller => 'observer', :action => 'no_browser')    if no_browser
              end
            end
            if @tab_sets %>

                <% for set in @tab_sets %>
                  <%= set.map {|tab| render_tab(*tab)}.join(' | ') %>

                <% end %>

            <% end %>

<%= @title %>

            <%= @content_for_layout %>

            <% if Locale.code.to_s != 'en-US' %>

                <%= :app_translators_credit.tpl %>

            <% end %>

  <% if @javascripts && @javascripts.include?('cached_auto_complete') %>

      <%= image_tag('indicator.gif') %>

  <% end %>

<!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" />
  <%= auto_discovery_link_tag(:rss, {:controller => 'observer', :action  =>  'rss'}, {:title => :app_rss.l}) %>
  <title><%= :app_title.l %>: <%= if @title.nil? then controller.action_name else @title.strip_html end %></title>
  <%= "<link rel=\"SHORTCUT ICON\" href=\"#{DOMAIN}/images/favicon.ico\" />"%>

  <%= check_if_user_turned_javascript_on %>

  <%=
    css = nil
    if @user and @user.id == 0
      css = 'Admin'
    elsif is_robot?
      css = 'Agaricus'
    else
      if CSS.member?(controller.action_name)
        css = controller.action_name
      else
        unless @user.nil?
          css = @user.theme
        end
      end
      unless CSS.member?(css)
        css = CSS[rand(CSS.length)]
      end
    end
    stylesheet_link_tag 'general', css
  %>

  <%= sort_javascript_includes.map {|m| javascript_include_tag(m)} %>

  <% if @header %>
    <%= @header %>
  <% end %>

  <% if @user and @user.id == 0 %>

      DANGER: You are in administrator mode. Proceed with caution.

  <% end %>

    We have been experiencing an increased number of Proxy Errors recently.

    We are working on moving the website to a new hosting service.

    Thanks for your patience during this transition.

                <%= link_to(@page_title || :app_banner.t, :controller => 'observer', :action => 'index') %>

                <%= link_to(:app_intro.t, :controller => 'observer', :action => 'intro') %>

                <%= link_to(:app_how_to_use.t, :controller => 'observer', :action => 'how_to_use') %>

                <%= link_to(:app_how_to_help.t, :controller => 'observer', :action => 'how_to_help') %>

                <%= link_to(:app_send_a_comment.t, :controller => 'observer', :action => 'ask_webmaster_question') %>

                <%= link_to(:app_index_a_z.t, :controller => 'name', :action => 'observation_index') %>

                <%= link_to(:app_list_projects.t, :controller => 'project', :action => 'list_projects') %>

                <%= :app_latest.t %>:

                  <%= link_to(:app_latest_changes.t, :controller => 'observer', :action => 'list_rss_logs') %>

                  <%= link_to(:app_newest_images.t, :controller => 'image', :action => 'list_images') %>

                  <%= link_to(:app_comments.t, :controller => 'comment', :action => 'list_comments') %>

                  <%= link_to(:app_news.t, :controller => 'observer', :action => 'news') %>

                <%= :app_observations_left.t %>:

                  <%= link_to(:app_create_observation.t, :controller => 'observer', :action => 'create_observation') %>

                  <%= link_to(:app_sort_by_date_obs.t, :controller => 'observer', :action => 'list_observations') %>

                <%= :app_species_list.t %>:

                  <%= link_to(:app_create_list.t, :controller => 'species_list', :action => 'name_lister') %>

                  <%= link_to(:app_sort_by_date_spl.t, :controller => 'species_list', :action => 'list_species_lists') %>

                  <%= link_to(:app_sort_by_title.t, :controller => 'species_list', :action => 'species_lists_by_title') %>

                <% if @user.nil? %>
                  <%= :app_account.t %>:

                    <%= link_to(:app_login.t, :controller => 'account', :action => 'login') %>

                    <%= link_to(:app_create_account.t, :controller => 'account', :action => 'signup') %>
                <% else %>
                  <%= :app_current_user.t %>:

                    <%= h(@user.login) %>

                    <%= link_to(:app_comments_for_you.t, :controller => 'comment', :action => 'show_comments_for_user', :id => @user.id) %>

                    <%= link_to(:app_your_observations.t, :controller => 'observer', :action => 'show_user_observations', :id => @user.id) %>

                    <%= link_to(:app_your_summary.t, :controller => 'observer', :action => 'show_user', :id => @user.id) %>

                    <%= link_to(:app_preferences.t, :controller => 'account', :action => 'prefs') %>

                    <%= :app_join_mailing_list.t%>

                    <%= link_to(:app_logout.t, :controller => 'account', :action => 'logout_user') %>
                  <% if @user.id == 0 %>

                    <%= :app_admin.t %>:

                      <%= link_to(:app_users.t, :controller => 'observer', :action => 'users_by_name') %>

                      <%= link_to(:app_email_all_users.t, :controller => 'observer', :action => 'email_features') %>

                      <%= link_to(:app_add_to_group.t, :controller => 'account', :action => 'add_user_to_group') %>

                  <% end %>
                <% end %>

                <%= :app_languages.t %>:

                <% for locale in all_locales %>
                    <%= link_to(locale.sub('-','_').to_sym.t, h(reload_with_args(:user_locale => locale))) %>

                <% end %>

                <%= link_to(:app_contributors.t, :controller => 'observer', :action => 'users_by_contribution') %>

                <%= link_to(:app_site_stats.t, :controller => 'observer', :action => 'show_site_stats') %>

                <%= link_to(:translators_note_title.t, :controller => 'observer', :action => 'translators_note') %>

                  <%= link_to(:app_colors_from.t(:theme => css), :controller => 'observer', :action => 'color_themes') %>

                  <%= :app_powered_by.t %>:

                  Ruby on Rails

                  <%= :app_preferred_browser.t %>:

                  FireFox
                  <% if @invalid.nil? %>

                  <% end %>

            <% pattern = session[:pattern]
            form_tag(:controller => 'observer', :action => 'pattern_search') do %>
              <%= :app_find.t %>: <%= text_field("search", "pattern", :size => 30, :value => pattern)%>
              <%= submit_tag :app_observations_find.l %>
              <%= submit_tag :app_images_find.l %>
              <%= submit_tag :app_names_find.l %>
              <%= submit_tag :app_locations_find.l %>
              <%= link_to(:app_advanced_search.l, :controller => 'observer', :action => 'advanced_search') %>
              <% if @start %>
                Start: <%= Time.now.to_f - @start.to_f %>
                <% @start = nil %>
              <% end %>
            <% end %>

            <% if flash[:notice] %>
              <%= boxify(flash[:notice_level]) %>
                <%= flash[:notice] %>
              <%= end_boxify %>
              <% flash_clear %>
            <% end %>

            <% no_session = !session_working?
            no_javascript = !javascript_enabled? && session[:js_override] != :off
            no_ajax       = can_do_ajax? == false && javascript_enabled? && session[:js_override] != :on
            no_browser    = can_do_ajax? == nil   && javascript_enabled? && session[:js_override] != :on
            if no_session || no_javascript || no_ajax || no_browser
              new_tab_set do
                add_tab(:app_no_session.t,    :controller => 'observer', :action => 'no_session')    if no_session
                add_tab(:app_no_javascript.t, :controller => 'observer', :action => 'no_javascript') if no_javascript
                add_tab(:app_no_ajax.t,       :controller => 'observer', :action => 'no_ajax')       if no_ajax
                add_tab(:app_no_browser.t,    :controller => 'observer', :action => 'no_browser')    if no_browser
              end
            end
            if @tab_sets %>

                <% for set in @tab_sets %>
                  <%= set.map {|tab| render_tab(*tab)}.join(' | ') %>

                <% end %>

            <% end %>

<%= @title %>

            <%= @content_for_layout %>

            <% if Locale.code.to_s != 'en-US' %>

                <%= :app_translators_credit.tpl %>

            <% end %>

  <% if @javascripts && @javascripts.include?('cached_auto_complete') %>

      <%= image_tag('indicator.gif') %>

  <% end %>


removing javascript... as we have none

removing javascript... as we have none

git-svn-id: 86f0fce46016f090801773733838b5fec293694e@61 f0bc2f90-cf15-dc11-b192-0016e6374d05

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

	<title>RubyURL » <%= (title = yield :title) ? title : 'Happy URLS for Happy Developers' %></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta name="description" content="description goes here" />
	<meta name="keywords" content="keywords go here" />
	<meta http-equiv="Content-Language" content="en-us" />
	<meta name="ROBOTS" content="ALL" />
	<meta http-equiv="imagetoolbar" content="false" />
	<meta name="MSSmartTagsPreventParsing" content="true" />

	<%= stylesheet_link_tag "reset" %>
	<%= stylesheet_link_tag "master" %>

	<% if flash[:notice] %>

<%= flash[:notice] %>

	<% end %>

	<% if flash[:message] %>

<%= flash[:message] %>

	<% end %>

	<% if flash[:warning] %>

<%= flash[:warning] %>

	<% end %>

			<%= render :partial => 'shared/header' %>

			<%= yield %>

Terms of Use:

RubyURL was created as a free service to make posting long URLs easier. If you use it for spamming or illegal purposes, your RubyURL will be disabled. This service is provided without warranty of any kind.

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

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

	<title>RubyURL » <%= (title = yield :title) ? title : 'Happy URLS for Happy Developers' %></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta name="description" content="description goes here" />
	<meta name="keywords" content="keywords go here" />
	<meta http-equiv="Content-Language" content="en-us" />
	<meta name="ROBOTS" content="ALL" />
	<meta http-equiv="imagetoolbar" content="false" />
	<meta name="MSSmartTagsPreventParsing" content="true" />

	<%= stylesheet_link_tag "reset" %>
	<%= stylesheet_link_tag "master" %>

	<%= javascript_include_tag :defaults %>

	<% if flash[:notice] %>

<%= flash[:notice] %>

	<% end %>

	<% if flash[:message] %>

<%= flash[:message] %>

	<% end %>

	<% if flash[:warning] %>

<%= flash[:warning] %>

	<% end %>

			<%= render :partial => 'shared/header' %>

			<%= yield %>

Terms of Use:

RubyURL was created as a free service to make posting long URLs easier. If you use it for spamming or illegal purposes, your RubyURL will be disabled. This service is provided without warranty of any kind.

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