ActionItem21: removing article

ActionItem21: removing article

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

<% if @article %>

    <%= icon('cms') %>
    <%= link_to profile.identifier, :action => 'index' %>
    <%= @article.hierarchy.map {|item| " / " + ((item == @article) ? item.name : link_to(item.name, :id => item.id)) } %>

<% else %>

    <%= icon('cms') %>
    <%= _('Content management') %>

  <% button_bar(:style => 'margin-bottom: 1em;') do %>
    <%= button('new', _('New article'), :action => 'new') %>
  <% end %>

<% end %>

<%# subitem %>
<% if !@subitems.empty? && @article %>
  <%= toggle_panel(_('Hide subitems'), _('Show subitems'), 'article-subitems') %>
<% end %>

<%= @article ? _('Subitems') : _('Articles') %>

    <% unless @subitems.empty? %>

        <% @subitems.each do |item| %>

          <%= file_manager_button(item.name, "icons-mime/#{item.icon_name}", :action => 'view', :id => item.id) %>

        <% end %>

    <% end %>

    <% if @article %>
      <% button_bar(:class => 'file-manager-controls') do %>
        <%= button('new',  _('New subitem'), :action => 'new', :parent_id => @article.id) %>
        <%= button('up', _('Go up one level'), :action => (@article.parent ? 'view' : 'index'), :id => @article.parent) %>
      <% end %>
    <% end %>

<%# display the article content %>

  <% if @article %>

<%= @article.name %>

    <% button_bar(:id => 'article-controls') do %>

        <%= _('"%{article}", last changed by %{author}') % { :article => @article.name, :author => (@article.last_changed_by ? @article.last_changed_by.name : _('Unknown User')) } %>

        <%= _('Public address of this article: %s') % (@article.public_path) %>

      <%= button('edit', _('Edit'), { :action => 'edit', :id => @article}) %>
      <%= button('home', _('Use as homepage'), { :action => 'set_home_page', :id => @article }, { :method => :post  }) %>
      <%= button('delete', _('Delete'), { :action => 'destroy', :id => @article }, :method => :post, :confirm => _('Tem certeza que quer excluir este artigo?')) %>
    <% end %>
    <%= @article.to_html %>
  <% end %>

<% if @article %>

    <%= icon('cms') %>
    <%= link_to profile.identifier, :action => 'index' %>
    <%= @article.hierarchy.map {|item| " / " + ((item == @article) ? item.name : link_to(item.name, :id => item.id)) } %>

<% else %>

    <%= icon('cms') %>
    <%= _('Content management') %>

  <% button_bar(:style => 'margin-bottom: 1em;') do %>
    <%= button('new', _('New article'), :action => 'new') %>
  <% end %>

<% end %>

<%# subitem %>
<% if !@subitems.empty? && @article %>
  <%= toggle_panel(_('Hide subitems'), _('Show subitems'), 'article-subitems') %>
<% end %>

<%= @article ? _('Subitems') : _('Articles') %>

    <% unless @subitems.empty? %>

        <% @subitems.each do |item| %>

          <%= file_manager_button(item.name, "icons-mime/#{item.icon_name}", :action => 'view', :id => item.id) %>

        <% end %>

    <% end %>

    <% if @article %>
      <% button_bar(:class => 'file-manager-controls') do %>
        <%= button('new',  _('New subitem'), :action => 'new', :parent_id => @article.id) %>
        <%= button('up', _('Go up one level'), :action => (@article.parent ? 'view' : 'index'), :id => @article.parent) %>
      <% end %>
    <% end %>

<%# display the article content %>

  <% if @article %>

<%= @article.name %>

    <% button_bar(:id => 'article-controls') do %>

        <%= _('"%{article}", last changed by %{author}') % { :article => @article.name, :author => (@article.last_changed_by ? @article.last_changed_by.name : _('Unknown User')) } %>

        <%= _('Public address of this article: %s') % (@article.public_path) %>

      <%= button('edit', _('Edit'), { :action => 'edit', :id => @article}) %>
      <%= button('home', _('Use as homepage'), { :action => 'set_home_page', :id => @article }, { :method => :post  }) %>
    <% end %>
    <%= @article.to_html %>
  <% end %>


Hide pop-up's by default on user box (fixes certain themes)

  <%= :welcome_back.l_with_args(:user => h(user.display_name)) %> (<%= link_to :logout.l, {:controller => 'access', :action => 'logout'}, :confirm => :are_you_sure_logout.l %>),

<%= link_to :account.l, :controller => 'account' %> <%= render_icon 'bullet_drop_down', '', :id => 'account_more', :class => 'PopupMenuWidgetAttachTo', :title => 'Enable javascript' %>

<% if not projects.nil? and projects.length > 0 %>

<%= link_to :projects.l, :controller => 'dashboard', :action => 'my_projects' %> <%= render_icon 'bullet_drop_down', '', :id => 'projects_more', :class => 'PopupMenuWidgetAttachTo', :title => 'Enable javascript' %>

<% end %>
<% if user.is_admin %>

<%= link_to :administration.l, :controller => 'administration' %> <%= render_icon 'bullet_drop_down', '', :id => 'administration_more', :class => 'PopupMenuWidgetAttachTo', :title => 'Enable javascript' %>

<% end %>

<%= :account.l %>:

<%= link_to :update_profile.l, :controller => 'account', :action => 'edit_profile', :id => user.id %>

<%= link_to :change_password.l, :controller => 'account', :action => 'edit_password', :id => user.id %>

<%= link_to :update_avatar.l, :controller => 'account', :action => 'edit_avatar', :id => user.id %>

<%= :userbox_more.l %>

<%= link_to :my_projects.l, :controller => 'dashboard', :action => 'my_projects' %>

<%= link_to :my_tasks.l, :controller => 'dashboard', :action => 'my_tasks' %>

<% if not projects.nil? and projects.length > 0 %>

<%= :projects.l %>:

<% projects.each do |project| -%>

<%= link_to h(project.name), :controller => 'project', :action => 'overview', :active_project => project.id %>

<% end %>

<% end %>

<% if user.is_admin %>

<%= :administration.l %>:

<%= link_to :company.l, :controller => 'administration', :action => 'company' %>

<%= link_to :members.l, :controller => 'administration', :action => 'members' %>

<%= link_to :clients.l, :controller => 'administration', :action => 'clients' %>

<%= link_to :projects.l, :controller => 'administration', :action => 'projects' %>

<%= link_to :configuration.l, :controller => 'administration', :action => 'configuration' %>

<%= link_to :tools.l, :controller => 'administration', :action => 'tools' %>

<%= link_to :upgrade.l, :controller => 'administration', :action => 'upgrade' %>

<% end %>


Added a commented-out stub for thumbnails

<%= render({ :partial => '/shared/work_tabs',
             :locals => { :selected =>1,
                          :work_id => @work.id }}) %>

	  <% for page in @pages %>

<%= page.title %>

	        <% if page.xml_text %>
	          <%= xml_to_html(page.xml_text, false) %>
	        <% else %>
            <% if logged_in? && current_user.can_transcribe?(@work) %>

                  <%= link_to('Help transcribe this page!',
                              { :controller => 'transcribe',
                                :action => 'display_page',
                                :page_id => page.id,
                                :ol => 'w_rw_p_tl' }) %>

            <% else %>

No Transcription

		        <% end %>
	        <% end %>

	        <%= link_to('page',
	                    { :action => 'display_page',
	                      :page_id => page.id,
                        :ol => 'w_rw_p_pl' }) %>

	  <% end %>
      <%= will_paginate @pages %>

Categories in these pages

        <%= display_categories(@collection.categories, nil) do |category|
                controller.render_to_string(:partial => '/category/category_link',
                       :locals => { :category => category })
            end %>


matching tags typo again, from way back

matching tags typo again, from way back

<%
cite = @user_request.referent.to_citation
#rft_metadata = @user_request.referent.metadata
%>

<%= h(cite[:title_label]) %>:

      <%= h(cite[:title]) %>

<% # Try to warn if this could be a typo. If we have an rft.object_id, then
   # SFX recognized it as an actually existing journal. If not, then it
   # might be a typo. If it came from a manually entered citation, warn them.

   if display_not_found_warning?(@user_request)
%>

(!) Warning:
	<%= AppConfig.param('app_name') %> does not know about a <%= (@user_request.referent.format).downcase %> with this name. Please check your entry.

<%   end %>

<%
@page_title = cite[:title]
if cite[:author]
%>

Author:

  <%= h(cite[:author]) %>

<%
end
if cite[:subtitle] %>

<%= h(cite[:subtitle_label]) %>:

 <%= h(cite[:subtitle]) %>

<%
end

if (cite[:issn] && ! cite[:issn].empty?)  %>

ISSN:

  <%=h(cite[:issn]) %>

<%
end

if (cite[:isbn] && ! cite[:isbn].empty? ) %>

ISBN:

  <%=h(cite[:isbn]) %>

<%
end %>

<% unless cite[:pub].blank?  %>

Publisher:

  <%= h(cite[:pub]) %>

<% end %>

<%
pub = []
pub << date_format(cite[:date]) unless cite[:date].blank?
pub << 'Volume:  '+h(cite[:volume]) unless cite[:volume].blank?
pub << 'Issue:  '+h(cite[:issue]) unless cite[:issue].blank?
pub << 'Page:  '+h(cite[:page]) unless cite[:page].blank?
if pub.length > 0
%>

Published:

  <%= pub.join('  ')%>

<% end %>


return false on chat channel add

return false on chat channel add

Signed-off-by: Grant <7561d7b6fa252e14d948ef730f22c68c9d861f6b@ish.com.au>

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

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

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

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

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

  </fieldset>
<% end %>

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


git-svn-id: svn+ssh://ko.meadowy.net/home/svn/inside/kozuchi/trunk@230 c938ebee-df10-0410-95fc-be8c4b0ebdd5

  資産合計
  <%= number_with_delimiter(@assets.sum) %>円

    正の資産		期末残高

  <% @assets.plus.each do |account| %>

      <%= account.name %>
      <%= account.percentage %>%
      <%= number_with_delimiter(account.balance) %>

  <% end %>

合計	<%= number_with_delimiter(@assets.plus.sum) %>

<%
  labels = ''
  values = ''
  @assets.plus.each do |account|
    next if account.percentage == 100 || account.percentage == 0
    labels += account.name + ','
    values += account.percentage.to_s + ','
  end
%>
<% if labels.count(',') > 1 then %>
<img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />
<% else %>
  グラフは２つ以上の項目があるときに表示されます。
<% end %>

    負の資産		期末残高

  <% @assets.minus.each do |account| %>

      <%= account.name %>
      <%= account.percentage %>%
      <%= number_with_delimiter(account.balance) %>

  <% end %>

合計	<%= number_with_delimiter(@assets.minus.sum) %>

  <%= pie_graph(@assets.minus, 'percentage', 'name') %>

<%
  labels = ''
  values = ''
  @assets.minus.each do |account|
    next if account.percentage == 100 || account.percentage == 0
    labels += account.name + ','
    values += account.percentage.to_s + ','
  end
%>
<% if labels.count(',') > 1 then %>
<img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />
<% else %>
  グラフは２つ以上の項目があるときに表示されます。
<% end %>

  資産合計
  <%= number_with_delimiter(@assets.sum) %>円

    正の資産		期末残高

  <% @assets.plus.each do |account| %>

      <%= account.name %>
      <%= account.percentage %>%
      <%= number_with_delimiter(account.balance) %>

  <% end %>

合計	<%= number_with_delimiter(@assets.plus.sum) %>

<%
  labels = ''
  values = ''
  @assets.plus.each do |account|
    next if account.percentage == 100 || account.percentage == 0
    labels += account.name + ','
    values += account.percentage.to_s + ','
  end
%>
<% if labels.count(',') > 1 then %>
<img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />
<% else %>
  グラフは２つ以上の項目があるときに表示されます。
<% end %>

    負の資産		期末残高

  <% @assets.minus.each do |account| %>

      <%= account.name %>
      <%= account.percentage %>%
      <%= number_with_delimiter(account.balance) %>

  <% end %>

合計	<%= number_with_delimiter(@assets.minus.sum) %>

<%
  labels = ''
  values = ''
  @assets.minus.each do |account|
    next if account.percentage == 100 || account.percentage == 0
    labels += account.name + ','
    values += account.percentage.to_s + ','
  end
%>
<% if labels.count(',') > 1 then %>
<img src="<%= url_for(:controller=>'graph', :action=>'pie', :labels=>labels, :values=>values) %>" />
<% else %>
  グラフは２つ以上の項目があるときに表示されます。
<% end %>


Improve supporting organisations wording

<% @title = "Credit where credit is due" %>

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

<%= @title%> #

Which people made <%= site_name %>? #

    Matthew Landauer, Henare Degan, Katherine Szuminska and Alexander Sadleir set up the software that runs Right To Know, collected and collated the information, adapted the help text and generally pushed, prodded and poked until things worked.

    Guy King's donation to the OpenAustralia Foundation, made building and running this site possible.

    Our early testers, for checking over all the legal help text and making sure that things worked as expected.

    Peter Timmins, Australia's foremost authority on Freedom of Information law, has kept us informed through the years with his indespensable blog Open and Shut.

    Everyone who has helped look up Freedom of Information email addresses.

    All the amazing staff and volunteers at mySociety, past and present, who created WhatDoTheyKnow.com in the UK, which ultimately was spun out into the international software project Alaveteli, on which <%= site_name %> runs.

    Andrew Snow from Octopus Computing for providing our hosting. Andrew has been our rock. His support has always been quick and spot on.

    The generous folk at the Chilean Freedom of Information site Acceso Inteligente for letting us steal their fabulous logo.

    Finally, all the officers who will and have answered the requests
    made through the site. Their diligence, patience and professionalism is
    what has actually made the information that you see here. Thank them for
    helping make Government more transparent.

They're all stars.

You could be too…

Can I help out? #

Yes please! We're built out of our supporters and volunteers.

You can make a donation. We're a charity with Deductible Gift Recipient (DGR) status. That means your donation is tax-deductible.

Help people find successful requests, and monitor performance of authorities, by
    playing the categorisation game.

Find out the Freedom of Information email addresses of authorities that we're missing.

Write a blog post about either <%= site_name %> or an interesting request that you've
    found. Post about it on a forum that you frequent. Tell friends about it.

If you're
    a programmer, get the source code for our parent project, Alaveteli
    and tell us about patches we can pull. It's made in Ruby on Rails.

Read more about volunteering.

Supporting Organisations #

<%= link_to "Open Forum", "http://www.openforum.com.au/"%>

<%= link_to "Open Knowledge Foundation Australia", "http://au.okfn.org/"%>

<%= link_to "Centre For Policy Development", "http://cpd.org.au/"%>

<%= link_to "GetUp", "http://www.getup.org.au/"%>

<%= link_to "Crikey", "http://www.crikey.com.au/"%>

International

<%= link_to "mySociety", "http://www.mysociety.org/"%>

<%= link_to "OpenNorth", "http://opennorth.ca/"%>

<%= link_to "Open New Zealand", "http://open.org.nz"%>

        Supporting organisations share and value the aims and objectives of the Right To Know project, to make Freedom of Information easier and more accessible for all Australians.

        We invite organisations with diverse civic interests and affiliations to become supporters of the Right To Know project and agree to share this information across their networks.

        No money changes hands.

        <%= link_to "Contact us", help_contact_path %> to become a suppporting organisation.

Attribution #

    Some descriptions of public authorities were sourced and adapted from australia.gov.au in which the text content is licensed under Creative Commons Attribution 3.0 Australia.

<% @title = "Credit where credit is due" %>

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

<%= @title%> #

Which people made <%= site_name %>? #

    Matthew Landauer, Henare Degan, Katherine Szuminska and Alexander Sadleir set up the software that runs Right To Know, collected and collated the information, adapted the help text and generally pushed, prodded and poked until things worked.

    Guy King's donation to the OpenAustralia Foundation, made building and running this site possible.

    Our early testers, for checking over all the legal help text and making sure that things worked as expected.

    Peter Timmins, Australia's foremost authority on Freedom of Information law, has kept us informed through the years with his indespensable blog Open and Shut.

    Everyone who has helped look up Freedom of Information email addresses.

    All the amazing staff and volunteers at mySociety, past and present, who created WhatDoTheyKnow.com in the UK, which ultimately was spun out into the international software project Alaveteli, on which <%= site_name %> runs.

    Andrew Snow from Octopus Computing for providing our hosting. Andrew has been our rock. His support has always been quick and spot on.

    The generous folk at the Chilean Freedom of Information site Acceso Inteligente for letting us steal their fabulous logo.

    Finally, all the officers who will and have answered the requests
    made through the site. Their diligence, patience and professionalism is
    what has actually made the information that you see here. Thank them for
    helping make Government more transparent.

They're all stars.

You could be too…

Can I help out? #

Yes please! We're built out of our supporters and volunteers.

You can make a donation. We're a charity with Deductible Gift Recipient (DGR) status. That means your donation is tax-deductible.

Help people find successful requests, and monitor performance of authorities, by
    playing the categorisation game.

Find out the Freedom of Information email addresses of authorities that we're missing.

Write a blog post about either <%= site_name %> or an interesting request that you've
    found. Post about it on a forum that you frequent. Tell friends about it.

If you're
    a programmer, get the source code for our parent project, Alaveteli
    and tell us about patches we can pull. It's made in Ruby on Rails.

Read more about volunteering.

Supporting Organisations #

<%= link_to "Open Forum", "http://www.openforum.com.au/"%>

<%= link_to "Open Knowledge Foundation Australia", "http://au.okfn.org/"%>

<%= link_to "Centre For Policy Development", "http://cpd.org.au/"%>

<%= link_to "GetUp", "http://www.getup.org.au/"%>

<%= link_to "Crikey", "http://www.crikey.com.au/"%>

International

<%= link_to "mySociety", "http://www.mysociety.org/"%>

<%= link_to "OpenNorth", "http://opennorth.ca/"%>

<%= link_to "Open New Zealand", "http://open.org.nz"%>

        We invited a broad range of organisations, with associations from across the political spectrum, to become supporting organisations. Supporting organisations share and value the aims and objectives of the Right To Know project, to make Freedom of Information easier and more accessible to all Australians.

        No money changed hands.

Attribution #

    Some descriptions of public authorities were sourced and adapted from australia.gov.au in which the text content is licensed under Creative Commons Attribution 3.0 Australia.


Only let project owner / admins edit the project

<div id="<%=@project.dom_id%>" class="project-block">

    <% if @project.user_id == current_user.id || current_user.admin > 0%>

      <%= link_to image_tag("application_form_edit.png", :border => 0, :title => _("Edit %s", @project.name), :class => "tooltip"), :controller => 'projects', :action => 'edit', :id => @project %>
      <%= link_to(image_tag("delete.png", :border => 0, :title => _("Delete %s", @project.name), :class => "tooltip"), { :controller => 'projects', :action => 'destroy', :id => @project}, :confirm => _("Are you sure?")) %>

    <% end %>

<%= "#{h(@project.name)}" %>

    <% if @project.users.size > 0 %>

<%= _('Members') %>

<%= @project.users.collect{|u| " ["project_id=? AND completed_at IS NULL",@project.id])}\"  >#{h(u.name)}"}.join(", ") %>

    <% end %>

<%= _('Created') %>

<%= tz.utc_to_local(@project.created_at).strftime("#{current_user.time_format} #{current_user.date_format}") %>

<%= _('Tasks') %>

<%= @project.tasks.count(:conditions => ["completed_at IS NULL"]) %> <%=_ 'Open' %> / <%= @project.tasks.count %> <%= _ 'Total' %>

    <% done = @project.tasks.sum('work_logs.duration', :conditions => ['completed_at IS NULL'], :include => :work_logs )
       total = @project.tasks.sum('duration', :conditions => ["completed_at IS NULL"])
       completed = @project.tasks.sum('work_logs.duration', :conditions => ['completed_at IS NOT NULL'], :include => :work_logs )
       completed_total = @project.tasks.sum('duration', :conditions => ["completed_at IS NOT NULL"])
       total ||= 0
       done ||= 0
       completed ||= 0
       completed_total ||= 0

       done = done / 60
       completed = completed / 60

    %>

<%= _('Remaining Work') %>

      <% if total - done < 0 %>
      -<%= format_duration(-(total-done), current_user.duration_format, current_user.workday_duration, current_user.days_per_week) %>
      <% else %>
      <%= format_duration(total-done, current_user.duration_format, current_user.workday_duration, current_user.days_per_week) %>
      <% end %>
      [<%= format_duration(total, current_user.duration_format, current_user.workday_duration, current_user.days_per_week) %> <%= _ 'Estimated' %>]

<%= _('Work Done') %>

<%= format_duration(completed, current_user.duration_format, current_user.workday_duration, current_user.days_per_week) %> [<%= format_duration(completed_total, current_user.duration_format, current_user.workday_duration, current_user.days_per_week) %> <%= _ 'Estimated' %>]

<%= @project.description %>

<div id="<%=@project.dom_id%>" class="project-block">

      <%= link_to image_tag("application_form_edit.png", :border => 0, :title => _("Edit %s", @project.name), :class => "tooltip"), :controller => 'projects', :action => 'edit', :id => @project %>
      <% if @project.user_id == current_user.id || current_user.admin > 0%>
      <%= link_to(image_tag("delete.png", :border => 0, :title => _("Delete %s", @project.name), :class => "tooltip"), { :controller => 'projects', :action => 'destroy', :id => @project}, :confirm => _("Are you sure?")) %>
      <% end %>

<%= "#{h(@project.name)}" %>

    <% if @project.users.size > 0 %>

<%= _('Members') %>

<%= @project.users.collect{|u| " ["project_id=? AND completed_at IS NULL",@project.id])}\"  >#{h(u.name)}"}.join(", ") %>

    <% end %>

<%= _('Created') %>

<%= tz.utc_to_local(@project.created_at).strftime("#{current_user.time_format} #{current_user.date_format}") %>

<%= _('Tasks') %>

<%= @project.tasks.count(:conditions => ["completed_at IS NULL"]) %> <%=_ 'Open' %> / <%= @project.tasks.count %> <%= _ 'Total' %>

    <% done = @project.tasks.sum('work_logs.duration', :conditions => ['completed_at IS NULL'], :include => :work_logs )
       total = @project.tasks.sum('duration', :conditions => ["completed_at IS NULL"])
       completed = @project.tasks.sum('work_logs.duration', :conditions => ['completed_at IS NOT NULL'], :include => :work_logs )
       completed_total = @project.tasks.sum('duration', :conditions => ["completed_at IS NOT NULL"])
       total ||= 0
       done ||= 0
       completed ||= 0
       completed_total ||= 0

       done = done / 60
       completed = completed / 60

    %>

<%= _('Remaining Work') %>

      <% if total - done < 0 %>
      -<%= format_duration(-(total-done), current_user.duration_format, current_user.workday_duration, current_user.days_per_week) %>
      <% else %>
      <%= format_duration(total-done, current_user.duration_format, current_user.workday_duration, current_user.days_per_week) %>
      <% end %>
      [<%= format_duration(total, current_user.duration_format, current_user.workday_duration, current_user.days_per_week) %> <%= _ 'Estimated' %>]

<%= _('Work Done') %>

<%= format_duration(completed, current_user.duration_format, current_user.workday_duration, current_user.days_per_week) %> [<%= format_duration(completed_total, current_user.duration_format, current_user.workday_duration, current_user.days_per_week) %> <%= _ 'Estimated' %>]

<%= @project.description %>


Se quita periodista y acomoda fanbox

Se quita periodista y acomoda fanbox

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

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

1

2

3

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

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

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

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

Twittear

<%= _("Novedades") %>

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

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

                    <%end %>

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

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

                <% end %>

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

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

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

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

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

              <% end %>

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

<% end %>

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

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

1

2

3

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

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

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

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

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

Twittear

<%= _("Novedades") %>

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

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

                    <%end %>

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

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

                <% end %>

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

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

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

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

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

              <% end %>

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

<% end %>


update to morgand

update to morgand

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

<% if RAILS_ENV == "development" %>
  <% flash[:error] ||= "You are on our development site -- you should NOT be filling in your app or reference here.  Remove the 'dev.' from your url, and email #{$tech_email_only} with how you got here"
  %>

<% end %>

  <%
=begin
  flash[:error] = %|
  There will be a short, approximately 10-20 minutes, scheduled outage between 12pm-2pm PST

  -CIM team, Wed May 7
  |
=end
  %>

    <title><%= application_title %></title>
    <%= stylesheet_link_tag 'main2', 'connexion_default' %>
    <%= render :partial => "externs/sortable_tables" %>
    <%= javascript_include_tag "prototype", "effects" %>
    <%= render :partial => "externs/load_extern" %>

    <%= connexion_bar if @viewer && session[:login_source] == 'gcx' %>

    <% if RAILS_ENV == 'development' && @debug -%>

debug: <%= @debug -%>

    <% end -%>

      Loading <%=image_tag('spinner.gif')%>

      Saving <%=image_tag('spinner.gif')%>

        <% if @viewer %>

user: <%= @viewer.name %> - <%= link_to "logout", :action => :logout, :controller => :security %>

        <% end %>

        <% if @eg %>

group:
            <%= @eg.to_s_with_eg_path %>
            <%= link_to 'change', scope_event_groups_url %>

        <% end %>

      <% if session[:logo_url] -%>
          <%= image_tag session[:logo_url], :class => 'branding_logo' %>
          <%= application_title %>
      <% else %>

<%= application_title %>

      <% end -%>

    <% if @viewer %>

          <%= new_item "Your Apps", "your_apps", :list %>
          <% if @show_your_project %>
            <%= new_item "Your Projects", "main", :your_projects %>
          <% end %>
          <% unless @viewer.is_student?(@eg) %>
            <%= new_item "App Processing", "main", :your_applications %>
            <% if @eg && @eg.has_your_campuses %>
              <%= new_item "Your Campuses", "main", :your_campuses %>
	          <% end %>
            <% if @viewer.is_eventgroup_coordinator?(@eg) %>
              <%= new_item "Tools", "tools", :index %>
              <%= new_item "Manage Forms", "forms" %>
              <%= new_item "Manage Groups", "event_groups" %>
            <% end %>
            <%= new_item "Manage Projects", "manage_projects", :list %>
            <%= new_item "Reports", "reports", :index %>
          <% end %>
          <%= new_item "Profiles", "profiles", :index%>

    <% end %>

    <% flash.each do |key, msg| -%>
      <% full_msg = msg %>
      <%= content_tag :div, full_msg, :id => "flash_#{key}", :class => 'error flash' %>
    <% end -%>

    <% @notifications.each do |n| -%>
      <% full_msg = n.message
         full_msg = h(full_msg) unless n.allow_html
         full_msg += "
"

         unless n.no_hide_button || @viewer.nil?
           full_msg += link_to_remote('Hide',
            :url => { :controller => 'notification_acknowledgments',
                      :action => 'create', :notification_id => n.id },
            :success => "$(\"notification_#{n.id}\").fade()"
           )
         end
        %>
      <%= content_tag :div, full_msg, :id => "notification_#{n.id}", :class => 'error flash' %>
    <% end -%>

     <% if @viewer && !@eg.nil? && !@viewer.is_student?(@eg) %>

        <%= form_remote_tag :url => { :controller => 'main', :action => :find_people },	:before => "Element.show('loading');", :complete  => "Element.hide('loading');" %>
          Search People:
          <%= text_field 'viewer', 'name', :size => 20, :value => '' %>
          <%= submit_tag "Search" %>
        </form>

    <% end %>

    <% if @title %>

<%=@title%>

    <% end %>

    <%= render_if_possible(controller.controller_name + "/menu") ||
           (@submenu && render_if_possible(@submenu + "/menu"))
    %>

    <% submenu_items_html = yield :submenu %>
    <% if submenu_items_html && !@eg.nil? %>

          <%= submenu_items_html %>

    <% end %>

        <% if @form && params[:controller] != 'forms' %>
          <%= render_if_possible("qe_forms/form_#{@form}") || render_if_possible(:file => "layouts/form_#{@form}")%>
        <% else %>
          <%= yield %>
        <% end %>

    <% if @eg || @show_contact_emails_override %>

        Questions?

        Power to Change - Students - susan.dossantos@powertochange.org

        LeaderImpact Group - judyh@leaderimpactgroup.com

        Athletes in Action - morgand@athletesinaction.com

        Drime - info@drime.com

        MinistryNet - ministrynet@ccci.org

        GAiN - lifeteams@globalaid.net

			General Inquiries:pat.help@powertochange.org

			Online help can be found here.

    <% end %>

    <%= initialize_sortable_tables %>

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

<% if RAILS_ENV == "development" %>
  <% flash[:error] ||= "You are on our development site -- you should NOT be filling in your app or reference here.  Remove the 'dev.' from your url, and email #{$tech_email_only} with how you got here"
  %>

<% end %>

  <%
=begin
  flash[:error] = %|
  There will be a short, approximately 10-20 minutes, scheduled outage between 12pm-2pm PST

  -CIM team, Wed May 7
  |
=end
  %>

    <title><%= application_title %></title>
    <%= stylesheet_link_tag 'main2', 'connexion_default' %>
    <%= render :partial => "externs/sortable_tables" %>
    <%= javascript_include_tag "prototype", "effects" %>
    <%= render :partial => "externs/load_extern" %>

    <%= connexion_bar if @viewer && session[:login_source] == 'gcx' %>

    <% if RAILS_ENV == 'development' && @debug -%>

debug: <%= @debug -%>

    <% end -%>

      Loading <%=image_tag('spinner.gif')%>

      Saving <%=image_tag('spinner.gif')%>

        <% if @viewer %>

user: <%= @viewer.name %> - <%= link_to "logout", :action => :logout, :controller => :security %>

        <% end %>

        <% if @eg %>

group:
            <%= @eg.to_s_with_eg_path %>
            <%= link_to 'change', scope_event_groups_url %>

        <% end %>

      <% if session[:logo_url] -%>
          <%= image_tag session[:logo_url], :class => 'branding_logo' %>
          <%= application_title %>
      <% else %>

<%= application_title %>

      <% end -%>

    <% if @viewer %>

          <%= new_item "Your Apps", "your_apps", :list %>
          <% if @show_your_project %>
            <%= new_item "Your Projects", "main", :your_projects %>
          <% end %>
          <% unless @viewer.is_student?(@eg) %>
            <%= new_item "App Processing", "main", :your_applications %>
            <% if @eg && @eg.has_your_campuses %>
              <%= new_item "Your Campuses", "main", :your_campuses %>
	          <% end %>
            <% if @viewer.is_eventgroup_coordinator?(@eg) %>
              <%= new_item "Tools", "tools", :index %>
              <%= new_item "Manage Forms", "forms" %>
              <%= new_item "Manage Groups", "event_groups" %>
            <% end %>
            <%= new_item "Manage Projects", "manage_projects", :list %>
            <%= new_item "Reports", "reports", :index %>
          <% end %>
          <%= new_item "Profiles", "profiles", :index%>

    <% end %>

    <% flash.each do |key, msg| -%>
      <% full_msg = msg %>
      <%= content_tag :div, full_msg, :id => "flash_#{key}", :class => 'error flash' %>
    <% end -%>

    <% @notifications.each do |n| -%>
      <% full_msg = n.message
         full_msg = h(full_msg) unless n.allow_html
         full_msg += "
"

         unless n.no_hide_button || @viewer.nil?
           full_msg += link_to_remote('Hide',
            :url => { :controller => 'notification_acknowledgments',
                      :action => 'create', :notification_id => n.id },
            :success => "$(\"notification_#{n.id}\").fade()"
           )
         end
        %>
      <%= content_tag :div, full_msg, :id => "notification_#{n.id}", :class => 'error flash' %>
    <% end -%>

     <% if @viewer && !@eg.nil? && !@viewer.is_student?(@eg) %>

        <%= form_remote_tag :url => { :controller => 'main', :action => :find_people },	:before => "Element.show('loading');", :complete  => "Element.hide('loading');" %>
          Search People:
          <%= text_field 'viewer', 'name', :size => 20, :value => '' %>
          <%= submit_tag "Search" %>
        </form>

    <% end %>

    <% if @title %>

<%=@title%>

    <% end %>

    <%= render_if_possible(controller.controller_name + "/menu") ||
           (@submenu && render_if_possible(@submenu + "/menu"))
    %>

    <% submenu_items_html = yield :submenu %>
    <% if submenu_items_html && !@eg.nil? %>

          <%= submenu_items_html %>

    <% end %>

        <% if @form && params[:controller] != 'forms' %>
          <%= render_if_possible("qe_forms/form_#{@form}") || render_if_possible(:file => "layouts/form_#{@form}")%>
        <% else %>
          <%= yield %>
        <% end %>

    <% if @eg || @show_contact_emails_override %>

        Questions?

        Power to Change - Students - susan.dossantos@powertochange.org

        LeaderImpact Group - judyh@leaderimpactgroup.com

        Athletes in Action - morgank@athletesinaction.com

        Drime - info@drime.com

        MinistryNet - ministrynet@ccci.org

        GAiN - lifeteams@globalaid.net

			General Inquiries:pat.help@powertochange.org

			Online help can be found here.

    <% end %>

    <%= initialize_sortable_tables %>


Show name of authority here so clearer.

Show name of authority here so clearer.

<% @title = "Make an annotation on '" + h(@info_request.title) + "'" %>

<% if @existing_comment %>

    <%= user_or_you_capital(@existing_comment.user) %> already
    made this annotation on <%=simple_date(@existing_comment.created_at)%>.

<% end %>

<%= foi_error_messages_for :comment %>

Add an annotation to '<%=request_link(@info_request)%>'

Annotations are so anyone, including you, can help the requester with their request. For example:

<% if [ 'waiting_clarification' ].include?(@info_request.described_state) %>

 Advise on how to best clarify the request.

<% end %>

<% if @info_request.awaiting_description %>
<% end %>

<% if not [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Link to the information requested, if it is already available on the Internet.

 Suggest where else the requester might find the information.

 Offer better ways of wording the request to get the information.

<% end %>

<% if [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Summarise the content of any information returned.

 Say how you've used the information, with links if possible.

 Thank the public authority or <%=h @info_request.user.name %>.

<% end %>
<% if [ 'partially_successful' ].include?(@info_request.described_state) %>

 Suggest how the requester can find the rest of the information.

<% end %>
<% if [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Point to related information, campaigns or forums which may be useful.

<% end %>

<% if [ 'not_held' ].include?(@info_request.described_state) %>

 Ideas on what other documents to request which the authority may hold.

<% end %>
<% if [ 'rejected' ].include?(@info_request.described_state) %>

 Advise on whether the rejection is legal, and how to complain about it if not.

<% end %>

<% if [ 'error_message' ].include?(@info_request.described_state) %>

 You know what caused the error, and can suggest a solution, such as a working email address.

<% end %>
<% if [ 'requires_admin' ].include?(@info_request.described_state) %>

 Your thoughts on what the WhatDoTheyKnow administrators should do about the request.

<% end %>

    <big>Annotations will be posted publicly here, and are
        not sent to <%=h @info_request.public_body.name %>.</big>

<%= render :partial => 'comment/comment_form', :locals => { :track_thing => @track_thing } %>

<% @title = "Make an annotation on '" + h(@info_request.title) + "'" %>

<% if @existing_comment %>

    <%= user_or_you_capital(@existing_comment.user) %> already
    made this annotation on <%=simple_date(@existing_comment.created_at)%>.

<% end %>

<%= foi_error_messages_for :comment %>

Add an annotation to '<%=request_link(@info_request)%>'

Annotations are so anyone, including you, can help the requester with their request. For example:

<% if [ 'waiting_clarification' ].include?(@info_request.described_state) %>

 Advise on how to best clarify the request.

<% end %>

<% if @info_request.awaiting_description %>
<% end %>

<% if not [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Link to the information requested, if it is already available on the Internet.

 Suggest where else the requester might find the information.

 Offer better ways of wording the request to get the information.

<% end %>

<% if [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Summarise the content of any information returned.

 Say how you've used the information, with links if possible.

 Thank the public authority or <%=h @info_request.user.name %>.

<% end %>
<% if [ 'partially_successful' ].include?(@info_request.described_state) %>

 Suggest how the requester can find the rest of the information.

<% end %>
<% if [ 'successful', 'partially_successful' ].include?(@info_request.described_state) %>

 Point to related information, campaigns or forums which may be useful.

<% end %>

<% if [ 'not_held' ].include?(@info_request.described_state) %>

 Ideas on what other documents to request which the authority may hold.

<% end %>
<% if [ 'rejected' ].include?(@info_request.described_state) %>

 Advise on whether the rejection is legal, and how to complain about it if not.

<% end %>

<% if [ 'error_message' ].include?(@info_request.described_state) %>

 You know what caused the error, and can suggest a solution, such as a working email address.

<% end %>
<% if [ 'requires_admin' ].include?(@info_request.described_state) %>

 Your thoughts on what the WhatDoTheyKnow administrators should do about the request.

<% end %>

    <big>Annotations will be posted publicly here, and are
    not sent to the authority.</big>

<%= render :partial => 'comment/comment_form', :locals => { :track_thing => @track_thing } %>


ActionItem791: English review

ActionItem791: English review

<%= _('Contact %s') % profile.name %>

<%= error_messages_for 'contact' %>

<% labelled_form_for :contact, @contact do |f| %>

  <%= required_fields_message %>

  <%= required f.text_field(:name) %>
  <%= required f.text_field(:email) %>
  <%= labelled_form_field _('City and state'), select_city(true) %>
  <%= required f.text_field(:subject) %>
  <%= required f.text_area(:message, :rows => 10, :cols => 60) %>
  <%= labelled_form_field check_box(:contact, :receive_a_copy) + _('I want to receive a copy of the message in my e-mail.'), '' %>

  <%= submit_button(:send, _('Send')) %>

<% end %>

<%= _('Contact %s') % profile.name %>

<%= error_messages_for 'contact' %>

<% labelled_form_for :contact, @contact do |f| %>

  <%= required_fields_message %>

  <%= required f.text_field(:name) %>
  <%= required f.text_field(:email) %>
  <%= labelled_form_field _('City and state'), select_city(true) %>
  <%= required f.text_field(:subject) %>
  <%= required f.text_area(:message, :rows => 10, :cols => 60) %>
  <%= labelled_form_field check_box(:contact, :receive_a_copy) + _('Want to receive a copy of your message in your mailbox?'), '' %>

  <%= submit_button(:send, _('Send')) %>

<% end %>


Change help slightly, to make clear you should ask for documents not ask questions.

<% @title = "Make an " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %>

<% if @existing_request %>

    <%= user_or_you_capital_link(@existing_request.user) %> already
    created the same request on <%=simple_date(@existing_request.created_at)%>.
    You can either view the <a href="<%=request_url(@existing_request)%>">existing request,
    or edit the details below to make a new but similar request.

<% end %>

<%= foi_error_messages_for :info_request, :outgoing_message %>

<% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

Read this before writing your <%=h(@info_request.law_used_full)%> request

Use a search engine first to check that the information isn't already published.

Write your request in simple, precise language.
		<% if @info_request.public_body.info_requests.size > 0 %>

Browse <%= link_to "other requests", public_body_url(@info_request.public_body)  %>
			to '<%= h(@info_request.public_body.name) %>'
			for examples of how to word your request.

		<% else %>

Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request.

		<% end %>

Keep it focussed, if you ask for everything it might cost too much
		and you might get nothing.

Ask for particular documents, rather than general questions.

This site is public, everything you type (except your email address) and any response will be published.

        <% if @info_request.public_body.notes != "" %>

Special note for this authority!

<%=MySociety::Format.make_clickable(@info_request.public_body.notes) %>

        <% end %>

        <% if @info_request.public_body.eir_only? %>

Please ask for environmental information only

The Freedom of Information Act does not apply to <%=h(@info_request.public_body.name)%>.
            However, you have the right to request environmental
            information under a different law (explanation).
            This covers a very wide spectrum of information about the state of
            the natural and built environment, such as:

Air, water, soil, land, flora and fauna (including how these effect
            human beings)

Information on emissions and discharges (e.g. noise, energy,
            radiation, waste materials)

Human health and safety

Cultural sites and built structures (as they may be affected by the
            environmental factors listed above)

Plans and administrative measures that affect these matters

Please only request information that comes under those categories, do not waste your
            time or the time of the public authority by requesting unrelated information.

        <% end %>

			To:
			<%=h(@info_request.public_body.name)%>

			Summary:
			<%= f.text_field :title, :size => 50 %>

			(a one line summary of the information you are requesting,
			e.g.
            <% if @info_request.law_used == 'eir' %>
                'Pollution levels over time for the River Tyne'
            <% else %>
                'Crime statistics by ward level for Wales'
            <% end %>
            )

		<% fields_for :outgoing_message do |o| %>

			Your request:
			<%= o.text_area :body, :rows => 20, :cols => 60 %>

		<% end %>

			Privacy warning: All information that you enter, except
			for your email address, will be displayed publically on this website. Any
			response you get will also be published.

			Can I request information about myself?
			No! (Click here for details)

			<%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
			<%= hidden_field_tag(:submitted_new_request, 1 ) %>
			<%= hidden_field_tag(:preview, 1 ) %>
			<%= submit_tag "Preview your public request" %>

<% end %>

<% @title = "Make an " + h(@info_request.law_used_short) + " request to '" + h(@info_request.public_body.name) + "'" %>

<% if @existing_request %>

    <%= user_or_you_capital_link(@existing_request.user) %> already
    created the same request on <%=simple_date(@existing_request.created_at)%>.
    You can either view the <a href="<%=request_url(@existing_request)%>">existing request,
    or edit the details below to make a new but similar request.

<% end %>

<%= foi_error_messages_for :info_request, :outgoing_message %>

<% form_for(:info_request, @info_request, :html => { :id => 'write_form' }  ) do |f| %>

Read this before writing your <%=h(@info_request.law_used_full)%> request

Use a search engine first to check that the information isn't already published.

Write your request in simple, precise language.
		<% if @info_request.public_body.info_requests.size > 0 %>

Browse <%= link_to "other requests", public_body_url(@info_request.public_body)  %>
			to '<%= h(@info_request.public_body.name) %>'
			for examples of how to word your request.

		<% else %>

Browse <%= link_to "other requests", request_list_url %> for examples of how to word your request.

		<% end %>

Keep it focussed, if you ask for everything it might cost too much
		and you might get nothing.

Top tip: Ask for a particular document you have seen mentioned elsewhere.

This site is public, everything you type (except your email address) and any response will be published.

        <% if @info_request.public_body.notes != "" %>

Special note for this authority!

<%=MySociety::Format.make_clickable(@info_request.public_body.notes) %>

        <% end %>

        <% if @info_request.public_body.eir_only? %>

Please ask for environmental information only

The Freedom of Information Act does not apply to <%=h(@info_request.public_body.name)%>.
            However, you have the right to request environmental
            information under a different law (explanation).
            This covers a very wide spectrum of information about the state of
            the natural and built environment, such as:

Air, water, soil, land, flora and fauna (including how these effect
            human beings)

Information on emissions and discharges (e.g. noise, energy,
            radiation, waste materials)

Human health and safety

Cultural sites and built structures (as they may be affected by the
            environmental factors listed above)

Plans and administrative measures that affect these matters

Please only request information that comes under those categories, do not waste your
            time or the time of the public authority by requesting unrelated information.

        <% end %>

			To:
			<%=h(@info_request.public_body.name)%>

			Summary:
			<%= f.text_field :title, :size => 50 %>

			(a one line summary of the information you are requesting,
			e.g.
            <% if @info_request.law_used == 'eir' %>
                'Pollution levels over time for the River Tyne'
            <% else %>
                'Crime statistics by ward level for Wales'
            <% end %>
            )

		<% fields_for :outgoing_message do |o| %>

			Your request:
			<%= o.text_area :body, :rows => 20, :cols => 60 %>

		<% end %>

			Privacy warning: All information that you enter, except
			for your email address, will be displayed publically on this website. Any
			response you get will also be published.

			Can I request information about myself?
			No! (Click here for details)

			<%= f.hidden_field(:public_body_id, { :value => @info_request.public_body_id } ) %>
			<%= hidden_field_tag(:submitted_new_request, 1 ) %>
			<%= hidden_field_tag(:preview, 1 ) %>
			<%= submit_tag "Preview your public request" %>

<% end %>


removed showing on list call from list view

<div id="<%= active_scaffold_id -%>" class="active-scaffold active-scaffold-<%= controller_id %> <%= "#{params[:controller]}-view" %> <%= active_scaffold_config.theme %>-theme">

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

    <tbody class="before-header" id="<%= before_header_id -%>">

  <div id="<%= active_scaffold_content_id -%>">
    <%= render :partial => 'list' %>

<% if active_scaffold_config.create.show_on_list %>

<% end %>


Refactor footer to work with new styles

Refactor footer to work with new styles

<!DOCTYPE html>

  <title>ProtectedPlanet API</title>

    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="/protectedplanet-frontend/dist/style/main.css" rel="stylesheet">
  <link href="/custom.css" rel="stylesheet">

        protected planet

About

          Resources
          </button>

Terms & Conditions

        <button class="js-trigger">
          Thematic Areas
        </button>

            WDPA
            PARCC
            ICCA
            PAME

          Search

  <%= yield %>

       ProtectedPlanet 2014-<%= Date.today.year %>. All rights reserved

          Send Feedback

  <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">

  <% if settings.environment == :production %>

  <% end %>

<!DOCTYPE html>

  <title>ProtectedPlanet API</title>

    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="/protectedplanet-frontend/dist/style/main.css" rel="stylesheet">
  <link href="/custom.css" rel="stylesheet">

        protected planet

About

          Resources
          </button>

Terms & Conditions

        <button class="js-trigger">
          Thematic Areas
        </button>

            WDPA
            PARCC
            ICCA
            PAME

          Search

  <%= yield %>

     ProtectedPlanet 2014-2016. All rights reserved

        Send Feedback

  <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">

  <% if settings.environment == :production %>

  <% end %>


Arregla algunos espacios

Arregla algunos espacios

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

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

1

2

3

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

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

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

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

Twittear

<%= _("Novedades") %>

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

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

                    <%end %>

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

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

                <% end %>

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

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

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

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

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

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

              <% end %>

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

<% end %>


fix typo in search highlighting

fix typo in search highlighting

		title
		owner
		<% if self.current_user %>distance	<% end %>

	<% items.each do |item| %>

			<%= link_to highlight(h(item.title), @query), polymorphic_path(item) %>
			<%= user_link item.owner %>
			<% if self.current_user %>
				<%= distance item.owner.distance_from self.current_user %>
				<% end %>

	<% end %>

		title
		owner
		<% if self.current_user %>distance	<% end %>

	<% items.each do |item| %>

			<%= link_to highlight(h(item.title), query), polymorphic_path(item) %>
			<%= user_link item.owner %>
			<% if self.current_user %>
				<%= distance item.owner.distance_from self.current_user %>
				<% end %>

	<% end %>


oops, dont escape that

oops, dont escape that

<%
unless get_service_type('cover_image').empty? %>

<% end
cite = @user_request.referent.to_citation
rft_metadata = @user_request.referent.metadata
%>

<%= h(cite[:title_label]) %>:

      <%= h(cite[:title]) %>

<% # Try to warn if this could be a typo. If we have an rft.object_id, then
   # SFX recognized it as an actually existing journal. If not, then it
   # might be a typo. If it came from a manually entered citation, warn them.

   if display_not_found_warning?(@user_request)
%>

(!) Warning:
	<%= AppConfig.param('app_name') %> does not know about a <%= (@user_request.referent.format).downcase %> with this name. Please check your entry.

<%   end %>

<%
@page_title = cite[:title]
if cite[:author]
%>

Author:

  <%= h(cite[:author]) %>

<%
end
if cite[:subtitle] %>

<%= h(cite[:subtitle_label]) %>:
 <%= h(cite[:subtitle]) %>

<%
end

if (cite[:issn] && ! cite[:issn].empty?)  %>

ISSN:

  <%=h(cite[:issn]) %>

<%
end

if (cite[:isbn] && ! cite[:isbn].empty? ) %>

ISBN:

  <%=h(cite[:isbn]) %>

<%
end %>

<% unless cite[:pub].blank?  %>

Publisher:

  <%= h(cite[:pub]) %>

<% end %>

<%
pub = []
pub << date_format(cite[:date]) unless cite[:date].blank?
pub << 'Volume:  '+h(cite[:volume]) unless cite[:volume].blank?
pub << 'Issue:  '+h(cite[:issue]) unless cite[:issue].blank?
pub << 'Page:  '+h(cite[:page]) unless cite[:page].blank?
if pub.length > 0
%>

Published:

  <%= pub.join('  ')%>

<% end %>

<%
  img_st = cover_image_response('medium')
  if img_st
      img = img_st.view_data %>
	<%= tag('img', {'src'=>img[:url],
'class'=>'cover_image',
'alt'=>h(img[:display_text])})%>

<% end
%>

<%
unless get_service_type('cover_image').empty? %>

<% end
cite = @user_request.referent.to_citation
rft_metadata = @user_request.referent.metadata
%>

<%= h(cite[:title_label]) %>:

      <%= h(cite[:title]) %>

<% # Try to warn if this could be a typo. If we have an rft.object_id, then
   # SFX recognized it as an actually existing journal. If not, then it
   # might be a typo. If it came from a manually entered citation, warn them.

   if display_not_found_warning?(@user_request)
%>

(!) Warning:
	<%= AppConfig.param('app_name') %> does not know about a <%= (@user_request.referent.format).downcase %> with this name. Please check your entry.

<%   end %>

<%
@page_title = cite[:title]
if cite[:author]
%>

Author:

  <%= h(cite[:author]) %>

<%
end
if cite[:subtitle] %>

<%= h(cite[:subtitle_label]) %>:
 <%= h(cite[:subtitle]) %>

<%
end

if (cite[:issn] && ! cite[:issn].empty?)  %>

ISSN:

  <%=h(cite[:issn]) %>

<%
end

if (cite[:isbn] && ! cite[:isbn].empty? ) %>

ISBN:

  <%=h(cite[:isbn]) %>

<%
end %>

<% unless cite[:pub].blank?  %>

Publisher:

  <%= h(cite[:pub]) %>

<% end %>

<%
pub = []
pub << date_format(cite[:date]) unless cite[:date].blank?
pub << 'Volume:  '+cite[:volume] unless cite[:volume].blank?
pub << 'Issue:  '+cite[:issue] unless cite[:issue].blank?
pub << 'Page:  '+cite[:page] unless cite[:page].blank?
if pub.length > 0
%>

Published:

  <%= h(pub.join('  '))%>

<% end %>

<%
  img_st = cover_image_response('medium')
  if img_st
      img = img_st.view_data %>
	<%= tag('img', {'src'=>img[:url],
'class'=>'cover_image',
'alt'=>h(img[:display_text])})%>

<% end
%>


git-svn-id: svn+ssh://ko.meadowy.net/home/svn/inside/kozuchi/trunk@475 c938ebee-df10-0410-95fc-be8c4b0ebdd5

    <% if flash[:notice] %>

<%= flash[:notice]%>

    <% end %>

        精算日
        精算データ名
        精算対象口座
        対象取引数
        精算額
        登録日時
        詳細

      <% for s in @settlements %>

	      <% unless s.result_entry -%>
		  請求(ID:<%= s.id%>、「<%= s.name %>」、相手先：<%= s.account ? s.account.name : '？' %>)のデータが破損しています。精算取引がありません。管理者に連絡してください。
		  <% else -%>
          <%= format_date s.result_entry.deal.date %>
          <%= s.name %>
          <%= s.account.name %>
          <%= s.target_entries.size %>
          <%= number_with_delimiter s.target_sum.abs %>
          <%= format_datetime s.created_at %>
		  <% end -%>

		  	<% if s.submitted_settlement_id -%>
			  提出済
			<% elsif s.kind_of?(SubmittedSettlement) %>
			  受理
			<% end -%>

          <%= link_to '詳細', :action => 'view', :id => s.id %>

      <% end %>

    <% if flash[:notice] %>

<%= flash[:notice]%>

    <% end %>

        精算日
        精算データ名
        精算対象口座
        対象取引数
        精算額
        登録日時
        詳細

      <% for s in @settlements %>

	      <% unless s.result_entry -%>
		  請求(ID:<%= s.id%>、「<%= s.name %>」、相手先：<%= s.account ? s.account.name : '？' %>)のデータが破損しています。精算取引がありません。管理者に連絡してください。
		  <% else -%>
          <%= format_date s.result_entry.deal.date %>
          <%= s.name %>
          <%= s.account.name %>
          <%= s.target_entries.size %>
          <%= number_with_delimiter s.target_sum.abs %>
          <%= format_datetime s.created_at %>
		  <% end -%>

		  	<% if s.submitted_settlement_id -%>
			  '提出済'
			<% elsif s.kind_of?(SubmittedSettlement) %>
			  '受理'
			<% end -%>

          <%= link_to '詳細', :action => 'view', :id => s.id %>

      <% end %>


Fix "destroy" link so it works

Fix "destroy" link so it works

Edit basic details of request

<%= error_messages_for 'info_request' %>

<% form_tag '../update/' + @info_request.id.to_s do %>

Title (warning: editing this will break URLs right now)

   <%= text_field 'info_request', 'title', :size => 50  %>

Prominence
   <%= select( 'info_request', "prominence", [ "normal", "backpage", "requester_only", "hidden" ]) %>
   (backpage means hidden from lists/search; hidden means completely hidden; super users can see anything)

   Allow new responses from
   <%= select( 'info_request', "allow_new_responses_from", [ "anybody", "authority_only", "nobody" ] ) %>;
   Handle rejected responses with
   <%= select( 'info_request', "handle_rejected_responses", [ "bounce", "holding_pen", "blackhole" ] ) %>

   ('authority_only' means email From: domain of authority request email or any domain that has previously sent a response; 'nobody' also stops requester making followups; take care when using 'blackhole' which just drops mail)

Described state
   <%= select( 'info_request', "described_state", InfoRequest.enumerate_states) %>
    Awaiting description
   <%= select('info_request', "awaiting_description", [["Yes - needs state updating",true],["No - state is up to date",false]]) %>

(don't forget to change 'awaiting description' when you set described state)

Tags (space separated, can use key:value)

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

<%= submit_tag 'Save changes', :accesskey => 's' %>

Note: To edit the actual request body text, click edit
  next to the specific outgoing message.

<% end %>

<%= link_to 'Show', '../show/' + @info_request.id.to_s %> |
<%= link_to 'List all', '../list' %>

<% form_tag '../destroy/' + @info_request.id.to_s do %>

    This is permanent and irreversible! <%= submit_tag 'Destory request entirely' %>

Use it mainly if someone posts private information, e.g. made a Data Protection request. It
    destroys all responses and tracks as well.

<% end %>

Edit basic details of request

<%= error_messages_for 'info_request' %>

<% form_tag '../update/' + @info_request.id.to_s do %>

Title (warning: editing this will break URLs right now)

   <%= text_field 'info_request', 'title', :size => 50  %>

Prominence
   <%= select( 'info_request', "prominence", [ "normal", "backpage", "requester_only", "hidden" ]) %>
   (backpage means hidden from lists/search; hidden means completely hidden; super users can see anything)

   Allow new responses from
   <%= select( 'info_request', "allow_new_responses_from", [ "anybody", "authority_only", "nobody" ] ) %>;
   Handle rejected responses with
   <%= select( 'info_request', "handle_rejected_responses", [ "bounce", "holding_pen", "blackhole" ] ) %>

   ('authority_only' means email From: domain of authority request email or any domain that has previously sent a response; 'nobody' also stops requester making followups; take care when using 'blackhole' which just drops mail)

Described state
   <%= select( 'info_request', "described_state", InfoRequest.enumerate_states) %>
    Awaiting description
   <%= select('info_request', "awaiting_description", [["Yes - needs state updating",true],["No - state is up to date",false]]) %>

(don't forget to change 'awaiting description' when you set described state)

Tags (space separated, can use key:value)

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

<%= submit_tag 'Save changes', :accesskey => 's' %>

Note: To edit the actual request body text, click edit
  next to the specific outgoing message.

<% end %>

<%= link_to 'Show', '../show/' + @info_request.id.to_s %> |
<%= link_to 'List all', '../list' %>

<% form_tag '../fully_destroy/' + @info_request.id.to_s do %>

    This is permanent and irreversible! <%= submit_tag 'Destory request entirely' %>

Use it mainly if someone posts private information, e.g. made a Data Protection request. It
    destroys all responses and tracks as well.

<% end %>


adicionando javascript  para o google analytics

<!doctype html>

    <% page_title = Karakuri::seo_friendly_title(@path, title, 'agaelebe.com') %>
    <title><%=  page_title %></title>
    <link rel="stylesheet" type="text/css" href="/css/agaelebe.css">
    <link rel="stylesheet" type="text/css" href="/css/syntax.css">
    <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"/>
    <link rel="shortcut icon" type="image/png" href="/images/agaelebe_favicon.png" />
    <link rel="alternate" type="application/atom+xml" title="<%= page_title %> - feed" href="/index.xml" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

      <%= yield %>

Conteúdos

Arquivos do blog

Github

Vídeos no blip.tv

Onde me encontrar

About.me

Twitter

Me adiciona

Participo

Guru-SP

Garoa Hacker Clube

Hugo L. Borges | Alguns direitos reservados | Powered by toto e karakuri

    <% if @config[:disqus] %>
    <%= Karakuri::disqus_comment_count_js(@config[:disqus]) %>
    <% end %>


Fixed typo (yeah, that joke again..) (closes #618)

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

<% @page_heading = 'Articles' %>

  <% content_for('tasks') do %>
    <%= task_edit 'Edit this article', @article.id %>

<%= link_to 'View article on your blog', article_url(@article) %>

  <% end %>

<%=h @article.title %>

<%= article_html(@article) %>

Posted: <%=h @article.created_at.to_formatted_s(:long_weekday) %> by <%=h @article.author %>

Last updated: <%=h @article.updated_at.to_formatted_s(:long_weekday) %>

Published: <%=h (@article.published? ? "Yes" : "No") %>

Categories

    <%= render :partial => 'show_categories' -%>

Attachments

    <%= render :partial => 'show_resources' -%>

<% @page_heading = 'Articles' %>

  <% content_for('tasks') do %>
    <%= task_edit 'Edit this article', @article.id %>

<%= link_to 'View article on your blog', article_url(@article) %>

  <% end %>

<%=h @article.title %>

<%= article_html(@article) %>

Posted: <%=h @article.created_at.to_formatted_s(:long_weekday) %> by <%=h @article.author %>

Lasted updated: <%=h @article.updated_at.to_formatted_s(:long_weekday) %>

Published: <%=h (@article.published? ? "Yes" : "No") %>

Categories

    <%= render :partial => 'show_categories' -%>

Attachments

    <%= render :partial => 'show_resources' -%>


brightbox ad

brightbox ad

git-svn-id: 63e5431e33a10c4701b329fb6d8e0744110cb91e@196 c2b4ead4-481d-0410-ac63-b02590f85e3f

<!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=iso-8859-1" />
  <title>News Sniffer<%= " - " + h(@title) if @title -%></title>
  <%= @head_html unless @head_html.nil? %>
  <link href="/stylesheets/newsniffer.css" media="screen" rel="Stylesheet" type="text/css" />

  <% @discovery_links.each do |l| -%>
  <%= auto_discovery_link_tag(:rss, l.first, :title => l.last) %>
  <% end if @discovery_links -%>

<% cache "#{controller.controller_name}_#{controller.action_name}" do %>

<%= link_to 'Home', {:controller => 'pages',
      	      :action => 'summary' },
              :class => (controller.controller_name == 'pages' and controller.action_name == 'summary') ? "selected" : "" %>

<%= link_to 'About', { :controller => 'pages',
      	      :action => :about }, :class => (controller.controller_name == 'pages' and controller.action_name != "summary") ? "selected" : "" %>

<%= link_to 'Watch Your Mouth',
      	      { :controller => 'bbchysthreads', :action => 'mostcensored', :page => nil, },
              :title => 'BBC Have Your Say censored comments',
              :class => controller.controller_name =~ /^bbchys.*/ ? "selected" : ""%>

<%= link_to 'Revisionista',
      	      { :controller => 'news_articles', :action => 'list_revisions', :page => nil, },
              :title => 'Corporate news article revisions',
              :class => controller.controller_name == "news_articles" ? "selected" : ""%>

Blog

        <%= render :partial => "partials/sidebar_wym" if
          controller.controller_name =~ /bbchys/ -%>
        <%= render :partial => "partials/sidebar_pages" if
          controller.controller_name == 'pages' %>
<% end -%>
        <%= render :partial => "partials/sidebar_revisionista" if
          controller.controller_name == "news_articles" -%>

        <% if flash[:notice] -%>

<%= flash[:notice] %>

        <%= javascript_tag visual_effect(:highlight, 'notice',
        	:duration => 2) %>
        <% end -%>
        <% if flash[:error] -%>

<%= flash[:error] %>

        <%= javascript_tag visual_effect(:highlight, 'error', :duration => 2)%>
        <% end -%>

        <%= yield %>

        Ruby on Rails hosting by Brightbox


git-svn-id: svn+ssh://ko.meadowy.net/home/svn/inside/kozuchi/trunk@109 c938ebee-df10-0410-95fc-be8c4b0ebdd5

    <%= render (:partial => "calendar", :object => 'update_account_deals') %>

    <div id="book">
      <%= render :partial => "account_deals" %>
    </div>

    <%= form_remote_tag (:update => 'book', :url => {:action => 'update_account_deals'} ) %>

        <%= collection_select("account", "id", @accounts, :id, :name, {}, "onChange" => "document.forms[0].onsubmit();") %>

      <%= hidden_field("target_month", "year") %>
      <%= hidden_field("target_month", "month") %>
    <%=end_form_tag%>

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


Add links to frontpage balloons

Add links to frontpage balloons

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

You have the right to ask for information, they are legally obliged to respond

About AskTheEU

Lorem ipsum dolor sit amet,
        consectetuer adipiscing elit.

            <%= link_to _('More'), help_about_url %>

Make
Your Request

Lorem isum dolor sit amet, consectetuer
        adipiscing elit, sed diam nonummy nibh.

            <%= link_to _("Request"), select_authority_url %>

Search Requests

Lorem ipsum dolor sit amet,
        consectetuer adipiscing elit.

            <%= link_to _("Search"), request_list_successful_url %>

EU institutions

What can you ask and to whom?

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
            euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad
            minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip
            ex ea commodo consequat.

Video

News

03-09-2011

            Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
            nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

03-09-2011

            Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
            nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

View all news

<% end %>

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

You have the right to ask for information, they are legally obliged to respond

About AskTheEU

Lorem ipsum dolor sit amet,
        consectetuer adipiscing elit.

            More

Make
Your Request

Lorem isum dolor sit amet, consectetuer
        adipiscing elit, sed diam nonummy nibh.

            Request

Search Requests

Lorem ipsum dolor sit amet,
        consectetuer adipiscing elit.

            Search

EU institutions

What can you ask and to whom?

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
            euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad
            minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip
            ex ea commodo consequat.

Video

News

03-09-2011

            Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
            nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

03-09-2011

            Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
            nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

View all news

<% end %>


start of work on UI

start of work on UI

<% form_tag :action => "finish" do %>

Area to Export

    <%= text_field_tag('maxlat', nil, :size => 10, :class => "export_bound") %>

    <%= text_field_tag('minlon', nil, :size => 10, :class => "export_bound") %>
    <%= text_field_tag('maxlon', nil, :size => 10, :class => "export_bound") %>

    <%= text_field_tag('minlat', nil, :size => 10, :class => "export_bound") %>

      Manually select a different area

Format to Export

      <%= radio_button_tag("format", "osm") %>OpenStreetMap XML Data

      <%= radio_button_tag("format", "mapnik") %>Mapnik Image

      <%= radio_button_tag("format", "osmarender") %>Osmarender Image

      <%= radio_button_tag("format", "html") %>Embeddable HTML

Licence

OpenStreetMap data is licensed under the Creative Commons Attribution-ShareAlike 2.0 license.

Options

Format <%= select_tag("mapnik_format", options_for_select([["PNG", "png"], ["JPEG", "jpeg"], ["SVG", "svg"], ["PDF", "pdf"], ["Postscript", "ps"]], "png")) %>

Scale 1 : <%= text_field_tag("mapnik_scale", nil, :size => 8) %> (max 1 : )

Image Size  x

Options

Format <%= select_tag("osmarender_format", options_for_select([["PNG", "png"], ["JPEG", "jpeg"]], "png")) %>

Zoom <%= select_tag("osmarender_zoom", options_for_select([4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17])) %>

    <textarea id="export_html_text"></textarea>

<%= submit_tag "Export", :id => "export_commit" %>

<% end %>

<% form_tag :action => "finish" do %>

Area to Export

    <%= text_field_tag('maxlat', nil, :size => 10, :class => "export_bound") %>

    <%= text_field_tag('minlon', nil, :size => 10, :class => "export_bound") %>
    <%= text_field_tag('maxlon', nil, :size => 10, :class => "export_bound") %>

    <%= text_field_tag('minlat', nil, :size => 10, :class => "export_bound") %>

      Manually select a different area

Format to Export

      <%= radio_button_tag("format", "osm") %>OpenStreetMap XML Data

      <%= radio_button_tag("format", "mapnik") %>Mapnik Image

      <%= radio_button_tag("format", "osmarender") %>Osmarender Image

Licence

OpenStreetMap data is licensed under the Creative Commons Attribution-ShareAlike 2.0 license.

Options

Format <%= select_tag("mapnik_format", options_for_select([["PNG", "png"], ["JPEG", "jpeg"], ["SVG", "svg"], ["PDF", "pdf"], ["Postscript", "ps"]], "png")) %>

Scale 1 : <%= text_field_tag("mapnik_scale", nil, :size => 8) %> (max 1 : )

Image Size  x

Options

Format <%= select_tag("osmarender_format", options_for_select([["PNG", "png"], ["JPEG", "jpeg"]], "png")) %>

Zoom <%= select_tag("osmarender_zoom", options_for_select([4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17])) %>

<%= submit_tag "Export", :id => "export_commit" %>

<% end %>


add message about mpdtool

add message about mpdtool

<%
@student = @profile.class == Acceptance

if @student
  @acceptance = @profile
  @appln = @acceptance.appln
end

%>

<%= @user.viewer.name %> <%= @profile.project.title %>

	<% if @student %>

You have been accepted to <%= @acceptance.project.title %>
	   <% if @acceptance.as_intern? %> as an intern<% end %>

You can use the mpdtool to walk you through the process of support raising (MPD stands for Ministry Partner Development).

<%= render :partial => "your_apps/always_edit_appln" %>

<%= render :partial => "your_apps/support_coach" %>
	<% end %>

Please ensure your costing information is accurate by clicking on the costing tab.

Please enter the following project code at the top of Record of Funds form you send to Power To Change headquarters: <%= if @profile.project.cost_center != nil then @profile.project.cost_center.to_s + " - " end %><%= if @profile.motivation_code != nil then @profile.motivation_code end %>. Please send all donations to 20385 64th Avenue, Langley, BC V2Y 1N5

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

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

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

<%
@student = @profile.class == Acceptance

if @student
  @acceptance = @profile
  @appln = @acceptance.appln
end

%>

<%= @user.viewer.name %> <%= @profile.project.title %>

	<% if @student %>

You have been accepted to <%= @acceptance.project.title %>
	   <% if @acceptance.as_intern? %> as an intern<% end %>

<%= render :partial => "your_apps/always_edit_appln" %>

<%= render :partial => "your_apps/support_coach" %>
	<% end %>

Please ensure your costing information is accurate by clicking on the costing tab.

Please enter the following project code at the top of Record of Funds form you send to Power To Change headquarters: <%= if @profile.project.cost_center != nil then @profile.project.cost_center.to_s + " - " end %><%= if @profile.motivation_code != nil then @profile.motivation_code end %>. Please send all donations to 20385 64th Avenue, Langley, BC V2Y 1N5

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

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

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


correction of sentence

correction of sentence

git-svn-id: e70f47238a868777ecefe75ba01929cffb2d8127@596 d8b24053-1f83-4035-b5c3-ce8b92cd91ad

Bündel aus einer Paketliste erstellen

Hier kannst du ein Bündel aus einer vorhandenen Paketliste erstellen.
Die Liste muss in Form einter Textdatei vorliegen (plain text),
mit einem Paketnamen pro Zeile.

Die Liste der auf deinem Computer installierten Pakete kannst du zum Beispiel mit

deborphan -a | awk '{print $2}' > packages.list

herausfinden. (Dazu muss das Paket <%= link_to 'deborphan', package_url(Package.find(:first,:conditions =>{:name => "deborphan"}))%> installiert sein. Die erzeugte Liste enthält nur eine minimale Liste von (Meta-)Paketen, die notwendig ist, um deine
Installation komplett wiederherzustellen.)

<%= form_tag({:controller => :cart, :id => :current_user.id, :action => :create_from_list}, :multipart => true)%>

Datei, die die Paketliste enthält, auswählen:

<%= file_field(:datei, :attachment) %>

<%= submit_tag('Erstellen') %>

</form>

Bündel aus einer Paketliste erstellen

Hier kannst du ein Bündel aus einer vorhandenen Paketliste erstellen.
Die Liste muss in Form einter Textdatei vorliegen (plain text),
mit einem Paketnamen pro Zeile.

Die Liste der auf deinem Computer installierten Pakete kannst du zum Beispiel mit

deborphan -a | awk '{print $2}' > packages.list

herausfinden. (Dazu muss das Paket <%= link_to 'deborphan', package_url(Package.find(:first,:conditions =>{:name => "deborphan"}))%> installiert sein. Die erzeugte Liste enthält nur eine minimal notwendige Anzahl von (Meta-)Paketen, um deine
Installation komplett wiederherzustellen.)

<%= form_tag({:controller => :cart, :id => :current_user.id, :action => :create_from_list}, :multipart => true)%>

Datei, die die Paketliste enthält, auswählen:

<%= file_field(:datei, :attachment) %>

<%= submit_tag('Erstellen') %>

</form>


Fixed typo.

Fixed typo.

<% unless @form.errors.empty? -%>

Sorry, but that's just not good enough.

<% end -%>

<form action="" method="post" class="standard">
	<fieldset>
		<legend>Details</legend>

		Competition title

Only use	alphanumerics, spaces, and hyphens in the title.
			Maximum of 64 characters.

		<%= error_message_on "form", "title" %>

<%= text_field "form", "title", :class => 'important textfield', :id => 'in-title' %>

		Short label

If this competition has a vary long title then you can also
			provide an optional shorter name for it that will be used in menus and
			where space is tight. Maximum of 32 characters.

		<%= error_message_on "form", "label" %>

<%= text_field "form", "label", :class => 'textfield', :id => 'in-label' %>

		Summary

Perhaps a bit about the rules and format of the competition.

		<%= error_message_on "form", "summary" %>

<%= text_area "form", "summary", :rows => 10, :class => 'textarea', :id => 'in-summary' %>

	</fieldset>

	<% if @form.new_record? %><fieldset>
		<legend>Format</legend>

		Format

Select a preset format or elect to make your own. You can tweak the format later if needed.

<%= select "form", "format", Competition.formats, :id => 'in-format' %>

	</fieldset><% end %>

	<fieldset class="finish">
		<legend>Finish up</legend>
		<input type="submit" value="Save competition">
	</fieldset>
</form>

<% unless @form.errors.empty? -%>

Sorry, but that's just not good enough.

<% end -%>

<form action="" method="post" class="standard">
	<fieldset>
		<legend>Details</legend>

		Competition title

Only use	alphanumerics, spaces, and hyphens in the title.
			Maximum of 64 characters.

		<%= error_message_on "form", "title" %>

<%= text_field "form", "title", :class => 'important textfield', :id => 'in-title' %>

		Short label

If this competition has a vary long title then you can also
			provide an optional shorter name for it that will be used in menus and
			where space it tight. Maximum of 32 characters.

		<%= error_message_on "form", "label" %>

<%= text_field "form", "label", :class => 'textfield', :id => 'in-label' %>

		Summary

Perhaps a bit about the rules and format of the competition.

		<%= error_message_on "form", "summary" %>

<%= text_area "form", "summary", :rows => 10, :class => 'textarea', :id => 'in-summary' %>

	</fieldset>

	<% if @form.new_record? %><fieldset>
		<legend>Format</legend>

		Format

Select a preset format or elect to make your own. You can tweak the format later if needed.

<%= select "form", "format", Competition.formats, :id => 'in-format' %>

	</fieldset><% end %>

	<fieldset class="finish">
		<legend>Finish up</legend>
		<input type="submit" value="Save competition">
	</fieldset>
</form>


edit review fixed

edit review fixed

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

Edit Review

<%if @files.size == 0 and @assgt.wiki_type.name == "No"%>%>
This submission is missing.
<%else%>
Submitted Files

<%end%>

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

DokuWiki Review Links:

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

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

MediaWiki Review Links:

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

<% end %>

<% for file in @files %>

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

<% end %>

<%= start_form_tag :action => 'update_review' %>
    <% i = 0;
        for @question in @questions %>
          <%=@question.txt%>

          <% @rs = ReviewScore.find(:first,:conditions => ["review_id = ? AND question_id = ?", @review.id, @question.id])%>
          <input id=new_review_score_<%=i%>_comments name=new_review_score[<%=i%>][comments] value = "<%=@rs.comments.gsub(/\"/,'"')%>"  size=70 type=text />
          <% if @question.true_false? %>
              <select id=new_score_<%=i%> name=new_score[<%=i%>]>
                 <option value="<%=@min%>" <%if @min==@rs.score%>selected="selected"<%end%> >false</option>
                 <option value="<%=@max%>" <%if @max==@rs.score%>selected="selected"<%end%> >true</option>
              </select>

          <% else %>
              <select id=new_score_<%=i%> name=new_score[<%=i%>]>
                  <% for j in @min..@max %>
                    <option value="<%=j%>" <%if j==@rs.score%>selected="selected"<%end%> ><%=j%></option>
                  <% end %>
              </select>

          <% end %>
          <input id=new_question_<%=i%> name=new_question[<%=i%>] value=<%=@question.id%> type=hidden />
    <% i += 1;
    end %>
	<textarea id=new_review_comments name=new_review[comments]><%=@review.additional_comment%></textarea>
    <%= hidden_field_tag('review_id', @review.id) %>
    <%= hidden_field_tag('mapping_id', @mapping.id) %>
    <%= hidden_field_tag('assgt_id', @assgt.id) %>
    <%= submit_tag "Edit Review", :name=>"save" %>
<%= end_form_tag %>

<%= link_to 'Back', :action => 'list_reviews', :id => @assgt.id %>

Edit Review

<%if @files.size == 0%>
This submission is missing.
<%else%>
Submitted Files

<%end%>

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

DokuWiki Review Links:

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

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

MediaWiki Review Links:

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

<% end %>

<% for file in @files %>

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

<% end %>

<%= start_form_tag :action => 'update_review' %>
    <% i = 0;
        for @question in @questions %>
          <%=@question.txt%>

          <% @rs = ReviewScore.find(:first,:conditions => ["review_id = ? AND question_id = ?", @review.id, @question.id])%>
          <input id=new_review_score_<%=i%>_comments name=new_review_score[<%=i%>][comments] value = "<%=@rs.comments.gsub(/\"/,'"')%>"  size=70 type=text />
          <% if @question.true_false? %>
              <select id=new_score_<%=i%> name=new_score[<%=i%>]>
                 <option value="<%=@min%>" <%if @min==@rs.score%>selected="selected"<%end%> >false</option>
                 <option value="<%=@max%>" <%if @max==@rs.score%>selected="selected"<%end%> >true</option>
              </select>

          <% else %>
              <select id=new_score_<%=i%> name=new_score[<%=i%>]>
                  <% for j in @min..@max %>
                    <option value="<%=j%>" <%if j==@rs.score%>selected="selected"<%end%> ><%=j%></option>
                  <% end %>
              </select>

          <% end %>
          <input id=new_question_<%=i%> name=new_question[<%=i%>] value=<%=@question.id%> type=hidden />
    <% i += 1;
    end %>
	<textarea id=new_review_comments name=new_review[comments]><%=@review.additional_comment%></textarea>
    <%= hidden_field_tag('review_id', @review.id) %>
    <%= hidden_field_tag('mapping_id', @mapping.id) %>
    <%= hidden_field_tag('assgt_id', @assgt.id) %>
    <%= submit_tag "Edit Review", :name=>"save" %>
<%= end_form_tag %>

<%= link_to 'Back', :action => 'list_reviews', :id => @assgt.id %>


Removed unused view.

Removed unused view.

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

Courses available for <%= @assignment.name %>

Select a course to which the assignment will belong:

<%= start_form_tag :action => 'update', :id => @assignment.id %>
<% for course in @courses %>
<%= radio_button_tag 'assignment[course_id]',course.id %><%= course.name %>

<% end %>

<input type='submit' value='Save' />
<%= end_form_tag %>

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


More tweaks. It might help if I understood the syntax better.

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

<% link_to "Return to diff overview", {:controller => 'repositories', :action => 'revision', :rev => @rev}, :title => "Return to overview" if @rev %>
<% link_to "Return to diff overview", {:controller => 'repositories', :action => 'revision', :rev => @rev_to}, :title => "Return to overview" if @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 %>

<% link_to("Return to diff overview", {:controller => 'repositories', :action => 'revision', :id => params[:project], :rev => @rev}, :title => "Return to overview") if @rev %>
<% link_to("Return to diff overview", {:controller => 'repositories', :action => 'revision', :id => params[:project], :rev => @rev_to}, :title => "Return to overview") if @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 %>


A couple more useful admin links.

A couple more useful admin links.

<% @title = "Public authority - " + h(@public_body.name) %>

<%=@title%>

<%
   columns = PublicBody.content_columns
   columns.delete_if {|c| ['last_edit_comment'].include?(c.name)}

   for column in columns %>
  <%= column.human_name %>:
  <% if column.name == 'home_page' and !column.name.empty? %>
    <%= link_to(h(@public_body.send(column.name)), @public_body.send(column.name))  %>
  <% elsif column.name == 'request_email' and !column.name.empty? %>
    <%= link_to(h(@public_body.send(column.name)), "mailto:" + @public_body.send(column.name))  %>
  <% else %>
      <%=h @public_body.send(column.name) %>
  <% end %>

<% end %>
Calculated home page:
<% if !@public_body.calculated_home_page.nil? %>
    <%= link_to(h(@public_body.calculated_home_page), @public_body.calculated_home_page) %>
<% else %>
    *unknown*
<% end %>

Tags: <%=h @public_body.tag_string %>

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

History

<%
    history_columns = PublicBody.content_columns
    history_columns.delete_if {|c| ['created_at', 'updated_at', 'first_letter'].include?(c.name)}
    for column in history_columns %>
  <%= column.human_name %>
<% end %>
Updated at

<% for historic_public_body in @public_body.versions.reverse %>
      <tr class="<%= cycle('odd', 'even') %>">
    <% for column in history_columns %>
      <%
        value = h(historic_public_body.send(column.name))
        if column.name == 'last_edit_comment'
            value = historic_public_body.last_edit_comment_for_html_display
        end
        # Highlight entries which have changed since previous version
        changed = (not ['version', 'last_edit_editor', 'last_edit_comment'].include?(column.name)) && ((historic_public_body.send(column.name) != @public_body.versions[historic_public_body.version - 2].send(column.name)) || (historic_public_body.version == 1)) %>
      <td <%= changed ? ' class="entry_changed" ': '' %> >
      <%=value%>

    <% end %>
      <%=h historic_public_body.updated_at %>

<% end %>

Requests

<%= render :partial => 'admin_request/some_requests', :locals => { :info_requests => @public_body.info_requests } %>

Track things

<%= render :partial => 'admin_track/some_tracks', :locals => { :track_things => @public_body.track_things } %>

<% @title = "Public authority - " + h(@public_body.name) %>

<%=@title%>

<%
   columns = PublicBody.content_columns
   columns.delete_if {|c| ['last_edit_comment'].include?(c.name)}

   for column in columns %>
  <%= column.human_name %>:
  <%=h @public_body.send(column.name) %>

<% end %>
Calculated home page:
<% if !@public_body.calculated_home_page.nil? %>
    <%= link_to(h(@public_body.calculated_home_page), @public_body.calculated_home_page) %>
<% else %>
    *unknown*
<% end %>

Tags: <%=h @public_body.tag_string %>

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

History

<%
    history_columns = PublicBody.content_columns
    history_columns.delete_if {|c| ['created_at', 'updated_at', 'first_letter'].include?(c.name)}
    for column in history_columns %>
  <%= column.human_name %>
<% end %>
Updated at

<% for historic_public_body in @public_body.versions.reverse %>
      <tr class="<%= cycle('odd', 'even') %>">
    <% for column in history_columns %>
      <%
        value = h(historic_public_body.send(column.name))
        if column.name == 'last_edit_comment'
            value = historic_public_body.last_edit_comment_for_html_display
        end
        # Highlight entries which have changed since previous version
        changed = (not ['version', 'last_edit_editor', 'last_edit_comment'].include?(column.name)) && ((historic_public_body.send(column.name) != @public_body.versions[historic_public_body.version - 2].send(column.name)) || (historic_public_body.version == 1)) %>
      <td <%= changed ? ' class="entry_changed" ': '' %> >
      <%=value%>

    <% end %>
      <%=h historic_public_body.updated_at %>

<% end %>

Requests

<%= render :partial => 'admin_request/some_requests', :locals => { :info_requests => @public_body.info_requests } %>

Track things

<%= render :partial => 'admin_track/some_tracks', :locals => { :track_things => @public_body.track_things } %>