Removed "Add translation" from not translatable pages

(ActionItem2345)

<div<%= user && " class='logged-in'" %>>

    <% if @page.allow_edit?(user) %>
      <%= link_to content_tag( 'span', label_for_edit_article(@page) ),
          profile.admin_url.merge({ :controller => 'cms', :action => 'edit', :id => @page.id }),
          :class => 'button with-text icon-edit' %>
    <% end %>

    <% if @page != profile.home_page && !@page.has_posts?  && @page.allow_delete?(user) %>
      <%= link_to content_tag( 'span', _('Delete') ),
        profile.admin_url.merge({ :controller => 'cms', :action => 'destroy', :id => @page}),
        :method => :post,
        :class => 'button with-text icon-delete',
        :confirm => delete_article_message(@page) %>
    <% end %>

    <% if !@page.folder? && @page.allow_spread?(user) %>
      <% if profile.kind_of?(Person) %>
        <%= link_to content_tag( 'span', _('Spread this') ),
            profile.admin_url.merge({ :controller => 'cms', :action => 'publish', :id => @page }),
            :class => 'button with-text icon-spread' %>
      <% elsif profile.kind_of?(Community) && environment.portal_community %>
        <%= link_to content_tag( 'span', _('Spread this') ),
            profile.admin_url.merge({ :controller => 'cms', :action => 'publish_on_portal_community', :id => @page }),
            :class => 'button with-text icon-spread' %>
      <% end %>
    <% end %>

    <% if !@page.gallery? && @page.allow_create?(user) %>
      <%= link_to _('Add translation'),
          profile.admin_url.merge(:controller => 'cms', :action => 'new',
                                  :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)),
                                  :type => @page.type, :article => { :translation_of_id => @page.native_translation.id }),
          :class => 'button with-text icon-locale' if @page.translatable? && !@page.native_translation.language.blank? %>
      <%= lightbox_remote_button(:new, label_for_new_article(@page), profile.admin_url.merge(:controller => 'cms', :action => 'new', :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)))) %>
    <% end %>

    <% if @page.accept_uploads? && @page.allow_create?(user) %>
      <%= button('upload-file', _('Upload files'), profile.admin_url.merge(:controller => 'cms', :action => 'upload_files', :parent_id => (@page.folder? ? @page : @page.parent))) %>
    <% end %>

    <% if !@page.allow_create?(user) && profile.community? && (@page.blog? || @page.parent && @page.parent.blog?) %>
      <%= link_to content_tag( 'span', _('Suggest an article') ), profile.admin_url.merge({ :controller => 'cms', :action => 'suggest_an_article'}), :id => 'suggest-article-link', :class => 'button with-text icon-new' %>
    <% end %>

    <%= report_abuse(profile, :link, @page) %>

    <%= link_to(image_tag('icons-mime/rss-feed.png'), @page.feed.url, :class => 'blog-feed-link') if @page.has_posts? && @page.feed %>
    <%= article_title(@page, :no_link => true) %>
    <%= article_translations(@page) %>

<div<%= user && " class='logged-in'" %>>

    <% if @page.allow_edit?(user) %>
      <%= link_to content_tag( 'span', label_for_edit_article(@page) ),
          profile.admin_url.merge({ :controller => 'cms', :action => 'edit', :id => @page.id }),
          :class => 'button with-text icon-edit' %>
    <% end %>

    <% if @page != profile.home_page && !@page.has_posts?  && @page.allow_delete?(user) %>
      <%= link_to content_tag( 'span', _('Delete') ),
        profile.admin_url.merge({ :controller => 'cms', :action => 'destroy', :id => @page}),
        :method => :post,
        :class => 'button with-text icon-delete',
        :confirm => delete_article_message(@page) %>
    <% end %>

    <% if !@page.folder? && @page.allow_spread?(user) %>
      <% if profile.kind_of?(Person) %>
        <%= link_to content_tag( 'span', _('Spread this') ),
            profile.admin_url.merge({ :controller => 'cms', :action => 'publish', :id => @page }),
            :class => 'button with-text icon-spread' %>
      <% elsif profile.kind_of?(Community) && environment.portal_community %>
        <%= link_to content_tag( 'span', _('Spread this') ),
            profile.admin_url.merge({ :controller => 'cms', :action => 'publish_on_portal_community', :id => @page }),
            :class => 'button with-text icon-spread' %>
      <% end %>
    <% end %>

    <% if !@page.gallery? && @page.allow_create?(user) %>
      <%= link_to _('Add translation'),
          profile.admin_url.merge(:controller => 'cms', :action => 'new',
                                  :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)),
                                  :type => @page.type, :article => { :translation_of_id => @page.native_translation.id }),
          :class => @page.translatable? && !@page.native_translation.language.blank? && 'button with-text icon-locale' %>
      <%= lightbox_remote_button(:new, label_for_new_article(@page), profile.admin_url.merge(:controller => 'cms', :action => 'new', :parent_id => (@page.folder? ? @page : (@page.parent.nil? ? nil : @page.parent)))) %>
    <% end %>

    <% if @page.accept_uploads? && @page.allow_create?(user) %>
      <%= button('upload-file', _('Upload files'), profile.admin_url.merge(:controller => 'cms', :action => 'upload_files', :parent_id => (@page.folder? ? @page : @page.parent))) %>
    <% end %>

    <% if !@page.allow_create?(user) && profile.community? && (@page.blog? || @page.parent && @page.parent.blog?) %>
      <%= link_to content_tag( 'span', _('Suggest an article') ), profile.admin_url.merge({ :controller => 'cms', :action => 'suggest_an_article'}), :id => 'suggest-article-link', :class => 'button with-text icon-new' %>
    <% end %>

    <%= report_abuse(profile, :link, @page) %>

    <%= link_to(image_tag('icons-mime/rss-feed.png'), @page.feed.url, :class => 'blog-feed-link') if @page.has_posts? && @page.feed %>
    <%= article_title(@page, :no_link => true) %>
    <%= article_translations(@page) %>


ActionItem716: stop annoying animation in product/enterprise browsing

<% if @product_category %>

    <%= @product_category.hierarchy.map {|cat| ((cat == @product_category) ? content_tag('span', cat.name) : link_to((cat.name), params.merge({:product_category => cat.id}))) }.join(' → ') %>

<% end %>

<% if product_categories_menu %>

    <% if product_categories_menu.empty? %>
      <% if @product_category %>

 <%= _('There is no sub-categories for %s.') % @product_category.name %>

      <% else %>

 <%= _('There is no categories.') %>

      <% end %>
    <% end %>
    <% product_categories_menu.each do |cat, hits, childs| %>

        <%= link_to(
              cat.name + " " + content_tag('small', "(#{hits})"),
              params.merge({:product_category => cat.id})
         ) %>
        <% if !childs.blank? %>

              <% childs.each do |child, child_hits| %>

 <%= link_to(
                           child.name + " " + content_tag('small', "(#{child_hits})"),
                           params.merge({:product_category => child.id})
                      ) %>

              <% end %>

        <% end %>

    <% end %>

<% end %>


Fix the retention/population of field_search fields.

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

<%
# We have to remove search form params before the url_for method call, otherwise it throughs it on
search_params = params[:search]
params.merge!(:search => nil)
href = url_for(params_for(:action => :update_table, :escape => false))
-%>
<%= form_remote_tag :url => href,
                    :method => :get,
                    :before => "addActiveScaffoldPageToHistory('#{href}', '#{params[:controller]}')",
                    :after => "$('#{loading_indicator_id(:action => :search, :id => params[:id])}').style.visibility = 'visible'; Form.disable('#{search_form_id}');",
                    :complete => "$('#{loading_indicator_id(:action => :search, :id => params[:id])}').style.visibility = 'hidden'; Form.enable('#{search_form_id}');",
                    :failure => "ActiveScaffold.report_500_response('#{active_scaffold_id}')",
                    :update => active_scaffold_content_id,
                    :html => { :href => href, :id => search_form_id, :class => 'search' } %>

    <% active_scaffold_config.field_search.columns.each do |column| -%>
      <% name = "search[#{column.name}]" %>
      <% value = nil %>
      <% value = search_params[column.name] if search_params %>

        <label for="<%= "search_#{column.name}" %>"><%= column.label %>
        <%= case column.ui_type
          when :boolean
            check_box_tag(name, 1, value || value == 1)
          else
            text_field_tag(name, value, { :autocomplete => "off", :size => 20, :class => 'text-input', :id => "search_#{column.name}"})
          end
        %>

    <% end -%>

  <%= submit_tag as_('Search'), :class => "submit" %>
  <%= as_('Reset') -%>
  <%= loading_indicator_tag(:action => :search) %>
</form>

<%
# We have to remove search form params before the url_for method call, otherwise it throughs it on
search_params = params
params.merge!(:search => nil)
href = url_for(params_for(:action => :update_table, :escape => false))
-%>
<%= form_remote_tag :url => href,
                    :method => :get,
                    :before => "addActiveScaffoldPageToHistory('#{href}', '#{params[:controller]}')",
                    :after => "$('#{loading_indicator_id(:action => :search, :id => params[:id])}').style.visibility = 'visible'; Form.disable('#{search_form_id}');",
                    :complete => "$('#{loading_indicator_id(:action => :search, :id => params[:id])}').style.visibility = 'hidden'; Form.enable('#{search_form_id}');",
                    :failure => "ActiveScaffold.report_500_response('#{active_scaffold_id}')",
                    :update => active_scaffold_content_id,
                    :html => { :href => href, :id => search_form_id, :class => 'search' } %>

    <% active_scaffold_config.field_search.columns.each do |column| -%>
      <% name = "search[#{column.name}]" %>
      <% value = nil %>
      <% value = params[:search][column.name] if params[:search] %>

        <label for="<%= "search_#{column.name}" %>"><%= column.label %>
        <%= case column.ui_type
          when :boolean
            check_box_tag(name, 1, value || value == 1)
          else
            text_field_tag(name, value, { :autocomplete => "off", :size => 20, :class => 'text-input', :id => "search_#{column.name}"})
          end
        %>

    <% end -%>

  <%= submit_tag as_('Search'), :class => "submit" %>
  <%= as_('Reset') -%>
  <%= loading_indicator_tag(:action => :search) %>
</form>


Use the z13 key for z13 and over.

Use the z13 key for z13 and over.

<% content_for :left_menu do %>
<%= link_to_function "Map key", "showKey();" %>
<% end %>


Revert SteveC's edit as blank title are now banned.

<tr class="inbox-row<%= "-unread" if not message_summary.message_read? %>">
  <%= link_to message_summary.sender.display_name , :controller => 'user', :action => message_summary.sender.display_name %>
  <%= link_to  message_summary.title , :controller => 'message', :action => 'read', :message_id => message_summary.id  %>
  <%= message_summary.sent_on %>
  <% if message_summary.message_read? %>
    <%= button_to 'Mark as unread', :controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'unread' %>
  <% else %>
    <%= button_to 'Mark as read', :controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'read' %>
  <% end %>
  <%= button_to 'Reply', :controller => 'message', :action => 'new', :user_id => message_summary.from_user_id %>

<tr class="inbox-row<%= "-unread" if not message_summary.message_read? %>">
  <%= link_to message_summary.sender.display_name , :controller => 'user', :action => message_summary.sender.display_name %>

    <% if message_summary.title.nil? or message_summary.title == '' %>
      <%= link_to '(no subject)' , :controller => 'message', :action => 'read', :message_id => message_summary.id  %>
    <% else %>
      <%= link_to  message_summary.title , :controller => 'message', :action => 'read', :message_id => message_summary.id  %>
    <% end %>

  <%= message_summary.sent_on %>
  <% if message_summary.message_read? %>
    <%= button_to 'Mark as unread', :controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'unread' %>
  <% else %>
    <%= button_to 'Mark as read', :controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'read' %>
  <% end %>
  <%= button_to 'Reply', :controller => 'message', :action => 'new', :user_id => message_summary.from_user_id %>


Put back the SOTM advert on the front page, updated for SOTM2008.


Fixed bug with multi-work view and IA works

	  <% if @search_string %>

Search results for <%= @search_string %>

		<% end %>
    <% if @pages.size == 0 %>

No pages found.

    <% end %>

	  <% work_title = nil %>
	  <% for page in @pages %>
	    <% old_work_title = work_title %>
	    <% work_title = page.work.title %>
	    <% if !@work && work_title != old_work_title %>

<%= work_title %>

	    <% end %>

		    	<% if page.ia_leaf %>
					<% thumb_url = "http://www.archive.org/download/#{page.work.ia_work.book_id}/page/leaf#{page.ia_leaf.leaf_number}_thumb.jpg" %>
			      <%= link_to(image_tag(thumb_url),
		                    { :action => 'display_page',
		                      :page_id => page.id,
	                        :ol => 'w_rw_p_pl' })  %>
				<% else %>
			      <%= link_to(image_tag(file_to_url(page.thumbnail_image)),
		                    { :action => 'display_page',
		                      :page_id => page.id,
	                        :ol => 'w_rw_p_pl' })  %>
				<% end %>

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

		      <% if false %>
						Edited by <% if page.current_version %>
					  <%= link_to (page.current_version.user.display_name,
		                           { :controller => 'user',
		                               :action => 'profile',
		                               :user_id => page.current_version.user.id }) %>
	  				<%= distance_of_time_in_words(page.current_version.created_on, Time.now, include_seconds = true)%> ago.
						<% else %>

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

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

	  <% if @search_string %>

Search

		      <% form_tag({:controller => 'display', :action => 'search'}, :method => :get) do %>
	        <%=  text_field_tag 'search_string', @search_string %>
	        <%=  hidden_field_tag('collection_id', @collection.id) %>
	        <%=  submit_tag("Search")%>
	        <% end %>

		<% end %>

    <% if @article %>

<%= @article.title %>

		    <% if @article.xml_text != nil && !@article.xml_text.empty? %>
		    <%=  xml_to_html(@article.xml_text) %>
		    <% end %>

		  <%= render :partial => 'article/article_links' %>
		<% end %>
		<% if @collection && @collection.categories %>

Subjects

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

		<% end %>

	  <% if @search_string %>

Search results for <%= @search_string %>

		<% end %>
    <% if @pages.size == 0 %>

No pages found.

    <% end %>

	  <% work_title = nil %>
	  <% for page in @pages %>
	    <% old_work_title = work_title %>
	    <% work_title = page.work.title %>
	    <% if !@work && work_title != old_work_title %>

<%= work_title %>

	    <% end %>

		    	<% if page.ia_leaf %>
					<% thumb_url = "http://www.archive.org/download/#{@work.ia_work.book_id}/page/leaf#{page.ia_leaf.leaf_number}_thumb.jpg" %>
			      <%= link_to(image_tag(thumb_url),
		                    { :action => 'display_page',
		                      :page_id => page.id,
	                        :ol => 'w_rw_p_pl' })  %>
				<% else %>
			      <%= link_to(image_tag(file_to_url(page.thumbnail_image)),
		                    { :action => 'display_page',
		                      :page_id => page.id,
	                        :ol => 'w_rw_p_pl' })  %>
				<% end %>

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

		      <% if false %>
						Edited by <% if page.current_version %>
					  <%= link_to (page.current_version.user.display_name,
		                           { :controller => 'user',
		                               :action => 'profile',
		                               :user_id => page.current_version.user.id }) %>
	  				<%= distance_of_time_in_words(page.current_version.created_on, Time.now, include_seconds = true)%> ago.
						<% else %>

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

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

	  <% if @search_string %>

Search

		      <% form_tag({:controller => 'display', :action => 'search'}, :method => :get) do %>
	        <%=  text_field_tag 'search_string', @search_string %>
	        <%=  hidden_field_tag('collection_id', @collection.id) %>
	        <%=  submit_tag("Search")%>
	        <% end %>

		<% end %>

    <% if @article %>

<%= @article.title %>

		    <% if @article.xml_text != nil && !@article.xml_text.empty? %>
		    <%=  xml_to_html(@article.xml_text) %>
		    <% end %>

		  <%= render :partial => 'article/article_links' %>
		<% end %>
		<% if @collection && @collection.categories %>

Subjects

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

		<% end %>


switched to YUI 2.8.0r4

switched to YUI 2.8.0r4

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

  <title><%=t("madb_madb")%>::<%= @title%></title>
<%= stylesheet_link_tag 'main' %>
<% if (RAILS_ENV=="test" and request.env["HTTP_USER_AGENT"].nil?) or request.env["HTTP_USER_AGENT"].include?("MSIE")%>
<%= stylesheet_link_tag 'ie' %>
<% else %>
<%= stylesheet_link_tag 'mozilla' %>
<% end%>

<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.0r4/build/container/assets/skins/sam/container.css">

<%=# stylesheet_link_tag 'yui-container'
%>
<%=# javascript_include_tag "yui-yahoo"
%>
<%=# javascript_include_tag "yui-event"
%>
<%=# javascript_include_tag "yui-dom"
%>
<%=# javascript_include_tag "yui-container"
%>
<%= javascript_include_tag :defaults %>

<%= javascript_include_tag "fat" %>
<%= javascript_include_tag "scriptaculous" %>
<%= javascript_include_tag "madb" %>
<%= javascript_include_tag "gau" %>

<% if session['user'].account.respond_to? :allows_transfer? %>
  <% if !session["user"].account.allows_transfer? %>

  <% end %>
<% end %>

  <% if File.exist?("#{RAILS_ROOT}/config/version")%>
    version <%= File.open("#{RAILS_ROOT}/config/version"){|f| f.read}%>
  <%end %>
  <% #languages = Language.find(:all,:conditions => "active='t'",:order => "lang").collect{|l| [ t(l.lang), l.lang]}%>
  <% languages= AppConfig.languages.reject {|lang| !['en', 'fr'].include? lang.to_s } %>
  <% languages.push([ t("madb_translation_ids"), "t_id"]) if ENV['RAILS_ENV']=="translate" %>
  <select name="lang" onchange="set_lang(this);"><%= options_for_select( languages, cookies[TranslationsConfig.cookie_name.to_s])%> </select>

<% if session["user"].admin_user? %>
<%=link_to(t("madb_admin_databases"), :controller => "/admin/databases", :action => "index") %>
<%=link_to(t("madb_admin_users"), :controller => "/admin/users", :action => "index") %>
<% end %>

<%=link_to_unless_current(t("madb_settings"), :controller=> "/settings", :action => "show" )%>
<%=link_to_unless_current(t("madb_logout"), :controller=> "/authentication", :action => "logout" )%>

<%=t("madb_busy")%>

<%=link_to_unless_current(t("madb_my_databases"), :controller=> "/database" )%>
<% if session["user"].admin_user? %>
<%=link_to(image_tag("icon/small/modify.gif", :size => "9x9", :border =>0), { :controller => "/admin/databases"}, {:title => t("madb_admin_database")}) %>
<% end %>

<%
 #session['user'].account.databases.each do |db|
databases = Database.find(:all,
  :conditions => ["account_id = ?", session['user'].account.id])
databases.each do |db| %>

<div class="<%= (!@db.nil?  and (@db.id==db.id)) ? "activeDB" : "inactiveDB"%>">

					<a href="javascript:change('<%=db.id %>')"><img src="/images/<%= (!@db.nil?  and (@db.id==db.id)) ? "collapse.gif" : "expand.gif"%>" border="0" id="img<%=db.id %>">
          <%=link_to_unless_current(t(db.name,{:scope => 'account'}),{ :controller=> "/database", :action =>"list_entities", :id => db.id},{ :title => t("madb_database_menu_link_title")}  )%>

	<%=link_to(image_tag("icon/small/search.gif", :size => "9x9", :border =>0, :alt => t("madb_search")), { :controller => "/search", :database_id => db.id}, { :title=> t("madb_search")}) %>
<% if session["user"].admin_user? %>
<%=link_to(image_tag("icon/small/modify.gif", :size => "9x9", :border =>0, :alt  => t("madb_admin_database")), { :controller => "/admin/entities",  :db => db.id}, {:title => t("madb_admin_database")}) %>
<%end%>

		<tbody id="<%=db.id %>" visu="<%= (!@db.nil?  and (@db.id==db.id)) ? "1" : "0"%>">
<% if db.respond_to? :entities %>
  <% db.entities.sort{ |a,b| a.id<=>b.id }.each do |e| %>

      <%=link_to_unless_current(t(e.name, { :scope => "account" }), {:controller=> "/entities", :action => "list", :id => e.id},{ :title => t("madb_entity_menu_link_title", :vars => { 'entity' => t(e.name, :scope => 'account') })}  )%>
      <%=link_to(image_tag("icon/small/add.gif", :size => "9x9", :border =>0, :alt => t("madb_add_new")), { :controller => "/entities", :action => "add", :id => e.id}, {:title => (t("madb_add_new"))} ) %>

        <%=link_to(image_tag("icon/small/search.gif", :size => "9x9", :border =>0, :alt => (t("madb_search"))), { :controller => "/search", :database_id => db.id, :entity_id => e.id}, { :title=> (t("madb_search"))}) %>

  <% if session["user"].admin_user? %>
  <%=link_to(image_tag("icon/small/modify.gif", :size => "9x9", :border =>0, :alt  => t("madb_modify_entity")), { :controller => "/admin/entities", :action => "show", :id => e.id}, {:title => t("madb_modify_entity")}) %>
  <% end %>

  <% end %>
  <%end%>

<% end %>

<%= @content_for_layout %>

<%if flash["error"]%>

<% end %>

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

  <title><%=t("madb_madb")%>::<%= @title%></title>
<%= stylesheet_link_tag 'main' %>
<% if (RAILS_ENV=="test" and request.env["HTTP_USER_AGENT"].nil?) or request.env["HTTP_USER_AGENT"].include?("MSIE")%>
<%= stylesheet_link_tag 'ie' %>
<% else %>
<%= stylesheet_link_tag 'mozilla' %>
<% end%>

<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/container/assets/skins/sam/container.css">

<%=# stylesheet_link_tag 'yui-container'
%>
<%=# javascript_include_tag "yui-yahoo"
%>
<%=# javascript_include_tag "yui-event"
%>
<%=# javascript_include_tag "yui-dom"
%>
<%=# javascript_include_tag "yui-container"
%>
<%= javascript_include_tag :defaults %>

<%= javascript_include_tag "fat" %>
<%= javascript_include_tag "scriptaculous" %>
<%= javascript_include_tag "madb" %>
<%= javascript_include_tag "gau" %>

<% if session['user'].account.respond_to? :allows_transfer? %>
  <% if !session["user"].account.allows_transfer? %>

  <% end %>
<% end %>

  <% if File.exist?("#{RAILS_ROOT}/config/version")%>
    version <%= File.open("#{RAILS_ROOT}/config/version"){|f| f.read}%>
  <%end %>
  <% #languages = Language.find(:all,:conditions => "active='t'",:order => "lang").collect{|l| [ t(l.lang), l.lang]}%>
  <% languages= AppConfig.languages.reject {|lang| !['en', 'fr'].include? lang.to_s } %>
  <% languages.push([ t("madb_translation_ids"), "t_id"]) if ENV['RAILS_ENV']=="translate" %>
  <select name="lang" onchange="set_lang(this);"><%= options_for_select( languages, cookies[TranslationsConfig.cookie_name.to_s])%> </select>

<% if session["user"].admin_user? %>
<%=link_to(t("madb_admin_databases"), :controller => "/admin/databases", :action => "index") %>
<%=link_to(t("madb_admin_users"), :controller => "/admin/users", :action => "index") %>
<% end %>

<%=link_to_unless_current(t("madb_settings"), :controller=> "/settings", :action => "show" )%>
<%=link_to_unless_current(t("madb_logout"), :controller=> "/authentication", :action => "logout" )%>

<%=t("madb_busy")%>

<%=link_to_unless_current(t("madb_my_databases"), :controller=> "/database" )%>
<% if session["user"].admin_user? %>
<%=link_to(image_tag("icon/small/modify.gif", :size => "9x9", :border =>0), { :controller => "/admin/databases"}, {:title => t("madb_admin_database")}) %>
<% end %>

<%
 #session['user'].account.databases.each do |db|
databases = Database.find(:all,
  :conditions => ["account_id = ?", session['user'].account.id])
databases.each do |db| %>

<div class="<%= (!@db.nil?  and (@db.id==db.id)) ? "activeDB" : "inactiveDB"%>">

					<a href="javascript:change('<%=db.id %>')"><img src="/images/<%= (!@db.nil?  and (@db.id==db.id)) ? "collapse.gif" : "expand.gif"%>" border="0" id="img<%=db.id %>">
          <%=link_to_unless_current(t(db.name,{:scope => 'account'}),{ :controller=> "/database", :action =>"list_entities", :id => db.id},{ :title => t("madb_database_menu_link_title")}  )%>

	<%=link_to(image_tag("icon/small/search.gif", :size => "9x9", :border =>0, :alt => t("madb_search")), { :controller => "/search", :database_id => db.id}, { :title=> t("madb_search")}) %>
<% if session["user"].admin_user? %>
<%=link_to(image_tag("icon/small/modify.gif", :size => "9x9", :border =>0, :alt  => t("madb_admin_database")), { :controller => "/admin/entities",  :db => db.id}, {:title => t("madb_admin_database")}) %>
<%end%>

		<tbody id="<%=db.id %>" visu="<%= (!@db.nil?  and (@db.id==db.id)) ? "1" : "0"%>">
<% if db.respond_to? :entities %>
  <% db.entities.sort{ |a,b| a.id<=>b.id }.each do |e| %>

      <%=link_to_unless_current(t(e.name, { :scope => "account" }), {:controller=> "/entities", :action => "list", :id => e.id},{ :title => t("madb_entity_menu_link_title", :vars => { 'entity' => t(e.name, :scope => 'account') })}  )%>
      <%=link_to(image_tag("icon/small/add.gif", :size => "9x9", :border =>0, :alt => t("madb_add_new")), { :controller => "/entities", :action => "add", :id => e.id}, {:title => (t("madb_add_new"))} ) %>

        <%=link_to(image_tag("icon/small/search.gif", :size => "9x9", :border =>0, :alt => (t("madb_search"))), { :controller => "/search", :database_id => db.id, :entity_id => e.id}, { :title=> (t("madb_search"))}) %>

  <% if session["user"].admin_user? %>
  <%=link_to(image_tag("icon/small/modify.gif", :size => "9x9", :border =>0, :alt  => t("madb_modify_entity")), { :controller => "/admin/entities", :action => "show", :id => e.id}, {:title => t("madb_modify_entity")}) %>
  <% end %>

  <% end %>
  <%end%>

<% end %>

<%= @content_for_layout %>

<%if flash["error"]%>

<% end %>


new analytics js

new analytics js

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

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="description" content="Companies Open House, always open 24/7 (unlike UK's Companies House)"/>
    <meta name="keywords" content="twitter,search,realtime"/>
    <title><%= @title ? "#{@title} | Companies Open House" : "Companies Open House, always open 24/7 (unlike companies house)" %></title>
    <%= stylesheet_link_tag("application") %>
    <%= javascript_include_tag("jquery-1.3.2.min", "application") %>
      <%= yield :head %>

        <%= link_to(image_tag('coh.png'), '/') %>
        always open 24/7 (unlike companies house)

        <%= yield %>

<%= image_tag('logo/rs_bigger.png') %>

This service was constructed as part of the <%= link_to('Rewired State','http://rewiredstate.org/') %> hackday.

Watch our Rewired State presentation for an <%= link_to('explanation of the site',rewired_state_presentation_url) %>.

              Credits:
                @delineator
                @grahamashton
                @jamespjh
                @martinbtt
                @metade

<% if RAILS_ENV == 'production' %>

<% end %>


Fixing catalog category box link to homepage

<% extra_content = [] %>
<% extra_content_list = [] %>

<%= _('Products/Services') %>

<%= breadcrumb(@category) if params[:level] %>

    <%= content_tag('li', link_to(_('Homepage'), profile.url), :class => 'catalog-categories-link') %>
    <%= content_tag('li', link_to(_('Catalog start'), profile.catalog_url), :class => 'catalog-categories-link') %>
    <% if @categories.present? %>
      <% @categories.each do |category| %>
        <%= category_link(category) %>
        <%= category_sub_links(category) %>
      <% end %>
    <% elsif @category.present? %>
      <%= content_tag('li', _('There are no sub-categories for %s') % @category.name, :id => 'catalog-categories-notice') %>
    <% else %>
      <%= content_tag('li', _('There are no categories available.'), :id => 'catalog-categories-notice') %>
    <% end %>

  <% @products.each do |product| %>
    <% extra_content = @plugins.dispatch(:catalog_item_extras, product).collect { |content| instance_eval(&content) } %>
    <% extra_content_list = @plugins.dispatch(:catalog_list_item_extras, product).collect { |content| instance_eval(&content) } %>

    <% status = [] %>
    <% status << 'not-available' if !product.available %>
    <% status << 'highlighted' if product.highlighted %>

    <li id="product-<%= product.id %>" class="product <%= status.join(' ') %>">

          <% if product.highlighted? %>
            <%= link_to image_tag(themed_path('/images/star.png'), :class => 'star', :alt => _('Highlighted product')), product_path(product) %>
          <% end %>
          <% if product.image %>

              <%= link_to_product product, :class => 'product-big', :style => "background-image: url(#{product.default_image(:big)})" %>
              <%= link_to content_tag(:span, _('Zoom in')), product.default_image(:big).gsub('_big',''), :class => 'zoomify-image' %>

          <% else %>

<%= _('No image') %>

          <% end %>

<%= extra_content.join("\n") %>

<%= link_to_product product %>

          <% unless product.discount.blank? or product.discount == 0 %>

              <%= _('from ') + price_span(product.price) %>
              <%= _('by ') %>

          <% end %>
          <% unless product.price.blank? or product.price == 0 %>

              <%= price_span product.price_with_discount, :class => "product-price #{'with-discount' unless product.discount}" %>
              <%= _(' / ') + (product.unit ? product.unit.singular : _('unit')) %>

          <% end %>

        <% if product.description %>

            <%= _('description') %>

<%= product.description %>

        <% end %>

        <% if product.price_described? %>

            <%= _('price composition') %>

                <% product.inputs.relevant_to_price.each do |i| %>

<%= i.product_category.name %>

                    <%= price_span i.cost, :class => 'search-product-input-price' %>

                <% end %>
                <% product.price_details.each do |i| %>

<%= i.production_cost.name %>

                    <%= price_span i.price, :class => 'search-product-input-price' %>

                <% end %>

        <% end %>

        <% if product.inputs.count > 0 %>

            <%= _('inputs and raw materials') %>

                <% product.inputs.each do |i| %>

                    <%= _('%{amount_used} %{unit} of') % {:amount_used => i.amount_used, :unit => i.unit.singular} + ' ' if i.has_all_price_details? %>
                    <%= i.product_category.name %>

                <% end %>

        <% end %>

        <% unless product.qualifiers.blank? %>

            <%= _('qualifiers') if product.product_qualifiers.count > 0 %>

<%= render :partial => 'shared/product/qualifiers', :locals => {:product => product} %>

        <% end %>

        <% extra_content_list.map do |content| %>

<%= content %>

        <% end %>

<%= _('product unavailable') unless product.available %>

  <% end %>

<%= pagination_links @products, :params => {:controller => :catalog, :action => :index, :profile => profile.identifier} %>

<%= add_zoom_to_images %>

<% extra_content = [] %>
<% extra_content_list = [] %>

<%= _('Products/Services') %>

<%= breadcrumb(@category) if params[:level] %>

    <%= content_tag('li', link_to(_('Enterprise homepage'), profile.public_profile_url), :class => 'catalog-categories-link') %>
    <%= content_tag('li', link_to(_('Catalog start'), profile.catalog_url), :class => 'catalog-categories-link') %>
    <% if @categories.present? %>
      <% @categories.each do |category| %>
        <%= category_link(category) %>
        <%= category_sub_links(category) %>
      <% end %>
    <% elsif @category.present? %>
      <%= content_tag('li', _('There are no sub-categories for %s') % @category.name, :id => 'catalog-categories-notice') %>
    <% else %>
      <%= content_tag('li', _('There are no categories available.'), :id => 'catalog-categories-notice') %>
    <% end %>

  <% @products.each do |product| %>
    <% extra_content = @plugins.dispatch(:catalog_item_extras, product).collect { |content| instance_eval(&content) } %>
    <% extra_content_list = @plugins.dispatch(:catalog_list_item_extras, product).collect { |content| instance_eval(&content) } %>

    <% status = [] %>
    <% status << 'not-available' if !product.available %>
    <% status << 'highlighted' if product.highlighted %>

    <li id="product-<%= product.id %>" class="product <%= status.join(' ') %>">

          <% if product.highlighted? %>
            <%= link_to image_tag(themed_path('/images/star.png'), :class => 'star', :alt => _('Highlighted product')), product_path(product) %>
          <% end %>
          <% if product.image %>

              <%= link_to_product product, :class => 'product-big', :style => "background-image: url(#{product.default_image(:big)})" %>
              <%= link_to content_tag(:span, _('Zoom in')), product.default_image(:big).gsub('_big',''), :class => 'zoomify-image' %>

          <% else %>

<%= _('No image') %>

          <% end %>

<%= extra_content.join("\n") %>

<%= link_to_product product %>

          <% unless product.discount.blank? or product.discount == 0 %>

              <%= _('from ') + price_span(product.price) %>
              <%= _('by ') %>

          <% end %>
          <% unless product.price.blank? or product.price == 0 %>

              <%= price_span product.price_with_discount, :class => "product-price #{'with-discount' unless product.discount}" %>
              <%= _(' / ') + (product.unit ? product.unit.singular : _('unit')) %>

          <% end %>

        <% if product.description %>

            <%= _('description') %>

<%= product.description %>

        <% end %>

        <% if product.price_described? %>

            <%= _('price composition') %>

                <% product.inputs.relevant_to_price.each do |i| %>

<%= i.product_category.name %>

                    <%= price_span i.cost, :class => 'search-product-input-price' %>

                <% end %>
                <% product.price_details.each do |i| %>

<%= i.production_cost.name %>

                    <%= price_span i.price, :class => 'search-product-input-price' %>

                <% end %>

        <% end %>

        <% if product.inputs.count > 0 %>

            <%= _('inputs and raw materials') %>

                <% product.inputs.each do |i| %>

                    <%= _('%{amount_used} %{unit} of') % {:amount_used => i.amount_used, :unit => i.unit.singular} + ' ' if i.has_all_price_details? %>
                    <%= i.product_category.name %>

                <% end %>

        <% end %>

        <% unless product.qualifiers.blank? %>

            <%= _('qualifiers') if product.product_qualifiers.count > 0 %>

<%= render :partial => 'shared/product/qualifiers', :locals => {:product => product} %>

        <% end %>

        <% extra_content_list.map do |content| %>

<%= content %>

        <% end %>

<%= _('product unavailable') unless product.available %>

  <% end %>

<%= pagination_links @products, :params => {:controller => :catalog, :action => :index, :profile => profile.identifier} %>

<%= add_zoom_to_images %>


Only "I also want to know" for individual requests

<%
    if @user
        existing_track = TrackThing.find_by_existing_track(@user, track_thing)
    end
%>

<% if own_request %>

<%= _('This is your own request, so you will be automatically emailed when new responses arrive.')%>

<% elsif existing_track %>

<%= track_thing.params[:verb_on_page_already] %>

    <div class="feed_link feed_link_<%=location%>">
  <%= link_to _("Unsubscribe"), {:controller => 'track', :action => 'update', :track_id => existing_track.id, :track_medium => "delete", :r => request.request_uri}, :class => "link_button_green" %>

<% elsif track_thing %>
    <div class="feed_link feed_link_<%=location%>">
     <% if defined? follower_count && follower_count > 0 %>
        <%= link_to _("I like this request"), do_track_path(track_thing), :class => "link_button_green" %>
     <% elsif track_thing.info_request_id %>
        <%= link_to _("I also want to know"), do_track_path(track_thing), :class => "link_button_green" %>
     <% else %>
        <%= link_to _("Follow"), do_track_path(track_thing), :class => "link_button_green" %>
     <% end %>

    <div class="feed_link feed_link_<%=location%>">
        <%= link_to ''.html_safe, do_track_path(track_thing, 'feed') %>
        <%= link_to (location == 'sidebar' ? _('RSS feed of updates') : _('RSS feed')),  do_track_path(track_thing, 'feed') %>

<% end %>

<%
    if @user
        existing_track = TrackThing.find_by_existing_track(@user, track_thing)
    end
%>

<% if own_request %>

<%= _('This is your own request, so you will be automatically emailed when new responses arrive.')%>

<% elsif existing_track %>

<%= track_thing.params[:verb_on_page_already] %>

    <div class="feed_link feed_link_<%=location%>">
  <%= link_to _("Unsubscribe"), {:controller => 'track', :action => 'update', :track_id => existing_track.id, :track_medium => "delete", :r => request.request_uri}, :class => "link_button_green" %>

<% elsif track_thing %>
    <div class="feed_link feed_link_<%=location%>">
     <% if defined? follower_count && follower_count > 0 %>
        <%= link_to _("I like this request"), do_track_path(track_thing), :class => "link_button_green" %>
     <% else %>
        <%= link_to _("I also want to know"), do_track_path(track_thing), :class => "link_button_green" %>
     <% end %>

    <div class="feed_link feed_link_<%=location%>">
        <%= link_to ''.html_safe, do_track_path(track_thing, 'feed') %>
        <%= link_to (location == 'sidebar' ? _('RSS feed of updates') : _('RSS feed')),  do_track_path(track_thing, 'feed') %>

<% end %>


Don't render useless partial

Don't render useless partial

<%=h @questionnaire.title%>

<%= error_messages_for :questionnaire %>
<%= javascript_include_tag "layout.js" %>

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

<% @editing = logged_in? and logged_in_person.permitted?(@questionnaire, "edit") -%>

<% form_for(:questionnaire, @questionnaire, :url => questionnaire_path(@questionnaire), :html => { :method => :put }) do |f| %>

      <%= jipe_editor @questionnaire, :title, :editing => @editing %>

    <% authors = @questionnaire.permitted_people("edit").collect {|p| p.name}.join(", ") -%>
    <% if authors.length > 0 -%>

      By <%=h authors %>
    <% end -%>

    <% if @editing -%>

Tags:
      <%=text_field_tag "questionnaire[tags]", @questionnaire.tag_names.join(", ") %>
    <% elsif @questionnaire.tags.size > 0 -%>

Tags:
      <%=h @questionnaire.tag_names.join(", ") %>
    <% end -%>

      <%= pluralize(@questionnaire.pages.count, "page") %>

      <%= pluralize(@questionnaire.fields.count, "question") %>

Welcome page

    <% if @editing -%>

The welcome page is the first thing your visitors will see before starting your survey.  You can put any introductory
      text you'd like on the welcome page.

For advanced formatting and other customizations, you can insert custom HTML code by clicking the "HTML" tab.

      <%= render :partial => "html_editor", :locals => {:obj => @questionnaire, :field => "welcome_text"}%>
    <% else -%>
	  <% if @questionnaire.welcome_text.blank? -%>

This survey has no custom welcome page content.

	  <% else -%>

          <%= sanitize @questionnaire.welcome_text %>

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

    <% if @editing -%>

<%= submit_tag "Save changes" %>

    <% end -%>
<% end %>

    <%= render :partial => "permission/show", :locals => { :item => @questionnaire } %>


fixed typo bugs

fixed typo bugs

<% highlighted_links = get_service_type('highlighted_link')
   unless highlighted_links.blank? %>

See also:
<% highlighted_links.each do |hl_st|
    target = hl_st.view_data
%>

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

<%end%>

<% end %>

<% highlighted_links = get_service_type('highlighted_link')
   unless highlighted_links.empty? %>

See also:
<% highlighted_link.each do |hl|
    target = hl.service.to_highlighted_link
%>

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

<%end%>

<% end %>


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

<% @page_title = "Home" %>
<% @main_title = "Welcome" %>
<%= render "/home/deflinks" %>

Castle is a small collection of tools and a simple inversion of control
container intended to work together to make development of
applications (enterprise and server like) easier.

While we don't pursue a paradigm shift, we do aim to
provide a reference to create application with a nice
design and yet adhere to values of pragmatic programmers
like orthogonality and reversibility.

To achieve good design, Castle promotes

Component oriented programming

Aspect oriented programming

Separation of concerns

Our sub projects help us delivering this capabilities to
the CLI. They are totally independent and can be used alone
as well.

Castle container

Castle Container is a very simple inversion of control
container which can combine facilities to grow orthogonally.
For example, you can add a NHibernate facility - thus allowing your
data access components can have references to NHibernate sessions -
 and use our AOP facility which will allow your components to use mixins
and interceptors.

These facilities work side-by-side, without interfering
or depending on each other, to provide you a set of features.

News

27-12-04: Introducing Castle - Part I

   New article
   published on CodeProject.com describing how inversion of control might benefit
   the design of applications, and how Castle Project fits in this scenario.

12-12-04: PestControl Sample Application

   PestControl is an application
   to manage builds, but its underlying goal is to depict the benefits
   of using Castle's Windsor and Castle on Rails.

12-12-04: New Alpha-2 Release

   New release for the Inversion of Control,
   Castle on Rails and Prevalence packages.

12-10-04: Castle on Rails

   First draft of documentation
   explaining what Castle on Rails is, how to use it and what tasks are
   pending for it.

12-05-04: Who is using Dynamic Proxy?

   New section under DynamicProxy area.

11-22-04: Containers documentation

   Documentation for MicroKernel and Windsor are
   now available.
   Click here to access it.

11-22-04: Alpha-1 Released

   First release of all pieces that
   constitues the project is now available.
   Click here to download

11-19-04: New site is up and running

   The http://www.castleproject.org is released.

Mailing list

If you want to discuss features, ask question or anything related, please subscribe to
castle-devel mailing list.

Free counter

<% @page_title = "Home" %>
<% @main_title = "Welcome" %>
<%= render "/home/deflinks" %>

Castle is a small collection of tools and a simple inversion of control
container intended to work together to make development of
applications (enterprise and server like) easier.

While we don't pursue a paradigm shift, we do aim to
provide a reference to create application with a nice
design and yet adhere to values of pragmatic programmers
like orthogonality and reversibility.

To achieve good design, Castle promotes

Component oriented programming

Aspect oriented programming

Separation of concerns

Our sub projects help us delivering this capabilities to
the CLI. They are totally independent and can be used alone
as well.

Castle container

Castle Container is a very simple inversion of control
container which can combine facilities to grow orthogonally.
For example, you can add a NHibernate facility - thus allowing your
data access components can have references to NHibernate sessions -
 and use our AOP facility which will allow your components to use mixins
and interceptors.

These facilities work side-by-side, without interfering
or depending on each other, to provide you a set of features.

News

12-12-04: PestControl Sample Application

   PestControl is an application
   to manage builds, but its underlying goal is to depict the benefits
   of using Castle's Windsor and Castle on Rails.

12-12-04: New Alpha-2 Release

   New release for the Inversion of Control,
   Castle on Rails and Prevalence packages.

12-10-04: Castle on Rails

   First draft of documentation
   explaining what Castle on Rails is, how to use it and what tasks are
   pending for it.

12-05-04: Who is using Dynamic Proxy?

   New section under DynamicProxy area.

11-22-04: Containers documentation

   Documentation for MicroKernel and Windsor are
   now available.
   Click here to access it.

11-22-04: Alpha-1 Released

   First release of all pieces that
   constitues the project is now available.
   Click here to download

11-19-04: New site is up and running

   The http://www.castleproject.org is released.

Mailing list

If you want to discuss features, ask question or anything related, please subscribe to
castle-devel mailing list.

Free counter


fixed create missing page bug

fixed create missing page bug

Sorry, page <%= params[:_page]%> does not exist.

  <% if @group and @user and @user.member_of?(@group) %>

<%= link_to "create #{params[:_page]}", {:controller => 'pages', :action => :create_wiki, :name => params[:_page], :group => @group.name }, :method=>:post %>

  <% end %>

search for similar pages

  <% if request.env["HTTP_REFERER"] %>

<%= "return to previous page" % request.env["HTTP_REFERER"] %>

  <% end %>

Sorry, page <%params[:page_name]%> does not exist.

  <% if @group and @user and @user.member_of?(@group) %>

<%= link_to "create #{params[:page_name]}", {:controller => 'pages', :action => :create_wiki, :name => params[:page_name], :group => @group.name }, :method=>:post %>

  <% end %>

search for similar pages

  <% if request.env["HTTP_REFERER"] %>

<%= "return to previous page" % request.env["HTTP_REFERER"] %>

  <% end %>


Replacing example in "Edit header and footer"

(ActionItem1408)

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

<%= _('Editing header and footer') %>

<% form_tag do %>

    <% if environment.enabled?('display_header_footer_explanation') %>

        <%= _('Using the fields below you can customize the header and footer for your website:') %>

<%= _('On header, you can include a personalized banner by first adding in "Manage content", and then referencing it here. A good format is 468 X 60 pixels, PNG format.') %>

<%= _('On footer, you can include a slogan and your contact information etc.') %>

        <%= _('See existing examples:') %>

Aptes

Ynternet.org Foundation

    <% end %>

<%= _('Content for header ') %>

    <%= text_area_tag(:custom_header, @header, :style => 'width: 100%; height: 150px;') %>

<%= _('Content for footer') %>

    <%= text_area_tag(:custom_footer, @footer, :style => 'width: 100%; height: 150px;') %>
    <% button_bar do %>
      <%= submit_button(:save, _('Save')) %>
      <%= button(:cancel, _('Cancel'), :action => 'index') %>
    <% end %>

<% end %>

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

<%= _('Editing header and footer') %>

<% form_tag do %>

    <% if environment.enabled?('display_header_footer_explanation') %>

        <%= _('Using the fields below you can customize the header and footer for your website:') %>

<%= _('On header, you can include a personalized banner by first adding in "Manage content", and then referencing it here. A good format is 468 X 60 pixels, PNG format.') %>

<%= _('On footer, you can include a slogan and your contact information etc.') %>

        <%= _('See existing examples:') %>

ecoPC Coalition

Ynternet.org Foundation

    <% end %>

<%= _('Content for header ') %>

    <%= text_area_tag(:custom_header, @header, :style => 'width: 100%; height: 150px;') %>

<%= _('Content for footer') %>

    <%= text_area_tag(:custom_footer, @footer, :style => 'width: 100%; height: 150px;') %>
    <% button_bar do %>
      <%= submit_button(:save, _('Save')) %>
      <%= button(:cancel, _('Cancel'), :action => 'index') %>
    <% end %>

<% end %>


Test of distance_of_time_in_words had deviations from how the function is actually coded

Use this page to test helpers of the Localization Simplified plugin.
Put this file in your applications view directory, add a controller action "helper_tests", and view this page

Sentence with UTF-8 characters: Café, Danish(æ,ø,å), Swedish(ä,ö,å), Spanish: (ñ)

		fn
		result
		expected

    time_ago_in_words(3.seconds.ago, true)
    <%=   time_ago_in_words(3.seconds.ago, true) %>
    'less than 5 seconds'

    time_ago_in_words(9.seconds.ago, true)
    <%=   time_ago_in_words(9.seconds.ago, true) %>
    'less than 10 seconds'

    time_ago_in_words(20.seconds.ago, true)
    <%=   time_ago_in_words(20.seconds.ago, true) %>
    'less than 20 seconds'

     time_ago_in_words(31.seconds.ago, true)
    <%=   time_ago_in_words(31.seconds.ago, true) %>
    'half a minute'

    time_ago_in_words(50.seconds.ago, true)
    <%=   time_ago_in_words(50.seconds.ago, true) %>
    'less than a minute'

    time_ago_in_words(80.seconds.ago, true)
    <%=   time_ago_in_words(80.seconds.ago, true) %>
    '1 minute'

    time_ago_in_words(4.minutes.ago, true)
    <%=   time_ago_in_words(4.minutes.ago, true) %>
    '4 minutes'

    time_ago_in_words(50.minutes.ago, true)
    <%=   time_ago_in_words(50.minutes.ago, true) %>
    'about 1 hour'

    time_ago_in_words(4.hours.ago, true)
    <%=   time_ago_in_words(4.hours.ago, true) %>
    'about 4 hours'

    time_ago_in_words(1.day.ago, true)
    <%=   time_ago_in_words(1.day.ago, true) %>
    '1 day'

    time_ago_in_words(4.days.ago, true)
    <%=   time_ago_in_words(4.days.ago, true) %>
    '4 days'

    time_ago_in_words(1.month.ago, true)
    <%=   time_ago_in_words(1.month.ago, true) %>
    '1 month'

    time_ago_in_words(4.months.ago, true)
    <%=   time_ago_in_words(4.months.ago, true) %>
    '4 months'

    time_ago_in_words(13.months.ago, true)
    <%=   time_ago_in_words(13.months.ago, true) %>
    '1 year'

    time_ago_in_words(26.months.ago, true)
    <%=   time_ago_in_words(26.months.ago, true) %>
    '2 years'

number_to_currency test:

<%= number_to_currency(1008323) %>

<%= number_to_currency(10083.777) %>

<%= number_to_currency(0.2) %>

Array.to_sentence test: [1,2,3].to_sentence: "<%= [1,2,3].to_sentence %>"  (expected "1,2, and 3")

	<% t = Time.parse('2006-12-25 11:55') -%>
	<% d = Date.parse('2006-12-25 11:55') -%>

	    Formatted time:
			result
			expected

	    t.to_formatted_s()
	    <%= t.to_formatted_s() %>
			Mon Dec 25 11:55:00 Romance Standard Time 2006

	    t.to_formatted_s(:default)
	    <%= t.to_formatted_s(:default) %>
			Mon Dec 25 11:55:00 Romance Standard Time 2006

	    t.to_formatted_s(:long)
	    <%= t.to_formatted_s(:long) %>
			December 25, 2006 11:55

	    t.to_formatted_s(:short)
	    <%= t.to_formatted_s(:short) %>
			 	25 Dec 11:55

	    Formatted date:
			result
			expected

	    d.to_formatted_s()
	    <%= d.to_formatted_s() %>
			2006-12-25

	    d.to_formatted_s(:default)
	    <%= d.to_formatted_s(:default) %>
			2006-12-25

	    d.to_formatted_s(:long)
	    <%= d.to_formatted_s(:long) %>
			December 25, 2006

	    d.to_formatted_s(:short)
	    <%= d.to_formatted_s(:short) %>
			 	25 Dec

date_select and datetime_select tests

<%

%>

Test order and localized content of date_select

<%= date_select :testmodel, :date %>

Test order and localized content of datetime_select

<%= datetime_select :testmodel, :datetime %>

Test order and localized content of select_date

<%=
# this gives exception
# select_date :testmodel, :select_date
%>

String concatenation tests

 truncate 'Iñtërnâtiônàlizætiøn', 12: <%= truncate 'Iñtërnâtiônàlizætiøn', 12 %> (expected: "Iñtërnâti…")

Use this page to test helpers of the Localization Simplified plugin.
Put this file in your applications view directory, add a controller action "helper_tests", and view this page

Sentence with UTF-8 characters: Café, Danish(æ,ø,å), Swedish(ä,ö,å), Spanish: (ñ)

		fn
		result
		expected

    time_ago_in_words(3.seconds.ago, true)
    <%=   time_ago_in_words(3.seconds.ago, true) %>
    'less than 5 seconds'

    time_ago_in_words(9.seconds.ago, true)
    <%=   time_ago_in_words(9.seconds.ago, true) %>
    'less than 10 seconds'

    time_ago_in_words(20.seconds.ago, true)
    <%=   time_ago_in_words(20.seconds.ago, true) %>
    'less than 20 seconds'

     time_ago_in_words(31.seconds.ago, true)
    <%=   time_ago_in_words(31.seconds.ago, true) %>
    'half a minute'

    time_ago_in_words(50.seconds.ago, true)
    <%=   time_ago_in_words(50.seconds.ago, true) %>
    'less than a minute'

    time_ago_in_words(80.seconds.ago, true)
    <%=   time_ago_in_words(80.seconds.ago, true) %>
    '1 minute'

    time_ago_in_words(4.minutes.ago, true)
    <%=   time_ago_in_words(4.minutes.ago, true) %>
    '4 minutes'

    time_ago_in_words(50.minutes.ago, true)
    <%=   time_ago_in_words(50.minutes.ago, true) %>
    'about 1 hour'

    time_ago_in_words(4.hours.ago, true)
    <%=   time_ago_in_words(4.hours.ago, true) %>
    'about 4 hours'

    time_ago_in_words(1.day.ago, true)
    <%=   time_ago_in_words(1.day.ago, true) %>
    '1 day'

    time_ago_in_words(4.days.ago, true)
    <%=   time_ago_in_words(4.days.ago, true) %>
    '4 days'

    time_ago_in_words(1.month.ago, true)
    <%=   time_ago_in_words(1.month.ago, true) %>
    '1 month'

    time_ago_in_words(4.months.ago, true)
    <%=   time_ago_in_words(4.months.ago, true) %>
    '4 months'

    time_ago_in_words(12.months.ago, true)
    <%=   time_ago_in_words(12.months.ago, true) %>
    '1 year'

    time_ago_in_words(14.months.ago, true)
    <%=   time_ago_in_words(14.months.ago, true) %>
    '2 years'

number_to_currency test:

<%= number_to_currency(1008323) %>

<%= number_to_currency(10083.777) %>

<%= number_to_currency(0.2) %>

Array.to_sentence test: [1,2,3].to_sentence: "<%= [1,2,3].to_sentence %>"  (expected "1,2, and 3")

	<% t = Time.parse('2006-12-25 11:55') -%>
	<% d = Date.parse('2006-12-25 11:55') -%>

	    Formatted time:
			result
			expected

	    t.to_formatted_s()
	    <%= t.to_formatted_s() %>
			Mon Dec 25 11:55:00 Romance Standard Time 2006

	    t.to_formatted_s(:default)
	    <%= t.to_formatted_s(:default) %>
			Mon Dec 25 11:55:00 Romance Standard Time 2006

	    t.to_formatted_s(:long)
	    <%= t.to_formatted_s(:long) %>
			December 25, 2006 11:55

	    t.to_formatted_s(:short)
	    <%= t.to_formatted_s(:short) %>
			 	25 Dec 11:55

	    Formatted date:
			result
			expected

	    d.to_formatted_s()
	    <%= d.to_formatted_s() %>
			2006-12-25

	    d.to_formatted_s(:default)
	    <%= d.to_formatted_s(:default) %>
			2006-12-25

	    d.to_formatted_s(:long)
	    <%= d.to_formatted_s(:long) %>
			December 25, 2006

	    d.to_formatted_s(:short)
	    <%= d.to_formatted_s(:short) %>
			 	25 Dec

date_select and datetime_select tests

<%

%>

Test order and localized content of date_select

<%= date_select :testmodel, :date %>

Test order and localized content of datetime_select

<%= datetime_select :testmodel, :datetime %>

Test order and localized content of select_date

<%=
# this gives exception
# select_date :testmodel, :select_date
%>

String concatenation tests

 truncate 'Iñtërnâtiônàlizætiøn', 12: <%= truncate 'Iñtërnâtiônàlizætiøn', 12 %> (expected: "Iñtërnâti…")


* Whitespace change * added extra tests for distance_of_time_in_words * commented select_date (I cant get it to work...)

Use this page to test helpers of the Localization Simplified plugin.
Put this file in your applications view directory, add a controller action "helper_tests", and view this page

Sentence with UTF-8 characters: Café, Danish(æ,ø,å), Swedish(ä,ö,å), Spanish: (ñ)

		fn
		result
		expected

    time_ago_in_words(3.seconds.ago, true)
    <%=   time_ago_in_words(3.seconds.ago, true) %>
    'less than 5 seconds'

    time_ago_in_words(9.seconds.ago, true)
    <%=   time_ago_in_words(9.seconds.ago, true) %>
    'less than 10 seconds'

    time_ago_in_words(20.seconds.ago, true)
    <%=   time_ago_in_words(20.seconds.ago, true) %>
    'less than 20 seconds'

     time_ago_in_words(31.seconds.ago, true)
    <%=   time_ago_in_words(31.seconds.ago, true) %>
    'half a minute'

    time_ago_in_words(50.seconds.ago, true)
    <%=   time_ago_in_words(50.seconds.ago, true) %>
    'less than a minute'

    time_ago_in_words(80.seconds.ago, true)
    <%=   time_ago_in_words(80.seconds.ago, true) %>
    '1 minute'

    time_ago_in_words(4.minutes.ago, true)
    <%=   time_ago_in_words(4.minutes.ago, true) %>
    '4 minutes'

    time_ago_in_words(50.minutes.ago, true)
    <%=   time_ago_in_words(50.minutes.ago, true) %>
    'about 1 hour'

    time_ago_in_words(4.hours.ago, true)
    <%=   time_ago_in_words(4.hours.ago, true) %>
    'about 4 hours'

    time_ago_in_words(1.day.ago, true)
    <%=   time_ago_in_words(1.day.ago, true) %>
    '1 day'

    time_ago_in_words(4.days.ago, true)
    <%=   time_ago_in_words(4.days.ago, true) %>
    '4 days'

    time_ago_in_words(1.month.ago, true)
    <%=   time_ago_in_words(1.month.ago, true) %>
    '1 month'

    time_ago_in_words(4.months.ago, true)
    <%=   time_ago_in_words(4.months.ago, true) %>
    '4 months'

    time_ago_in_words(12.months.ago, true)
    <%=   time_ago_in_words(12.months.ago, true) %>
    '1 year'

    time_ago_in_words(14.months.ago, true)
    <%=   time_ago_in_words(14.months.ago, true) %>
    '2 years'

number_to_currency test:

<%= number_to_currency(1008323) %>

<%= number_to_currency(10083.777) %>

<%= number_to_currency(0.2) %>

Array.to_sentence test: [1,2,3].to_sentence: "<%= [1,2,3].to_sentence %>"  (expected "1,2, and 3")

	<% t = Time.parse('2006-12-25 11:55') -%>
	<% d = Date.parse('2006-12-25 11:55') -%>

	    Formatted time:
			result
			expected

	    t.to_formatted_s()
	    <%= t.to_formatted_s() %>
			Mon Dec 25 11:55:00 Romance Standard Time 2006

	    t.to_formatted_s(:default)
	    <%= t.to_formatted_s(:default) %>
			Mon Dec 25 11:55:00 Romance Standard Time 2006

	    t.to_formatted_s(:long)
	    <%= t.to_formatted_s(:long) %>
			December 25, 2006 11:55

	    t.to_formatted_s(:short)
	    <%= t.to_formatted_s(:short) %>
			 	25 Dec 11:55

	    Formatted date:
			result
			expected

	    d.to_formatted_s()
	    <%= d.to_formatted_s() %>
			2006-12-25

	    d.to_formatted_s(:default)
	    <%= d.to_formatted_s(:default) %>
			2006-12-25

	    d.to_formatted_s(:long)
	    <%= d.to_formatted_s(:long) %>
			December 25, 2006

	    d.to_formatted_s(:short)
	    <%= d.to_formatted_s(:short) %>
			 	25 Dec

date_select and datetime_select tests

<%

%>

Test order and localized content of date_select

<%= date_select :testmodel, :date %>

Test order and localized content of datetime_select

<%= datetime_select :testmodel, :datetime %>

Test order and localized content of select_date

<%=
# this gives exception
# select_date :testmodel, :select_date
%>

String concatenation tests

 truncate 'Iñtërnâtiônàlizætiøn', 12: <%= truncate 'Iñtërnâtiônàlizætiøn', 12 %> (expected: "Iñtërnâti…")

Use this page to test helpers of the Localization Simplified plugin.
Put this file in your applications view directory, add a controller action "helper_tests", and view this page

Sentence with UTF-8 characters: Café, Danish(æ,ø,å), Swedish(ä,ö,å), Spanish: (ñ)

		fn
		result
		expected

    time_ago_in_words(3.seconds.ago, true)
    <%= time_ago_in_words(3.seconds.ago, true) %>
    'less than 5 seconds'

    time_ago_in_words(9.seconds.ago, true)
    <%= time_ago_in_words(9.seconds.ago, true) %>
    'less than 10 seconds'

    time_ago_in_words(20.seconds.ago, true)
    <%= time_ago_in_words(20.seconds.ago, true) %>
    'less than 20 seconds'

     time_ago_in_words(31.seconds.ago, true)
    <%= time_ago_in_words(31.seconds.ago, true) %>
    'half a minute'

    time_ago_in_words(50.seconds.ago, true)
    <%= time_ago_in_words(50.seconds.ago, true) %>
    'less than a minute'

    time_ago_in_words(80.seconds.ago, true)
    <%= time_ago_in_words(80.seconds.ago, true) %>
    '1 minute'

    time_ago_in_words(4.minutes.ago, true)
    <%= time_ago_in_words(4.minutes.ago, true) %>
    '4 minutes'

    time_ago_in_words(50.minutes.ago, true)
    <%= time_ago_in_words(50.minutes.ago, true) %>
    'about 1 hour'

    time_ago_in_words(4.hours.ago, true)
    <%= time_ago_in_words(4.hours.ago, true) %>
    'about 4 hours'

    time_ago_in_words(1.day.ago, true)
    <%= time_ago_in_words(1.day.ago, true) %>
    '1 day'

    time_ago_in_words(4.days.ago, true)
    <%= time_ago_in_words(4.days.ago, true) %>
    '4 days'

number_to_currency test:

<%= number_to_currency(1008323) %>

<%= number_to_currency(10083.777) %>

<%= number_to_currency(0.2) %>

Array.to_sentence test: [1,2,3].to_sentence: "<%= [1,2,3].to_sentence %>"  (expected "1,2, and 3")

	<% t = Time.parse('2006-12-25 11:55') -%>
	<% d = Date.parse('2006-12-25 11:55') -%>

	    Formatted time:
			result
			expected

	    t.to_formatted_s()
	    <%= t.to_formatted_s() %>
			Mon Dec 25 11:55:00 Romance Standard Time 2006

	    t.to_formatted_s(:default)
	    <%= t.to_formatted_s(:default) %>
			Mon Dec 25 11:55:00 Romance Standard Time 2006

	    t.to_formatted_s(:long)
	    <%= t.to_formatted_s(:long) %>
			December 25, 2006 11:55

	    t.to_formatted_s(:short)
	    <%= t.to_formatted_s(:short) %>
			 	25 Dec 11:55

	    Formatted date:
			result
			expected

	    d.to_formatted_s()
	    <%= d.to_formatted_s() %>
			2006-12-25

	    d.to_formatted_s(:default)
	    <%= d.to_formatted_s(:default) %>
			2006-12-25

	    d.to_formatted_s(:long)
	    <%= d.to_formatted_s(:long) %>
			December 25, 2006

	    d.to_formatted_s(:short)
	    <%= d.to_formatted_s(:short) %>
			 	25 Dec

date_select and datetime_select tests

<%

%>

Test order and localized content of date_select

<%= date_select :testmodel, :date %>

Test order and localized content of datetime_select

<%= datetime_select :testmodel, :datetime %>


Add paypal donation shell

Add paypal donation shell

<% @title = "Credit where credit's due" %>

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

<%= @title%>

What made FYI possible? #

Nothing would have happened without Open New Zealand, which funds the servers FYI runs on.

The encouragement of Nat Torkington, Ed Corkery, and the technical assistance of Rob Coup turned this from an idea to something real.

Design work from Greer Mitchell and advice from Andrew Ecclestone was gratefully accepted.

The Alaveteli software from MySociety.

And me, Rowan Crawford, standing on the shoulders of giants.

Can I help out? #

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

You can make a donation:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="<%=MySociety::Config.get('PAYPAL_CODE')%>">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">

</form>

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

Find out OIA email addresses of authorities that we're missing.

Write a blog post about either FYI 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.

Get involved with the Open Government Ninjas.

<% @title = "Credit where credit's due" %>

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

<%= @title%>

What made FYI possible? #

Nothing would have happened without Open New Zealand, which funds the servers FYI runs on.

The encouragement of Nat Torkington, Ed Corkery, and the technical assistance of Rob Coup turned this from an idea to something real.

Design work from Greer Mitchell and advice from Andrew Ecclestone was gratefully accepted.

The Alaveteli software from MySociety.

Can I help out? #

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

You can make a donation:

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

Find out OIA email addresses of authorities that we're missing.

Write a blog post about either FYI 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.

Get involved with the Open Government Ninjas.


Theme successful sign-in message

Theme successful sign-in message

/** FONTS **/
@font-face {
    font-family: GothamRounded;
    src: url('/asktheeu-theme/fonts/GothamRnd-Medium.otf') format("opentype");
}

@font-face {
    font-family: GothamRoundedBold;
    src: url('/asktheeu-theme/fonts/GothamRnd-Bold.otf') format("opentype");
}

/** LAYOUT **/
body {
    font-family: Verdana, Helvetica, Arial;
}
    body.front {
        background: none;
    }

#wrapper {
    padding-top: 10px;
    margin-bottom: 50px;
}

/** HEADER **/
#banner {
    background: #EAF5F6;
    border: none;
    height: 150px;
    position: relative;
}

#banner_inner {
    width: 950px;
    height: 150px;
}
    #banner_inner a:hover {
        text-decoration: underline;
    }

#logo {
    position: absolute;
    top: 20px;
}

#navigation_search {
    top: 50px;
    visibility: hidden;
}

div.lang {
    top: 23px;
    color: #00aaa6;
    font-size: 12px;
}
    div.lang a {
        color: #00aaa6;
        text-decoration: none;
    }

#logged_in_bar {
    top: 24px;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 8px 1px 8px;
    height: 19px;
    background: #009a9d;
    border-radius: 5px;
}
    #logged_in_bar, #logged_in_bar a, #logged_in_bar a:visited {
        color: #FFF;
        text-decoration: none;
    }

/** NAVIGATION BAR **/
#topnav {
    font-family: Helvetica, Arial;
    font-size: 14px;
    font-weight: bold;
    margin-left: 190px;
}
    #topnav ul li {
        padding-left: 8px;
        padding-right: 8px;
        margin-right: 8px;

        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
    #topnav ul li a {
        color: #00aaa6 !important;
    }

/** MAIN SITE **/
h1, h1 a {
    font-family: GothamRounded, Helvetica, Arial;
    color: #009a9d;
    font-size: 28px;
    margin-top: 30px;
    text-decoration: none;
}

h2, h2 a {
    font-family: GothamRounded, Helvetica, Arial;
    color: #7bbb58;
    font-size: 18px;
}

h3, h3 a {
    font-family: Helvetica, Arial;
    color: #00aaa6;
    font-size: 14px;
    font-weight: bold;
}

/** HELP **/
#left_column_flip {
    margin-top: 20px;
    width: 550px;
    margin-right: 50px;
}

#right_column_flip {
    text-align: right;
}

.controller_help {
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
}
    .controller_help a {
        color: #009a9d;
        text-decoration: none;
    }
    .controller_help a:hover {
        text-decoration: underline;
    }

.XXX {  /* TODO stuff */
    color: red;
    font-weight: bold;
    background-color: yellow;
}

/** FRONTPAGE **/
.front #wrapper, .front #content {
    width: 100%;
    padding: 0px;
    margin: 0px;
}

#frontpage-intro {
    width: 950px;
    margin: auto;
    position: relative;
}

#frontpage-lead {
    font-family: GothamRounded, Helvetica, Arial;
    font-size: 24px;
    font-weight: normal;
    text-align: center;
    color: #73c167;
}

#frontpage-left-balloon {
    float: left;
    width: 206px;
    height: 184px;
    background: url(/asktheeu-theme/images/yellow_balloon.gif);
    padding: 10px 20px 20px 50px;
    margin: 36px 8px 60px 0px;
}
    #frontpage-left-balloon h2 {
        font-family: GothamRounded, Helvetica, Arial;
        font-size: 24px;
        font-weight: bold;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }

#frontpage-middle-balloon {
    float: left;
    width: 314px;
    height: 283px;
    background: url(/asktheeu-theme/images/blue_balloon.gif);
    padding: 0px 30px 0px 30px;
}
    #frontpage-middle-balloon h1 {
        font-family: GothamRounded, Helvetica, Arial;
        font-size: 42px;
        color: #fff;
        text-align: center;
        padding-right: 20px;
        margin-bottom: 5px;
    }
    #frontpage-middle-balloon p {
        margin-left: 15px;
    }
    #frontpage-middle-balloon .frontpage-button-link {
        margin-left: 95px;
    }

#frontpage-right-balloon {
    float: left;
    width: 218px;
    height: 174px;
    background: url(/asktheeu-theme/images/green_balloon.gif);
    padding: 5px 20px 20px 50px;
    margin: 41px 0px 60px 4px;
}
    #frontpage-right-balloon h2 {
        font-family: GothamRounded, Helvetica, Arial;
        font-size: 24px;
        font-weight: bold;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }

#frontpage-left-balloon p,
#frontpage-right-balloon p,
#frontpage-middle-balloon p {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-top: 0px;
}

#frontpage-intro a {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
    #frontpage-intro a:hover {
        text-decoration: underline;
    }

.frontpage-button-link {
    height: 24px;
    width: 100px;
    background: url(/asktheeu-theme/images/button_gradient.gif);
    border-radius: 5px;
    text-align: center;
    padding-top: 10px;
}

#frontpage-content {
    background: #EAF5F6;
    border-top: 1px solid #b2dcde;
}

#frontpage-inner-content {
    width: 950px;
    margin: auto;
    position: relative;
    padding-bottom: 20px;
}

#left-column {
    float: left;
    background: #EAF5F6;
    width: 450px;
}

#right-column {
    float: right;
    width: 450px;
}

#frontpage-content p {
    color: #6f6f6e;
    font-size: 12px;
    line-height: 1.5;
}

#frontpage-content p a {
    color: #009a9d;
    font-size: 12px;
    text-decoration: none;
}
    #frontpage-content a:hover {
        text-decoration: underline;
    }

.picture-frame {
    width: 450px;
    height: 270px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
}
    .picture-frame img {
        width: 420px;
        height: 240px;
        margin: 15px;
    }

#follow-us-frame {
    width: 390px;
    height: 60px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
    margin-top: 50px;
    padding: 20px 30px 20px 30px;
}
    #follow-us-frame p {
        float: left;
        font-family: GothamRounded, Helvetica, Arial;
        font-size: 18px;
        color: #009a9d;
    }
    #follow-us-frame span {
        float: left;
        margin-top: 12px;
        margin-left: 20px;
    }

.link-arrow {
    background: no-repeat url(/asktheeu-theme/images/arrow_icon.gif) ;
    padding-top: 6px;
    padding-left: 35px;
    height: 30px;
}
    .link-arrow a {
        font-family: Helvetica, Arial;
        color: #00aaa6;
        font-size: 14px;
        font-weight: bold;
        text-decoration: none;
    }

/** MODAL SIGN-IN **/

#signin-successful,
#signin-successful a {
    font-family: Helvetica, Arial;
    color: #00aaa6;
    font-size: 14px;
    font-weight: bold;
    padding-top: 50px;
}

/** FOOTER **/
#footer {
    height: 100px;
    margin: 0px;
    border-top-width: 1px;
}

#footer-inner {
    width: 950px;
    margin: auto;
    position: relative;
}

#access-info-logo {
    position: absolute;
    left: 0px;
    top: 10px;
}

#footer-links {
    margin-left: 150px;
    margin-top: 10px;
    float: left;

    font-family: GothamRounded, Helvetica, Arial;
    font-size: 18px;
}
    #footer-links ul {
        list-style: none outside none;
    }
    #footer-links ul li {
        float: left;
        margin-right: 40px;
    }
    #footer-links ul a {
        text-decoration: none;
        color: #009a9d;
    }
    #footer-links ul a:hover {
        text-decoration: underline;
    }

#credits {
    float: right;
    margin-top: 30px;
    margin-right: 20px;

    font-family: Verdana, Helvetica, Arial;
    font-size: 12px;
}
    #credits a {
        text-decoration: none;
        color: #00aaa6;
    }

#creative-commons-logo {
    float: right;
    margin-top: 20px;
}

/** FONTS **/
@font-face {
    font-family: GothamRounded;
    src: url('/asktheeu-theme/fonts/GothamRnd-Medium.otf') format("opentype");
}

@font-face {
    font-family: GothamRoundedBold;
    src: url('/asktheeu-theme/fonts/GothamRnd-Bold.otf') format("opentype");
}

/** LAYOUT **/
body {
    font-family: Verdana, Helvetica, Arial;
}
    body.front {
        background: none;
    }

#wrapper {
    padding-top: 10px;
    margin-bottom: 50px;
}

/** HEADER **/
#banner {
    background: #EAF5F6;
    border: none;
    height: 150px;
    position: relative;
}

#banner_inner {
    width: 950px;
    height: 150px;
}
    #banner_inner a:hover {
        text-decoration: underline;
    }

#logo {
    position: absolute;
    top: 20px;
}

#navigation_search {
    top: 50px;
    visibility: hidden;
}

div.lang {
    top: 23px;
    color: #00aaa6;
    font-size: 12px;
}
    div.lang a {
        color: #00aaa6;
        text-decoration: none;
    }

#logged_in_bar {
    top: 24px;
    font-weight: bold;
    font-size: 12px;
    padding: 3px 8px 1px 8px;
    height: 19px;
    background: #009a9d;
    border-radius: 5px;
}
    #logged_in_bar, #logged_in_bar a, #logged_in_bar a:visited {
        color: #FFF;
        text-decoration: none;
    }

/** NAVIGATION BAR **/
#topnav {
    font-family: Helvetica, Arial;
    font-size: 14px;
    font-weight: bold;
    margin-left: 190px;
}
    #topnav ul li {
        padding-left: 8px;
        padding-right: 8px;
        margin-right: 8px;

        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
    }
    #topnav ul li a {
        color: #00aaa6 !important;
    }

/** MAIN SITE **/
h1, h1 a {
    font-family: GothamRounded, Helvetica, Arial;
    color: #009a9d;
    font-size: 28px;
    margin-top: 30px;
    text-decoration: none;
}

h2, h2 a {
    font-family: GothamRounded, Helvetica, Arial;
    color: #7bbb58;
    font-size: 18px;
}

h3, h3 a {
    font-family: Helvetica, Arial;
    color: #00aaa6;
    font-size: 14px;
    font-weight: bold;
}

/** HELP **/
#left_column_flip {
    margin-top: 20px;
    width: 550px;
    margin-right: 50px;
}

#right_column_flip {
    text-align: right;
}

.controller_help {
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
}
    .controller_help a {
        color: #009a9d;
        text-decoration: none;
    }
    .controller_help a:hover {
        text-decoration: underline;
    }

.XXX {  /* TODO stuff */
    color: red;
    font-weight: bold;
    background-color: yellow;
}

/** FRONTPAGE **/
.front #wrapper, .front #content {
    width: 100%;
    padding: 0px;
    margin: 0px;
}

#frontpage-intro {
    width: 950px;
    margin: auto;
    position: relative;
}

#frontpage-lead {
    font-family: GothamRounded, Helvetica, Arial;
    font-size: 24px;
    font-weight: normal;
    text-align: center;
    color: #73c167;
}

#frontpage-left-balloon {
    float: left;
    width: 206px;
    height: 184px;
    background: url(/asktheeu-theme/images/yellow_balloon.gif);
    padding: 10px 20px 20px 50px;
    margin: 36px 8px 60px 0px;
}
    #frontpage-left-balloon h2 {
        font-family: GothamRounded, Helvetica, Arial;
        font-size: 24px;
        font-weight: bold;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }

#frontpage-middle-balloon {
    float: left;
    width: 314px;
    height: 283px;
    background: url(/asktheeu-theme/images/blue_balloon.gif);
    padding: 0px 30px 0px 30px;
}
    #frontpage-middle-balloon h1 {
        font-family: GothamRounded, Helvetica, Arial;
        font-size: 42px;
        color: #fff;
        text-align: center;
        padding-right: 20px;
        margin-bottom: 5px;
    }
    #frontpage-middle-balloon p {
        margin-left: 15px;
    }
    #frontpage-middle-balloon .frontpage-button-link {
        margin-left: 95px;
    }

#frontpage-right-balloon {
    float: left;
    width: 218px;
    height: 174px;
    background: url(/asktheeu-theme/images/green_balloon.gif);
    padding: 5px 20px 20px 50px;
    margin: 41px 0px 60px 4px;
}
    #frontpage-right-balloon h2 {
        font-family: GothamRounded, Helvetica, Arial;
        font-size: 24px;
        font-weight: bold;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }

#frontpage-left-balloon p,
#frontpage-right-balloon p,
#frontpage-middle-balloon p {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-top: 0px;
}

#frontpage-intro a {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
    #frontpage-intro a:hover {
        text-decoration: underline;
    }

.frontpage-button-link {
    height: 24px;
    width: 100px;
    background: url(/asktheeu-theme/images/button_gradient.gif);
    border-radius: 5px;
    text-align: center;
    padding-top: 10px;
}

#frontpage-content {
    background: #EAF5F6;
    border-top: 1px solid #b2dcde;
}

#frontpage-inner-content {
    width: 950px;
    margin: auto;
    position: relative;
    padding-bottom: 20px;
}

#left-column {
    float: left;
    background: #EAF5F6;
    width: 450px;
}

#right-column {
    float: right;
    width: 450px;
}

#frontpage-content p {
    color: #6f6f6e;
    font-size: 12px;
    line-height: 1.5;
}

#frontpage-content p a {
    color: #009a9d;
    font-size: 12px;
    text-decoration: none;
}
    #frontpage-content a:hover {
        text-decoration: underline;
    }

.picture-frame {
    width: 450px;
    height: 270px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
}
    .picture-frame img {
        width: 420px;
        height: 240px;
        margin: 15px;
    }

#follow-us-frame {
    width: 390px;
    height: 60px;
    background: #FFF;
    border-radius: 15px;
    margin-bottom: 30px;
    margin-top: 50px;
    padding: 20px 30px 20px 30px;
}
    #follow-us-frame p {
        float: left;
        font-family: GothamRounded, Helvetica, Arial;
        font-size: 18px;
        color: #009a9d;
    }
    #follow-us-frame span {
        float: left;
        margin-top: 12px;
        margin-left: 20px;
    }

.link-arrow {
    background: no-repeat url(/asktheeu-theme/images/arrow_icon.gif) ;
    padding-top: 6px;
    padding-left: 35px;
    height: 30px;
}
    .link-arrow a {
        font-family: Helvetica, Arial;
        color: #00aaa6;
        font-size: 14px;
        font-weight: bold;
        text-decoration: none;
    }

/** FOOTER **/
#footer {
    height: 100px;
    margin: 0px;
    border-top-width: 1px;
}

#footer-inner {
    width: 950px;
    margin: auto;
    position: relative;
}

#access-info-logo {
    position: absolute;
    left: 0px;
    top: 10px;
}

#footer-links {
    margin-left: 150px;
    margin-top: 10px;
    float: left;

    font-family: GothamRounded, Helvetica, Arial;
    font-size: 18px;
}
    #footer-links ul {
        list-style: none outside none;
    }
    #footer-links ul li {
        float: left;
        margin-right: 40px;
    }
    #footer-links ul a {
        text-decoration: none;
        color: #009a9d;
    }
    #footer-links ul a:hover {
        text-decoration: underline;
    }

#credits {
    float: right;
    margin-top: 30px;
    margin-right: 20px;

    font-family: Verdana, Helvetica, Arial;
    font-size: 12px;
}
    #credits a {
        text-decoration: none;
        color: #00aaa6;
    }

#creative-commons-logo {
    float: right;
    margin-top: 20px;
}


Increase sign-in pop-up width

Increase sign-in pop-up width

h1, h2, h3 {
    color: #1B1C6A;
}

#topnav ul li a,
div.frontpage-box {
    color: #1B1C6A !important;
    <!-- font-family: 'DeliciousRoman',Arial,sans-serif; -->
}

#banner {
    background: url(/asktheeu-theme/images/stripes.png);
    border: none;
    height: 155px;
}

#logo {
    position: absolute;
    top: 20px;
}

div.frontpage-box,
#stepwise_make_request {
    background: url(/asktheeu-theme/images/stripes.png);
}

body {
    font-family: Helvetica, Arial;
    font-size: 13px;
}

#banner_inner {
    font-size: 14px;
    font-weight: bold;
}

div.lang {
    top: 50px;
}

#fancybox-content {
    width: 910px;
}


added educational video

added educational video

Welcome to Maximum Size Database!

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

  <% unless @current_logged_in_user %>

	<fieldset class="narrow">

Please Log In

    <% form_tag 'login/login' do %>

          Please log in if you want to add data or comments.

          Email Address	<%= text_field_tag :email_address, params[:email_address] %>

            Password

          <%= password_field_tag :password %>

            <%= submit_tag 'Login' %>

            <%= link_to("I forgot my password!", :controller => 'login', :action => "password_reset") %>

            <%= link_to("I am a new user and want to register.",:controller => 'register', :action => 'index') %>

    <% end %>
  </fieldset>
  <% end %>
  <% form_tag 'bodysize/list' do %>
		<input type="hidden" name="need_template" />
		<input type="hidden" name="group_by" value=""/>
		<input type="hidden" name="bodysize[graph]" value="0" />

		<fieldset  class="narrow">

Search Data

Start	<%= select("bodysize", "start_period_midpoint", @start_period_options) %>

End	<%= select("bodysize", "end_period_midpoint", @end_period_options) %>

Kingdom	<%= select("bodysize", "kingdom_id", @kingdom_options, {:include_blank => true}) %>

Phylum	<%= select("bodysize", "phylum_id", @phylum_options, {:include_blank => true}) %>

Class	<%= text_field_tag "bodysize[class_classification]" %>

Environment	<%= select("bodysize", "environment_id", @environment_options, {:include_blank => true}) %>

Motility	<%= select("bodysize", "motility_id", @motility_options, {:include_blank => true}) %>

<%= submit_tag 'Search', :id => "search_button" %>

	</fieldset>

	<% end %>
	<fieldset  class="narrow">

Educational Video

    </fieldset>


Fix edit_associated

Fix edit_associated

<%
begin
  remote_controller = active_scaffold_controller_for(column.association.klass)
rescue ActiveScaffold::ControllerNotFound
  remote_controller = nil
end

show_add_existing = (!column.through_association? and options_for_association_count(column.association) > 0)

show_add_new = !column.through_association? and (column.plural_association? or (column.singular_association? and not associated.empty?))
show_add_new = false unless @record.class.authorized_for?(:action => :create)

edit_associated_url = url_for(:action => 'edit_associated', :id => parent_record.id, :association => column.name, :associated_id => '--ID--', :escape => false, :eid => params[:eid], :parent_controller => params[:parent_controller], :parent_id => params[:parent_id])
add_new_url = url_for(:action => 'edit_associated', :id => parent_record.id, :association => column.name, :escape => false, :eid => params[:eid], :parent_controller => params[:parent_controller], :parent_id => params[:parent_id]);

return unless show_add_new or show_add_existing

-%>

    <% if show_add_new -%>
    <% add_label = column.plural_association? ? as_(:create_another) : as_(:replace_with_new) -%>
    <%= button_to_function add_label, "new Ajax.Request(#{add_new_url.to_json}, {asynchronous: true, method: 'get', evalScripts: true, onFailure: function(){ActiveScaffold.report_500_response(#{active_scaffold_id.to_json})}})" %>
    <% end -%>

    <%= '|' if show_add_new and show_add_existing %>

    <% if show_add_existing -%>
      <% if remote_controller and remote_controller.respond_to? :uses_record_select? and remote_controller.uses_record_select? -%>
        <%= link_to_record_select as_(:add_existing), remote_controller.controller_path, :onselect => "new Ajax.Request(#{edit_associated_url.to_json}.sub('--ID--', id), {asynchronous: true, evalScripts: true, onFailure: function(){ActiveScaffold.report_500_response(#{active_scaffold_id})}});" -%>
      <% else -%>
        <% select_options = options_for_select(options_for_association(column.association)) unless column.through_association? -%>
        <%= select_tag 'associated_id', '<option value="">' + as_(:_select_) + '</option>' + select_options %>
        <%= button_to_function as_(:add_existing), "new Ajax.Request(#{edit_associated_url.to_json}.sub('--ID--', Element.previous(this).value), {asynchronous: true, method: 'get', evalScripts: true, onFailure: function(){ActiveScaffold.report_500_response(#{active_scaffold_id})}})" %>
      <% end -%>
    <% end -%>

<%
begin
  remote_controller = active_scaffold_controller_for(column.association.klass)
rescue ActiveScaffold::ControllerNotFound
  remote_controller = nil
end

show_add_existing = (!column.through_association? and options_for_association_count(column.association) > 0)

show_add_new = !column.through_association? and (column.plural_association? or (column.singular_association? and not associated.empty?))
show_add_new = false unless @record.class.authorized_for?(:action => :create)

edit_associated_url = url_for(:action => 'edit_associated', :id => parent_record.id, :association => column.name, :associated_id => '--ID--', :_method => :get, :escape => false, :eid => params[:eid], :parent_controller => params[:parent_controller], :parent_id => params[:parent_id])
add_new_url = url_for(:action => 'edit_associated', :id => parent_record.id, :association => column.name, :_method => :get, :escape => false, :eid => params[:eid], :parent_controller => params[:parent_controller], :parent_id => params[:parent_id]);

return unless show_add_new or show_add_existing

-%>

    <% if show_add_new -%>
    <% add_label = column.plural_association? ? as_(:create_another) : as_(:replace_with_new) -%>
    <%= button_to_function add_label, "new Ajax.Request(#{add_new_url.to_json}, {asynchronous: true, evalScripts: true, onFailure: function(){ActiveScaffold.report_500_response(#{active_scaffold_id.to_json})}})" %>
    <% end -%>

    <%= '|' if show_add_new and show_add_existing %>

    <% if show_add_existing -%>
      <% if remote_controller and remote_controller.respond_to? :uses_record_select? and remote_controller.uses_record_select? -%>
        <%= link_to_record_select as_(:add_existing), remote_controller.controller_path, :onselect => "new Ajax.Request(#{edit_associated_url.to_json}.sub('--ID--', id), {asynchronous: true, evalScripts: true, onFailure: function(){ActiveScaffold.report_500_response(#{active_scaffold_id})}});" -%>
      <% else -%>
        <% select_options = options_for_select(options_for_association(column.association)) unless column.through_association? -%>
        <%= select_tag 'associated_id', '<option value="">' + as_(:_select_) + '</option>' + select_options %>
        <%= button_to_function as_(:add_existing), "new Ajax.Request(#{edit_associated_url.to_json}.sub('--ID--', Element.previous(this).value), {asynchronous: true, evalScripts: true, onFailure: function(){ActiveScaffold.report_500_response(#{active_scaffold_id})}})" %>
      <% end -%>
    <% end -%>


Shorten draft law comments a bit

Shorten draft law comments a bit

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

Propuesta de texto para la consulta pública

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

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

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

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

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

Transparencia

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

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

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

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

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

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

Derecho de acceso a la información

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

El anteproyecto debería:

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

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

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

Cambiar el silencio administrativo negativo, debe ser positivo.

Otras disposiciones:

Este anteproyecto debería:

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

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

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

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

Propuesta de texto para la consulta pública

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

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

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

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

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

Transparencia

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

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

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

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

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

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

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

Derecho de acceso a la información

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

El anteproyecto debería:

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

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

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

Cambiar el silencio administrativo negativo, debe ser positivo.

Otras disposiciones:

Este anteproyecto debería:

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

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

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


log out now requires a confirmation

log out now requires a confirmation

<% if session[:person] == nil %>

Manual

You are not signed in.
[ <%= link_to 'sign in', :controller => 'main', :action => 'index' %> ]

<% else %>

Manual |
<%= link_to 'Main', :controller => 'main', :action => 'summary_page' %> |
<%= link_to 'Notices', :controller => 'main', :action => 'notices_page' %>

<%= session[:person].name %>
[ <%= link_to 'log out', { :controller => 'main', :action => 'logout' } , :confirm => 'Are you sure you want to log out?', :post => true %> ]

<%= render_partial 'layouts/menubar' %>

<% end %>

<% if session[:person] == nil %>

Manual

You are not signed in.
[ <%= link_to 'sign in', :controller => 'main', :action => 'index' %> ]

<% else %>

Manual |
<%= link_to 'Main', :controller => 'main', :action => 'summary_page' %> |
<%= link_to 'Notices', :controller => 'main', :action => 'notices_page' %>

<%= session[:person].name %>
[ <%= link_to 'log out', :controller => 'main', :action => 'logout' %> ]

<%= render_partial 'layouts/menubar' %>

<% end %>


Fix typo in HTML version of account confirmation message.

Hi,

Someone (hopefully you) would like to create an account over at
   <%= SERVER_URL %>.

If this is you, please click the link below to confirm that account.

<a href="<%= @url %>"><%= @url %>

Hi,

Someone (hopefully you) would like to create an account over at
   <%= SERVER_URL %>.

If this is you, please click the link below to confirm that account.

<%= @url %>"><%= @url %>