Show edit comments in public body version history

<% @title = _("Public authority - {{name}}", :name => h(@public_body.name)) %>

<%=@title%>

    <% @public_body.for_admin_column do |name, value, type, column_name| %>

          <%=name%>

          <% if column_name == 'home_page' %>
            <%= link_to(h(value), value)  %>
          <% elsif column_name == 'request_email' %>
            <%= link_to(h(value), "mailto:#{value}")  %>
              <% unless @public_body.is_requestable? %>
                <%=_("not requestable due to: {{reason}}", :reason => h(@public_body.not_requestable_reason))%><% if @public_body.is_followupable? %>; <%=_("but followupable")%><% end %>
              <% end %>
          <% else %>
              <%=h value %>
          <% end %>

    <% end %>

        <%=_("Calculated home page")%>

        <% unless @public_body.calculated_home_page.nil? %>
          <%= link_to(h(@public_body.calculated_home_page), @public_body.calculated_home_page) %>
        <% else %>
          <%=_("*unknown*")%>
        <% end %>

        <%=_("Tags")%>

        <%= render :partial => 'tags', :locals => { :body => @public_body} %>

<%= link_to _("Edit"), "../edit/#{@public_body.id}", :class => "btn btn-primary" %>
<% unless @public_body.url_name.nil? %>
  <%=link_to _("Public page"), main_url(public_body_url(@public_body)), :class => "btn" %>
<% else %>
  <%=_("Public page not available")%>
<% end %>

History

<%# There may be an option to versions() to specify order, but I can't find it. TB 2009-03-09 %>
<% versions = @public_body.reverse_sorted_versions; versions.each_with_index do |historic_public_body, i| %>

        <%= _("Version {{version}}", :version => historic_public_body.version)%>

      <%= I18n.l(historic_public_body.updated_at, :format => "%e %B %Y %H:%M:%S") %>
      (<%= _('{{length_of_time}} ago', :length_of_time => time_ago_in_words(historic_public_body.updated_at)) %>)

    <% if i == versions.length - 1 %>

        <%=_("This is the first version.")%>

    <% else %>

“<%= h(historic_public_body.last_edit_comment) %>”

          <% historic_public_body.compare(versions[i+1]) do |change| %>

<%= _("{{thing_changed}} was changed from {{from_value}} to {{to_value}}", :thing_changed => change[:name], :from_value => (change[:from] or "-"), :to_value => (change[:to] or "-")) %>

          <% end %>

    <% end %>

<% 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, :include_destroy => true } %>

<% @title = _("Public authority - {{name}}", :name => h(@public_body.name)) %>

<%=@title%>

    <% @public_body.for_admin_column do |name, value, type, column_name| %>

          <%=name%>

          <% if column_name == 'home_page' %>
            <%= link_to(h(value), value)  %>
          <% elsif column_name == 'request_email' %>
            <%= link_to(h(value), "mailto:#{value}")  %>
              <% unless @public_body.is_requestable? %>
                <%=_("not requestable due to: {{reason}}", :reason => h(@public_body.not_requestable_reason))%><% if @public_body.is_followupable? %>; <%=_("but followupable")%><% end %>
              <% end %>
          <% else %>
              <%=h value %>
          <% end %>

    <% end %>

        <%=_("Calculated home page")%>

        <% unless @public_body.calculated_home_page.nil? %>
          <%= link_to(h(@public_body.calculated_home_page), @public_body.calculated_home_page) %>
        <% else %>
          <%=_("*unknown*")%>
        <% end %>

        <%=_("Tags")%>

        <%= render :partial => 'tags', :locals => { :body => @public_body} %>

<%= link_to _("Edit"), "../edit/#{@public_body.id}", :class => "btn btn-primary" %>
<% unless @public_body.url_name.nil? %>
  <%=link_to _("Public page"), main_url(public_body_url(@public_body)), :class => "btn" %>
<% else %>
  <%=_("Public page not available")%>
<% end %>

History

<%# There may be an option to versions() to specify order, but I can't find it. TB 2009-03-09 %>
<% versions = @public_body.reverse_sorted_versions; versions.each_with_index do |historic_public_body, i| %>

        <%= _("Version {{version}}", :version => historic_public_body.version)%>

      <%= I18n.l(historic_public_body.updated_at, :format => "%e %B %Y %H:%M:%S") %>
      (<%= _('{{length_of_time}} ago', :length_of_time => time_ago_in_words(historic_public_body.updated_at)) %>)

   <% if i == versions.length - 1 %>

      <%=_("This is the first version.")%>

   <% else %>

    <%historic_public_body.compare(versions[i+1]) do |change|%>

<%= _("{{thing_changed}} was changed from {{from_value}} to {{to_value}}", :thing_changed => change[:name], :from_value => (change[:from] or "-"), :to_value => (change[:to] or "-")) %>

    <%end%>

   <% end %>

<% 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, :include_destroy => true } %>


Added check for autoselecting combo box.

<%= error_messages_for 'article' %>

Title

<%= text_field 'article', 'title', :size => 30  %>

Tags

<%= text_field 'article', 'tags', :size => 30  %>

Body

<%= text_area 'article', 'body', :cols => 40, :rows => 10  %>

Created at

<%= date_select 'article', 'created_at'  %>

Updated at

<%= date_select 'article', 'updated_at'  %>

Published

<select id="article_published" name="article[published]">
  <option value="false" <%= @article.published == false ? "selected" : ""-%>>False</option>
  <option value="true"  <%= @article.published == true ? "selected" : ""-%>>True</option>
</select>

<%= error_messages_for 'article' %>

Title

<%= text_field 'article', 'title', :size => 30  %>

Tags

<%= text_field 'article', 'tags', :size => 30  %>

Body

<%= text_area 'article', 'body', :cols => 40, :rows => 10  %>

Created at

<%= date_select 'article', 'created_at'  %>

Updated at

<%= date_select 'article', 'updated_at'  %>

Published

<select id="article_published" name="article[published]">
  <option value="false" selected>False</option>
  <option value="true">True</option>
</select>


Hide Schedule tab from staff/parent until project editing is over. Staff/parent project rankings should not be requested until project list is finalized.

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

  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>PD: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'main', :media=>'screen,print' %>
  <%= stylesheet_link_tag 'scaffold', :media=>'screen,print' %>
  <%= javascript_include_tag 'functions' %>
  <%= javascript_include_tag 'jquery' %>

      <%= link_to(image_tag("pd-logo.png", :alt=>'Project Days'), :action=>'index') %>

     <% if(@current_user) %>
       <%=h @current_user.name %>
       – [logout]
     <% end %>

      <%= tab "Projects", "Projects", :action=>'projects' %>
      <% if (@current_user.teacher? && (@can_see_sched||@can_edit_people)) %>
        <%= tab "Class Lists", "Class Lists", :action=>'classroom', :id=>@current_user.classroom %>
      <% end %>
      <% if (@current_user.adult? && !@can_edit) %>
        <%= tab "My Schedule", "My Schedule", :action=>'schedule' %>
      <% end %>
      <% if (@current_user.teacher?) %>
        <%= tab "Reviews", "Reviews", :action=>'reviews' %>
      <% end %>
      <%= tab "FAQ", "FAQ", :action =>'faq'%>

<%= flash[:notice] %>

    <%= yield :layout %>

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

  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>PD: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'main', :media=>'screen,print' %>
  <%= stylesheet_link_tag 'scaffold', :media=>'screen,print' %>
  <%= javascript_include_tag 'functions' %>
  <%= javascript_include_tag 'jquery' %>

      <%= link_to(image_tag("pd-logo.png", :alt=>'Project Days'), :action=>'index') %>

     <% if(@current_user) %>
       <%=h @current_user.name %>
       – [logout]
     <% end %>

      <%= tab "Projects", "Projects", :action=>'projects' %>
      <% if (@current_user.teacher? && (@can_see_sched||@can_edit_people)) %>
        <%= tab "Class Lists", "Class Lists", :action=>'classroom', :id=>@current_user.classroom %>
      <% end %>
      <% if (@current_user.adult?) %>
        <%= tab "My Schedule", "My Schedule", :action=>'schedule' %>
      <% end %>
      <% if (@current_user.teacher?) %>
        <%= tab "Reviews", "Reviews", :action=>'reviews' %>
      <% end %>
      <%= tab "FAQ", "FAQ", :action =>'faq'%>

<%= flash[:notice] %>

    <%= yield :layout %>


Deleted partial that was not needed.

Deleted partial that was not needed.

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


Update Ring Website - website/cgi-bin/footer.rhtml

 	    Basic

Applications developed in little hours

Introduction

Language Design

Building From Source Code

How to contribute?

Using Ring Notepad

Getting Started - First Style

Getting Started - Second Style

Getting Started - Third Style

Variables

Operators

Control Structures - First Style

Control Structures - Second Style

Control Structures - Third Style

Getting Input

Functions - First Style

Functions - Second Style

Functions - Third Style

Program Structure

Lists

Strings

Date and Time

Check Data Type and Conversion

Mathematical Functions

Files

System Functions

Eval() and Debugging

Demo Programs

 	    Intermediate

ODBC Functions

MYSQL Functions

SQLite Functions

PostgreSQL Functions

Security and Internet Functions

Object Oriented Programming

Functional Programming (FP)

Reflection and Meta-programming

Stdlib Functions

Stdlib Classes

Declarative Programming using Nested Structures

Natural language programming

Using the Natural Library

Scope Rules for Variables and Attributes

Scope Rules for Functions and Methods

Syntax Flexibility

Distributing Ring Applications

Distributing Ring Applications using Ring2EXE

The Ring Package Manager (RingPM)

The Type Hints Library

Web Development (CGI Library)

Deploying Web Applications in the Cloud

Using RingLibCurl

Using RingZip

Graphics and 2D Games programming using RingAllegro

Using RingLibSDL

Demo Project - Game Engine for 2D Games

Building Games for Android

 	    Advanced

Using RingOpenGL and RingFreeGLUT for 3D Graphics

Using RingOpenGL and RingAllegro for 3D Graphics

The Gold Magic 800 Game

Using RingRayLib

Desktop and Mobile development using RingQt

Building RingQt Applications for Mobile

Objects Library for RingQt Application

Using the Form Designer

Using Qt3D

Low Level Functions

The Trace Library and the Interactive Debugger

Extension using the C/C++ languages

Embedding Ring Language in C/C++ Programs

Tutorial: Ring Extensions in C/C++

Command Line Options

Code Generator for wrapping C/C++ Libraries

Create your first extension

Frequently Asked Questions (FAQ)

			  Reference

RingLibCurl Functions Reference

RingLibZip Functions Reference

RingAllegro Functions Reference

RingQt Classes Reference

General Information

Language Reference

              Group
              Resources
              Team

 	    Basic

Applications developed in little hours

Introduction

Language Design

Building From Source Code

How to contribute?

Using Ring Notepad

Getting Started - First Style

Getting Started - Second Style

Getting Started - Third Style

Variables

Operators

Control Structures - First Style

Control Structures - Second Style

Control Structures - Third Style

Getting Input

Functions - First Style

Functions - Second Style

Functions - Third Style

Program Structure

Lists

Strings

Date and Time

Check Data Type and Conversion

Mathematical Functions

Files

System Functions

Eval() and Debugging

Demo Programs

 	    Intermediate

ODBC Functions

MYSQL Functions

SQLite Functions

PostgreSQL Functions

Security and Internet Functions

Object Oriented Programming

Functional Programming (FP)

Reflection and Meta-programming

Stdlib Functions

Stdlib Classes

Declarative Programming using Nested Structures

Natural language programming

Using the Natural Library

Scope Rules for Variables and Attributes

Scope Rules for Functions and Methods

Syntax Flexibility

Distributing Ring Applications

Distributing Ring Applications using Ring2EXE

The Ring Package Manager (RingPM)

The Type Hints Library

Web Development (CGI Library)

Deploying Web Applications in the Cloud

Using RingLibCurl

Using RingZip

Graphics and 2D Games programming using RingAllegro

Using RingLibSDL

Demo Project - Game Engine for 2D Games

Building Games for Android

 	    Advanced

Using RingOpenGL and RingFreeGLUT for 3D Graphics

Using RingOpenGL and RingAllegro for 3D Graphics

The Gold Magic 800 Game

Desktop and Mobile development using RingQt

Building RingQt Applications for Mobile

Objects Library for RingQt Application

Using the Form Designer

Low Level Functions

The Trace Library and the Interactive Debugger

Extension using the C/C++ languages

Embedding Ring Language in C/C++ Programs

Command Line Options

Code Generator for wrapping C/C++ Libraries

Create your first extension

Frequently Asked Questions (FAQ)

			  Reference

RingLibCurl Functions Reference

RingLibZip Functions Reference

RingAllegro Functions Reference

RingLibSDL Functions Reference

RingFreeGLUT Functions Reference

RingOpenGL (OpenGL 4.6) Functions Reference

RingQt Classes Reference

General Information

Language Reference

              Group
              Resources
              Team


corrigido login pelo google accounts

corrigido login pelo google accounts

<% content_for :header do -%>
<%= configatron.site_name %> Login
<% end -%>

<% form_tag session_path do -%>

	<fieldset>
		<legend>Login with OpenID</legend>

OpenID URL

		<%= text_field_tag 'openid_url' %>

Use your Google Account:
		<%= check_box_tag 'use_google_account', 1, false, {:onclick=> "selecionaGoogle()"}%>

	</fieldset>

	<fieldset>
		<legend>Or Your <%= configatron.site_name %> Account</legend>

Login

		<%= text_field_tag 'login' %>

Password

		<%= password_field_tag 'password' %>

Remember me:
		<%= check_box_tag 'remember_me' %>

	</fieldset>

<%= link_to "Sign up for an account now", signup_url %>

<%= link_to "Having trouble logging in?", user_troubleshooting_url %>

<%= submit_tag 'Log in »' %>

<% end -%>

<% content_for :header do -%>
<%= configatron.site_name %> Login
<% end -%>

<% form_tag session_path do -%>

	<fieldset>
		<legend>Login with OpenID</legend>

OpenID URL

		<%= text_field_tag 'openid_url' %>

Usar sua conta do Google:
		<%= check_box_tag 'use_google_account', 1, false, {:onclick=> "selecionaGoogle()"}%>

	</fieldset>

	<fieldset>
		<legend>Or Your <%= configatron.site_name %> Account</legend>

Login

		<%= text_field_tag 'login' %>

Password

		<%= password_field_tag 'password' %>

Remember me:
		<%= check_box_tag 'remember_me' %>

	</fieldset>

<%= link_to "Sign up for an account now", signup_url %>

<%= link_to "Having trouble logging in?", user_troubleshooting_url %>

<%= submit_tag 'Log in »' %>

<% end -%>


Commit missing file

Commit missing file

<h2 class="<%= profile.class == Person ? 'fn' : 'org' %>"><%= h block.owner.short_name %>

      <%=
        profile_image(block.owner, :thumb) +"\n"+
        profile_sex_icon( profile ) +
        profile_cat_icons( profile )
      %>

<%= link_to __('Homepage'), block.owner.url, :class => 'url' %>

<%= link_to _('View profile'), block.owner.public_profile_url %>

  <% if block.owner.enterprise? && block.owner.environment.enabled?('products_for_enterprises') %>

<%= link_to(_('Products/Services'), :controller => 'catalog', :profile => block.owner.identifier) %>

  <% end %>
  <% if !user.nil? and user.has_permission?('edit_profile', profile) %>

<%= link_to _('Control panel'), block.owner.admin_url %>

  <% end %>
  <% if profile.person? %>

<%= _('Since %{year}/%{month}') % { :year => block.owner.created_at.year, :month => block.owner.created_at.month } %>

  <% end %>

<% if profile.respond_to? :city %>

<%=
  [ [ profile.city, 'locality' ],
    [ profile.state, 'region' ],
    [ profile.country_name, 'country-name' ]
  ].map{ |s,c| s =~ /^\s*$/ ? nil : content_tag( 'span', s, :class => c ) }.compact.join ' - '
%>

<% end %>

  <%= render_profile_actions block.owner.class %>

<h2 class="<%= profile.class == Person ? 'fn' : 'org' %>"><%= h block.owner.short_name %>

      <%=
        profile_image(block.owner, :thumb) +"\n"+
        profile_sex_icon( profile ) +
        profile_cat_icons( profile )
      %>

<%= link_to __('Homepage'), block.owner.url, :class => 'url' %>

<%= link_to _('View profile'), block.owner.public_profile_url %>

  <% if block.owner.enterprise? && block.owner.environment.enabled?('products_for_enterprises') %>

<%= link_to(_('Products/Services'), :controller => 'catalog', :profile => block.owner.identifier) %>

  <% end %>
  <% if !user.nil? and user.has_permission?('edit_profile', profile) %>

<%= link_to _('Control panel'), block.owner.admin_url %>

  <% end %>
  <% if profile.person? %>

<%= _('Since %{year}/%{month}') % { :year => block.owner.created_at.year, :month => block.owner.created_at.month } %>

  <% end %>

<% if profile.respond_to? :city %>

<%=
  [ [ profile.city, 'locality' ],
    [ profile.state, 'region' ],
    [ profile.country_name, 'country-name' ]
  ].map{ |s,c| s =~ /^\s*$/ ? nil : content_tag( 'span', s, :class => c ) }.compact.join ' - '
%>

<% end %>

  <%= render :file => view_for_profile_actions(block.owner.class) %>


Minor sentence edit.

Minor sentence edit.

<% @title = "Your privacy" %>

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

Your privacy

On AsktheEU.org, only your name is visible to the general public unless you put other personal information in the body of the request.

We strongly advise you not to put any personal information in the body of the request. That includes not putting your phone number, home address, email address or other personal or family or work details. You don’t need to give any of this information in order to exercise your right to information.

If an EU public Official needs to speak with you by phone to clarify the request, you should send your number to them directly and not via this website.

Who gets to see my email address?

Your e-mail address will not be shown on the website unless you include in the message or in a footer to your email.

We will not disclose your email address to anyone unless we are obliged to by law, or you ask us to. AsktheEU.org is hosted on servers are located in the Netherlands which is subject to EU privacy and data protection laws.

We will not give your e-mail address to the EU body you send the request to. They only get to see an @asktheeu.org email address which is specific to that request.

If you send a message to another user on the site, then it will reveal your email address to them. You will be told that this is going to happen.

Will you use my e-mail address for newsletters or sell it to others?

No! We will never give or sell your email addresses to anyone else, unless we are obliged to by law, or you ask us to.

After you sign up to AsktheEU.org, we only send you emails relating to the request you made or other things you specifically authorise us to do such as send you alerts about other requests.

Why will my name and my request appear publicly on the site?

We publish your request on the internet so that anybody can read it and make use of the information that you have found. We do not normally delete requests (more details).

Your name is part of your request, so has to be published as well. It is only fair, as we're going to publish the name of the civil servant who writes the response to your request.

Using your real name also helps people get in touch with you to assist you with your research or to campaign with you.

Can I make an access to information request using a pseudonym?

You are advised to use your real name when making an access to documents request. You are exercising a right which is the basis for an open and democratic society and this should be under your real name.

If you feel that your name is very well known – for example you are a famous person or well known journalist or known to the EU body – you might want to get a friend or colleague to file the request. If you are really stuck, contact us and we will try to help you file the request; please note that we don’t have the resources to do this for everyone.

Please note that if you use a pseudonym, you will not be able to exercise your legal right to appeal to the European Ombudsman or the Court of Justice.

We ask for a first and a last name. If you have more than one first or last name you can use these, but the minimum is a first and last name.

If we see silly names or really obvious pseudonyms, we will remove the request and contact the requester about this.

Please do not impersonate someone else!

Can you delete my requests, or alter my name?

AsktheEU.org is a permanent, public archive of access to information requests submitted to and answered by the EU. Even though you may not find the response to a request useful any more, it may be of interest to others. For this reason, we will not delete requests.

Under exceptional circumstances we may remove or change your name on the website, see the next question. Similarly, we may also remove other personal information.

Can you take down personal information about me?

If you see any personal information about you on the site which you'd like us to remove or hide, then please let us know. Specify exactly what information you believe to be problematic and why, and tell us where it appears on the site.

If sensitive personal information that has been accidentally posted, then we will usually remove it. Normally we will only consider requests to remove personal information which come from the individual concerned, but for sensitive information we would appreciate anyone pointing out anything they see.

We consider that there is a strong public interest in retaining the names of officers or servants of public authorities. We will only remove such names in exceptional circumstances, such as where the disclosure of a name and position of employment would substantially risk an individual's safety. If you are such an official and you wish to have your name removed for such an urgent reason, you must supply us with a request to do so from the head of your department or body. This request must demonstrate that a risk has been perceived which outweighs the public interest, and must demonstrate that efforts have been made to conceal the name on the organisation's own website and in other potentially public documents.

For all other requests we apply a public interest test to decide whether information should be removed in line with European Union Data Protection rules. We take a position that the information that we publish is of a public nature and belongs to everyone.

The EU body has asked for my phone number or postal address!

If an EU body asks for your phone number to discuss or clarify the request we recommend that you give it, but directly to them not across the site. If you do not want to give out your number, you can opt to continue discussing by email or you could ask for their number and arrange a time to phone and discuss the request.

If a public authority asks you for your full, physical address (postal address), reply to them saying that you would prefer to receive information in electronic form. This is your right under Regulation 1049/2001 if the information exists in that format.

No no, they need a postal address to send a paper response!

If an EU body only has a paper copy of the information that you want, they may ask you for a postal address. Try persuading them to scan the documents for you. If that doesn't work, and you want to provide your postal address privately in order to receive the documents, mark your request as "Gone Postal: the reply will be sent by post".

When the information arrives, <%= link_to 'let us know', help_contact_path %> and you can upload it to the website. If you can scan the document we'll give you an email address to use for that purpose.

<% @title = "Your privacy" %>

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

Your privacy

On AsktheEU.org, only your name is visible to the general public unless you put other personal information in the body of the request.

We strongly advise you not to put any personal information in the body of the request. That includes not putting your phone number, home address, email address or other personal or family or work details. You don’t need to give any of this information in order to exercise your right to information.

If an EU public Official needs to speak with you by phone to clarify the request, you should send your number to them directly and not via this website.

Who gets to see my email address?

Your e-mail address will not be shown on the website unless you include in the message or in a footer to your email.

We will not disclose your email address to anyone unless we are obliged to by law, or you ask us to. AsktheEU.org is hosted on servers are located in the Netherlands which is subject to EU privacy and data protection laws.

We will not give your e-mail address to the EU body you send the request to. They only get to see an @asktheeu.org email address which is specific to that request.

If you send a message to another user on the site, then it will reveal your email address to them. You will be told that this is going to happen.

Will you use my e-mail address for newsletters or sell it to others?

No! We will never give or sell your email addresses to anyone else, unless we are obliged to by law, or you ask us to.

After you sign up to AsktheEU.org, we only send you emails relating to the request you made or other things you specifically authorise us to do such as send you alerts about other requests.

Why will my name and my request appear publicly on the site?

We publish your request on the internet so that anybody can read it and make use of the information that you have found. We do not normally delete requests (more details).

Your name is part of your request, so has to be published as well. It is only fair, as we're going to publish the name of the civil servant who writes the response to your request.

Using your real name also helps people get in touch with you to assist you with your research or to campaign with you.

Can I make an access to information request using a pseudonym?

You are advised to use your real name when making an access to documents request. You are exercising a right which is the basis for an open and democratic society and this should be under your real name.

If you feel that your name is very well known – for example you are a famous person or well known journalist or known to the EU body – you might want to get a friend or colleague to file the request. If you are really stuck, contact us and we will try to help you file the request; please note that we don’t have the resources to do this for everyone.

Please note that if you use a pseudonym, you will not be able to exercise your legal right to appeal to the European Ombudsman or the Court of Justice.

We ask for a first and a last name. If you have more than one first or last name you can use these, but the minimum is a first and last name.

If we see silly names or really obvious pseudonyms, we will remove the request and contact the requester about this.

Please do not impersonate someone else!

Can you delete my requests, or alter my name?

AsktheEU.org is a permanent, public archive of access to information requests submitted to and answered by the EU. Even though you may not find the response to a request useful any more, it may be of interest to others. For this reason, we will not delete requests.

Under exceptional circumstances we may remove or change your name on the website, see the next question. Similarly, we may also remove other personal information.

Can you take down personal information about me?

If you see any personal information about you on the site which you'd like us to remove or hide, then please let us know. Specify exactly what information you believe to be problematic and why, and tell us where it appears on the site.

If sensitive personal information that has been accidentally posted, then we will usually remove it. Normally we will only consider requests to remove personal information which come from the individual concerned, but for sensitive information we would appreciate anyone pointing out anything they see.

We consider that there is a strong public interest in retaining the names of officers or servants of public authorities. We will only remove such names in exceptional circumstances, such as where the disclosure of a name and position of employment would substantially risk an individual's safety. If you are such an official and you wish to have your name removed for such an urgent reason, you must supply us with a request to do so from the head of your department or body. This request must demonstrate that a risk has been perceived which outweighs the public interest, and must demonstrate that efforts have been made to conceal the name on the organisation's own website and in other potentially public documents.

For all other requests we apply a public interest test to decide whether information should be removed in line with European Union Data Protection rules. We take a position that the information that we publish is journalistic in nature.

The EU body has asked for my phone number or postal address!

If an EU body asks for your phone number to discuss or clarify the request we recommend that you give it, but directly to them not across the site. If you do not want to give out your number, you can opt to continue discussing by email or you could ask for their number and arrange a time to phone and discuss the request.

If a public authority asks you for your full, physical address (postal address), reply to them saying that you would prefer to receive information in electronic form. This is your right under Regulation 1049/2001 if the information exists in that format.

No no, they need a postal address to send a paper response!

If an EU body only has a paper copy of the information that you want, they may ask you for a postal address. Try persuading them to scan the documents for you. If that doesn't work, and you want to provide your postal address privately in order to receive the documents, mark your request as "Gone Postal: the reply will be sent by post".

When the information arrives, <%= link_to 'let us know', help_contact_path %> and you can upload it to the website. If you can scan the document we'll give you an email address to use for that purpose.


tiny display tweak for users/show

tiny display tweak for users/show

git-svn-id: 295275ead0c997ff8920a9abe88dec0903829be9@424 9c008b19-a030-0410-9975-d76d301b4276

  Profile
  <%= avatar_for(@user) %>

    <%=h @user.login %>
    <%=h rank_for(@user.posts_count, @user.admin) %> — <%= number_with_delimiter(@user.posts_count) %> posts

<%=h @user.bio %>

  <% if !@user.signature.blank? %>

<%= bb(@user.signature) %>
  <% end %>

    Registered: <%= time_ago_or_time_stamp(@user.created_at) %>
    Last Visit: <%= time_ago_or_time_stamp(@user.online_at) %>
    Profile Updated: <%= time_ago_or_time_stamp(@user.profile_updated_at) %>

  Profile
  <%= avatar_for(@user) %>

    <%=h @user.login %>
    <%=h rank_for(@user.posts_count, @user.admin) %>, <%= number_with_delimiter(@user.posts_count) %> posts

<%=h @user.bio %>

  <% if !@user.signature.blank? %>

<%= bb(@user.signature) %>
  <% end %>

    Registered: <%= time_ago_or_time_stamp(@user.created_at) %>
    Last Visit: <%= time_ago_or_time_stamp(@user.online_at) %>
    Profile Updated: <%= time_ago_or_time_stamp(@user.profile_updated_at) %>


using concat(text, binding) to make _nested.rhtml a bit prettier :)

<h4> </h4>
<%
  # This assumes that the association is included as a column in the active_scaffold_config.columns collection
  associated_columns = []
  associated_columns = params[:associations].split(" ") unless params[:associations].nil?
  unless associated_columns.empty?
    parent_id = params[:id]
    associated_columns.each do | column_name |
      column = active_scaffold_config.columns[column_name]
      association = column.association
      if column.through_association?
        constraints = {
          association.source_reflection.reverse => {
            association.through_reflection.reverse => parent_id
          }
        }
      else
        constraints = { association.reverse => parent_id }
      end
      begin
        controller = active_scaffold_controller_for(association.klass)
      rescue ActiveScaffold::ControllerNotFound => error
        concat "#{error.class} - #{error.message}", binding
      else
        concat render(:active_scaffold => controller.controller_path,
          :constraints => constraints,
          :label => as_("%s for %s", active_scaffold_config_for(association.klass).label, format_column(@record.to_label)),
          :params => {:nested => true, :parent_column => column_name, :parent_model => association.active_record}
        ), binding
      end
    end
  end
%>

<h4> </h4>
<%
  # This assumes that the association is included as a column in the active_scaffold_config.columns collection
  associated_columns = []
  associated_columns = params[:associations].split(" ") unless params[:associations].nil?
  unless associated_columns.empty?
    parent_id = params[:id]
    associated_columns.each do | column_name |
      column = active_scaffold_config.columns[column_name]
      association = column.association
      if column.through_association?
        constraints = {
          association.source_reflection.reverse => {
            association.through_reflection.reverse => parent_id
          }
        }
      else
        constraints = { association.reverse => parent_id }
      end
      begin
        controller = active_scaffold_controller_for(association.klass)
      rescue ActiveScaffold::ControllerNotFound => error %>
        <%= "#{error.class} - #{error.message}"%>
<%    else %>
    <%= render :active_scaffold => controller.controller_path,
               :constraints => constraints,
               :label => as_("%s for %s", active_scaffold_config_for(association.klass).label, format_column(@record.to_label)),
               :params => {:nested => true, :parent_column => column_name, :parent_model => association.active_record} %>
<%    end
    end
  end
%>


Added code to display the link 'Add Signup Sheet' in assignment menu.

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

<% owner_id = Object.const_get('Assignment').find(node.node_object_id).instructor_id %>

<%= render :partial => '/tree_display/actions/shared_actions', :locals => {:model => 'Assignment', :controller => 'assignment', :node => node, :owner_id => owner_id} %>
<% if is_available(session[:user],owner_id) || (session[:user].role_id == 6 && is_available(User.find(Ta.get_my_instructor(session[:user].id)),owner_id))%>

<%= link_to 'Add Participants',:controller=>'participants', :action=>'list', :id => node.node_object_id, :model => 'Assignment'%>

<% if Assignment.find(node.node_object_id).team_assignment %>
<%= link_to 'Create Teams',:controller=>'team', :action=>'list', :id => node.node_object_id, :type => 'Assignment' %>
<% end %>
<% if Assignment.find(node.node_object_id).course_id %>

<%= link_to 'Remove from Course', :controller => 'assignment', :action => 'remove_assignment_from_course', :id => node.node_object_id %>
<% else %>

<%= link_to 'Assign to Course', :controller => 'assignment', :action => 'associate_assignment_to_course', :id => node.node_object_id %>
<% end %>

<%= link_to 'Assign Reviewers',:controller=>'review_mapping', :action=>'list_mappings', :id => node.node_object_id %>

<%= link_to 'View Scores',:controller=>'grades', :action=>'view', :id => node.node_object_id %>

 <%= link_to 'Review Report', :controller=>'review_mapping', :action=>'review_report', :id => node.node_object_id %>

<%@assignment = Assignment.find(node.node_object_id)%>
<% if (SignUpTopic.find(:first, :conditions => ['assignment_id = ?',node.node_object_id])).nil? %>
    <% if @assignment.staggered_deadline == true %>

<%= link_to 'Add Signup Sheet',:controller=>'sign_up_sheet', :action=>'add_signup_topics_staggered', :id => node.node_object_id %>

    <% else %>

<%= link_to 'Add Signup Sheet',:controller=>'sign_up_sheet', :action=>'add_signup_topics', :id => node.node_object_id %>

    <% end %>
<% else %>
    <% if @assignment.staggered_deadline == true %>

<%= link_to 'Edit Signup Sheet',:controller=>'sign_up_sheet', :action=>'add_signup_topics_staggered', :id => node.node_object_id %>

    <% else %>

<%= link_to 'Edit Signup Sheet',:controller=>'sign_up_sheet', :action=>'add_signup_topics', :id => node.node_object_id %>

    <% end %>
<% end %>

<%= link_to 'Assign Surveys',:controller=>'survey', :action=>'assign', :id => node.node_object_id %>

<%= link_to 'View Survey Responses',:controller=>'survey_response', :action=>'view_responses', :id => node.node_object_id %>

<% end %>

<% owner_id = Object.const_get('Assignment').find(node.node_object_id).instructor_id %>

<%= render :partial => '/tree_display/actions/shared_actions', :locals => {:model => 'Assignment', :controller => 'assignment', :node => node, :owner_id => owner_id} %>
<% if is_available(session[:user],owner_id) || (session[:user].role_id == 6 && is_available(User.find(Ta.get_my_instructor(session[:user].id)),owner_id))%>

<%= link_to 'Add Participants',:controller=>'participants', :action=>'list', :id => node.node_object_id, :model => 'Assignment'%>

<% if Assignment.find(node.node_object_id).team_assignment %>
<%= link_to 'Create Teams',:controller=>'team', :action=>'list', :id => node.node_object_id, :type => 'Assignment' %>
<% end %>
<% if Assignment.find(node.node_object_id).course_id %>

<%= link_to 'Remove from Course', :controller => 'assignment', :action => 'remove_assignment_from_course', :id => node.node_object_id %>
<% else %>

<%= link_to 'Assign to Course', :controller => 'assignment', :action => 'associate_assignment_to_course', :id => node.node_object_id %>
<% end %>

<%= link_to 'Assign Reviewers',:controller=>'review_mapping', :action=>'list_mappings', :id => node.node_object_id %>

<%= link_to 'View Scores',:controller=>'grades', :action=>'view', :id => node.node_object_id %>

 <%= link_to 'Review Report', :controller=>'review_mapping', :action=>'review_report', :id => node.node_object_id %>

<%= link_to 'Assign Surveys',:controller=>'survey', :action=>'assign', :id => node.node_object_id %>

<%= link_to 'View Survey Responses',:controller=>'survey_response', :action=>'view_responses', :id => node.node_object_id %>

<% end %>


Use simple_format() to make text more readable, and wrap YAML in pre tags.

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

<%=@title%>

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

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

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

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

    <%= link_to 'Public page', main_url(request_url(@info_request)) %>
    | <%= link_to 'Edit', '../edit/' + @info_request.id.to_s %>
    | <%= link_to 'FOI officer upload URL', '../generate_upload_url/' + @info_request.id.to_s %> (see also links on incoming messages below)

Events

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

<% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h info_request_event.id %>
  <% for column in InfoRequestEvent.content_columns %>

      <% if column.name == 'params_yaml' %>

<%= info_request_event.params_yaml %>

      <% elsif column.text? %>
        <%=h (info_request_event.send(column.name) || '').gsub(/_/,' ') %>
      <% else %>
        <%=h info_request_event.send(column.name) %>
      <% end %>

  <% end %>

<% end %>

Outgoing messages

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

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

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

          <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
          <%= submit_tag "Resend" %>

  <% end %>
  <%= link_to "Edit", '../edit_outgoing/' + outgoing_message.id.to_s %>

<% end %>

Incoming messages

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

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

        <% if !incoming_message.raw_email_id.nil? %>

            <%= link_to "View raw email", "../show_raw_email/" + incoming_message.raw_email_id.to_s %>

        <% end %>
        <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => incoming_message } %>

<% end %>

Annotations

  Id
  Posted by
  <% for column in Comment.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for comment in @info_request.comments %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h comment.id %>
  <%= user_both_links(comment.user) %>
  <% for column in Comment.content_columns.map { |c| c.name } %>
    <% if column == 'body' && !comment.visible %>
        <s><%=h comment.send(column) %></s>
    <% else %>
        <%=h comment.send(column) %>
    <% end %>
  <% end %>

      <%= link_to "Edit", '../edit_comment/' + comment.id.to_s %>

<% end %>

Exim delivery logs

Lines containing the request incoming email address, updated hourly.

<% for exim_log_done_id, exim_logs in @info_request.exim_logs.group_by(&:exim_log_done_id) %>

<% for exim_log in exim_logs %><%=h exim_log.line%><% end %>

<% end %>
<% if @info_request.exim_logs.size == 0 %>

None (perhaps this is an old or a very new request)

<% end %>

Censor rules

<%= render :partial => 'admin_censor_rule/show', :locals => { :censor_rules => @info_request.censor_rules, :info_request => @info_request } %>

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

<%=@title%>

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

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

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

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

    <%= link_to 'Public page', main_url(request_url(@info_request)) %>
    | <%= link_to 'Edit', '../edit/' + @info_request.id.to_s %>
    | <%= link_to 'FOI officer upload URL', '../generate_upload_url/' + @info_request.id.to_s %> (see also links on incoming messages below)

Events

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

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

<% end %>

Outgoing messages

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

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

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

          <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
          <%= submit_tag "Resend" %>

  <% end %>
  <%= link_to "Edit", '../edit_outgoing/' + outgoing_message.id.to_s %>

<% end %>

Incoming messages

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

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

        <% if !incoming_message.raw_email_id.nil? %>

            <%= link_to "View raw email", "../show_raw_email/" + incoming_message.raw_email_id.to_s %>

        <% end %>
        <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => incoming_message } %>

<% end %>

Annotations

  Id
  Posted by
  <% for column in Comment.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for comment in @info_request.comments %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h comment.id %>
  <%= user_both_links(comment.user) %>
  <% for column in Comment.content_columns.map { |c| c.name } %>
    <% if column == 'body' && !comment.visible %>
        <s><%=h comment.send(column) %></s>
    <% else %>
        <%=h comment.send(column) %>
    <% end %>
  <% end %>

      <%= link_to "Edit", '../edit_comment/' + comment.id.to_s %>

<% end %>

Exim delivery logs

Lines containing the request incoming email address, updated hourly.

<% for exim_log_done_id, exim_logs in @info_request.exim_logs.group_by(&:exim_log_done_id) %>

<% for exim_log in exim_logs %><%=h exim_log.line%><% end %>

<% end %>
<% if @info_request.exim_logs.size == 0 %>

None (perhaps this is an old or a very new request)

<% end %>

Censor rules

<%= render :partial => 'admin_censor_rule/show', :locals => { :censor_rules => @info_request.censor_rules, :info_request => @info_request } %>


Make email a hyperlink.

Make email a hyperlink.

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

<%=@title%>

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

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

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

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

    <%= link_to 'Public page', main_url(request_url(@info_request)) %>
    | <%= link_to 'Edit', '../edit/' + @info_request.id.to_s %>
    | <%= link_to 'FOI officer upload URL', '../generate_upload_url/' + @info_request.id.to_s %> (see also links on incoming messages below)

Events

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

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

<% end %>

Outgoing messages

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

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

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

          <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
          <%= submit_tag "Resend" %>

  <% end %>
  <%= link_to "Edit", '../edit_outgoing/' + outgoing_message.id.to_s %>

<% end %>

Incoming messages

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

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

        <% if !incoming_message.raw_email_id.nil? %>

            <%= link_to "View raw email", "../show_raw_email/" + incoming_message.raw_email_id.to_s %>

        <% end %>
        <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => incoming_message } %>

<% end %>

Annotations

  Id
  Posted by
  <% for column in Comment.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for comment in @info_request.comments %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h comment.id %>
  <%= user_both_links(comment.user) %>
  <% for column in Comment.content_columns.map { |c| c.name } %>
    <% if column == 'body' && !comment.visible %>
        <s><%=h comment.send(column) %></s>
    <% else %>
        <%=h comment.send(column) %>
    <% end %>
  <% end %>

      <%= link_to "Edit", '../edit_comment/' + comment.id.to_s %>

<% end %>

Censor rules

<%= render :partial => 'admin_censor_rule/show', :locals => { :censor_rules => @info_request.censor_rules, :info_request => @info_request } %>

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

<%=@title%>

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

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

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

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

    <%= link_to 'Public page', main_url(request_url(@info_request)) %>
    | <%= link_to 'Edit', '../edit/' + @info_request.id.to_s %>
    | <%= link_to 'FOI officer upload URL', '../generate_upload_url/' + @info_request.id.to_s %> (see also links on incoming messages below)

Events

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

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

<% end %>

Outgoing messages

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

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

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

          <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
          <%= submit_tag "Resend" %>

  <% end %>
  <%= link_to "Edit", '../edit_outgoing/' + outgoing_message.id.to_s %>

<% end %>

Incoming messages

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

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

        <% if !incoming_message.raw_email_id.nil? %>

            <%= link_to "View raw email", "../show_raw_email/" + incoming_message.raw_email_id.to_s %>

        <% end %>
        <%= render :partial => 'incoming_message_actions', :locals => { :incoming_message => incoming_message } %>

<% end %>

Annotations

  Id
  Posted by
  <% for column in Comment.content_columns %>
    <%= column.human_name %>
  <% end %>
  Actions

<% for comment in @info_request.comments %>
  <tr class="<%= cycle('odd', 'even') %>">
  <%=h comment.id %>
  <%= user_both_links(comment.user) %>
  <% for column in Comment.content_columns.map { |c| c.name } %>
    <% if column == 'body' && !comment.visible %>
        <s><%=h comment.send(column) %></s>
    <% else %>
        <%=h comment.send(column) %>
    <% end %>
  <% end %>

      <%= link_to "Edit", '../edit_comment/' + comment.id.to_s %>

<% end %>

Censor rules

<%= render :partial => 'admin_censor_rule/show', :locals => { :censor_rules => @info_request.censor_rules, :info_request => @info_request } %>


result_break should only appear between rows

  <% docs.each_with_index do |doc, i| %>
  <% if i > 0 -%>

<% end -%>

    <%= link_to img_tag(doc, :mode=>'mini'), data_path(doc) %>
<%= fsize(doc.c_size) %>

<%= link_to(doc.v_title, zen_path(doc)) %>
<%= zazen(doc.v_summary) %>

  <% end %>

  <% docs.each do |doc| %>

    <%= link_to img_tag(doc, :mode=>'mini'), data_path(doc) %>
<%= fsize(doc.c_size) %>

<%= link_to(doc.v_title, zen_path(doc)) %>
<%= zazen(doc.v_summary) %>

  <% end %>


fix video listing

fix video listing

<% including ||= [] %>

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

	<% items.each do |item| %>

			<td <%= 'colspan="2"' unless item.is_a? Book %>>
				<%= link_to highlight(h(item.title), @query), polymorphic_path(item) %>

			<% if item.is_a? Book %>
				<%= highlight(h(item.author_first + ' ' + item.author_last), @query) %>
			<% end %>

			<%= user_link item.owner %>
			<% if self.current_user %>
				<%= distance item.owner.distance_from self.current_user %>
				<% end %>

		<% if including.member? :description %>

			  <%= excerpt_and_highlight(item.description, @query) %>

		<% end %>
	<% end %>

<% including ||= [] %>

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

	<% items.each do |item| %>

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

		<% if including.member? :description %>

			  <%= excerpt_and_highlight(item.description, @query) %>

		<% end %>
	<% end %>


Update news with new search and alphabetical thumbnail features.

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

<% @title = 'News' %>

<%= @title %>

This page lists the latest changes to and news about the Mushroom Observer website.

Monday October 26, 2006

Switched Observations->By Name to include thumbnails and follow layout.

Maintained old By Name behavior as Observations->Index.

Added simple search box to Activity Log (Latest Changes) and Observation list pages.

Monday October 23, 2006

Changed default page to the RSS feed.

Changed page layout for observation and image list pages.

Added layout controls to user preferences.  Set to 10 rows x 1 column
			and turn off 'Put text below images' to get old layout.

Changed thumbnail image size from 100px to 160px with lower quality (jpeg 50 vs. 75).

Provided Prev/Next buttons for images.

Added link to ask the webmaster a question about the site.

Split up 'Manage Images' into 'Add Image', 'Reuse Image' and 'Remove Images' and made
			them more visible.

'Reuse Image' allows you to look at the images.

Added links for viewing the log for observations and species lists.

Made database lookup for all observations much more efficient.

Rearranged left-hand panel.

Images no longer have titles.  They are derived from the observation(s) they are
			connected to.

Removed Edit and Destroy links from view pages.

Add mini-icon for webpages.

Sunday September 9, 2006

Links to email the creator of observations or images with questions or commerical inquiries.  The creator receives an email with the address of the user who wants to contact them.  It is up to the creator whether they want to respond.

User preferences added to disable the above email feature and to stop receiving emails like this letting you know about new features.

RSS feed has been overhauled to reduce the number of entries and make them more relevant.

Copyright holder now has an option to be something other than a registered user.  The user who uploads the image is the default, but it can now be changed on a per image basis.

Monday August 21, 2006

	Added RSS feed for all interesting events that happen on the site.

	Added 'Create Account' link on login page to make it more obvious.

	Tweaked page titles to make the site easier to index.

Sunday August 13, 2006

	Added this news page.

	List pages now have a better interface for paging than just next/previous,
	and its at the top and bottom of each page.

Saturday August 12, 2006

	Added email verification system to user signup.

<% @title = 'News' %>

<%= @title %>

This page lists the latest changes to and news about the Mushroom Observer website.

Monday October 23, 2006

Changed default page to the RSS feed.

Changed page layout for observation and image list pages.

Added layout controls to user preferences.  Set to 10 rows x 1 column
			and turn off 'Put text below images' to get old layout.

Changed thumbnail image size from 100px to 160px with lower quality (jpeg 50 vs. 75).

Provided Prev/Next buttons for images.

Added link to ask the webmaster a question about the site.

Split up 'Manage Images' into 'Add Image', 'Reuse Image' and 'Remove Images' and made
			them more visible.

'Reuse Image' allows you to look at the images.

Added links for viewing the log for observations and species lists.

Made database lookup for all observations much more efficient.

Rearranged left-hand panel.

Images no longer have titles.  They are derived from the observation(s) they are
			connected to.

Removed Edit and Destroy links from view pages.

Add mini-icon for webpages.

Sunday September 9, 2006

Links to email the creator of observations or images with questions or commerical inquiries.  The creator receives an email with the address of the user who wants to contact them.  It is up to the creator whether they want to respond.

User preferences added to disable the above email feature and to stop receiving emails like this letting you know about new features.

RSS feed has been overhauled to reduce the number of entries and make them more relevant.

Copyright holder now has an option to be something other than a registered user.  The user who uploads the image is the default, but it can now be changed on a per image basis.

Monday August 21, 2006

	Added RSS feed for all interesting events that happen on the site.

	Added 'Create Account' link on login page to make it more obvious.

	Tweaked page titles to make the site easier to index.

Sunday August 13, 2006

	Added this news page.

	List pages now have a better interface for paging than just next/previous,
	and its at the top and bottom of each page.

Saturday August 12, 2006

	Added email verification system to user signup.


Oops, I forgot this template change for themes to work

<div id="<%= active_scaffold_id -%>" class="active-scaffold active-scaffold-<%= controller_id %> <%= 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' %>

<div id="<%= active_scaffold_id -%>" class="active-scaffold active-scaffold-<%= controller_id %> <%= active_scaffold_config.theme %>">

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

<tbody class="before_header" id="<%= before_header_id -%>">

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


Oops, I forgot this template change for themes to work

git-svn-id: b2ff2946fad280430023ee7ead77858f96a610fa@374 561dde7e-7729-0410-be8e-ef83869d6c7d

<div id="<%= active_scaffold_id -%>" class="active-scaffold active-scaffold-<%= controller_id %> <%= active_scaffold_config.theme %>">

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

<tbody class="before_header" id="<%= before_header_id -%>">

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

<div id="<%= active_scaffold_id -%>" class="active-scaffold active-scaffold-<%= controller_id %>">

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

<tbody class="before_header" id="<%= before_header_id -%>">

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


Adding cancel button in Publish screen

Adding cancel button in Publish screen

<%= _('Select the groups where you want to publish your article') %>

<% if !@failed.blank? %>

<%=_("There were errors with the following communities: ")%>

    <% @failed.each do |error, communities|%>
       <%= error %>:

        <% communities.each do |community| %>

 <%= community %>

        <% end %>

    <% end %>

<% end %>

<% form_tag do%>
 <%= hidden_field_tag :back_to, @back_to %>
 <% @groups.each do |group| %>
    <%= labelled_check_box group.name, 'marked_groups[][group_id]', group.id, @marked_groups.include?(group) %>

    <%= labelled_text_field _('Title') + ': ', 'marked_groups[][name]', @article.name, :style => 'width: 100%' %>

  <% end %>

  <% button_bar do %>
    <%= submit_button 'spread', _('Publish') %>
    <%= button :cancel, _('Cancel'), :back %>
  <% end %>
<% end %>

<%= _('Select the groups where you want to publish your article') %>

<% if !@failed.blank? %>

<%=_("There were errors with the following communities: ")%>

    <% @failed.each do |error, communities|%>
       <%= error %>:

        <% communities.each do |community| %>

 <%= community %>

        <% end %>

    <% end %>

<% end %>

<% form_tag do%>
 <%= hidden_field_tag :back_to, @back_to %>
 <% @groups.each do |group| %>
    <%= labelled_check_box group.name, 'marked_groups[][group_id]', group.id, @marked_groups.include?(group) %>

    <%= labelled_text_field _('Title') + ': ', 'marked_groups[][name]', @article.name, :style => 'width: 100%' %>

  <% end %>

  <% button_bar do %>
    <%= submit_button 'spread', _('Publish') %>
  <% end %>
<% end %>


improve instructions on how to name ref forms

  <fieldset id="forms">
  	<legend>Forms</legend>

    Name the form you want tied to each application "Processor Form".

Keep all forms hidden, except for the one students will use to apply.

      <%= render :partial => 'form_list', :object => @forms %>

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

    <%= render :partial => 'clone_form', :object => @clone_form_options %>
  </fieldset>
  <fieldset id="list_emails">
    <legend>Emails</legend>

The following is a list of events when an email is sent. Click one to edit the body of
    the email that will be sent

<%= render :partial => "reference_emails/list_references_emails" %>

  </fieldset>

  <fieldset id="forms">
  	<legend>Forms</legend>

Name your reference forms "<reference name> Form" (ex "Peer Reference").
    Name the form you want tied to each application "Processor Form".

Keep all forms hidden, except for the one students will use to apply.

      <%= render :partial => 'form_list', :object => @forms %>

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

    <%= render :partial => 'clone_form', :object => @clone_form_options %>
  </fieldset>
  <fieldset id="list_emails">
    <legend>Emails</legend>

The following is a list of events when an email is sent. Click one to edit the body of
    the email that will be sent

<%= render :partial => "reference_emails/list_references_emails" %>

  </fieldset>


ActionItem439: added missing hidden field to the form

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

<%= _('Register and activate enterprise') %>

<%= error_messages_for :user %>
<% labelled_form_for :user, @user,
   :html => { :help=>_('Fill all this fields to activate your enterprise and join in this environment.' +
                       '
If you forgot your password, do not create a new account,' +
                       ' click on the "I forgot my password!" link. ;-)')
            } do |f| -%>

<%= f.text_field :login,
    :help => help=_('"Username" is a simple nickname to recognize you on this environment.'),
    :onchange => 'this.value = convToValidLogin( this.value )' %>
<%= help %>

<%= f.text_field :email,
    :help => help=_('We\'ll send you an e-mail to validate your registration.') %>
<%= help %>

<%= f.password_field :password,
    :help => help=_('Do not use a obviously password, but try some unforgettable word.') %>
<%= help %>

<%= f.password_field :password_confirmation,
    :help => help=_('We need to be sure that you wrote correctly your password.') %>
<%= help %>

<%= ApplicationHelper::NoosferoFormBuilder::output_field(@question == :foundation_year ? _('What year your enterprise was founded?') : _('What is the CNPJ of your enterprise?'), text_field_tag(:answer, nil,:help => help=_('We need to be sure that this is your enterprise'))) %>

<%= hidden_field_tag :enterprise_code, @enterprise.code %>

<% if @terms_of_use %>

    <%= @terms_of_use %>

    <%= check_box 'user', 'terms_accepted' %>
    <%= _('I accept the terms of use') %>

<% end %>

<% button_bar do %>
  <%= submit_button('save', _('Sign up'), :cancel => {:action => 'index'}, :class => 'icon-menu-login') %>
<% end %>
<% end -%>

<%= _('Register and activate enterprise') %>

<%= error_messages_for :user %>
<% labelled_form_for :user, @user,
   :html => { :help=>_('Fill all this fields to activate your enterprise and join in this environment.' +
                       '
If you forgot your password, do not create a new account,' +
                       ' click on the "I forgot my password!" link. ;-)')
            } do |f| -%>

<%= f.text_field :login,
    :help => help=_('"Username" is a simple nickname to recognize you on this environment.'),
    :onchange => 'this.value = convToValidLogin( this.value )' %>
<%= help %>

<%= f.text_field :email,
    :help => help=_('We\'ll send you an e-mail to validate your registration.') %>
<%= help %>

<%= f.password_field :password,
    :help => help=_('Do not use a obviously password, but try some unforgettable word.') %>
<%= help %>

<%= f.password_field :password_confirmation,
    :help => help=_('We need to be sure that you wrote correctly your password.') %>
<%= help %>

<%= ApplicationHelper::NoosferoFormBuilder::output_field(@question == :foundation_year ? _('What year your enterprise was founded?') : _('What is the CNPJ of your enterprise?'), text_field_tag(:answer, nil,:help => help=_('We need to be sure that this is your enterprise'))) %>

<% if @terms_of_use %>

    <%= @terms_of_use %>

    <%= check_box 'user', 'terms_accepted' %>
    <%= _('I accept the terms of use') %>

<% end %>

<% button_bar do %>
  <%= submit_button('save', _('Sign up'), :cancel => {:action => 'index'}, :class => 'icon-menu-login') %>
<% end %>
<% end -%>


Fixing small mistakes on  person profile_editor  partial

<% @person ||= @profile %>

<% optional_field(@person, 'nickname') do %>
  <%= f.text_field(:nickname, :maxlength => 16, :size => 30, :rel => _('Nickname')) %>

    <%= _('A short name by which you like to be known. Will be used in friends listings, community member listings etc.') %>

<% end %>

<%= optional_field(@person, 'description', f.text_area(:description, :rows => 5, :rel => _('Description'))) %>
<%= optional_field(@person, 'preferred_domain', select_preferred_domain(:profile_data)) %>
<%= optional_field(@person, 'contact_information', f.text_field(:contact_information, :rel => _('Contact information'))) %>
<%= optional_field(@person, 'contact_phone', labelled_form_field(_('Home phone'), text_field(:profile_data, :contact_phone, :rel => _('Contact phone')))) %>
<%= optional_field(@person, 'cell_phone', f.text_field(:cell_phone, :rel => _('Cell phone'))) %>
<%= optional_field(@person, 'comercial_phone', f.text_field(:comercial_phone, :rel => _('Comercial phone'))) %>
<%= optional_field(@person, 'sex', f.radio_group(:profile_data, :sex, [ ['male',_('Male')], ['female',_('Female')] ])) %>
<%= optional_field(@person, 'birth_date', labelled_form_field(_('Birth date'), '
' + pick_date(:profile_data, :birth_date, {:start_year => (Date.today.year - 100), :end_year => (Date.today.year - 5)}) + '
')) %>
<%= optional_field(@person, 'nationality', f.text_field(:nationality, :rel => _('Nationality'))) %>
<%= optional_field(@person, 'country', select_country(_('Country'), 'profile_data', 'country', {:class => 'type-select'})) %>
<%= optional_field(@person, 'state', f.text_field(:state, :rel => _('State'))) %>
<%= optional_field(@person, 'city', f.text_field(:city, :rel => _('City'))) %>
<%= optional_field(@person, 'zip_code', labelled_form_field(_('ZIP code'), text_field(:profile_data, :zip_code, :rel => _('ZIP code')))) %>
<%= optional_field(@person, 'address', labelled_form_field(_('Address (street and number)'), text_field(:profile_data, :address, :rel => _('Address')))) %>
<%= optional_field(@person, 'address_reference', labelled_form_field(_('Address reference'), text_field(:profile_data, :address_reference, :rel => _('Address reference')))) %>
<%= optional_field(@person, 'district', labelled_form_field(_('District'), text_field(:profile_data, :district, :rel => _('District')))) %>

<% optional_field(@person, 'schooling') do %>

    <%= _('Schooling') %>

      <%= select_schooling('profile_data', 'schooling', {:class => 'select-schooling'}) %>
      <%= select_schooling_status('profile_data', 'schooling_status', {:class => 'select-schooling'}) %>

<% end %>

<%= optional_field(@person, 'formation', select_area(_('Education'), 'profile_data', 'formation', {:class => 'type-select-full-line'})) %>

<span id='profile_data_custom_formation_span' <%= "style='display:none'" if ! ['Others', nil].include?(@person.formation) %> >
  <%= optional_field(@person, 'custom_formation', f.text_field(:custom_formation, :rel => _('Custom formation'))) %>

<%= observe_field 'profile_data_formation', :function =>'toggle_text_field("profile_data_formation", "profile_data_custom_formation_span")' %>

<%= optional_field(@person, 'area_of_study', select_area(_('Area of study'), 'profile_data', 'area_of_study', {:class => 'type-select-full-line'})) %>

<span id='profile_data_custom_area_of_study_span' <%= "style='display:none'" if ! ['Others', nil].include?(@person.area_of_study) %> >
  <%= optional_field(@person, 'custom_area_of_study', f.text_field(:custom_area_of_study, :rel => _('Custom area of study'))) %>

<%= observe_field 'profile_data_area_of_study', :function =>'toggle_text_field("profile_data_area_of_study", "profile_data_custom_area_of_study_span")' %>

<%= optional_field(@person, 'professional_activity', f.text_field(:professional_activity, :rel => _('Professional activity'))) %>
<%= optional_field(@person, 'organization', f.text_field(:organization, :rel => _('Organization'))) %>
<%= optional_field(@person, 'organization_website', f.text_field(:organization_website, :rel => _('Organization website'))) %>

<% @person ||= @profile %>

<% optional_field(@person, 'nickname') do %>
  <%= f.text_field(:nickname, :maxlength => 16, :size => 30, :rel => _('Nickname')) %>

    <%= _('A short name by which you like to be known. Will be used in friends listings, community member listings etc.') %>

<% end %>

<%= optional_field(@person, 'description', f.text_area(:description, :rows => 5, :rel => _('Description'))) %>
<%= optional_field(@person, 'preferred_domain', select_preferred_domain(:profile_data)) %>
<%= optional_field(@person, 'contact_information', f.text_field(:contact_information, :rel => _('Contact information'))) %>
<%= optional_field(@person, 'contact_phone', labelled_form_field(_('Home phone'), text_field(:profile_data, :contact_phone, :rel => _('Contact phone')))) %>
<%= optional_field(@person, 'cell_phone', f.text_field(:cell_phone, :rel => _('Cell phone'))) %>
<%= optional_field(@person, 'comercial_phone', f.text_field(:comercial_phone, :rel => _('Comercial phone'))) %>
<%= optional_field(@person, 'sex', f.radio_group(:profile_data, :sex, [ ['male',_('Male')], ['female',_('Female')] ])) %>
<%= optional_field(@person, 'birth_date', labelled_form_field(_('Birth date'), '
' + pick_date(:profile_data, :birth_date, {:start_year => (Date.today.year - 100), :end_year => (Date.today.year - 5)}) + '
')) %>
<%= optional_field(@person, 'nationality', f.text_field(:nationality, :rel => _('Nationality'))) %>
<%= optional_field(@person, 'country', select_country(_('Country'), 'profile_data', 'country', {:class => 'type-select'})) %>
<%= optional_field(@person, 'state', f.text_field(:state, :rel => _('State'))) %>
<%= optional_field(@person, 'city', f.text_field(:city, :rel => _('City'))) %>
<%= optional_field(@person, 'zip_code', labelled_form_field(_('ZIP code'), text_field(:profile_data, :zip_code, :rel => _('ZIP code')))) %>
<%= optional_field(@person, 'address', labelled_form_field(_('Address (street and number)'), text_field(:profile_data, :address, :rel => _('Address')))) %>
<%= optional_field(profile, 'address_reference', labelled_form_field(_('Address reference'), text_field(object_name, :address_reference, :rel => _('Address reference')))) %>
<%= optional_field(@person, 'district', labelled_form_field(_('District'), text_field(:profile_data, :district, :rel => _('District')))) %>

<% optional_field(@person, 'schooling') do %>

    <%= _('Schooling') %>

      <%= select_schooling('profile_data', 'schooling', {:class => 'select-schooling'}) %>
      <%= select_schooling_status('profile_data', 'schooling_status', {:class => 'select-schooling'}) %>

<% end %>

<%= optional_field(@person, 'formation', select_area(_('Education'), 'profile_data', 'formation', {:class => 'type-select-full-line'})) %>

<span id='profile_data_custom_formation_span' <%= "style='display:none'" if ! ['Others', nil].include?(@person.formation) %> >
  <%= optional_field(@person, 'custom_formation', f.text_field(:custom_formation, :rel => _('Custom formation'))) %>

<%= observe_field 'profile_data_formation', :function =>'toggle_text_field("profile_data_formation", "profile_data_custom_formation_span")' %>

<%= optional_field(@person, 'area_of_study', select_area(_('Area of study'), 'profile_data', 'area_of_study', {:class => 'type-select-full-line'})) %>

<span id='profile_data_custom_area_of_study_span' <%= "style='display:none'" if ! ['Others', nil].include?(@person.area_of_study) %> >
  <%= optional_field(@person, 'custom_area_of_study', f.text_field(:custom_area_of_study, :rel => _('Custom area of study'))) %>

<%= observe_field 'profile_data_area_of_study', :function =>'toggle_text_field("profile_data_area_of_study", "profile_data_custom_area_of_study_span")' %>

<%= optional_field(@person, 'professional_activity', f.text_field(:professional_activity, :rel => _('Professional activity'))) %>
<%= optional_field(@person, 'organization', f.text_field(:organization, :rel => _('Organization'))) %>
<%= optional_field(@person, 'organization_website', f.text_field(:organization_website, :rel => _('Organization website'))) %>


show currencies in bookings in account view

Account <%= @account.title %>

    <%= sort_header('value_date', 'Datum') %>
    Text
    Belastung
    Gutschrift
    Saldo
    Valuta

  <% total_debit = 0; total_credit = 0 %>
  <% for booking in @account.bookings %>
  <% @booking = booking %>
  <% total_debit += booking.amount if booking.debit_account == @account %>
  <% total_credit += booking.amount if booking.credit_account == @account %>

    <%= in_place_editor_field :booking, :in_place_value_date %>

      <%= in_place_editor_field :booking, :title %>
      <%= '
' unless booking.comments.empty? %>
      <%= in_place_editor_field :booking, :comments %>

    <%= (booking.debit_account == @account) ? "#{in_place_editor_field(:booking, :in_place_amount)} #{booking.debit_currency}" : "#{link_to(booking.debit_account.title, :controller => 'accounts', :id => booking.debit_account)}" %>
    <%= (booking.credit_account == @account) ? "#{in_place_editor_field(:booking, :in_place_amount)} #{booking.credit_currency}" : "#{link_to(booking.credit_account.title, :controller => 'accounts', :id => booking.credit_account)}" %>
    <%= currency_fmt(total_credit - total_debit) %>

      <%= link_to h(booking.in_place_value_date), :controller => :bookings, :action => :show, :id => booking %>
      <%= link_to image_tag('insert_booking.png'), :controller => :bookings, :action => :new %>
      <%= link_to image_tag('remove_22.png'), { :controller => :bookings, :action => 'destroy', :id => booking }, :confirm => 'Sicher?', :method => :post %>

  <% end %>

    Umsatz

    <%= currency_fmt(total_credit) %>
    <%= currency_fmt(total_debit) %>

    Aktueller Kontostand (per <%= DateTime.now.strftime("%d.%m.%Y %H:%M") %>)

    <%= currency_fmt(total_credit - total_debit) %>

<%= link_to 'Edit', :action => 'edit', :id => @account %> |
<%= link_to 'Back', :action => 'list' %>

Account <%= @account.title %>

    <%= sort_header('value_date', 'Datum') %>
    Text
    Belastung
    Gutschrift
    Saldo
    Valuta

  <% total_debit = 0; total_credit = 0 %>
  <% for booking in @account.bookings %>
  <% @booking = booking %>
  <% total_debit += booking.amount if booking.debit_account == @account %>
  <% total_credit += booking.amount if booking.credit_account == @account %>

    <%= in_place_editor_field :booking, :in_place_value_date %>

      <%= in_place_editor_field :booking, :title %>
      <%= '
' unless booking.comments.empty? %>
      <%= in_place_editor_field :booking, :comments %>

    <%= (booking.debit_account == @account) ? in_place_editor_field(:booking, :in_place_amount) : "#{link_to(booking.debit_account.title, :controller => 'accounts', :id => booking.debit_account)}" %>
    <%= (booking.credit_account == @account) ? in_place_editor_field(:booking, :in_place_amount) : "#{link_to(booking.credit_account.title, :controller => 'accounts', :id => booking.credit_account)}" %>
    <%= currency_fmt(total_credit - total_debit) %>

      <%= link_to h(booking.in_place_value_date), :controller => :bookings, :action => :show, :id => booking %>
      <%= link_to image_tag('insert_booking.png'), :controller => :bookings, :action => :new %>
      <%= link_to image_tag('remove_22.png'), { :controller => :bookings, :action => 'destroy', :id => booking }, :confirm => 'Sicher?', :method => :post %>

  <% end %>

    Umsatz

    <%= currency_fmt(total_credit) %>
    <%= currency_fmt(total_debit) %>

    Aktueller Kontostand (per <%= DateTime.now.strftime("%d.%m.%Y %H:%M") %>)

    <%= currency_fmt(total_credit - total_debit) %>

<%= link_to 'Edit', :action => 'edit', :id => @account %> |
<%= link_to 'Back', :action => 'list' %>


Changed the layout to work witch accented letters (UTF8) like 'è'

<!doctype html>

    <link rel="stylesheet" type="text/css" href="/css/main.css">
    <link rel="alternate" type="application/atom+xml" title="<%= title %> - feed" href="/index.xml" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title><%= title %></title>

      <%= yield %>

      powered by toto

<!doctype html>

    <link rel="stylesheet" type="text/css" href="/css/main.css">
    <link rel="alternate" type="application/atom+xml" title="<%= title %> - feed" href="/index.xml" />
    <title><%= title %></title>

      <%= yield %>

      powered by toto