fixed bug with import pages span not showing up

Edit <%=@questionnaire.title%>

Pages: Click-and-drag on "drag me" to change the order, or click on a page title to change it.
<%= image_tag "spinner.gif", :id => 'spinner', :style => 'display:none' %>

	<% @questionnaire.pages.each do |@page| -%>
		<%= render :partial => 'pages/page'%>
	<% end -%>

<%= sortable_element 'questionnaire',
	:url => reorder_questionnaire_url(@questionnaire),
	:loading => "Element.show('spinner')",
	:loaded => "Element.hide('spinner')",
	:complete => visual_effect(:highlight, 'questionnaire'),
	:handle => 'drag_me'
%>
<%= link_to_remote("Add another page", :url => pages_url(@questionnaire)) %>
<%= link_to "Back to managing forms", :controller => :forms %>
Import questionnaire.

  <form method="post" enctype="multipart/form-data"
    action="<%=import_pages_url(@questionnaire)%>">

    File:
    <input type="file" size="50" name="xml" id="xml"/>
    <%= submit_tag "Import" %>

  </form>

Edit <%=@questionnaire.title%>

Pages: Click-and-drag on "drag me" to change the order, or click on a page title to change it.
<%= image_tag "spinner.gif", :id => 'spinner', :style => 'display:none' %>

	<% @questionnaire.pages.each do |@page| -%>
		<%= render :partial => 'pages/page'%>
	<% end -%>

<%= sortable_element 'questionnaire',
	:url => reorder_questionnaire_url(@questionnaire),
	:loading => "Element.show('spinner')",
	:loaded => "Element.hide('spinner')",
	:complete => visual_effect(:highlight, 'questionnaire'),
	:handle => 'drag_me'
%>
<%= link_to_remote("Add another page", :url => pages_url(@questionnaire)) %>
<%= link_to "Back to managing forms", :controller => :forms %>
Import page

  <form method="post" enctype="multipart/form-data"
    action="<%=import_pages_url(@questionnaire)%>">

    File:
    <input type="file" size="50" name="xml" id="xml"/>
    <%= submit_tag "Import" %>

  </form>


fixes #30

fixes #30

Arreglado los enlaces.Ahora como admin siempre tiran a el profile de un usuario o si no, a su account cuando eres superAdmin

git-svn-id: 268669d3058f191005ae665964cd19b71efa10c4@15856 3f47a204-8049-4147-aab0-d444c64e7564

<% @page_title = "User List" -%>

 Name
 Lastname
 <%= 'Login'.t %>
 Super

 Email

 Reset Password

<%
@odd_or_even_user = 0
for user in @users
    @odd_or_even_user = 1 - @odd_or_even_user
-%>

<td class=" first1 ListUser<%= @odd_or_even_user %>"><%= link_to name_format(user.profile.name,15,""), user_profile_path(user) if user.profile%>
<td class="ListUser<%= @odd_or_even_user %>"><%= link_to name_format(user.profile.lastname,18,""), user_profile_path(user) if user.profile%>
<td class="ListUser<%= @odd_or_even_user %>"><%= link_to name_format(user.login,18,""), user_path(user) %>
<td class="ListUser<%= @odd_or_even_user %>"><%=replace_image(user.superuser)  %>

<td class="ListUser<%= @odd_or_even_user %>"><%= mail_to(user.email,name_format(user.email,25,"")) %>

<td class="ListUser<%= @odd_or_even_user %>"><%= link_to image_tag("/images/key2.png",:border=>0), forgot_path(:email => sanitize(user.email)), :title => "Reset Password", :confirm => "This action will send an email to the user \""+ h(user.login) +"\" in order to reset his password.\n Are you sure?" %>
<%= link_to image_tag("/images/edit22.png",:border=>0), edit_space_user_path(@space,user), :title=>"Edit User" %>
<%= link_to image_tag("/images/delete22.png",:border=>0), user_path(user), :method => :delete, :confirm => "This action will delete the user \""+ h(user.login) +"\".\n Are you sure?", :title=>"Delete User" %>

<% end -%>

<% @page_title = "User List" -%>

 Name
 Lastname
 <%= 'Login'.t %>
 Super

 Email

 Reset Password

<%
@odd_or_even_user = 0
for user in @users
    @odd_or_even_user = 1 - @odd_or_even_user
-%>

<td class=" first1 ListUser<%= @odd_or_even_user %>"><%= link_to name_format(user.profile.name,15,""), edit_space_user_path(@space,user) if user.profile%>
<td class="ListUser<%= @odd_or_even_user %>"><%= link_to name_format(user.profile.lastname,18,""), edit_space_user_path(@space,user) if user.profile%>
<td class="ListUser<%= @odd_or_even_user %>"><%= link_to name_format(user.login,18,""), edit_space_user_path(@space,user) %>
<td class="ListUser<%= @odd_or_even_user %>"><%=replace_image(user.superuser)  %>

<td class="ListUser<%= @odd_or_even_user %>"><%= mail_to(user.email,name_format(user.email,25,"")) %>

<td class="ListUser<%= @odd_or_even_user %>"><%= link_to image_tag("/images/key2.png",:border=>0), forgot_path(:email => sanitize(user.email)), :title => "Reset Password", :confirm => "This action will send an email to the user \""+ h(user.login) +"\" in order to reset his password.\n Are you sure?" %>
<%= link_to image_tag("/images/edit22.png",:border=>0), edit_space_user_path(@space,user), :title=>"Edit User" %>
<%= link_to image_tag("/images/delete22.png",:border=>0), user_path(user), :method => :delete, :confirm => "This action will delete the user \""+ h(user.login) +"\".\n Are you sure?", :title=>"Delete User" %>

<% end -%>


fixed created_by bug

fixed created_by bug

<%
  # notes:
  # - we need to display different information depending on whether
  #   we have user or group participation data (upart or gpart).
  # - page.update_by.login is used so that it may be compatible with
  #   piggybacking, should we use piggybacking in the future.
  #
  page = upart = gpart = nil
  if page_line.instance_of? UserParticipation
    page = page_line.page
    upart = page_line
  elsif page_line.instance_of? GroupParticipation
    page = page_line.page
    gpart = page_line
  else
    page = page_line
  end
  color = cycle('shade-odd', 'shade-even')
%>
<% if upart %>
<tr class="<%= color %> <%= 'unread' unless upart.viewed? %>">
  <%= page_icon page %>

    <%= link_to page.title, page_url(page) %>
    <%= image_tag "emblems/pending.png", :size => "11x11", :title => 'pending' unless upart.resolved? %>
    <%= image_tag "emblems/star.png", :size => "11x11", :title => 'star' if upart.star? %>

  <%= page.updated_by ? link_to_user(page.updated_by.login) : ' ' %>
  <%= friendly_date(page.updated_at, page.created_at) || ' ' %>
  <%= friendly_date(page.happens_at) || ' ' %>
  <%= page.contributors_count %>

<% elsif gpart %>
<tr class="<%= color %>">
  <%= page_icon page %>

    <%= link_to page.title, page_url(page) %>
    <%= image_tag "emblems/pending.png", :size => "11x11", :title => 'pending' unless page.resolved? %>

  <%= page.updated_by ? link_to_user(page.updated_by.login) : ' ' %>
  <%= friendly_date(page.updated_at, page.created_at) || ' ' %>
  <%= friendly_date(page.happens_at) || ' ' %>
  <%= page.contributors_count %>

<% else %>
<tr class="<%= color %>">
  <%= page_icon page %>
  <%= link_to page.title, page_url(page) %>
  <%= page.updated_by ? link_to_user(page.updated_by.login) : ' ' %>
  <%= friendly_date(page.updated_at, page.created_at) || ' ' %>
  <%= friendly_date(page.happens_at) || ' ' %>

<% end %>

<%
  # notes:
  # - we need to display different information depending on whether
  #   we have user or group participation data (upart or gpart).
  # - page.created_by.login is used so that it may be compatible with
  #   piggybacking, should we use piggybacking in the future.
  #
  page = upart = gpart = nil
  if page_line.instance_of? UserParticipation
    page = page_line.page
    upart = page_line
  elsif page_line.instance_of? GroupParticipation
    page = page_line.page
    gpart = page_line
  else
    page = page_line
  end
  color = cycle('shade-odd', 'shade-even')
%>
<% if upart %>
<tr class="<%= color %> <%= 'unread' unless upart.viewed? %>">
  <%= page_icon page %>

    <%= link_to page.title, page_url(page) %>
    <%= image_tag "emblems/pending.png", :size => "11x11", :title => 'pending' unless upart.resolved? %>
    <%= image_tag "emblems/star.png", :size => "11x11", :title => 'star' if upart.star? %>

  <%= page.updated_by ? link_to_user(page.created_by.login) : ' ' %>
  <%= friendly_date(page.updated_at, page.created_at) || ' ' %>
  <%= friendly_date(page.happens_at) || ' ' %>
  <%= page.contributors_count %>

<% elsif gpart %>
<tr class="<%= color %>">
  <%= page_icon page %>

    <%= link_to page.title, page_url(page) %>
    <%= image_tag "emblems/pending.png", :size => "11x11", :title => 'pending' unless page.resolved? %>

  <%= page.updated_by ? link_to_user(page.updated_by.login) : ' ' %>
  <%= friendly_date(page.updated_at, page.created_at) || ' ' %>
  <%= friendly_date(page.happens_at) || ' ' %>
  <%= page.contributors_count %>

<% else %>
<tr class="<%= color %>">
  <%= page_icon page %>
  <%= link_to page.title, page_url(page) %>
  <%= page.updated_by ? link_to_user(page.created_by.login) : ' ' %>
  <%= friendly_date(page.updated_at, page.created_at) || ' ' %>
  <%= friendly_date(page.happens_at) || ' ' %>

<% end %>


added technorati script

added technorati script

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

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

	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" href="/stylesheets/base.css" type="text/css" />
	<link rel="alternate" type="application/rss+xml"  title="Recent changes (RSS 2.0)"  href="/xml/rss" />
	<link rel="alternate" type="application/atom+xml"  title="Recent changes (ATOM 0.3)"  href="/xml/atom" />
	<title><%= CONFIG['blogname'] %></title>

<%= CONFIG['blogname'] %>

  <%= @content_for_layout %>

	<form action="/articles/search" method="get">
Search
<input type="text" name="q" value="" size="15" />
</form>

  	 <%= render_partial "shared/pages"  %>

     <%= render_partial "shared/projects"  %>

     <%= render_partial "shared/tools"  %>

	   <%= tadalist "http://tobi.tadalist.com/lists/feed_public/741" %>

	   <%= render_partial "shared/xml" %>

     Valid XHTML 1.0

     Valid CSS

Copyright  Tobias Luetke

    RSS and atom available


Let's empty this thing first so it doesn't pile up

git-svn-id: 83da0ac6f29971f322a07cce10fdfd58b53908d1@435 2efe2221-f5e4-0310-9a2e-dd64ea3c545c

<%= update_element_function("enqueue", :action => :empty) %>
<%= update_element_function("enqueue",
        :content => "
ID must be 8 numbers
",
        :position => :bottom) %>


search: fixed bug that caused endlessly accumulating paths.

<%# this is a partial of search controls to be used by any search view %>
<%
  if @user
    users ||= @user.contacts
    groups ||= @user.groups
    users.unshift @user unless users.include? @user
  else
    users ||= nil; groups ||= nil
  end
  path = params[:path]
  parsed = parsed_path(path)

  # we use strings for boolean so that we can correctly set defaults
  show_extras ||= 'false'
  show_page_types ||= 'true'
  url ||= params.allow(:controller, :action, :id)
  url[:path] = nil

  group_id = parsed.int_for('group')
  if group_id
    group = Group.find_by_id(group_id)
    groups += [group] if group
  end
%>
<%# [show_extras, show_page_types, url].inspect -%>

<% form_tag(url) do -%>

<% if show_page_types == 'true' -%>
<%= select_tag 'search[type]', options_for_select_page_type(parsed.arg_for('type')) %>
<% end -%>

<% if users.any? -%>
<%= select_tag 'search[person]', "<option value=''>#{'all people'.t}</option>"+
options_from_collection_for_select(users, "id", "name", parsed.int_for('person')) %>
<% end -%>

<% if groups -%>
<%= select_tag 'search[group]', "<option value=''>#{'all groups'.t}</option>"+
options_from_collection_for_select(groups, "id", "name", parsed.int_for('group')) %>
<% end -%>

<% if show_extras == 'true' -%>
<%# select_month(parsed.int_for('month'), :prefix => 'search', :include_blank => true).sub('value=""></option>', 'value="">all months</option>') %>
<%# select_year(parsed.int_for('year'), :prefix => 'search', :include_blank => true).sub('value=""></option>', 'value="">all years</option>') %>

<%= select_tag 'search[page_state]', "<option value=''>#{'all states'.t}</option>"+
options_for_page_states(parsed) %>

<% end -%>

<%= text_field_tag 'search[text]', parsed.arg_for('text') && parsed.arg_for('text').gsub('+',' '), :size => '20' %>
<%= submit_tag 'Search'.t %>

<% end -%>

<%# this is a partial of search controls to be used by any search view %>
<%
  if @user
    users ||= @user.contacts
    groups ||= @user.groups
    users.unshift @user unless users.include? @user
  else
    users ||= nil; groups ||= nil
  end
  path = params[:path]
  parsed = parsed_path(path)

  # we use strings for boolean so that we can correctly set defaults
  show_extras ||= 'false'
  show_page_types ||= 'true'
  url ||= params.allow(:controller, :action, :id)

  group_id = parsed.int_for('group')
  if group_id
    group = Group.find_by_id(group_id)
    groups += [group] if group
  end
%>
<%# [show_extras, show_page_types, url].inspect -%>

<% form_tag(url) do -%>

<% if show_page_types == 'true' -%>
<%= select_tag 'search[type]', options_for_select_page_type(parsed.arg_for('type')) %>
<% end -%>

<% if users.any? -%>
<%= select_tag 'search[person]', "<option value=''>#{'all people'.t}</option>"+
options_from_collection_for_select(users, "id", "name", parsed.int_for('person')) %>
<% end -%>

<% if groups -%>
<%= select_tag 'search[group]', "<option value=''>#{'all groups'.t}</option>"+
options_from_collection_for_select(groups, "id", "name", parsed.int_for('group')) %>
<% end -%>

<% if show_extras == 'true' -%>
<%# select_month(parsed.int_for('month'), :prefix => 'search', :include_blank => true).sub('value=""></option>', 'value="">all months</option>') %>
<%# select_year(parsed.int_for('year'), :prefix => 'search', :include_blank => true).sub('value=""></option>', 'value="">all years</option>') %>

<%= select_tag 'search[page_state]', "<option value=''>#{'all states'.t}</option>"+
options_for_page_states(parsed) %>

<% end -%>

<%= text_field_tag 'search[text]', parsed.arg_for('text') && parsed.arg_for('text').gsub('+',' '), :size => '20' %>
<%= submit_tag 'Search'.t %>

<% end -%>


More happy formatting for Safari

More happy formatting for Safari

<% @page_title = "Results: #{@event.date.year}: #{@event.name}" %>

<%= @event.name %>

<%= @event.city_state %>

<%- if @event.respond_to?(:events) && !@event.is_a?(OregonCup) -%>
<%= @event.date_range_long_s %>
<%- else -%>
<%= @event.date.to_formatted_s(:long) %>
<%- end -%>

<%- if !@event.notes.blank? -%>

<%= @event.notes -%>

<%- end -%>

<%- if @event.respond_to?(:parent) and @event.parent -%>

  Part of the <%= link_to @event.parent.name, :id => @event.parent.to_param %>

<%- end -%>

<%- if @event.respond_to?(:events) -%>

  <%- for single_day_event in @event.events -%>
    <%- for standings in single_day_event.standings -%>

      <%= link_to standings.date.strftime('%A, %B %d'), :id => standings.event.to_param %>
      <%= link_to standings.name, :id => standings.event.to_param %>

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

<%- end -%>

<%- @event.standings.each_with_index do |standings, standings_index| -%>
    <%- if @event.standings.size > 1 -%>

<%= link_to(standings.name, :anchor => "standings_#{standings.id}") -%>

    <%- end -%>

    <%- if !standings.is_a?(CombinedStandings) -%>
      <%- if !standings.notes.blank? -%>

<%= standings.notes -%>

      <%- end -%>

	  <%# Rails 1.1.6 bug prevents us from just using date != date %>
      <%- if standings.date.strftime('%B %d, %Y') != @event.date.strftime('%B %d, %Y') -%>

<%= standings.date.strftime('%B %d, %Y') -%> <%= standings.date.class %> <%= @event.date.class %>

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

  <%# TODO Encapsulate in a helper method %>

    <%- results_in_first_column = standings.races_with_results.size / 2 -%>
    <%- standings.races_with_results.each_row_with_index do |row, row_index| -%>

      <a href="#race_<%= row.first.id %>" class="underlined"><%= row.first.name %>

      <%- if row.size == 2 -%><a href="#race_<%= row.last.id %>" class="underlined"><%= row.last.name %><%- end -%>

  <%- end -%>

<%- end -%>

<% @event.standings.each_with_index do |standings, standings_index| %>
  <%- if @event.standings.size > 1 -%>

<%= standings.name -%>

  <%- end -%>

Updated <%= standings.updated_at.to_formatted_s(:long) %>

  <% if !standings.is_a?(CombinedStandings) %>

<a href="http://<%= STATIC_HOST %>/results/questions.html" class="obvious">Results questions?

  <%- end -%>

  <% standings.races_with_results.each_with_index do |race, index| %>
  <a name="race_<%= race.id %>" id="race_<%= race.id %>" />

<%= race.name %>

  <%= results_grid(race) -%>

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

<% @page_title = "Results: #{@event.date.year}: #{@event.name}" %>

<%= @event.name %>

<%= @event.city_state %>

<%- if @event.respond_to?(:events) -%>
<%= @event.date_range_long_s %>
<%- else -%>
<%= @event.date.to_formatted_s(:long) %>
<%- end -%>

<%- if !@event.notes.blank? -%>

<%= @event.notes -%>

<%- end -%>

<%- if @event.respond_to?(:parent) and @event.parent -%>

  Part of the <%= link_to @event.parent.name, :id => @event.parent.to_param %>

<%- end -%>

<%- if @event.respond_to?(:events) -%>

  <%- for single_day_event in @event.events -%>
    <%- for standings in single_day_event.standings -%>

      <%= link_to standings.date.strftime('%A, %B %d'), :id => standings.event.to_param %>
      <%= link_to standings.name, :id => standings.event.to_param %>

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

<%- end -%>

<%- @event.standings.each_with_index do |standings, standings_index| -%>
    <%- if @event.standings.size > 1 -%>

<%= link_to(standings.name, :anchor => "standings_#{standings.id}") -%>

    <%- end -%>

    <%- if !standings.is_a?(CombinedStandings) -%>
      <%- if !standings.notes.blank? -%>

<%= standings.notes -%>

      <%- end -%>

	  <%# Rails 1.1.6 bug prevents us from just using date != date %>
      <%- if standings.date.strftime('%B %d, %Y') != @event.date.strftime('%B %d, %Y') -%>

<%= standings.date.strftime('%B %d, %Y') -%> <%= standings.date.class %> <%= @event.date.class %>

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

  <%# TODO Encapsulate in a helper method %>

    <%- results_in_first_column = standings.races_with_results.size / 2 -%>
    <%- standings.races_with_results.each_row_with_index do |row, row_index| -%>

      <a href="#race_<%= row.first.id %>" class="underlined"><%= row.first.name %>

      <%- if row.size == 2 -%><a href="#race_<%= row.last.id %>" class="underlined"><%= row.last.name %><%- end -%>

  <%- end -%>

<%- end -%>

<% @event.standings.each_with_index do |standings, standings_index| %>

<%= standings.name -%>

Updated <%= standings.updated_at.to_formatted_s(:long) %>

  <% if !standings.is_a?(CombinedStandings) %>

<a href="http://<%= STATIC_HOST %>/results/questions.html" class="obvious">Results questions?

  <%- end -%>

  <% standings.races_with_results.each_with_index do |race, index| %>
  <a name="race_<%= race.id %>" id="race_<%= race.id %>">

<%= race.name %>

  <%= results_grid(race) -%>

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


encourage people to set location

encourage people to set location

<% @this_user = User.find_by_display_name(@this_user.display_name) %>

<%= @this_user.display_name %>

<% if @user and @this_user.id == @user.id %>
<%= link_to 'my diary', :controller => 'diary_entry', :action => 'list', :display_name => @user.display_name %>
| <%= link_to 'new diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
| <%= link_to 'my traces', :controller => 'trace', :action=>'mine' %>
| <%= link_to 'my settings', :controller => 'user', :action => 'account', :display_name => @user.display_name %>
<% else %>
<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => @this_user.id %>
| <%= link_to 'diary', :controller => 'diary_entry', :action => 'list', :display_name => @this_user.display_name %>
| <%= link_to 'traces', :controller => 'trace', :action => 'view', :display_name => @this_user.display_name %>
| <% if @user and @user.is_friends_with?(@this_user) %>
  <%= link_to 'remove as friend', :controller => 'user', :action => 'remove_friend', :display_name => @this_user.display_name %>
<% else %>
  <%= link_to 'add as friend', :controller => 'user', :action => 'make_friend', :display_name => @this_user.display_name %>
<% end %>
<% end %>

User image

<% if @this_user.image %>
 <%= image_tag url_for_file_column(@this_user, "image") %>
<% end %>

<% if @user and @this_user.id == @user.id %>
  Upload an image

  <%= form_tag({:action=>'upload_image'}, :multipart => true)%>
    <%= file_column_field 'user', 'image' %>
    <input type="submit" name="Upload" />
  </form>
<% end %>

Description</h3?

<%= simple_format(@this_user.description) %>

<% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>

User location

  No home location has been set.
  <% if @user and @this_user.id == @user.id %>
  If you set your location, a pretty map and stuff will appear below. You can set your home location on your <%= link_to 'settings', :controller => 'user', :action => 'account', :display_name => @user.display_name %> page.
  <% end %>
<% else %>

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

Your friends

    <% if @this_user.friends.empty? %>
      You have not added any friends yet.
    <% else %>

      <% @this_user.friends.each do |friend| %>
      <% @friend = User.find_by_id(friend.friend_user_id) %>

      <% if @friend.image %>
        <%= image_tag url_for_file_column(@friend, "image") %>
      <% end %>

      <%= link_to @friend.display_name, :controller => 'user', :action => 'view',  :display_name => @friend.display_name %>
      <% if @friend.home_lon and @friend.home_lat %><%= @this_user.distance(@friend).round %>km away<% end %>
      (<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => @friend.id %>)

      <%end%>

    <%end%>

  <%end%>

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

Nearby users:

    <% if @this_user.nearby.empty? %>
      There are no users who admit to mapping nearby yet.
    <% else %>

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

      <% @this_user.nearby.each do |nearby| %>

      <%= link_to nearby.display_name, :controller => 'user', :action => 'view',  :display_name => nearby.display_name %>
      <%= @this_user.distance(nearby).round %>km away
      (<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => nearby.id %>)

      <% end %>

    <% end %>
  <% end %>
<% end %>

<% @this_user = User.find_by_display_name(@this_user.display_name) %>

<%= @this_user.display_name %>

<% if @user and @this_user.id == @user.id %>
<%= link_to 'my diary', :controller => 'diary_entry', :action => 'list', :display_name => @user.display_name %>
| <%= link_to 'new diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
| <%= link_to 'my traces', :controller => 'trace', :action=>'mine' %>
| <%= link_to 'my settings', :controller => 'user', :action => 'account', :display_name => @user.display_name %>
<% else %>
<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => @this_user.id %>
| <%= link_to 'diary', :controller => 'diary_entry', :action => 'list', :display_name => @this_user.display_name %>
| <%= link_to 'traces', :controller => 'trace', :action => 'view', :display_name => @this_user.display_name %>
| <% if @user and @user.is_friends_with?(@this_user) %>
  <%= link_to 'remove as friend', :controller => 'user', :action => 'remove_friend', :display_name => @this_user.display_name %>
<% else %>
  <%= link_to 'add as friend', :controller => 'user', :action => 'make_friend', :display_name => @this_user.display_name %>
<% end %>
<% end %>

User image

<% if @this_user.image %>
 <%= image_tag url_for_file_column(@this_user, "image") %>
<% end %>

<% if @user and @this_user.id == @user.id %>
  Upload an image

  <%= form_tag({:action=>'upload_image'}, :multipart => true)%>
    <%= file_column_field 'user', 'image' %>
    <input type="submit" name="Upload" />
  </form>
<% end %>

Description</h3?

<%= simple_format(@this_user.description) %>

<% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>

User location

  No home location has been set.
  <% if @user and @this_user.id == @user.id %>
  You can set your home location on your <%= link_to 'settings', :controller => 'user', :action => 'account', :display_name => @user.display_name %> page.
  <% end %>
<% else %>

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

Your friends

    <% if @this_user.friends.empty? %>
      You have not added any friends yet.
    <% else %>

      <% @this_user.friends.each do |friend| %>
      <% @friend = User.find_by_id(friend.friend_user_id) %>

      <% if @friend.image %>
        <%= image_tag url_for_file_column(@friend, "image") %>
      <% end %>

      <%= link_to @friend.display_name, :controller => 'user', :action => 'view',  :display_name => @friend.display_name %>
      <% if @friend.home_lon and @friend.home_lat %><%= @this_user.distance(@friend).round %>km away<% end %>
      (<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => @friend.id %>)

      <%end%>

    <%end%>

  <%end%>

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

Nearby users:

    <% if @this_user.nearby.empty? %>
      There are no users who admit to mapping nearby yet.
    <% else %>

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

      <% @this_user.nearby.each do |nearby| %>

      <%= link_to nearby.display_name, :controller => 'user', :action => 'view',  :display_name => nearby.display_name %>
      <%= @this_user.distance(nearby).round %>km away
      (<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => nearby.id %>)

      <% end %>

    <% end %>
  <% end %>
<% end %>


mention rubigen in twitter header

mention rubigen in twitter header

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

  <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>
      <%= title %>
  </title>

<%= title %>

      <div id="version" class="clickable" onclick='document.location = "<%= download %>"; return false'>

Get Version

        <a href="<%= download %>" class="numbers"><%= version %>

Heard on twitter ('rubigen')...

    <%= body %>

      Dr Nic Williams, <%= modified.pretty %>

      Theme extended from Paul Battley

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

  <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>
      <%= title %>
  </title>

<%= title %>

      <div id="version" class="clickable" onclick='document.location = "<%= download %>"; return false'>

Get Version

        <a href="<%= download %>" class="numbers"><%= version %>

Heard on twitter...

    <%= body %>

      Dr Nic Williams, <%= modified.pretty %>

      Theme extended from Paul Battley


Indentation only. Not sure I should bother with these code formatting fixes, I'm probably too anal

<% @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 choose to 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 always free. A public body may choose to impose
  certain charges to provide the information but they can only charge you if
  you have specifically agreed in advance to pay.

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

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

Releasing the information is in the general public interest

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

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

How quickly will I get a response? #

  By law, the public authority must keep you informed about the progress of your 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
  Administration, which at first glance implies you may not be able do
  anything with the information. This is likely to be incorrect as the latest

    Statement of IP Principles for Australian Government Agencies

  explicitly encourages reuse.

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

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

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

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

Can I request information about myself? #

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

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

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

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

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

You should contact the public authority directly if you would like to
make a request in private.  If you're interested in buying a system which helps
you manage 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 -->


Remove old comment.

Remove old comment.

        <%  if not attachments.nil? and attachments.size > 0 %>

                <% attachments.each do |a| %>

                        <%
                            attachment_url = get_attachment_url(:id => incoming_message.info_request_id,
                                    :incoming_message_id => incoming_message.id, :part => a.url_part_number,
                                    :file_name => a.display_filename)
                            attachment_as_html_url = get_attachment_as_html_url(:id => incoming_message.info_request_id,
                                    :incoming_message_id => incoming_message.id, :part => a.url_part_number,
                                    :file_name => a.display_filename)
                        %>
                        <% img_filename = "icon_" + a.content_type.sub('/', '_') + "_large.png"
                        full_filename = File.join(File.dirname(__FILE__), "../../../public/images", img_filename)
                        if File.exist?(full_filename) %>
                            <a href="<%=attachment_url%>"><img class="attachment_image" alt="Attachment" src="/images/<%=img_filename%>">
                        <% else %>
                            <a href="<%=attachment_url%>">
                        <% end %>
                        <%= h a.display_filename %>

                        <%= a.display_size %>
                        <%= link_to "Download", attachment_url %>
                        <% if a.has_body_as_html? %>
                            <%= link_to "View as HTML", attachment_as_html_url %>
                        <% end %>

                <% end %>

        <% end %>

<%= body %>


Added a tab to get at the tags currently listed

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

  <%= stylesheet_link_tag 'andreas06' %>
  <%= javascript_include_tag :defaults %>
  <%= calendar_date_select_includes "freelibrary" %>

Skip to: site menu | section menu | main content

e.f.l.

		Edmonton Free Library

Site menu:

		Welcome |

		<%= link_to 'books', books_path, :class => 'navitab' %> |
		<%= link_to 'video', videos_path, :class => 'navitab' %> |

<%= link_to 'tags', tags_path, :class => 'navitab' %> |
        find out more |

Back to top

e.f.l.

					<% if current_user %>
						<%= user_link current_user, :class => 'nav' %>

                        <%= link_to 'loans', {:controller => 'loans'}, :class=> 'nav' %>

                        <%= link_to 'edit profile', {:controller => 'account'}, :class =>'nav' %>

					<% else %>
						<%= link_to 'log in', {:controller => 'account', :action => 'login'}, :class=> 'nav' %>

						<%= link_to 'new account', {:controller => 'account', :action => 'signup'}, :class=> 'nav' %>

					<% end %>
					<%= controller_side_links %>
					<% if current_user %>
						<%= link_to 'log out', {:controller => 'account', :action => 'logout'}, :class=> 'nav' %>
					<% end %>
					Back to top

					<% if flash[:notice] %>

              Notice:

<%= flash[:notice].untaint %>

					<% elsif flash[:error] %>

              Error:

<%= flash[:error].untaint %>

					<% end %>

					<%= yield  %>

Back to top

Copy away mofos | Design by Andreas Viklund

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

  <%= stylesheet_link_tag 'andreas06' %>
  <%= javascript_include_tag :defaults %>
  <%= calendar_date_select_includes "freelibrary" %>

Skip to: site menu | section menu | main content

e.f.l.

		Edmonton Free Library

Site menu:

		Welcome |

		<%= link_to 'books', books_path, :class => 'navitab' %> |
		<%= link_to 'video', videos_path, :class => 'navitab' %> |

		find out more |

Back to top

e.f.l.

					<% if current_user %>
						<%= user_link current_user, :class => 'nav' %>

                        <%= link_to 'loans', {:controller => 'loans'}, :class=> 'nav' %>

                        <%= link_to 'edit profile', {:controller => 'account'}, :class =>'nav' %>

					<% else %>
						<%= link_to 'log in', {:controller => 'account', :action => 'login'}, :class=> 'nav' %>

						<%= link_to 'new account', {:controller => 'account', :action => 'signup'}, :class=> 'nav' %>

					<% end %>
					<%= controller_side_links %>
					<% if current_user %>
						<%= link_to 'log out', {:controller => 'account', :action => 'logout'}, :class=> 'nav' %>
					<% end %>
					Back to top

					<% if flash[:notice] %>

              Notice:

<%= flash[:notice].untaint %>

					<% elsif flash[:error] %>

              Error:

<%= flash[:error].untaint %>

					<% end %>

					<%= yield  %>

Back to top

Copy away mofos | Design by Andreas Viklund


Add another link to draft comments

Add another link to draft comments

<% @title = "Comentarios al borrador de ley de transparencia" %>

Propuesta de texto para la consulta pública

Desde Access Info Europe, la Fundación Ciudadana Civio y tuderechoasaber.es creemos que el anteproyecto de ley que ha presentado el gobierno es inaceptable ya que establece un derecho de acceso muy limitado.

Nosotros vamos a hacer llegar al gobierno nuestros comentarios a través de la consulta pública y os animamos a que hagáis lo mismo, es muy importante hacernos escuchar para intentar mejorar el texto de la futura ley de transparencia.

La consulta se divide en cuatro partes y nosotros hemos opinado sobre las referentes a las de transparencia que son tres. A continuación encontrareis el texto que hemos enviado desde nuestras organizaciones y que os proponemos para que lo utilicéis vosotros también si os parece adecuado.

Recordad que la fecha límite es el día 10 de abril.

Cualquier pregunta, no dudéis en poneros en contacto con nosotros.

Transparencia

El anteproyecto debería reconocer el derecho de acceso a la información como derecho fundamental.

El anteproyecto debería reconocer el principio de publicidad de toda la información en manos de las instituciones públicas y su publicidad solo debería ser limitada cuando pueda afectar a otros intereses legítimos establecidos por la propia ley, aunque siempre haciendo una ponderación con el interés público de la publicación.

Todas las instituciones públicas deben verse afectadas por la ley, debe incluirse la Casa Real y las funciones no administrativas de todas las instituciones públicas.

Las instituciones públicas deberían también publicar:

Calendario, agendas y actas de reuniones públicas (plenos ayuntamientos, asambleas legislativas y congreso diputados, consejo de ministros...)

Listado de información en su poder bases de datos, registro y cualquier de documento en cualquier formato).

Si los miembros de los gobiernos, órganos superiores o directivos ejercen otros cargos públicos también se especificará.

Derecho de acceso a la información

El derecho de acceso a la información que establece este anteproyecto es muy limitado ya que para empezar incluye una serie de excepciones absolutas en la definición y el resto de excepciones recogidas en el artículo 9 no están sujetas a la ponderación entre el potencial daño y el interés público de la publicación.

El anteproyecto debería:

Cambiar la definición de información debería ser simplemente: “toda la información registrada [archivada] de cualquier forma, elaborada o recibida, y en posesión de las instituciones públicas”

Añadir un artículo que incluya todas las excepciones, también la protección de datos personales, y que establezca una prueba de daño y de interés público y la posibilidad de acceso parcial cuando solo parte de la información sea susceptible de dañar el interés protegido.

Eliminar el artículo 13 ya que no debe excluirse ningún tipo de información.

Cambiar el silencio administrativo negativo, debe ser positivo.

Otras disposiciones:

Este anteproyecto debería:

Cambiar el órgano de revisión, se debe crear un organismo independiente cuyo mandato incluya conocer los recursos de denegación de información, velar por la implementación de la ley de transparencia y promocionar el derecho de acceso a la información. El nombramiento de su presidente deberá hacerlo el parlamento por mayoría.

Incluir sanciones para los funcionarios que no cumplan con sus obligaciones de publicación de obligación o que no contesten a las solicitudes de información.

Esta ley debe ser la base de la transparencia en España, cualquier regulación específica solo podrá ser más garantista, no podrá establecer mayores limitaciones al derecho de acceso a la información ni peores condiciones de ejercicio.


Use more actions

Use more actions

<% action_panel :handler => 'visitors', :more => true do |p| -%>
<% end -%>

<% more_action_panel :handler => 'visitors' do |p| -%>
  <%= p.link "Visitors", {:url => "javascript:void(0);"}, :"j-action" => 'swap', :swap => '#visitors,#google_analytics' %>
  <%= p.link "Google Analytics", {:url => "javascript:void(0);"}, :"j-action" => 'swap', :swap => '#google_analytics,#visitors' %>
<% end -%>

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

Google Analytics

<%= "Options Updated".t %>

  <% tabled_form_for :options, @options, :html => { :onsubmit => 'return VisitorViewer.saveOptions(this);' } do |f| %>
    <%= f.radio_buttons :google_analytics, [ [ 'Enabled' , 'enabled' ], [ 'Disabled', 'disabled'] ], :label => "Google Analytics", :onchange => 'VisitorViewer.googleRadios()' %>
    <%= f.text_field :analytics_code, :disabled => @options.google_analytics == 'enabled' ? false : true %>
    <%= f.spacer %>
    <%= f.submit_tag 'Update', :id => 'submit_options' %>
  <% end -%>

  <div id='analytics_disabled' <%= "style='display:none;'" if @options.google_analytics == 'enabled'%>>
  <%= "Google Analytics is a free service that tracks visitors to your website and allows you to analyze your traffic.".t %>
  <%= "You must first".t %> <a target='_blank' href='<%= "http://www.google.com/analytics/".t %>'><%= "Register for Google Analytics".t %>.
  <%="Once you are registered, please click enabled and enter your analytics code from the code block as highlighted below. ".t %>

    <%= h('

      ') %>

<div id='analytics_enabled' <%= "style='display:none;'" unless @options.google_analytics == 'enabled'%>>
  <%= "Goto".t %><%= "Your Google Analytics Account".t %>

<% ajax_tabs [ 'Site Visitors', 'Google Analytics' ], 'Site Visitors' do |t| -%>

<% t.tab do %>

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

<% end -%>

<% t.tab do %>

<%= "Options Updated".t %>

  <% tabled_form_for :options, @options, :html => { :onsubmit => 'return VisitorViewer.saveOptions(this);' } do |f| %>
    <%= f.radio_buttons :google_analytics, [ [ 'Enabled' , 'enabled' ], [ 'Disabled', 'disabled'] ], :label => "Google Analytics", :onchange => 'VisitorViewer.googleRadios()' %>
    <%= f.text_field :analytics_code, :disabled => @options.google_analytics == 'enabled' ? false : true %>
    <%= f.submit_tag 'Update', :id => 'submit_options' %>
  <% end -%>

  <div id='analytics_disabled' <%= "style='display:none;'" if @options.google_analytics == 'enabled'%>>
  <%= "Google Analytics is a free service that tracks visitors to your website and allows you to analyze your traffic.".t %>
  <%= "You must first".t %> <a target='_blank' href='<%= "http://www.google.com/analytics/".t %>'><%= "Register for Google Analytics".t %>.
  <%="Once you are registered, please click enabled and enter your analytics code from the code block as highlighted below. ".t %>

    <%= h('

      ') %>

<div id='analytics_enabled' <%= "style='display:none;'" unless @options.google_analytics == 'enabled'%>>
  <%= "Goto".t %><%= "Your Google Analytics Account".t %>

<% end -%>

<% end -%>


support multi-word plugins [heavysixer]

support multi-word plugins [heavysixer]

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

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

    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title><%= site.title %>: Admin <%= controller.controller_name %></title>
    <%= stylesheet_link_tag 'mephisto/mephisto' %>
    <%= javascript_include_tag 'mephisto/prototype', 'mephisto/effects', 'mephisto/dragdrop', 'mephisto/lowpro', 'mephisto/application' %>

    <%= yield :head %>

<%= link_to 'Website', dispatch_path([]) %>

      <% if admin? -%>

<%= link_to 'Settings', :controller => 'settings' %>

      <% end -%>

<%= link_to 'Account', :controller => 'users', :action => 'show', :id => current_user %>

<%= link_to 'Logout', :controller => '/account', :action => 'logout' %>

<%= link_to "#{site.title} — Admin", { :controller => '/admin/overview' }, :title => "#{site.title} admin" %>

        <% if logged_in? -%>

<%= link_to 'Overview',  :controller => '/admin/overview' %>

<%= link_to 'Articles',  :controller => '/admin/articles' %>

<%= link_to 'Assets',    :controller => '/admin/assets' %>

          <% Mephisto::Plugin.tabs.each do |tab| -%>

<%= link_to tab.first, tab.last %>

          <% end -%>

          <% if admin? -%>

<%= link_to 'Sections', :controller => '/admin/sections' %>

<%= link_to 'Design',   :controller => '/admin/design' %>

<%= link_to "Users",    :controller => "users" %>

<%= link_to 'Plugins',  :controller => '/admin/plugins' %>

          <% Mephisto::Plugin.admin_tabs.each do |tab| -%>

<%= link_to tab.first.to_s.tableize.humanize, tab.last %>

          <% end -%>

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

      <%= yield :form if @content_for_form %>

<%= flash[:error] %>

<%= flash[:notice] %>

          <%= yield :action_nav %>

<%= yield %>

          <%= yield :sidebar %>

      <%= '</form>' if @content_for_form %>

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

    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <title><%= site.title %>: Admin <%= controller.controller_name %></title>
    <%= stylesheet_link_tag 'mephisto/mephisto' %>
    <%= javascript_include_tag 'mephisto/prototype', 'mephisto/effects', 'mephisto/dragdrop', 'mephisto/lowpro', 'mephisto/application' %>

    <%= yield :head %>

<%= link_to 'Website', dispatch_path([]) %>

      <% if admin? -%>

<%= link_to 'Settings', :controller => 'settings' %>

      <% end -%>

<%= link_to 'Account', :controller => 'users', :action => 'show', :id => current_user %>

<%= link_to 'Logout', :controller => '/account', :action => 'logout' %>

<%= link_to "#{site.title} — Admin", { :controller => '/admin/overview' }, :title => "#{site.title} admin" %>

        <% if logged_in? -%>

<%= link_to 'Overview',  :controller => '/admin/overview' %>

<%= link_to 'Articles',  :controller => '/admin/articles' %>

<%= link_to 'Assets',    :controller => '/admin/assets' %>

          <% Mephisto::Plugin.tabs.each do |tab| -%>

<%= link_to tab.first, tab.last %>

          <% end -%>

          <% if admin? -%>

<%= link_to 'Sections', :controller => '/admin/sections' %>

<%= link_to 'Design',   :controller => '/admin/design' %>

<%= link_to "Users",    :controller => "users" %>

<%= link_to 'Plugins',  :controller => '/admin/plugins' %>

          <% Mephisto::Plugin.admin_tabs.each do |tab| -%>

<%= link_to tab.first, tab.last %>

          <% end -%>

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

      <%= yield :form if @content_for_form %>

<%= flash[:error] %>

<%= flash[:notice] %>

          <%= yield :action_nav %>

<%= yield %>

          <%= yield :sidebar %>

      <%= '</form>' if @content_for_form %>


Updated new.rhtml

Updated new.rhtml

<%= link_to "#{@model.to_s.pluralize}", :action => "index", :model => params[:model], :id => nil %> › New
<%= link_to image_tag("typus/back.gif", :title => "#{@model}"), :action => "index", :model => params[:model] %>

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

<%= submit_tag "Create #{@model}" %>

<% end %>


need to check for nil, was crashing any search with multiple results

<% if !@viewers.nil? %>

Click on a person's name to see more information about what projects this person is associated with.

  <% if @viewers.length > 0 %>

<%= sortable_table %>

          <%= th 'person record' %>
          <%= th 'name' %>
          <%= th 'viewer id', :type => 'int' %>
          <%= th 'username' %>
          <%= th 'email' %>
          <%= th 'campus' %>

        <% for viewer in @viewers %>
          <tr id="row_<%=viewer.id%>" class="search_result" >
            <% if viewer.person %>
              yes
            <% else %>
              no
            <% end %>

                <% view_result_params = { :url => {:action => 'get_viewer_specifics', :id => viewer.id},
                                  :update => 'viewer_specifics',
                                  :before => "Element.show('finding_viewer_specifics_#{viewer.id}');",
                                  :complete => "Element.hide('finding_viewer_specifics_#{viewer.id}');" } %>
                <%= link_to_remote viewer.name, view_result_params %>
                <% @init_js = view_result_params if @viewers.length == 1 %>

            <%=h viewer.id %>
            <%=h viewer.viewer_userID %>
            <%=h viewer.person.person_email if viewer.person %>
            <%=h viewer.person.campus_shortDesc %>

              <span id="finding_viewer_specifics_<%= viewer.id %>" style="clear:both; display:none;">
                <%=image_tag('spinner.gif')%>

        <% end %>

  <% else %>

No results found.

  <% end %>
<% end %>


WDTK-40: Add sentence explaining the scope of the current authorities

<%=_('Show only...')%>

<%=_('Beginning with') %>

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

    <% first_row = true %>
    <% for row in PublicBodyCategories::get().with_headings() %>
        <% if row.instance_of?(Array) %>

            <%= link_to_unless (@tag == row[0]), row[1], list_public_bodies_url(:tag => row[0]) %>

        <% else %>
            <% if not first_row %>

            <% else %>
                <% first_row = false %>
            <% end %>

<%=h row%>

        <% end %>
    <% end %>
    <% if not first_row %>

    <% end %>

        We aim to cover all Australian Federal public authorities with State and local authorities coming soon.

	<%= _('Are we missing a public authority?') % [help_requesting_path + '#missing_body'] %>

      <%= link_to _('List of all authorities (CSV)'), all_public_bodies_csv_url() %>

<% @title = @description.empty? ? _("Public authorities") : _("Public authorities - {{description}}", :description => @description) %>

<%= _('Public authorities') %>

<% form_tag(list_public_bodies_default_url, :method => "get", :id=>"search_form") do %>

  <%= text_field_tag(:public_body_query, params[:public_body_query]) %>
  <%= submit_tag(_("Search")) %>

<% end %>

<%= _('Found {{count}} public bodies {{description}}', :count=>@public_bodies.total_entries, :description=>@description) %>

<%= render :partial => 'body_listing', :locals => { :public_bodies => @public_bodies } %>

  <%= will_paginate(@public_bodies) %>

  <%= _('Can\'t find the one you want?') % [help_requesting_path + '#missing_body'] %>

<%=_('Show only...')%>

<%=_('Beginning with') %>

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

    <% first_row = true %>
    <% for row in PublicBodyCategories::get().with_headings() %>
        <% if row.instance_of?(Array) %>

            <%= link_to_unless (@tag == row[0]), row[1], list_public_bodies_url(:tag => row[0]) %>

        <% else %>
            <% if not first_row %>

            <% else %>
                <% first_row = false %>
            <% end %>

<%=h row%>

        <% end %>
    <% end %>
    <% if not first_row %>

    <% end %>

	<%= _('Are we missing a public authority?') % [help_requesting_path + '#missing_body'] %>

      <%= link_to _('List of all authorities (CSV)'), all_public_bodies_csv_url() %>

<% @title = @description.empty? ? _("Public authorities") : _("Public authorities - {{description}}", :description => @description) %>

<%= _('Public authorities') %>

<% form_tag(list_public_bodies_default_url, :method => "get", :id=>"search_form") do %>

  <%= text_field_tag(:public_body_query, params[:public_body_query]) %>
  <%= submit_tag(_("Search")) %>

<% end %>

<%= _('Found {{count}} public bodies {{description}}', :count=>@public_bodies.total_entries, :description=>@description) %>

<%= render :partial => 'body_listing', :locals => { :public_bodies => @public_bodies } %>

  <%= will_paginate(@public_bodies) %>

  <%= _('Can\'t find the one you want?') % [help_requesting_path + '#missing_body'] %>


ActionItem280: removed annoying fading box

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

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>
      <%= @environment.name() %>
      <%- if @category -%>
        → <%= @category.full_name -%>
      <%- end -%>
    </title>
    <meta name="description" content="FIXME: Descriptions of Noosfero" />
    <meta name="keywords" content="Noosfero, Community, Open Source" />
    <%#
     stylesheet_import is better then stylesheet_link_tag because the stylesheet
     must be loaded before the page show.
    %>
    <%=
      # Load the principal css files:
      stylesheet_import( %w( common help menu article button search blocks forms login-box )
                         ) + "\n" +
      stylesheet_import( %w( common help menu article button search blocks forms login-box ),
                         :themed_source => true ) + "\n" +
      # Load the boxes's css file if each exists:
      import_blocks_stylesheets +
      # Load the controller's css file if it exists:
      stylesheet_import( "controller_"+ @controller.controller_name() ) + "\n" +
      stylesheet_import( "controller_"+ @controller.controller_name(), :themed_source => true )
    %>

    <%# FIXME: for unknow reason the @import url(.../article.css) above dont work for class .post_comment_box.opened/closed %>
    <%= stylesheet_link_tag 'article' %>

    <%# FIXME %>
    <%= stylesheet_link_tag '/designs/templates/default/stylesheets/style.css' %>
    <%= stylesheet_link_tag '/designs/icons/default/style.css' %>

    <%= javascript_include_tag(:defaults) %>
    <%# javascript_include_tag 'animator' %>
    <%= javascript_include_tag 'menu' %>
    <%= javascript_include_tag 'auto-open-menu' %>
    <%= include_lightbox_header %>
    <%# cms stuff %>
    <% if @controller.controller_name == 'cms' %>
      <%= javascript_include_tag 'cms' %>
    <% end %>

  <body class='noosfero category<%= category_color %><%=
    # Identify the current controller and action for the CSS:
    " controller_"+ @controller.controller_name() +
    " action_"+ @controller.controller_name() +"_"+ @controller.action_name()
    %>' onload='noosfero_init();'
    help=<%= _('Pass the mouse over page elements to get help on them. Click the question mark icon on the top-right corner to deactivate this help window.').inspect %> >

    <% unless flash[:notice].nil? %>

        <%= flash[:notice] %>
        <%= javascript_tag(
          visual_effect( :appear,    'notice', :duration => 2, :queue => :end ) +
          visual_effect( :highlight, 'notice', :duration => 3, :queue => :end ) +
          visual_effect( :fade,      'notice', :duration => 2, :queue => :end )
        ) %>

    <% end %>

      <%= _('Go to content') %>

BETA

        <%= _("This is %s's shortcuts bar. Using it you have access to the main features of the environment and you find the information of your interest more quickly.") % @environment.name %>

        <%= _("This bar helps you find information following two paths or dimensions. First dimension is composed of categories, which you'll find in the colored tabs in the top. Second dimension has content types, and you'll find them in the animated bar on your right.") % @environment.name %>

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

          <%= render :file => 'shared/user_menu' %>
          <%=
          lightbox_link_to ''+ _('Search'),
          { :controller => 'search', :action => 'popup', :category_path => (@category ? @category.explode_path : []) }, :id => 'open_search'
          %>

        <a href="#" id="btShowHelp" class="icon-help32on"
           title="<%= _('Turn help on/off') %>"
           onclick="mouseHelpOnOff(); return false"><%= _('Help') %>

          <% if @controller.send(:boxes_editor?) %>
            <%= yield %>
            <%= display_boxes_editor(@controller.boxes_holder) %>
          <% else %>
            <% if uses_design_blocks?  %>
              <%= display_boxes(@controller.boxes_holder, yield) %>
            <% else %>
              <%= yield %>
            <% end %>
          <% end %>

      Um projeto do FBES

      Fórum Brasileiro de Economia Solidária

      <%= language_chooser %>

      <%= footer %>

      Desenvolvimento Colivre

      Cooperativa de Tecnologias Livres

    <%= javascript_include_tag 'show-mouse-help' %>
    <%= javascript_include_tag 'noosfero-show-help' %>

<%=
      _('Your web browser is obsolete!') +'

'+
      _('This website will not look as good as it could.
         Don\'t you want to use Firefox? That is a great web browser, free,
         and made by people of all the world parts.')
      %>

      <%= _('Get Firefox Now!') %>

    <%= javascript_include_tag 'better-browser-promotion' %>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>
      <%= @environment.name() %>
      <%- if @category -%>
        → <%= @category.full_name -%>
      <%- end -%>
    </title>
    <meta name="description" content="FIXME: Descriptions of Noosfero" />
    <meta name="keywords" content="Noosfero, Community, Open Source" />
    <%#
     stylesheet_import is better then stylesheet_link_tag because the stylesheet
     must be loaded before the page show.
    %>
    <%=
      # Load the principal css files:
      stylesheet_import( %w( common help menu article button search blocks forms login-box )
                         ) + "\n" +
      stylesheet_import( %w( common help menu article button search blocks forms login-box ),
                         :themed_source => true ) + "\n" +
      # Load the boxes's css file if each exists:
      import_blocks_stylesheets +
      # Load the controller's css file if it exists:
      stylesheet_import( "controller_"+ @controller.controller_name() ) + "\n" +
      stylesheet_import( "controller_"+ @controller.controller_name(), :themed_source => true )
    %>

    <%# FIXME: for unknow reason the @import url(.../article.css) above dont work for class .post_comment_box.opened/closed %>
    <%= stylesheet_link_tag 'article' %>

    <%# FIXME %>
    <%= stylesheet_link_tag '/designs/templates/default/stylesheets/style.css' %>
    <%= stylesheet_link_tag '/designs/icons/default/style.css' %>

    <%= javascript_include_tag(:defaults) %>
    <%# javascript_include_tag 'animator' %>
    <%= javascript_include_tag 'menu' %>
    <%= javascript_include_tag 'auto-open-menu' %>
    <%= include_lightbox_header %>
    <%# cms stuff %>
    <% if @controller.controller_name == 'cms' %>
      <%= javascript_include_tag 'cms' %>
    <% end %>

  <body class='noosfero category<%= category_color %><%=
    # Identify the current controller and action for the CSS:
    " controller_"+ @controller.controller_name() +
    " action_"+ @controller.controller_name() +"_"+ @controller.action_name()
    %>' onload='noosfero_init();'
    help=<%= _('Pass the mouse over page elements to get help on them. Click the question mark icon on the top-right corner to deactivate this help window.').inspect %> >

    <% unless flash[:notice].nil? %>

        <%= flash[:notice] %>
        <%= javascript_tag(
          visual_effect( :appear,    'notice', :duration => 2, :queue => :end ) +
          visual_effect( :highlight, 'notice', :duration => 3, :queue => :end ) +
          visual_effect( :fade,      'notice', :duration => 2, :queue => :end )
        ) %>

    <% end %>

      <%= _('Go to content') %>

      <% if @category -%>
        <%= @category.full_name(" → ") %>
      <% end -%>
      <%= javascript_tag(visual_effect(:fade, "path_category", :duration => 10)) %>

BETA

        <%= _("This is %s's shortcuts bar. Using it you have access to the main features of the environment and you find the information of your interest more quickly.") % @environment.name %>

        <%= _("This bar helps you find information following two paths or dimensions. First dimension is composed of categories, which you'll find in the colored tabs in the top. Second dimension has content types, and you'll find them in the animated bar on your right.") % @environment.name %>

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

          <%= render :file => 'shared/user_menu' %>
          <%=
          lightbox_link_to ''+ _('Search'),
          { :controller => 'search', :action => 'popup', :category_path => (@category ? @category.explode_path : []) }, :id => 'open_search'
          %>

        <a href="#" id="btShowHelp" class="icon-help32on"
           title="<%= _('Turn help on/off') %>"
           onclick="mouseHelpOnOff(); return false"><%= _('Help') %>

          <% if @controller.send(:boxes_editor?) %>
            <%= yield %>
            <%= display_boxes_editor(@controller.boxes_holder) %>
          <% else %>
            <% if uses_design_blocks?  %>
              <%= display_boxes(@controller.boxes_holder, yield) %>
            <% else %>
              <%= yield %>
            <% end %>
          <% end %>

      Um projeto do FBES

      Fórum Brasileiro de Economia Solidária

      <%= language_chooser %>

      <%= footer %>

      Desenvolvimento Colivre

      Cooperativa de Tecnologias Livres

    <%= javascript_include_tag 'show-mouse-help' %>
    <%= javascript_include_tag 'noosfero-show-help' %>

<%=
      _('Your web browser is obsolete!') +'

'+
      _('This website will not look as good as it could.
         Don\'t you want to use Firefox? That is a great web browser, free,
         and made by people of all the world parts.')
      %>

      <%= _('Get Firefox Now!') %>

    <%= javascript_include_tag 'better-browser-promotion' %>


warn if user tries to upload 8bn traces at once

<%= h(@title) %>

<a href="<%= url_for :action => 'georss', :display_name => @display_name, :tag => @tag %>">
<% if @user.nil? or @display_name.nil? or @user.display_name != @display_name %>
 | <%= link_to 'See just your traces, or upload a trace', :action => 'mine' %>
<% end %>
<% if @tag or @display_name %>
 | <%= link_to 'See all traces', :controller => 'trace', :action => 'list' %>
<% end %>
<% if @tag and @user and @user.display_name == @display_name %>
 | <%= link_to 'See all your traces', :controller => 'trace', :action => 'mine' %>
<% end %>
<% if @display_name %>
<% if @user.traces.count(:conditions => "inserted=0")>4 %>

You have <%= @user.traces.count(:conditions => "inserted=0") %> traces
waiting for upload. Please consider waiting for these to finish before
uploading any more, so as not to block the queue for other users.
<% end %>
<% end %>


Some rewording on the thank you page

Some rewording on the thank you page

<% if not @resp.submitted -%>

Session saved

You have saved your response in progress to this survey.  When you come back to Journey and log in, you'll be
	  able to pick it up where you left off.

<% else -%>

Thank you!

You have successfully submitted your answers to the <%=h @resp.questionnaire.title %> survey.

<% end -%>

    <%= link_to "Go back to the front page of this survey »", :action => 'prompt', :id => @resp.questionnaire.id %>

    <%= link_to "Go to the main page of Journey »", url_for("/") %>

<% if not @resp.submitted -%>

Session saved

You have saved your response in progress to this questionnaire.  When you come back to this site and log in, you'll be
	  able to pick it up where you left off.

<% else -%>

Thank you!

You have successfully submitted your answers to the <%= @resp.questionnaire.title %> questionnaire.  To leave this application, simply close your web browser window.

<% end -%>

    <%= link_to "To go back to the front page of this questionnaire, click here.", :action => 'prompt', :id => @resp.questionnaire.id %>

    <%= link_to "To return to the main page of Journey, click here.", questionnaires_path %>


Limiting the text form to match the database limit on medical treatment titles

<%= error_messages_for 'medical_treatment' %>

Bat
<%= @medical_problem.bat.band %>

Medical Problem
<%= @medical_problem.title %>

Description
<%= @medical_problem.description %>

Date started

<%= date_select 'medical_treatment', 'date_opened'  %>

Treatment (include medications, dosages, suggested end date, etc.)

<%= text_field_with_auto_complete :medical_treatment, :title, {:size => 45, :maxlength => 45},
  {:skip_style => true, :url => url_for(:controller => :medical_treatments, :action => :auto_complete_treatments, :escape => false),
  :method => :get, :param_name => 'search'} %>

<%= error_messages_for 'medical_treatment' %>

Bat
<%= @medical_problem.bat.band %>

Medical Problem
<%= @medical_problem.title %>

Description
<%= @medical_problem.description %>

Date started

<%= date_select 'medical_treatment', 'date_opened'  %>

Treatment (include medications, dosages, suggested end date, etc.)

<%= text_field_with_auto_complete :medical_treatment, :title, {:size => 50},
  {:skip_style => true, :url => url_for(:controller => :medical_treatments, :action => :auto_complete_treatments, :escape => false),
  :method => :get, :param_name => 'search'} %>


Include a link back to the overview.

Include a link back to the overview.

<%= l(:label_revision) %> <%= format_revision(@rev_to) + ':' if @rev_to %><%= format_revision(@rev) %> <%=h @path %>

<% link_to(text, {:controller => 'repositories', :action => 'revision', :id => project, :rev => @rev}, :caption => "Return to overview" if params[:rev] %>
<% link_to(text, {:controller => 'repositories', :action => 'revision', :id => project, :rev => @rev_to}, :caption => "Return to overview" if params[:rev_to] %>

<% form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
  <%= hidden_field_tag('rev', params[:rev]) if params[:rev] %>
  <%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>

<%= l(:label_view_diff) %>
  <%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type), :onchange => "if (this.value != '') {this.form.submit()}" %>

<% end %>

<% cache(@cache_key) do -%>
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
<% end -%>

<% other_formats_links do |f| %>
	<%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %>
<% end %>

<% html_title(with_leading_slash(@path), 'Diff') -%>

<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>

<%= l(:label_revision) %> <%= format_revision(@rev_to) + ':' if @rev_to %><%= format_revision(@rev) %> <%=h @path %>

<% form_tag({:path => to_path_param(@path)}, :method => 'get') do %>
  <%= hidden_field_tag('rev', params[:rev]) if params[:rev] %>
  <%= hidden_field_tag('rev_to', params[:rev_to]) if params[:rev_to] %>

<%= l(:label_view_diff) %>
  <%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type), :onchange => "if (this.value != '') {this.form.submit()}" %>

<% end %>

<% cache(@cache_key) do -%>
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
<% end -%>

<% other_formats_links do |f| %>
	<%= f.link_to 'Diff', :url => params, :caption => 'Unified diff' %>
<% end %>

<% html_title(with_leading_slash(@path), 'Diff') -%>

<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>
<% end %>


ActionItem93: cosmetic changes; marking translation

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

<%= _("%d products in this category") % @products.size.to_s %>

<%= _("%d enterprises sells products in this category") % @enterprises.size.to_s %>

  <% @products.each do |p| %>

    <%= image_tag p.image.public_filename(:thumb) if p.image%> <%= link_to_product(p) %>

    <% if p.price %>
      <%= _('Price: %d') % p.price %>

    <% end %>
    <%= _('Enterprise:') %> <%= link_to_homepage p.enterprise.name, p.enterprise.identifier %>

  <% end %>

<%= @products.size.to_s + " products in this category" %>
<%= @enterprises.size.to_s + " enterprises sells products in this category" %>

  <% @products.each do |p| %>

    <%= image_tag p.image.public_filename(:thumb) if p.image%> <%= link_to_product(p) %>

      <% _('Price:') %> <% p.price %> <%= _('Enterprise:') %> <%= link_to_homepage p.enterprise.name, p.enterprise.identifier %>

  <% end %>


switch year

switch year

---
title: Reading your tax bill
created_at: 2013-01-03
kind: article
tags: ['scarsdale']
---

<link rel="stylesheet" href="<%= item.identifier %>style.css">

        Scarsdale's tax bills
        aren't
        the most straightforward of documents. They've been this bad for
        years, and I don't expect any change soon, so here's a guide for
        reading them.

        Your house is assessed to determine its Assessed Total Value, then
        excemptions are subtracted to it to produce the Assessed Taxable Value.
        This times the tax rate (in permil) produces your Tax Amount.

        If you add up the county, village and school tax rates, it comes to about
        $1,000, so your tax payments are about equal to the assessed value of your
        house. There are also the sewer and solid waste taxes, but those are much
        smaller.

        Enter the assessed taxable value of your house to find out what you pay in
        taxes and how you compare to everyone else. You can find your house's
        assessed total and taxable values here.

Make this window wider (to 1008 pixels)
to see the table.

                Levy Description
                Total Tax Levy
                % Change from Prior Year
                Assessed Total Value
                Assessed Taxable Value
                Tax Rate
                Tax Amount

                2012 COUNTY TAX
                27,078,607
                3.17

                194.908400

                2012-2013 VILLAGE TX
                33,093,095
                3.72

                238.420000

                2012-2013 School Tax
                127,045,773
                2.89

                868.927000

                Total:

---
title: Reading your tax bill
created_at: 2012-01-03
kind: article
tags: ['scarsdale']
---

<link rel="stylesheet" href="<%= item.identifier %>style.css">

        Scarsdale's tax bills
        aren't
        the most straightforward of documents. They've been this bad for
        years, and I don't expect any change soon, so here's a guide for
        reading them.

        Your house is assessed to determine its Assessed Total Value, then
        excemptions are subtracted to it to produce the Assessed Taxable Value.
        This times the tax rate (in permil) produces your Tax Amount.

        If you add up the county, village and school tax rates, it comes to about
        $1,000, so your tax payments are about equal to the assessed value of your
        house. There are also the sewer and solid waste taxes, but those are much
        smaller.

        Enter the assessed taxable value of your house to find out what you pay in
        taxes and how you compare to everyone else. You can find your house's
        assessed total and taxable values here.

Make this window wider (to 1008 pixels)
to see the table.

                Levy Description
                Total Tax Levy
                % Change from Prior Year
                Assessed Total Value
                Assessed Taxable Value
                Tax Rate
                Tax Amount

                2012 COUNTY TAX
                27,078,607
                3.17

                194.908400

                2012-2013 VILLAGE TX
                33,093,095
                3.72

                238.420000

                2012-2013 School Tax
                127,045,773
                2.89

                868.927000

                Total:


#community dashboard - updating theme

#community dashboard - updating theme

<% extend CommunityHubPlugin::HubHelper %>

<div id="<%=@page.id%>" class="hub">

<%= @page.title %> HUB

<%= @page.body %>

      <%= @page.title %><%= _("Live") %>

      <%= _("Mediation") %>

    <%= check_box_tag 'auto_scrolling', 'yes', true %><%= _("Auto scrolling") %>

    <% if logged_in? %>

        <% form_for :message,
                    :method => 'post',
                    :url => {
                      :controller => 'community_hub_plugin_public',
                      :action => 'new_message',
                      :article_id => @page.id
                    } do |f| %>
          <%= _("Streaming") %>

          <%= f.text_area :body, :style => "width: 99%;", :cols => "38", :rows => "5", :placeholder => _("Type your message here") %>
          <%= submit_button('add', _('Post'), :onclick => 'new_message(this); return false;') %>
        <% end %>

    <% end %>

      <%= @page.title %><%= _("Live") %>

      <%= _("Mediation") %>

    <% if logged_in? && mediator?(@page) %>

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

      <% form_for :article,
                  :method => 'post',
                  :url => {
                    :controller => 'community_hub_plugin_public',
                    :action => 'new_mediation',
                    :profile_id => profile.id
                  } do |f| %>
        <%= f.hidden_field :parent_id, :value => @page.id %>
        <%= f.text_area :body, :style => "width: 100%;", :class => "mceEditor" %>
        <%= submit_button('add', _('Post'), :onclick => 'new_mediation(this); return false;') %>
      <% end %>

    <%= render :partial => "community_hub_plugin_public/settings" %>

    <% end %>

<%= javascript_include_tag '/plugins/community_hub/javascripts/community_hub.js' %>

<% extend CommunityHubPlugin::HubHelper %>

<div id="<%=@page.id%>" class="hub">

<%= @page.title %> HUB

<%= @page.body %>

      <%= @page.title %><%= _("Live") %>

      <%= _("Mediation") %>

    <%= check_box_tag 'auto_scrolling', 'yes', true %><%= _("Auto scrolling") %>

    <% if logged_in? %>

        <% form_for :message,
                    :method => 'post',
                    :url => {
                      :controller => 'community_hub_plugin_public',
                      :action => 'new_message',
                      :article_id => @page.id
                    } do |f| %>
          <%= _("Streaming") %>

          <%= f.text_area :body, :style => "width: 99%;", :cols => "38", :rows => "5", :placeholder => _("Type your message here") %>
          <%= submit_button('add', _('Post'), :onclick => 'new_message(this); return false;') %>
        <% end %>

    <% end %>

      <%= @page.title %><%= _("Live") %>

      <%= _("Mediation") %>

    <% if logged_in? && mediator?(@page) %>

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

      <% form_for :article,
                  :method => 'post',
                  :url => {
                    :controller => 'community_hub_plugin_public',
                    :action => 'new_mediation',
                    :profile_id => profile.id
                  } do |f| %>
        <%= f.hidden_field :parent_id, :value => @page.id %>
        <%= f.text_area :body, :style => "width: 100%;", :class => "mceEditor" %>
        <%= submit_button('add', _('Post'), :onclick => 'new_mediation(this); return false;') %>
      <% end %>

    <% end %>

    <%= render :partial => "community_hub_plugin_public/settings" %>

<%= javascript_include_tag '/plugins/community_hub/javascripts/community_hub.js' %>


minor change

minor change

Assignment: <%= @assignment.title %>

Course: <%= @course.title %>

Feedback for <%= @user.display_name %>

<%= link_to 'Back to my turn-ins', :controller => 'turnins', :course => @course, :assignment => @assignment %> | <%= link_to 'Back to assignment', :controller => 'assignments', :course => @course, :id => @assignment, :action => 'view', :assignment => nil %>

<% if @grade_item %>
  <% unless @grade_entry.nil? %>

No grade has been submitted.

  <% else %>

Your grade: <%= sprintf("%.1f",@grade_entry.points) %> out of <%= sprintf("%.1f",@grade_item.points) %> possible points

Instructor Comments:

        <%= @feedback_html %>

  <% end %>
<% end %>

<% if @current_turnin %>

 Jump to file

 <% for utf in @current_turnin.user_turnin_files %>
  <% unless utf.directory_entry? %>

<a href="#file_<%=utf.id%>"> <%= image_tag utf.icon %> <%= utf.full_filename( @directories ) %>

  <% end %>
 <% end %>

  <% for utf in @current_turnin.user_turnin_files %>

    <%= image_tag utf.icon %>
    <% if utf.directory_entry? %>Directory:
    <% else %>File:
    <% end %><a name="file_<%=utf.id%>"><%= utf.full_filename( @directories ) %>
        <%= image_tag 'arrow_up' %>

	<% if utf.directory_entry? %>

Directory entry

	<% else %>
	  <% directory = @current_turnin.get_dir( @app['external_dir'] )
	     lines = FileManager.format_file( @app['enscript_command'], "#{directory}#{utf.full_filename( @directories )}", utf.extension )
	     comment_hash = utf.file_comments_hash
	   %>

	   <% line_num = 0 %>

	     <% for line in lines %>
	       <% line_num = line_num.next %>
	       <% numbers = line_num.to_s
	          numbers.size.upto(8) { |x| numbers = " #{numbers}" } %>
	       <%= numbers %>: <%= line %>

	       <% if comment_hash[line_num] %>

	Comment on line <%=line_num%> left by <%= comment_hash[line_num].user.display_name %>

	<%= comment_hash[line_num].comments.to_html %>

	       <% end %>
	     <% end %>

	<% end %>

  <% end %>

<% else %>

No turn-in found

<% end %>

Assignment: <%= @assignment.title %>

Course: <%= @course.title %>

Feedback for <%= @user.display_name %>

<%= link_to 'Back to my turn-ins', :controller => 'turnins', :course => @course, :assignment => @assignment %> | <%= link_to 'Back to assignment', :controller => 'assignments', :course => @course, :id => @assignment, :action => 'view', :assignment => nil %>

<% if @grade_item %>
  <% unless @grade_entry %>

No grade has been submitted.

  <% else %>

Your grade: <%= sprintf("%.1f",@grade_entry.points) %> out of <%= sprintf("%.1f",@grade_item.points) %> possible points

Instructor Comments:

        <%= @feedback_html %>

  <% end %>
<% end %>

<% if @current_turnin %>

 Jump to file

 <% for utf in @current_turnin.user_turnin_files %>
  <% unless utf.directory_entry? %>

<a href="#file_<%=utf.id%>"> <%= image_tag utf.icon %> <%= utf.full_filename( @directories ) %>

  <% end %>
 <% end %>

  <% for utf in @current_turnin.user_turnin_files %>

    <%= image_tag utf.icon %>
    <% if utf.directory_entry? %>Directory:
    <% else %>File:
    <% end %><a name="file_<%=utf.id%>"><%= utf.full_filename( @directories ) %>
        <%= image_tag 'arrow_up' %>

	<% if utf.directory_entry? %>

Directory entry

	<% else %>
	  <% directory = @current_turnin.get_dir( @app['external_dir'] )
	     lines = FileManager.format_file( @app['enscript_command'], "#{directory}#{utf.full_filename( @directories )}", utf.extension )
	     comment_hash = utf.file_comments_hash
	   %>

	   <% line_num = 0 %>

	     <% for line in lines %>
	       <% line_num = line_num.next %>
	       <% numbers = line_num.to_s
	          numbers.size.upto(8) { |x| numbers = " #{numbers}" } %>
	       <%= numbers %>: <%= line %>

	       <% if comment_hash[line_num] %>

	Comment on line <%=line_num%> left by <%= comment_hash[line_num].user.display_name %>

	<%= comment_hash[line_num].comments.to_html %>

	       <% end %>
	     <% end %>

	<% end %>

  <% end %>

<% else %>

No turn-in found

<% end %>


Tweaked the recent comments sidebar

Tweaked the recent comments sidebar

<%=h title %>

        <% sidebar.comments.each do |comment| -%>

<%= comment.author if show_username -%> on <%= link_to_permalink comment, h(comment.article.title) %>

        <% end %>

<%=h title %>

        <% for comment in sidebar.comments -%>

                <% title = ''; title << 'by ' + comment.author if show_username -%>
                <% title << ' on ' + comment.article.title if show_article -%>
                <%= link_to_permalink comment,h(title) %>

        <% end %>


added recaptcha image for new user

added recaptcha image for new user

<% form_tag({:action => 'edit', :id => @user.id}, {:multipart => true, :class => 'center_content'}) do -%>

<%= error_messages_for 'user' %>

	<% if @user.id %>

<%= h(@user) %> — Modify Your Profile

	<% else %>

Register

	<% end %>

		<fieldset id="picture">
		<%= render :partial => "profile/picture_edit", :object => @user.picture_path, :locals => {:user => @user} %>
		</fieldset>

    <fieldset id='account_details'>

Account Details (required)

    		Email Address<%= text_field_tag 'user[email_address]', @user.email_address %>

    		Set Password<%= password_field_tag 'user[password]' %>
    		Confirm Password<%= password_field_tag 'user[password_confirmation]' %>

    </fieldset>

  <fieldset id='profile' class='wide'>

Bodysize Community Profile (optional)

	   		First Name<%= text_field_tag 'user[first_name]', @user.first_name %>

	    	Last Name<%= text_field_tag 'user[last_name]', @user.last_name %>

	    	City<%= text_field_tag 'user[city]', @user.city %>

	    	State<%= us_state_select('user', 'state') %>

	    	Country<%= select("user", "country", CountryCodes.countries_for_select('name', 'name').sort) %>

	    	School<%= text_field_tag 'user[school_name]', @user.school_name %>

	    	School Level<%= select 'user', 'school_level_id', @school_levels %>

	    	Number of Students in Class<%= text_field_tag 'user[number_of_students_in_class]', @user.number_of_students_in_class, :size => 3 %>

	    	Profile
<%= text_area_tag 'user[profile_description]', @user.profile_description %>

  </fieldset>
  <% if @user.id %>
  <% else %>
		<%= recaptcha_tags %>
	<% end %>

    <%= submit_tag 'Save Changes' %>

<% end %>

<% form_tag({:action => 'edit', :id => @user.id}, {:multipart => true, :class => 'center_content'}) do -%>

<%= error_messages_for 'user' %>

	<% if @user.id %>

<%= h(@user) %> — Modify Your Profile

	<% else %>

Register

	<% end %>

		<fieldset id="picture">
		<%= render :partial => "profile/picture_edit", :object => @user.picture_path, :locals => {:user => @user} %>
		</fieldset>

    <fieldset id='account_details'>

Account Details (required)

    		Email Address<%= text_field_tag 'user[email_address]', @user.email_address %>

    		Set Password<%= password_field_tag 'user[password]' %>
    		Confirm Password<%= password_field_tag 'user[password_confirmation]' %>

    </fieldset>

  <fieldset id='profile' class='wide'>

Bodysize Community Profile (optional)

	   		First Name<%= text_field_tag 'user[first_name]', @user.first_name %>

	    	Last Name<%= text_field_tag 'user[last_name]', @user.last_name %>

	    	City<%= text_field_tag 'user[city]', @user.city %>

	    	State<%= us_state_select('user', 'state') %>

	    	Country<%= select("user", "country", CountryCodes.countries_for_select('name', 'name').sort) %>

	    	School<%= text_field_tag 'user[school_name]', @user.school_name %>

	    	School Level<%= select 'user', 'school_level_id', @school_levels %>

	    	Number of Students in Class<%= text_field_tag 'user[number_of_students_in_class]', @user.number_of_students_in_class, :size => 3 %>

	    	Profile
<%= text_area_tag 'user[profile_description]', @user.profile_description %>

  </fieldset>

    <%= submit_tag 'Save Changes' %>

<% end %>


A start at page editing

A start at page editing

<% @editing = true -%>

  Page title: <%= @page.title %>
  <%= image_tag("edit-field.png", { :id => "edit_page_title" }) %>

        <%= link_to_remote "Insert question", :update => ("page#{@page.id}"),
                        :url => { :action => "add_question_to_page", :id => @page.id, :position => 1 } %>

        <% @page.questions.each do |question| -%>
                <div id="question<%=question.id%>">
                        <%= render :partial => 'editquestion', :locals => { :question => question } %>

        <% end -%>


link to Alaveteli, not mySociety

link to Alaveteli, not mySociety

<%-# Put the link to your organisation here, or leave blank -%>
an Alaveteli site

<%-# Put the link to your organisation here, or leave blank -%>
a site by mysociety.org


undid mistaken changes

undid mistaken changes

<%
  # save the conversion to hash on every call!
  ref_meta = @current_context_object.referent.metadata
%>

<%
atitle_label = nil
title_label = nil
if ! ref_meta["atitle"].blank? %>

<%
unless ref_meta['genre'].blank?
	case ref_meta["genre"]
		when /article|journal|issue/
			atitle_label = 'Article Title'
			title_label = 'Journal Title'
		when /bookitem|book/
			atitle_label = 'Chapter/Part Title'
			title_label = 'Book Title'
		when /proceeding|conference/
			atitle_label = 'Proceeding Title'
			title_label = 'Conference Name'
		when 'report'
			atitle_label = 'Report Title'
			title_label = 'Report'
	end
else
	if @current_context_object.referent.format == 'book'
		atitle_label = 'Chapter/Part Title'
	elsif @current_context_object.referent.format == 'journal'
		atitle_label = 'Article Title'
	end
	title_label = 'Title'
end

%>

<%= atitle_label %>:

<%= ref_meta["atitle"] %>

<% unless ref_meta["atitle"] == @context_object.referent.metadata["atitle"]%>
	<%= link_to image_tag('http://sfx.galib.uga.edu/sfx_git1/sfx.gif', :border=>0), @current_context_object.to_hash.merge(:controller=>"resolve")%>
<% end%>

<%
@page_title = ref_meta["atitle"]
end
author_row = ''
title_row = ''
unless ref_meta["au"].nil? and ref_meta['aulast'].nil?
author_row = '

Author:
	'
	unless ref_meta["au"].nil?
		author_row += ref_meta["au"]
	else
	author_row += ref_meta["aulast"]
	unless ref_meta["aufirst"].nil?
		author_row += ',	'+ref_meta["aufirst"]
	else
		unless ref_meta["auinit"].nil?
			author_row += ',	'+ref_meta["auinit"]
		else
			unless ref_meta["auinit1"].nil?
				author_row += ',	'+ref_meta["auinit1"]
			end
			unless ref_meta["auinitm"].nil?
				author_row += ref_meta["auinitm"]
			end
		end
	end
	end
	author_row += '
'
end
 if ref_meta.has_key?("jtitle")  or ref_meta.has_key?("title") or ref_meta.has_key?("btitle")
    @co = OpenURL::ContextObject.new
    @co.import_context_object(@current_context_object)
    #@co.referent.metadata["atitle"] = nil
    #@co.referent.metadata["volume"] = nil
    #@co.referent.metadata["spage"] = nil
    #@co.referent.metadata["epage"] = nil
    #@co.referent.metadata["issue"] = nil
    #@co.referent.metadata["date"] = nil
    #@co.referent.metadata["aulast"] = nil
    #@co.referent.metadata["au"] = nil
    #@co.referent.metadata["auinit"] = nil
    #@co.referent.metadata["auinit1"] = nil
    # @co.referent.set_identifier(nil)
    if @co.referent.metadata.has_key?("title")
      title = @co.referent.metadata["title"]
    elsif @co.referent.metadata.has_key?("btitle")
      title = @co.referent.metadata["btitle"]
    else @co.referent.metadata.has_key?("jtitle")
      title = @co.referent.metadata["jtitle"]
    end
		if title_label.nil?
			unless ref_meta['genre'].blank?
				case ref_meta["genre"]
					when /article|journal|issue/
						title_label = 'Journal Title'
					when /bookitem|book/
						title_label = 'Book Title'
					when /proceeding|conference/
						title_label = 'Conference Name'
					when 'report'
						title_label = 'Report Title'
				end
			else
				title_label = 'Title'
			end
		end

style = 'largeText'
unless ref_meta['atitle'].nil?
	style = 'smallText'
end
title_row = '

'+title_label+':	'

title_row += link_to title, @co.to_hash.merge(:controller=>"resolve")

title_row += '
'
  unless @page_title
   @page_title = title
  end
end
unless ref_meta['atitle'].blank? %>
<%= author_row.to_s + title_row.to_s %>
<% else %>
<%= title_row.to_s+author_row.to_s %>
<%
end
if ref_meta.has_key?("issn") %>

ISSN:

<%=ref_meta["issn"] %>

<%
end

if ref_meta.has_key?("isbn") %>

ISBN:

<%=ref_meta["isbn"] %>

<%
end
pub = []
if ref_meta.has_key?("date")
	pub << date_format(ref_meta["date"].to_s)
end
if ref_meta.has_key?("volume")
	pub << 'Volume:  '+ref_meta["volume"].to_s
end
if ref_meta.has_key?("issue")
	pub << 'Issue:  '+ref_meta["issue"].to_s
end

if ref_meta.has_key?("spage")
	pub << 'Page:  '+ref_meta["spage"].to_s
end
if ref_meta.has_key?("epage")
	pub << '-  '+ref_meta["epage"].to_s
end
%>

<%
 unless ref_meta['pub'].blank? &&
        ref_meta['place'].blank? %>

Publisher:

  <% unless ref_meta['place'].blank?  %>
      <%= ref_meta['place'] %> :
  <% end %>
  <%= ref_meta['pub'] %>

<% end %>

	<%= resolver_link(@current_context_object) %>

<%
  # save the conversion to hash on every call!
  ref_meta = @current_context_object.referent.metadata
%>

<%
atitle_label = nil
title_label = nil
if ! ref_meta["atitle"].blank? %>

<%
unless ref_meta['genre'].blank?
	case ref_meta["genre"]
		when /article|journal|issue/
			atitle_label = 'Article Title'
			title_label = 'Journal Title'
		when /bookitem|book/
			atitle_label = 'Chapter/Part Title'
			title_label = 'Book Title'
		when /proceeding|conference/
			atitle_label = 'Proceeding Title'
			title_label = 'Conference Name'
		when 'report'
			atitle_label = 'Report Title'
			title_label = 'Report'
	end
else
	if @current_context_object.referent.format == 'book'
		atitle_label = 'Chapter/Part Title'
	elsif @current_context_object.referent.format == 'journal'
		atitle_label = 'Article Title'
	end
	title_label = 'Title'
end

%>

<%= atitle_label %>:

<%= h(ref_meta["atitle"]) %>

<% unless ref_meta["atitle"] == @context_object.referent.metadata["atitle"]%>
	<%= link_to image_tag('http://sfx.galib.uga.edu/sfx_git1/sfx.gif', :border=>0), @current_context_object.to_hash.merge(:controller=>"resolve")%>
<% end%>

<%
@page_title = ref_meta["atitle"]
end
author_row = ''
title_row = ''
unless ref_meta["au"].nil? and ref_meta['aulast'].nil?
author_row = '

Author:
	'
	unless ref_meta["au"].nil?
		author_row += ref_meta["au"]
	else
	author_row += ref_meta["aulast"]
	unless ref_meta["aufirst"].nil?
		author_row += ',	'+ref_meta["aufirst"]
	else
		unless ref_meta["auinit"].nil?
			author_row += ',	'+ref_meta["auinit"]
		else
			unless ref_meta["auinit1"].nil?
				author_row += ',	'+ref_meta["auinit1"]
			end
			unless ref_meta["auinitm"].nil?
				author_row += ref_meta["auinitm"]
			end
		end
	end
	end
	author_row += '
'
end
 if ref_meta.has_key?("jtitle")  or ref_meta.has_key?("title") or ref_meta.has_key?("btitle")
    @co = OpenURL::ContextObject.new
    @co.import_context_object(@current_context_object)
    #@co.referent.metadata["atitle"] = nil
    #@co.referent.metadata["volume"] = nil
    #@co.referent.metadata["spage"] = nil
    #@co.referent.metadata["epage"] = nil
    #@co.referent.metadata["issue"] = nil
    #@co.referent.metadata["date"] = nil
    #@co.referent.metadata["aulast"] = nil
    #@co.referent.metadata["au"] = nil
    #@co.referent.metadata["auinit"] = nil
    #@co.referent.metadata["auinit1"] = nil
    # @co.referent.set_identifier(nil)
    if @co.referent.metadata.has_key?("title")
      title = @co.referent.metadata["title"]
    elsif @co.referent.metadata.has_key?("btitle")
      title = @co.referent.metadata["btitle"]
    else @co.referent.metadata.has_key?("jtitle")
      title = @co.referent.metadata["jtitle"]
    end
		if title_label.nil?
			unless ref_meta['genre'].blank?
				case ref_meta["genre"]
					when /article|journal|issue/
						title_label = 'Journal Title'
					when /bookitem|book/
						title_label = 'Book Title'
					when /proceeding|conference/
						title_label = 'Conference Name'
					when 'report'
						title_label = 'Report Title'
				end
			else
				title_label = 'Title'
			end
		end

style = 'largeText'
unless ref_meta['atitle'].nil?
	style = 'smallText'
end
title_row = '

'+title_label+':	'

title_row += link_to title, @co.to_hash.merge(:controller=>"resolve")

title_row += '
'
  unless @page_title
   @page_title = title
  end
end
unless ref_meta['atitle'].blank? %>
<%= author_row.to_s + title_row.to_s %>
<% else %>
<%= title_row.to_s+author_row.to_s %>
<%
end
if ref_meta.has_key?("issn") %>

ISSN:

<%=ref_meta["issn"] %>

<%
end

if ref_meta.has_key?("isbn") %>

ISBN:

<%=ref_meta["isbn"] %>

<%
end
pub = []
if ref_meta.has_key?("date")
	pub << (date_format(ref_meta["date"].to_s)
end
if ref_meta.has_key?("volume")
	pub << 'Volume:  '+h(ref_meta["volume"].to_s)
end
if ref_meta.has_key?("issue")
	pub << 'Issue:  '+h(ref_meta["issue"].to_s)
end

if ref_meta.has_key?("spage")
	pub << 'Page:  '+h(ref_meta["spage"].to_s)
end
if ref_meta.has_key?("epage")
	pub << '-  '+h(ref_meta["epage"].to_s)
end
%>

<%
 unless ref_meta['pub'].blank? &&
        ref_meta['place'].blank? %>

Publisher:

  <% unless ref_meta['place'].blank?  %>
      <%= ref_meta['place'] %> :
  <% end %>
  <%= ref_meta['pub'] %>

<% end %>

	<%= resolver_link(@current_context_object) %>


Use the right variable for the marker position.

<% nearest_str = "" %>
<% if !@user.home_lat.nil? and !@user.home_lon.nil? %>
  <% if !@user.nearby.empty? %>
    <% @user.nearby.each do |nearby| %>
    <% nearest_str += "nearest.push( { 'display_name' : '#{nearby.display_name}', 'home_lat' : #{nearby.home_lat}, 'home_lon' : #{nearby.home_lon} } );\n" %>
    <% end %>
  <% end %>
<% end %>

<% if @user.home_lat.nil? or @user.home_lon.nil? %>
  <% lon = h(params['lon'] || '-0.1') %>
  <% lat = h(params['lat'] || '51.5') %>
  <% zoom = h(params['zoom'] || '4') %>
<% else %>
  <% marker = true %>
  <% mlon = @user.home_lon %>
  <% mlat = @user.home_lat %>
  <% lon =  @user.home_lon %>
  <% lat =  @user.home_lat %>
  <% zoom =  '12' %>
<% end %>

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