Various edits.

Various edits.

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

<% @title = 'Introduction' %>

<%= @title %>

Purpose:
The purpose of this site is to record observations about mushrooms,
help people identify mushrooms they aren't familiar with, and expand
the community around the scientific exploration of mushrooms
(mycology).  Some have asked what counts as a mushroom.  This site
takes a very broad view.  While the emphasis is on the large fleshy
fungi, other fungi such as lichens, rust and molds as well as fungus-like
organisms such as slime-molds are all welcome.
Ultimately, I hope this site will become a valuable
resource for both amateur and professional mycologists.  I like to think
of it as a living field guide for mushrooms or a collaborative mushroom
field journal.

For those new to mycology, there is a huge amount of basic research
that still needs to be done.  By some estimates less that 5% of the
world's species of fungi are known to science.  While things are
slightly better for the large fleshy fungi known as mushrooms, it is
still a common experience to come across a mushroom that cannot be
easily identified in the available books or which doesn't really fit
the definition of any recognized species.  This site is intended to
address that gap by creating a place for us to talk about and record
what we've found, as well as connect to the existing literature about
mushrooms.  Please do not feel intimidated by the scientific bent of
the site.  Everyone is welcome to dive in and add their own mushroom
observations, upload mushroom photos and make comments on other
people's observations.

Image Sharing:
This site follows the principles of cooperative sharing pioneered by
the Free Software Foundation, further expressed
by the Open Source software movement, and
expanded to other creative efforts by the Creative Commons.  Consequently all
images are made available under a  Creative
Commons license.  In short this means that when anyone uploads one of
their images to the site, they are giving others explicit permission to
use those images for non-commercial purposes in perpetuity.  This type of
permission is very important for basic research.  It allows future researchers
to freely use these data to expand our understanding of mushrooms.  It also
significantly increases the likelihood that the data will continue to be
available into the distant future.

If you upload your own images, this license does not
mean you are giving up your copyright or your ability to make money
off your images.  If anyone wishes to use
any of these images for commercial purposes, they are required to
get in touch
with the copyright holder and work out the conditions for that
use.  The site includes special links on the image pages to help
create those relationships.

Source Code: Source code for the site is available at:
http://svn.collectivesource.com/mushroom_sightings and is licensed
under the Open Source
MIT License.  Source code contributions are welcome.  Here's a
list of planned
features.  All suggestions and comments are welcome.  If you would
like to contribute, please send mail to:

nathan at collectivesource.com

so we can coordinate our efforts.

Note: The administrators of this site reserve the right to remove any
material they deem inappropriate or not in keeping with the purpose of
this site.

<% @title = 'Introduction' %>

<%= @title %>

Purpose:
The purpose of this site is to record observations about mushrooms,
help people identify mushrooms they aren't familiar with, and expand
the community around the scientific exploration of mushrooms
(mycology).  Ultimately, I hope this site will become a valuable
resource for both amateur and professional mycologists.  I like to think
of it as a living field guide to mushrooms.

For those new to mycology, there is a huge amount of basic research
that still needs to be done.  By some estimates less that 5% of the
world's species of fungi are known to science.  While things are
slightly better for the large fleshy fungi known as mushrooms, it is
still a common experience to come across a mushroom that cannot be
easily identified in the available books or which doesn't really fit
the definition of any recognized species.  This site is intended to
address that gap by creating a place for us to talk about and record
what we've found, as well as connect to the existing literature about
mushrooms.  Please do not feel intimidated by the scientific bent of
the site.  Everyone is welcome to dive in and add their own mushroom
observations, upload mushroom photos and make comments on other
people's observations.

Image Sharing:
This site follows the principles of cooperative sharing pioneered by
the Free Software Foundation, further expressed
by the Open Source software movement, and
expanded to other creative efforts by the Creative Commons.  Consequently all
images are made available under a  Creative
Commons license.  If you upload your own images, this does not
mean you are giving up your copyright or your ability to make money
off your images.  You are simply allowing others to use your images
for non-commerical purposes in perpetuity.  If anyone wishes to use
any of these images for commercial purposes, they must get in touch
with the actual copyright holder and work out the conditions for that
use.

Source Code: Source code for the site is available at:
http://svn.collectivesource.com/mushroom_sightings and is licensed
under the Open Source
MIT License.  Source code contributions are welcome.  Here's a
list of planned
features.  All suggestions and comments are welcome.  If you would
like to contribute, please send mail to:

nathan at collectivesource.com

so we can coordinate our efforts.

Note: The administrators of this site reserve the right to remove any
material they deem inappropriate or not in keeping with the purpose of
this site.


Fixed a crash in the configuration admin page.

Configuration

<form class="edit-form" action="<%= CortexReaver::AdminController.r :configuration %>" method="post">
  <%= errors_list @errors %>

Site

  <%= form_p 'site.url', :type => :text, :description => "URL", :default => @config.site.url %>
  <%= form_p 'site.name', :type => :text, :description => "Name", :default => @config.site.name %>
  <%= form_p 'site.keywords', :type => :text, :description => 'Keywords', :default => @config.site.keywords %>
  <%= form_p 'site.author', :type => :text, :description => 'Author', :default => @config.site.author %>
  <%= form_p 'site.description', :type => :textarea, :description => 'Description', :default => @config.site.description, :p_class => 'small' %>

Navigation

  <%= form_p 'view.sections', :type => :textarea, :description => @config.view.schema[:sections][:desc], :default => @config.view.sections.map{ |p| p.join(' ') }.join("\n"), :p_class => 'medium' %>

Photographs

  <%= form_p 'photographs.sizes', :type => :textarea, :description => @config.photographs.schema[:sizes][:desc], :default => @config.photographs.sizes.map { |k, v| "#{k} #{v}" }.join("\n"), :p_class => 'medium' %>

  <input type="submit" value="Update Configuration" />
</form>

Configuration

<form class="edit-form" action="<%= CortexReaver::AdminController.r :configuration %>" method="post">
  <%= errors_list @errors %>

Site

  <%= form_p 'site.url', :type => :text, :description => "URL", :default => @config.site.url %>
  <%= form_p 'site.name', :type => :text, :description => "Name", :default => @config.site.name %>
  <%= form_p 'site.keywords', :type => :text, :description => 'Keywords', :default => @config.site.keywords %>
  <%= form_p 'site.author', :type => :text, :description => 'Author', :default => @config.site.author %>
  <%= form_p 'site.description', :type => :textarea, :description => 'Description', :default => @config.site.description, :p_class => 'small' %>

Navigation

  <%= form_p 'view.sections', :type => :textarea, :description => @config.view.schema[:sections][:desc], :default => @config.view.sections.map{ |p| p.join(' ') }.join("\n"), :p_class => 'medium' %>

Photographs

  <%= form_p 'photographs.sizes', :type => :textarea, :description => @config.photographs.schema[:sizes][:desc], :default => @config.photographs.sizes.map { |p| p.join(' ') }.join("\n"), :p_class => 'medium' %>

  <input type="submit" value="Update Configuration" />
</form>


-Switch from transitional to strict DTD
-Replacement of window.location to window.location.href.

git-svn-id: 9512a22ec92b52636bbab2193a3e38f5e8e93632@24977 280ce282-5f28-0410-b095-e054cb237d46

<% # SPROUTCORE DEFAULT INDEX TEMPLATE
   # This template provide provides a basic wrapper for a SproutCore client.
   # Most of the time, it will be sufficient for your own needs.  However, if
   # you need to create your own template, you can do so by copying this file
   # into your client, naming it 'index.rhtml' and then adding the options
   # :index => 'index' to your client declaration in routes.rb.
   #
   # See the comments in this file for more information on what you can
   # change.
-%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<%  # @title will be defined if you passed :title in routes.rb -%>
    <title><%= (@title.to_s || bundle_name.to_s || '').capitalize %></title>
<% #
	 # This line should appear in your head area to include the stylesheets
	 # generated by your client.  If you need to include your own
	 # stylesheets, you don't need to change it here.  Instead, use the
	 # :requires option in routes.rb.
-%>
    <%= stylesheets_for_client %>
<%= @content_for_page_styles %>
  </head>
  <body class="<%= @theme || 'sc-theme' %> focus">
<% #
   # This is where you root body element will appear.  To cause your
   # content to appear here, just declare content_for('body') in one of
   # your partials.
-%>
    <!-- Main Page Body -->
    <%= @content_for_body %>

<% #
   # This is where the resources you delcare will appear.  You must
   # include the following three lines verbatim for the resources you
   # declare to be properly used.
-%>
    <!-- Resources to be removed from DOM on page load -->
    <div id="resources" style="display:none; visibility: hidden;">
      <%= @content_for_resources -%>
    </div>

<% #
   # This line should appear at the bottom of your page to include your
   # generated JavaScript and any libraries you reference.  If you need
   # to include other javascripts, add them to the :requires option of
   # your client in routes.rb instead of changing it here.
-%>
    <!-- Include Site Javascript -->
    <%= javascripts_for_client %>
<%= @content_for_page_javascript %>

<% #
   # The following lines to the closing body tag must be included at the
   # very end of your file.  This will actually setup the JavaScript
   # views on your page and register SproutCore to start on page load.
-%>
<!-- Render Page Views -->
<%= render_page_views %>

    <!-- Start SproutCore on Page Load -->
    <script type="text/javascript">window.onload = SC.didLoad;</script>
<%= @content_for_final %>
	</body>
</html>

<% # SPROUTCORE DEFAULT INDEX TEMPLATE
   # This template provide provides a basic wrapper for a SproutCore client.
   # Most of the time, it will be sufficient for your own needs.  However, if
   # you need to create your own template, you can do so by copying this file
   # into your client, naming it 'index.rhtml' and then adding the options
   # :index => 'index' to your client declaration in routes.rb.
   #
   # See the comments in this file for more information on what you can
   # change.
-%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<%  # @title will be defined if you passed :title in routes.rb -%>
    <title><%= (@title.to_s || bundle_name.to_s || '').capitalize %></title>
<% #
	 # This line should appear in your head area to include the stylesheets
	 # generated by your client.  If you need to include your own
	 # stylesheets, you don't need to change it here.  Instead, use the
	 # :requires option in routes.rb.
-%>
    <%= stylesheets_for_client %>
<%= @content_for_page_styles %>
  </head>
  <body class="<%= @theme || 'sc-theme' %> focus">
<% #
   # This is where you root body element will appear.  To cause your
   # content to appear here, just declare content_for('body') in one of
   # your partials.
-%>
    <!-- Main Page Body -->
    <%= @content_for_body %>

<% #
   # This is where the resources you delcare will appear.  You must
   # include the following three lines verbatim for the resources you
   # declare to be properly used.
-%>
    <!-- Resources to be removed from DOM on page load -->
    <div id="resources" style="display:none; visibility: hidden;">
      <%= @content_for_resources -%>
    </div>

<% #
   # This line should appear at the bottom of your page to include your
   # generated JavaScript and any libraries you reference.  If you need
   # to include other javascripts, add them to the :requires option of
   # your client in routes.rb instead of changing it here.
-%>
    <!-- Include Site Javascript -->
    <%= javascripts_for_client %>
<%= @content_for_page_javascript %>

<% #
   # The following lines to the closing body tag must be included at the
   # very end of your file.  This will actually setup the JavaScript
   # views on your page and register SproutCore to start on page load.
-%>
<!-- Render Page Views -->
<%= render_page_views %>

    <!-- Start SproutCore on Page Load -->
    <script type="text/javascript">window.onload = SC.didLoad;</script>
<%= @content_for_final %>
	</body>
</html>


Correct logo filename

Correct logo filename

<%= link_to image_tag('navimg/logo-trans-small.png'), frontpage_url, :id=>'logo' %>

<%= link_to image_tag('navimg/logo_trans_small.png'), frontpage_url, :id=>'logo' %>


fixes #40

fixes #40

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

<% content_for("script") do %>
function item_added() {
  new Effect.Appear($('commentList').lastChild);
  Element.toggle('comment_loading');
  Element.toggle('comment_loaded');
}
function item_loading() {
  Element.toggle('commentform')
  new Effect.Appear('comment_loading');
  $('commentform').elements[2].value = '';
  $('commentform').elements[2].focus();
}

window.onload = function() {
  if( $('commentform').elements[1].value != '' ) {
    Element.toggle('guest_url');
  }
}
<% end %>

<%= render_partial "article", @article %>

<% if @article.allow_comments > 0 -%>

Comments...

    Leave a response

    <%= render_collection_of_partials "comment", @article.comments %>

<% end -%>

<% if @article.allow_pings > 0 -%>

Trackbacks...

    Use the following link to trackback from your own site:

    <%= server_url_for :controller=>"articles", :action=>"trackback", :id=>@article.id %>

    <%= render_collection_of_partials "trackback", @article.trackbacks %>

<% end -%>

<% if @article.allow_comments > 0 -%>
  <%= form_remote_tag :url => {:action => "comment", :id => @article.id},
                      :update => "commentList", :position=> "bottom",
                      :loading => "item_loading()",
                      :complete => "item_added()",
                      :html => {:id=>"commentform",:class=>"commentform"} %>

    write a comment....

        Your name

          <%= text_field "comment", "author", :size => 20 %> (leave url »)

        Your blog

          <%= text_field "comment", "url" %>

          Your message

          <%= text_area "comment", "body", "style"=> "width:300px;height:200px" %>

          <input type="submit" name="submit" value="submit" class="button" />

  <%= end_form_tag %>

    <%= image_tag "spinner.gif" %> Submitting comment

    Finished submitting comment.

<% end -%>

<% content_for("script") do %>
function item_added() {
  new Effect.Appear($('commentList').lastChild);
  Element.toggle('comment_loading');
  Element.toggle('comment_loaded');
}
function item_loading() {
  Element.toggle('commentform')
  new Effect.Appear('comment_loading');
  $('commentform').elements[2].value = '';
  $('commentform').elements[2].focus();
}

window.onload = function() {
  if( $('commentform').elements[1].value != '' ) {
    Element.toggle('guest_url');
  }
}
<% end %>

<%= render_partial "article", @article %>

<% if @article.allow_comments > 0 -%>

<%= responses(@article.comments, "response") %> to '<%= @article.title  %>'

    Leave a response

    <%= render_collection_of_partials "comment", @article.comments %>

<% end -%>

<% if @article.allow_pings > 0 -%>

<%= responses(@article.trackbacks, "trackback") %> to '<%= @article.title  %>'

    Use the following link to trackback from your own site:

    <%= server_url_for :controller=>"articles", :action=>"trackback", :id=>@article.id %>

    <%= render_collection_of_partials "trackback", @article.trackbacks %>

<% end -%>

<% if @article.allow_comments > 0 -%>
  <%= form_remote_tag :url => {:action => "comment", :id => @article.id},
                      :update => "commentList", :position=> "bottom",
                      :loading => "item_loading()",
                      :complete => "item_added()",
                      :html => {:id=>"commentform",:class=>"commentform"} %>

    write a comment....

        Your name

          <%= text_field "comment", "author", :size => 20 %> (leave url »)

        Your blog

          <%= text_field "comment", "url" %>

          Your message

          <%= text_area "comment", "body", "style"=> "width:300px;height:200px" %>

          <input type="submit" name="submit" value="submit" class="button" />

  <%= end_form_tag %>

    <%= image_tag "spinner.gif" %> Submitting comment

    Finished submitting comment.

<% end -%>


added a few comments to the page/list/table partial... it's complicated, so more are needed

<%#

a partial to display a list of pages in a table, one page per row.

arguments
---------

pages: an array of pages.

sections: ???

columns: what columns to display. default is
  [:icon, :title, :updated_by, :update_at, :posts]

heading: show heading if set to true.

checkbox: show a checkbox next to every page row
-%>
<%

pages ||= @pages
sections ||= @sections
columns ||= (@columns || [:icon, :title, :updated_by, :updated_at, :contributors_count])
heading ||= false
checkbox ||= false

-%>

<% unless pages.any? -%>

no pages

<% else -%>
<% if heading -%>

  <% columns.each do |column| -%>
    <%= page_list_heading(column) %>
  <% end -%>

<% end -%>
<%= render :partial => "pages/list/row", :collection => pages, :locals => {:columns => columns, :checkbox => checkbox} %>
<% end -%>

<%= pagination 'section', sections %>

<%#

a partial to display a list of pages in a table, one page per row.

arguments
---------

pages: an array of pages.

columns: what columns to display. default is
  [:icon, :title, :updated_by, :update_at, :posts]

heading: show heading if set to true.

-%>
<%

pages ||= @pages
sections ||= @sections
columns ||= (@columns || [:icon, :title, :updated_by, :updated_at, :contributors_count])
heading ||= false
checkbox ||= false

-%>

<% unless pages.any? -%>

no pages

<% else -%>
<% if heading -%>

  <% columns.each do |column| -%>
    <%= page_list_heading(column) %>
  <% end -%>

<% end -%>
<%= render :partial => "pages/list/row", :collection => pages, :locals => {:columns => columns, :checkbox => checkbox} %>
<% end -%>

<%= pagination 'section', sections %>


try statefield var instead of state_field

<% readonly = can_not_edit?(statefield) ? {:disabled => "disabled"} : {} %>
<%=select(statefield.question_table, statefield.question_column, State::NAMES, {:include_blank => true},
            {:class => statefield.css_class, :onFocus => "Highlight(this)",
            :onBlur => "UnHighlight(this)", :onChange => "set_dirty();"}.merge(readonly)) %>

<% readonly = can_not_edit?(state_field) ? {:disabled => "disabled"} : {} %>
<%=select(statefield.question_table, statefield.question_column, State::NAMES, {:include_blank => true},
            {:class => statefield.css_class, :onFocus => "Highlight(this)",
            :onBlur => "UnHighlight(this)", :onChange => "set_dirty();"}.merge(readonly)) %>


Added a table border for clearer reading

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…")


This example page is not used.

This example page is not used.

<% @title = "Sobre" %>

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

¡Bonjiorno amis!

Esta sito tu aidare a faire los requesti a la governmenti Seblano


Made Excel default choice again

Made Excel default choice again

git-svn-id: 96bd6241e080dd4199045f7177cf3384e2eaed71@897 2d86388d-c40f-0410-ad6a-a69da6a65d20

<% @page_title = 'Admin: Racers' %>

<%= render "shared/admin/tabs" %>

<%= form_tag({}, {:method => 'get'}) %>
	Name: <%= text_field_tag 'name', @name, :size => 30 %>

	<%# Nasty code required to show consistent messages with and without AJAX. At least it could be in a helper. %>

		<%= image_tag('/images/icons/warn.gif', :height => 11, :width => 11, :id => 'warn_icon') %>
		<%= flash[:warn] %>
		<%= image_tag('/images/icons/confirmed.gif', :height => 11, :width => 11, :id => 'message_icon') %>
		<%= flash[:notice] %>

	<%= update_page_tag {|page| page.hide('message_icon')} unless flash[:notice] -%>
	<%= update_page_tag {|page| page.hide('warn_icon')} unless flash[:warn] -%>
</form>

			        Name
		            Team
		            Aliases
		            Road
		            MTB
		            DH
		            Cross
					Member

				<%= render :partial => "racer", :collection => @racers %>
				<% if @racers.empty? %>

					<%- if @name.blank? -%>
					Enter part of a racer's name
					<%- else -%>
					No racers found
					<%- end -%>

				<% end %>

<%= link_to(image_tag('/images/buttons/add.gif'), :action => 'new') %>

				<%= form_tag({:action => 'preview_import'}, { :multipart => true }) %>
					<%= submit_tag 'Import' %>
					<%= file_field_tag "racers_file" %>
				</form>

				<%= form_tag(:action => 'export') %>
					<%= submit_tag 'Export' %>
					<select name="include">
						<option value="all">All</option>
						<option value="members_only" selected>Current Members Only</option>
					</select>
					to
					<select name="format">
						<option value="excel" selected>Excel</option>
						<option value="finish_lynx">FinishLynx</option>
						<option value="scoring_sheet">Scoring Sheet</option>
					</select>
				</form>

				<%=
					link_to('Print Cards', :action => 'cards')
				%> | <%=
					link_to('Print Mailing Labels', :action => 'mailing_labels')
				%>

<%- for racer in @racers -%>
	<%= draggable_element("racer_#{racer.id}", :revert => true) %>
	<%= drop_receiving_element("racer_#{racer.id}",
		:url => { :action => "merge", :target_id => racer.id },
		:loading => "new Effect.Fade(element.id + '_row')",
		:complete => evaluate_remote_response) %>
	<%= drop_receiving_element("name_#{racer.id}",
		:url => { :action => "merge", :target_id => racer.id },
		:loading => "new Effect.Fade(element.id + '_row')",
		:complete => evaluate_remote_response) %>
<%- end -%>

<% @page_title = 'Admin: Racers' %>

<%= render "shared/admin/tabs" %>

<%= form_tag({}, {:method => 'get'}) %>
	Name: <%= text_field_tag 'name', @name, :size => 30 %>

	<%# Nasty code required to show consistent messages with and without AJAX. At least it could be in a helper. %>

		<%= image_tag('/images/icons/warn.gif', :height => 11, :width => 11, :id => 'warn_icon') %>
		<%= flash[:warn] %>
		<%= image_tag('/images/icons/confirmed.gif', :height => 11, :width => 11, :id => 'message_icon') %>
		<%= flash[:notice] %>

	<%= update_page_tag {|page| page.hide('message_icon')} unless flash[:notice] -%>
	<%= update_page_tag {|page| page.hide('warn_icon')} unless flash[:warn] -%>
</form>

			        Name
		            Team
		            Aliases
		            Road
		            MTB
		            DH
		            Cross
					Member

				<%= render :partial => "racer", :collection => @racers %>
				<% if @racers.empty? %>

					<%- if @name.blank? -%>
					Enter part of a racer's name
					<%- else -%>
					No racers found
					<%- end -%>

				<% end %>

<%= link_to(image_tag('/images/buttons/add.gif'), :action => 'new') %>

				<%= form_tag({:action => 'preview_import'}, { :multipart => true }) %>
					<%= submit_tag 'Import' %>
					<%= file_field_tag "racers_file" %>
				</form>

				<%= form_tag(:action => 'export') %>
					<%= submit_tag 'Export' %>
					<select name="include">
						<option value="all">All</option>
						<option value="members_only" selected>Current Members Only</option>
					</select>
					to
					<select name="format">
						<option value="excel" selected>Excel</option>
						<option value="finish_lynx">FinishLynx</option>
						<option value="scoring_sheet" selected>Scoring Sheet</option>
					</select>
				</form>

				<%=
					link_to('Print Cards', :action => 'cards')
				%> | <%=
					link_to('Print Mailing Labels', :action => 'mailing_labels')
				%>

<%- for racer in @racers -%>
	<%= draggable_element("racer_#{racer.id}", :revert => true) %>
	<%= drop_receiving_element("racer_#{racer.id}",
		:url => { :action => "merge", :target_id => racer.id },
		:loading => "new Effect.Fade(element.id + '_row')",
		:complete => evaluate_remote_response) %>
	<%= drop_receiving_element("name_#{racer.id}",
		:url => { :action => "merge", :target_id => racer.id },
		:loading => "new Effect.Fade(element.id + '_row')",
		:complete => evaluate_remote_response) %>
<%- end -%>


remove a space in an rhtml file to make a warning go away

  <%= 'From'.t %>:
  <%= h @page.created_by.both_names %>

  <%= 'To'.t %>:
  <%= h @page.users.collect{|u|u.both_names unless u==@page.created_by}.compact.join(', ')%>

  <%= 'Date'.t %>:
  <%= full_time(@page.created_at) %>

  <%= 'From'.t %>:
  <%= h @page.created_by.both_names %>

  <%= 'To'.t %>:
  <%= h @page.users.collect{|u|u.both_names unless u==@page.created_by}.compact.join (', ')%>

  <%= 'Date'.t %>:
  <%= full_time(@page.created_at) %>


rails3 block style

rails3 block style

<%

  #debugger
   all_responses = fulltext

   (title_level_fulltxt, fulltxt) =
      all_responses.partition {|i| i.view_data[:coverage_checked] == false || i.view_data[:can_link_to_article] == false}
   # order em with full fulltxt before title_level_fulltxt
   all_responses = fulltxt + title_level_fulltxt
%>

<div class="umlaut_section fulltext <%= unless fulltxt.blank? && title_level_fulltxt.blank?; 'highlighted_section' ; end %>">

  <%= renderer.render_heading %>

  <%
      list_with_limit('umlaut_fulltext', all_responses, :ul_class => "response_list", :limit => renderer.list_visible_limit ) do |item, index | %>

        <%
        # Display special warnign header if it's title-level only,
        # and it's an article or issue level link. Are we
        # at the beginning of title level display?
        if ( index == fulltxt.length &&
             !title_level_request? )
           genre = @user_request.referent.metadata['genre']
           genre = "Journal" if genre && genre.downcase == 'article' %>

<%= genre ? genre.titlecase : "Title" %>-level Page Only

Can not link directly to citation. Dates or extent of coverage may be unknown.

        <% end %>

        <%= render(:partial => "standard_response_item", :object=> item) %>
  <% end %>

  <%
  if (fulltxt.empty? && title_level_fulltxt.empty? &&
      ! service_type_in_progress?('fulltext'))
  %>

Not Available

  <% end %>

  <%= render( renderer.spinner_render_hash) if renderer.services_in_progress? %>

<%

  #debugger
   all_responses = fulltext

   (title_level_fulltxt, fulltxt) =
      all_responses.partition {|i| i.view_data[:coverage_checked] == false || i.view_data[:can_link_to_article] == false}
   # order em with full fulltxt before title_level_fulltxt
   all_responses = fulltxt + title_level_fulltxt
%>

<div class="umlaut_section fulltext <%= unless fulltxt.blank? && title_level_fulltxt.blank?; 'highlighted_section' ; end %>">

  <%= renderer.render_heading %>

  <%
      list_with_limit('umlaut_fulltext', all_responses, :ul_class => "response_list", :limit => renderer.list_visible_limit ) do |item, index |
        # Display special warnign header if it's title-level only,
        # and it's an article or issue level link. Are we
        # at the beginning of title level display?
        if ( index == fulltxt.length &&
             !title_level_request? )
           genre = @user_request.referent.metadata['genre']
           genre = "Journal" if genre && genre.downcase == 'article' %>

<%= genre ? genre.titlecase : "Title" %>-level Page Only

Can not link directly to citation. Dates or extent of coverage may be unknown.

        <% end %>

        <%= render(:partial => "standard_response_item", :object=> item) %>
  <% end %>

  <%
  if (fulltxt.empty? && title_level_fulltxt.empty? &&
      ! service_type_in_progress?('fulltext'))
  %>

Not Available

  <% end %>

  <%= render( renderer.spinner_render_hash) if renderer.services_in_progress? %>


Fixing "Set to all" multitask selection

Fixing "Set to all" multitask selection

(ActionItem1840)

<%= stylesheet_link_tag 'tasks' %>

<%= _("%s's pending tasks") % profile.name %>

<% if !@failed.blank? %>

    <% @failed.each do |error, tasks_descriptions|%>

 <%= error %>

<%=_("This error happened with the following tasks: ")%>

        <% tasks_descriptions.each do |description| %>

 <%= description %>

        <% end %>

    <% end %>

<% end %>

<% if @tasks.empty? %>
  <%= _('No pending tasks for %s') % profile.name %>
<% else %>
  <% form_tag :action => 'close' do%>
    <% button_bar do %>
      <%# FiXME button(:edit, _('View my requests'), :action => 'list_requested') %>
      <%# FIXME button('menu-mail',  _('Send request'), :action => 'new') %>
      <%= submit_button :save, _("Apply!") %>
      <%= button(:edit, _('View processed tasks'), :action => 'processed') %>
      <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
    <% end %>

      <%= labelled_select(_("Set all to: "), 'set-decisions', 'first', 'last', nil, [['',""],['accept',_("Accept")],['reject',_("Reject")],['skip',_("Skip")]], :id => "up-set-all-tasks-to") %>

      <% @tasks.each do |task| %>
        <%= render :partial => 'task', :locals => { :task => task } %>
      <% end %>

      <%= labelled_select(_("Set all to: "), 'set-decisions', 'first', 'last', nil, [['',""],['accept',_("Accept")],['reject',_("Reject")],['skip',_("Skip")]], :id => "down-set-all-tasks-to") %>

    <% button_bar do %>
      <%# FiXME button(:edit, _('View my requests'), :action => 'list_requested') %>
      <%# FIXME button('menu-mail',  _('Send request'), :action => 'new') %>
      <%= submit_button :save, _("Apply!") %>
      <%= button(:edit, _('View processed tasks'), :action => 'processed') %>
      <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
    <% end %>
  <% end %>
<% end %>

<%= javascript_include_tag 'tasks' %>

<%= stylesheet_link_tag 'tasks' %>

<%= _("%s's pending tasks") % profile.name %>

<% if !@failed.blank? %>

    <% @failed.each do |error, tasks_descriptions|%>

 <%= error %>

<%=_("This error happened with the following tasks: ")%>

        <% tasks_descriptions.each do |description| %>

 <%= description %>

        <% end %>

    <% end %>

<% end %>

<% if @tasks.empty? %>
  <%= _('No pending tasks for %s') % profile.name %>
<% else %>
  <% form_tag :action => 'close' do%>
    <% button_bar do %>
      <%# FiXME button(:edit, _('View my requests'), :action => 'list_requested') %>
      <%# FIXME button('menu-mail',  _('Send request'), :action => 'new') %>
      <%= submit_button :save, _("Apply!") %>
      <%= button(:edit, _('View processed tasks'), :action => 'processed') %>
      <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
    <% end %>

      <%= labelled_select(_("Set all to: "), 'set-decisions', 'downcase', 'to_s', nil, ["",_("Accept"), _("Reject"), _("Skip")], :id => "up-set-all-tasks-to") %>

      <% @tasks.each do |task| %>
        <%= render :partial => 'task', :locals => { :task => task } %>
      <% end %>

      <%= labelled_select(_("Set all to: "), 'set-decisions', 'downcase', 'to_s', nil, ["",_("Accept"), _("Reject"), _("Skip")], :id => "up-set-all-tasks-to") %>

    <% button_bar do %>
      <%# FiXME button(:edit, _('View my requests'), :action => 'list_requested') %>
      <%# FIXME button('menu-mail',  _('Send request'), :action => 'new') %>
      <%= submit_button :save, _("Apply!") %>
      <%= button(:edit, _('View processed tasks'), :action => 'processed') %>
      <%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
    <% end %>
  <% end %>
<% end %>

<%= javascript_include_tag 'tasks' %>


Move the comment box for the create page too

<% @page_title = 'Skapar ny sida' -%>

Skapa ny sida

<% form_for :page do |page| -%>

Titel
<%= page.text_field :title, :maxlength => 35, :size => 35  %>
<%= error_message_on @page, :title %>

Innehåll
<%= page.text_area :content, :cols => 84, :rows => 20  %>

  <%= submit_tag 'Skapa sida' %>
	eller
  <%= link_to 'Avbryt', :action => 'list' %>

Kommentar
<%= page.text_field :comment, :maxlength => 74, :size => 50 %>

Sidbeskrivning
<%= page.text_area :description, :cols => 50, :rows => 3 %>

Formatering
<%= page.select :markup, markups_available %>

<% end -%>


somewhat more reasonable rails view template code

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

<%= cite[:title_label] %>:

      <%= cite[:title] %>

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

   if display_not_found_warning?(@user_request)
%>

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

<%   end %>

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

Author:

  <%= cite[:author] %>

<%
end
if cite[:subtitle] %>

<%= cite[:subtitle_label] %>:

 <%= cite[:subtitle] %>

<%
end

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

ISSN:

  <%= cite[:issn] %>

<%
end

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

ISBN:

  <%= cite[:isbn] %>

<%
end %>

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

Publisher:

  <%= cite[:pub] %>

<% end %>

<% unless cite[:date].blank? && cite[:volume].blank? && cite[:issue].blank? && cite[:page].blank? %>

Published:

    <%= date_format(cite[:date]) %>

    <% unless cite[:volume].blank? %>
      Volume:  <%= cite[:volume] %>
    <% end %>
    <% unless cite[:issue].blank? %>
      Issue:&nbps; <%= cite[:issue] %>
    <% end %>
    <% unless cite[:page].blank? %>
      Page:  <%= cite[:page] %>
    <% end %>

<% end %>

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

<%= cite[:title_label] %>:

      <%= cite[:title] %>

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

   if display_not_found_warning?(@user_request)
%>

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

<%   end %>

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

Author:

  <%= cite[:author] %>

<%
end
if cite[:subtitle] %>

<%= cite[:subtitle_label] %>:

 <%= cite[:subtitle] %>

<%
end

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

ISSN:

  <%= cite[:issn] %>

<%
end

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

ISBN:

  <%= cite[:isbn] %>

<%
end %>

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

Publisher:

  <%= cite[:pub] %>

<% end %>

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

Published:

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

<% end %>


Finally fix up links, make them pretty.

Finally fix up links, make them pretty.

This actually works, hooray!

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

(Return to <%= link_to 'revision overview', {:action => 'revision', :rev => @rev, :controller => 'repositories'} if @rev %><%= link_to 'revision overview', {:action => 'revision', :rev => @rev_to, :controller => 'repositories'} if @rev_to %>.)

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

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

<% end %>

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

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

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

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

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

<%= link_to('Revision overview', :url => params.merge({:action => 'revision'}, :caption => 'Revision overview') %>

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

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

<% end %>

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

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

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

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


bugfix - no user now lists as General Medical Care

Showing Medical Treatment

Bat: <%=h @proposed_treatment.medical_problem.bat.band %>

Medical Problem: <%=h @proposed_treatment.medical_problem.title %>

Description: <%=h @proposed_treatment.medical_problem.description %>

Date Opened: <%=h nice_date @proposed_treatment.medical_problem.date_opened %>

Date Closed: <%=h nice_date @proposed_treatment.medical_problem.date_closed %>

Owner: <%=h @proposed_treatment.medical_problem.user ? @proposed_treatment.medical_problem.user.name : 'General Medical Care' %>

      Proposed Treatment: <%=h @proposed_treatment.treatment %>

      Treatment Start Date: <%=h nice_date @proposed_treatment.date_started %>

      Suggested Treatment Finish Date: <%=h nice_date @proposed_treatment.date_finished %>

      Ended Treatment: <%=h nice_date @proposed_treatment.date_closed %>

Medical Care Actions:

  <% for medical_care_action in @proposed_treatment.medical_care_actions %>

      Date: <%= nice_date_with_time medical_care_action.date %>

      Remarks: <%= medical_care_action.remarks %>

      User: <%=h medical_care_action.user.name %>

  <% end %>

<%#= link_to 'Edit', :action => 'edit', :id => @proposed_treatment %>
<%= link_to 'List Current Medical Problems', :controller => 'medical_problems', :action => 'list_current' %>

Showing Medical Treatment

Bat: <%=h @proposed_treatment.medical_problem.bat.band %>

Medical Problem: <%=h @proposed_treatment.medical_problem.title %>

Description: <%=h @proposed_treatment.medical_problem.description %>

Date Opened: <%=h nice_date @proposed_treatment.medical_problem.date_opened %>

Date Closed: <%=h nice_date @proposed_treatment.medical_problem.date_closed %>

Owner: <%=h @proposed_treatment.medical_problem.user.name %>

      Proposed Treatment: <%=h @proposed_treatment.treatment %>

      Treatment Start Date: <%=h nice_date @proposed_treatment.date_started %>

      Suggested Treatment Finish Date: <%=h nice_date @proposed_treatment.date_finished %>

      Ended Treatment: <%=h nice_date @proposed_treatment.date_closed %>

Medical Care Actions:

  <% for medical_care_action in @proposed_treatment.medical_care_actions %>

      Date: <%= nice_date_with_time medical_care_action.date %>

      Remarks: <%= medical_care_action.remarks %>

      User: <%= medical_care_action.user.name %>

  <% end %>

<%#= link_to 'Edit', :action => 'edit', :id => @proposed_treatment %>
<%= link_to 'List Current Medical Problems', :controller => 'medical_problems', :action => 'list_current' %>


Changed text color from violet to dark blue

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

#topnav ul li a,
div.frontpage-box {
    color: #1B1C6A !important;

}

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

#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;
}


Use parens when calling render_view for consistency

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

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%== @title ? @title : Thoth::Config.site.name %></title>

    <%= Thoth::MainController.render_view(:css) %>

    <link rel="alternate" type="application/atom+xml"
        href="<%= Thoth::MainController.r(:atom) %>" title="Posts (Atom)" />
    <link rel="alternate" type="application/rss+xml"
        href="<%= Thoth::MainController.r(:rss) %>" title="Posts (RSS)" />
    <% if @feeds; @feeds.each do |feed| %>
      <link rel="alternate" type="<%== feed[:type] %>"
          href="<%== feed[:href] %>" title="<%== feed[:title] %>" />
    <% end; end %>

    <link rel="home" href="<%== Thoth::Config.site.url %>" />

    <% if @pager %>
      <% if @pager.prev_url %>
        <link id="prev_url" rel="prev" href="<%== @pager.prev_url %>" />
      <% end %>
      <% if @pager.next_url %>
        <link id="next_url" rel="next" href="<%== @pager.next_url %>" />
      <% end %>
    <% end %>

      <%= Thoth::MainController.render_view(:header) %>

        <%= Thoth::MainController.render_view(:sidebar) %>

          <%= flashbox('
%value
') %>
          <%= @content %>

      <%= Thoth::MainController.render_view(:footer) %>

    <%= Thoth::MainController.render_view(:js) %>

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

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%== @title ? @title : Thoth::Config.site.name %></title>

    <%= Thoth::MainController.render_view :css %>

    <link rel="alternate" type="application/atom+xml"
        href="<%= Thoth::MainController.r(:atom) %>" title="Posts (Atom)" />
    <link rel="alternate" type="application/rss+xml"
        href="<%= Thoth::MainController.r(:rss) %>" title="Posts (RSS)" />
    <% if @feeds; @feeds.each do |feed| %>
      <link rel="alternate" type="<%== feed[:type] %>"
          href="<%== feed[:href] %>" title="<%== feed[:title] %>" />
    <% end; end %>

    <link rel="home" href="<%== Thoth::Config.site.url %>" />

    <% if @pager %>
      <% if @pager.prev_url %>
        <link id="prev_url" rel="prev" href="<%== @pager.prev_url %>" />
      <% end %>
      <% if @pager.next_url %>
        <link id="next_url" rel="next" href="<%== @pager.next_url %>" />
      <% end %>
    <% end %>

      <%= Thoth::MainController.render_view :header %>

        <%= Thoth::MainController.render_view :sidebar %>

          <%= flashbox('
%value
') %>
          <%= @content %>

      <%= Thoth::MainController.render_view :footer %>

    <%= Thoth::MainController.render_view :js %>


oops, fixed bug where search error page couldnt display

<% @page_title = "Error!"%>

Sorry, there was an error processing your request

Please try one of the following options:

Sometimes it helps to just try again: <%= link_to "Try again", :action=>'index' -%>

          <% if help_url = AppConfig.param('help_url') %>

If that doesn't work: <%= link_to "Contact us for help", help_url%>

          <% end %>

<% @page_title = "Error!"%>

Sorry, there was an error processing your request

Please try one of the following options:

Sometimes it helps to just try again: <%= link_to "Try again", :action=>'index' -%>

          <% if help_url = AppConfig('help_url') %>

If that doesn't work: <%= link_to "Contact us for help", "http://www.library.gatech.edu/research_help/ask.html"%>

          <% end %>


Need to deploy again in a bit...

Need to deploy again in a bit...

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

        <%= javascript_include_tag :defaults %>

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - file and explore Freedom of Information (FOI) requests
        <% end %>
        </title>
        <%= stylesheet_link_tag 'yucky-green', :title => "Yucky Green"  %>
        <%= stylesheet_link_tag 'main', :rel => "alternate stylesheet", :title => "Main" %>

            WhatDoTheyKnow?
            (<%= link_to "in development", about_url %>)

            Lift the lid on the UK public sector!

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

               <%= text_field_tag 'query', params[:query], { :size => 25, :id => "navigation_search_query" } %>
               <%= submit_tag "Search" %>

        <% end %>

Make request

<%= link_to "View requests", request_list_url(:view => nil) %>

<%= link_to "View authorities", list_public_bodies_url(:tag => 'department') %>

			<% if @user %>

<%=link_to "My requests", user_url(@user) %>

			<% end %>

<%= link_to "About", about_url %>

		<% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

			<% if @user %>
				Hello, <%=h(@user.name)%>!
				(<%= link_to "Sign out", signout_url(:r => request.request_uri) %>)
			<% else %>
				Hello! (<%= link_to "Sign in or sign up", signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>">
            <%= yield :layout %>

        Built by mySociety ... and you.
        Get the source code (is on Rails).
        Dedicated to Chris Lightfoot.

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

        <%= javascript_include_tag :defaults %>

        <title>
        <% if @title %>
            <%=@title%> - WhatDoTheyKnow
        <% else %>
            WhatDoTheyKnow - file and explore Freedom of Information (FOI) requests
        <% end %>
        </title>
        <%= stylesheet_link_tag 'yucky-green', :rel => "alternate stylesheet", :title => "Yucky Green"  %>
        <%= stylesheet_link_tag 'main', :title => "Main" %>

            WhatDoTheyKnow?
            (<%= link_to "in development", about_url %>)

            Lift the lid on the UK public sector!

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

               <%= text_field_tag 'query', params[:query], { :size => 25, :id => "navigation_search_query" } %>
               <%= submit_tag "Search" %>

        <% end %>

Make request

<%= link_to "View requests", request_list_url(:view => nil) %>

<%= link_to "View authorities", list_public_bodies_url(:tag => 'department') %>

			<% if @user %>

<%=link_to "My requests", user_url(@user) %>

			<% end %>

<%= link_to "About", about_url %>

		<% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

			<% if @user %>
				Hello, <%=h(@user.name)%>!
				(<%= link_to "Sign out", signout_url(:r => request.request_uri) %>)
			<% else %>
				Hello! (<%= link_to "Sign in or sign up", signin_url(:r => request.request_uri) %>)
			<% end %>

		<% end %>

    <% if MySociety::Config.getbool("STAGING_SITE", 1) %>

            This is a test version of the site. FOI requests will not be sent to real public authorities.

    <% end %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>">
            <%= yield :layout %>

        Built by mySociety ... and you.
        Get the source code (is on Rails).
        Dedicated to Chris Lightfoot.


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

<% change_condition = remote_function(:update => 'settlement_details', :url => {:action => 'change_condition', :clear_selection => true}, :with => 'Form.serialize(\'settlement_conditions\')') %>
<%= start_form_tag ({:action => 'create'}, :id => 'settlement_conditions')%>

      口座
      <%= select_account('settlement', 'account_id', [:credit, :credit_card], true, {}, :onChange => change_condition)%>

      期間

<%= select_date(@start_date, :prefix => 'start_date', :use_month_numbers => true)%> ～ <%= select_date(@end_date, :prefix => 'end_date', :use_month_numbers => true) %> <button onClick="alert('change_conditions');<%= change_condition%>;return false;">表示内容を更新</button>

<% unless @settlement.errors.empty? %>

<%= error_messages_for 'settlement'%>

<% end %>

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

<%= end_form_tag %>

<% change_condition = remote_function(:update => 'settlement_details', :url => {:action => 'change_condition', :clear_selection => true}, :with => 'Form.serialize(\'settlement_conditions\')') %>
<%= start_form_tag ({:action => 'create'}, :id => 'settlement_conditions')%>

      口座
      <%= select_account('settlement', 'account_id', [:credit, :credit_card], true, {}, :onChange => change_condition)%>

      期間

<%= select_date(@start_date, :prefix => 'start_date', :use_month_numbers => true)%> ～ <%= select_date(@end_date, :prefix => 'end_date', :use_month_numbers => true) %> <button onClick="<%= change_condition%>">表示内容を更新</button>

<% unless @settlement.errors.empty? %>

<%= error_messages_for 'settlement'%>

<% end %>

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

<%= end_form_tag %>


Fix bug on hiding temporary note

Fix bug on hiding temporary note

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

        <% if @profile_photo_javascript %>

            <link rel="stylesheet" href="/stylesheets/jquery.Jcrop.css" type="text/css" >
        <% end %>

        <title>
        <% if @title %>
            <%=@title%> - <%= site_name %>
        <% else %>
            <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %>
        <% end %>
        </title>

        <link rel="shortcut icon" href="/favicon.ico">
	<%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet", :media => "all" %>

	<%= stylesheet_link_tag 'theme', :rel => "stylesheet", :media => "all"  %>
	<%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "print"  %>
	<% if !params[:print_stylesheet].nil? %>
         <%= stylesheet_link_tag 'print', :rel => "stylesheet", :media => "all"  %>
	<% end %>
	<%= javascript_include_tag 'jquery.js', 'jquery-ui.min','jquery.cookie.js', 'general.js' %>
	<%= stylesheet_link_tag 'admin-theme/jquery-ui-1.8.15.custom.css', :rel => 'stylesheet'%>

        <%= stylesheet_link_tag '../asktheeu-theme/stylesheets/asktheeu.css', :title => "Main", :rel => "stylesheet"  %>
        <% if force_registration_on_new_request %>
        <%= stylesheet_link_tag 'jquery.fancybox-1.3.4', :rel => "stylesheet"  %>
        <% end %>

        <% if @feed_autodetect %>
            <% for feed in @feed_autodetect %>
                <link rel="alternate" type="application/atom+xml" title="<%=h feed[:title] %>" href="<%=h feed[:url]%>">
                <% if feed[:has_json] %>
                    <link rel="alternate" type="application/json" title="JSON version of <%=h feed[:title] %>" href="<%=h feed[:url]%>.json">
                <% end %>
            <% end %>
        <% end %>
        <% if @has_json %>
            <link rel="alternate" type="application/json" title="JSON version of this page" href="<%=h main_url(request.request_uri) %>.json">
        <% end %>

        <% if @no_crawl %>
            <meta name="robots" content="noindex, nofollow">
        <% end %>

    <%= render :partial => 'general/before_head_end' %>

    <body <%= "class='front'" if params[:action] == 'frontpage' %>>

    <% if force_registration_on_new_request && !@user %>
    <%= javascript_include_tag 'jquery.fancybox-1.3.4.pack' %>

    <% end %>

<%= render :partial => 'general/locale_switcher' %>

        <% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %>

          <% if @user %>
              <%= _('Hello, {{username}}!', :username => h(@user.name))%>

                <% if @user %>
                    <%=link_to _("My profile"), user_url(@user) %>
                <% end %>

              <%= link_to _("Sign out"), signout_url(:r => request.request_uri) %>
          <% else %>
              <%= link_to _("Sign in or sign up"), signin_url(:r => request.request_uri) %>
          <% end %>

        <% end %>

        <% if I18n.locale != :en %>

The translations into Spanish and French are still ongoing and we are happy for anyone
                who can support us
in order to make the site even more accessible. If you wish to help us,
                we are more than happy to hear from you.
Please get in touch:
                team@asktheeu.org

Close

        <% end %>

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

                   <%= text_field_tag 'query', params[:query], { :size => 40, :id => "navigation_search_query" } %>
                   <%= image_submit_tag('search-button.png') %>

            <% end %>

        <%= render :partial => 'general/orglink' %>

        <%= render :partial => 'general/topnav' %>

            <% if flash[:notice] %>

<%= flash[:notice] %>

            <% end %>
            <% if flash[:error] %>

<%= flash[:error] %>

            <% end %>

            <div id="<%= controller.controller_name + "_" + controller.action_name %>" class="controller_<%= controller.controller_name %>">
            <%= yield :layout %>

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

    <%= render :partial => 'general/before_body_end' %>

X
<%= _("Paste this link into emails, tweets, and anywhere else:") %>

<input type="text">


ActionItem392: using better the screen space

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

<% form_tag( { :action => 'index', :category_path => ( @category ? @category.explode_path : [] ) },
               :method => 'get', :class => 'search_form' ) do %>
  <%= '
%s
' % form_title if defined? form_title %>

      <%= text_field_tag 'query', @query, :id => ( lightbox? ? 'popup-search-input' : '' ), :size => 50 %>
      <%= javascript_tag '$("popup-search-input").focus()' if lightbox? %>

    <%= submit_button(:search, _('Search')) %>

  <% if @category %>

<%= _('Search in:') %>

      <%= labelled_radio_button _('Only in %s') % @category.name, :search_whole_site, 'no', true %>
      <%= labelled_radio_button _('Whole site'), :search_whole_site, 'yes' %>

  <% end %>

<%= _('Search for:') %>

      <% @search_in.map { |t,n| [t,gettext(n)] } .
                    sort_by(&:last).each do |thing, name| %>

        <%= labelled_check_box name, 'find_in[]', thing.to_s, @searching[thing.to_sym] %>

      <% end %>

  <% if lightbox?; button_bar do %>
  <%= lightbox_close_button _('Close') %>
  <% end; end %>

<% end %>


Need to call h to escape emails here

Need to call h to escape emails here

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

<%=@title%>

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

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

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

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

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

Events

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

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

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

<%=h info_request_event.params_yaml.gsub(/-/,' ').strip %>

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

  <% end %>

    <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
        <% form_tag '../mark_event_as_clarification' do %>

              <%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
              <%= submit_tag "Was clarification request" %>

        <% end %>
    <% end %>

<% end %>

Outgoing messages

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

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

    <% if column == 'body' %>

<%= simple_format( truncate(outgoing_message.body, 400,
                  link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( outgoing_message.body ) %>

    <% else %>
      <%= simple_format( outgoing_message.send(column) ) %>
    <% end %>

  <% end %>

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

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

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

<% end %>

Incoming messages

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

<% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>" id="incoming-<%=incoming_message.id.to_s%>">
  <%=h incoming_message.id %>
  <% for column in IncomingMessage.content_columns.map { |c| c.name } %>
    <% if column =~ /^cached_.*?_text$/ %>

<%= simple_format( truncate(incoming_message.send(column), 400,
                  link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( incoming_message.send(column) ) %>

    <% else %>
      <%= simple_format( incoming_message.send(column) ) %>
    <% end %>
  <% end %>

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

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

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

<% end %>

Annotations

<% if @info_request.comments.size > 0 %>

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

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

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

  <% end %>

<% else %>

None yet.

<% end %>

Exim delivery logs

(Lines containing the request incoming email address, updated hourly.)

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

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

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

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

<% end %>

Censor rules

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

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

<%=@title%>

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

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

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

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

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

Events

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

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

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

<%= info_request_event.params_yaml %>

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

  <% end %>

    <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
        <% form_tag '../mark_event_as_clarification' do %>

              <%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
              <%= submit_tag "Was clarification request" %>

        <% end %>
    <% end %>

<% end %>

Outgoing messages

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

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

    <% if column == 'body' %>

<%= simple_format( truncate(outgoing_message.body, 400,
                  link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( outgoing_message.body ) %>

    <% else %>
      <%= simple_format( outgoing_message.send(column) ) %>
    <% end %>

  <% end %>

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

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

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

<% end %>

Incoming messages

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

<% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>
  <tr class="<%= cycle('odd', 'even') %>" id="incoming-<%=incoming_message.id.to_s%>">
  <%=h incoming_message.id %>
  <% for column in IncomingMessage.content_columns.map { |c| c.name } %>
    <% if column =~ /^cached_.*?_text$/ %>

<%= simple_format( truncate(incoming_message.send(column), 400,
                  link_to_function("...", "$(this).up('td').childElements().invoke('toggle')")
            )) %>

<%= simple_format( incoming_message.send(column) ) %>

    <% else %>
      <%= simple_format( incoming_message.send(column) ) %>
    <% end %>
  <% end %>

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

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

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

<% end %>

Annotations

<% if @info_request.comments.size > 0 %>

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

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

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

  <% end %>

<% else %>

None yet.

<% end %>

Exim delivery logs

(Lines containing the request incoming email address, updated hourly.)

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

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

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

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

<% end %>

Censor rules

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


small change to add categories to the side menu.

git-svn-id: 035394e0ea20290a56a73539b1ebfcd8236adefd@499 7bd17f4f-1217-0410-bbc5-bc4367116c30

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

  <title><%= APP_NAME %>: <%= @page_title || controller.action_name %></title>
  <%= render :partial=>'layouts/global_includes' %>

<%= image_tag 'ajax-loader.gif' %>  Loading...

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

	  <%= grail_notify("System Message", flash[:grail])  if flash.keys.include?(:grail) %>
	  <%= display_flash_message %>

    <% if current_user %>

    <%= form_tag :controller => 'search', :action => 'all' %>
  	  <input class="searchField" type="text" name='id' tabindex="1" alt="search box" />
  	  <input class="searchSubmit" type="submit" value="Search" alt="search button" />
    <%= end_form_tag %>

    <%
    #comment this out for now, because of scoping issues related to traversing the ancestors of a category
    if false %>

<%= link_to "List Categories", :controller=>'category', :action=>'list' %>

          <%= yield :bread_crumbs %>

      <% end -%>
    <% end -%>
    <%= yield :application_header %>

				<% if current_user
				  display_open_as  = display_close_as = "none"
				  if session[:view][:expand_menu]
				    display_open_as  = "block"
				  else
				    display_close_as = "block"
			    end
				-%>

				<div style="border-right:1px solid #cfcfcf;width:250px;display:<%= display_open_as %>;">
				  <%= image_tag('/images/icons/arrow_left.png', {:style=>"display:block;position:absolute;left:240px;padding:1px;border: 1px solid #ccc;"})%>

<%= link_to 'Inbox', :controller=>'inbox' %>

<%= link_to 'Profile', :controller=>'account',:action=>'my_profile' %>

<%= link_to 'Categories', :controller=>'category' %>

				  <% unless params[:controller] == 'inbox' || params[:action] == 'dashboard'-%>

  				    <%= parse_tree(session[:category_tree][:root][:children]) %>

  				<% else
              if current_user.is_admin? -%>
					  <%= render :partial=>'layouts/admin_side_menu' %>
				  <%  else -%>
					  <%= render :partial=>'layouts/user_side_menu' %>
				  <%  end
            end -%>

				<div id="sideMenuCollapsed" style="border-right:1px solid #cfcfcf;width:25px;display:<%= display_close_as %>;">
			<%= image_tag('/images/icons/arrow_right.png', {:style=>"display:block;padding:1px;border: 1px solid #ccc;"})%>

			<% end -%>

				<%= yield :page_view_options %>
				<%= yield :layout %>

    <%= yield :page_meta %>
    <%= render :partial=>'shared/page/footer'%>

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

  <title><%= APP_NAME %>: <%= @page_title || controller.action_name %></title>
  <%= render :partial=>'layouts/global_includes' %>

<%= image_tag 'ajax-loader.gif' %>  Loading...

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

	  <%= grail_notify("System Message", flash[:grail])  if flash.keys.include?(:grail) %>
	  <%= display_flash_message %>

    <% if current_user %>

    <%= form_tag :controller => 'search', :action => 'all' %>
  	  <input class="searchField" type="text" name='id' tabindex="1" alt="search box" />
  	  <input class="searchSubmit" type="submit" value="Search" alt="search button" />
    <%= end_form_tag %>

    <%
    #comment this out for now, because of scoping issues related to traversing the ancestors of a category
    if false %>

<%= link_to "List Categories", :controller=>'category', :action=>'list' %>

          <%= yield :bread_crumbs %>

      <% end -%>
    <% end -%>
    <%= yield :application_header %>

				<% if current_user
				  display_open_as  = display_close_as = "none"
				  if session[:view][:expand_menu]
				    display_open_as  = "block"
				  else
				    display_close_as = "block"
			    end
				-%>

				<div style="border-right:1px solid #cfcfcf;width:250px;display:<%= display_open_as %>;">
				  <%= image_tag('/images/icons/arrow_left.png', {:style=>"display:block;position:absolute;left:240px;padding:1px;border: 1px solid #ccc;"})%>

<%= link_to 'Inbox', :controller=>'inbox' %>

<%= link_to 'Profile', :controller=>'account',:action=>'my_profile' %>

				  <% unless params[:controller] == 'inbox' || params[:action] == 'dashboard'-%>

  				    <%= parse_tree(session[:category_tree][:root][:children]) %>

  				<% else
              if current_user.is_admin? -%>
					  <%= render :partial=>'layouts/admin_side_menu' %>
				  <%  else -%>
					  <%= render :partial=>'layouts/user_side_menu' %>
				  <%  end
            end -%>

				<div id="sideMenuCollapsed" style="border-right:1px solid #cfcfcf;width:25px;display:<%= display_close_as %>;">
			<%= image_tag('/images/icons/arrow_right.png', {:style=>"display:block;padding:1px;border: 1px solid #ccc;"})%>

			<% end -%>

				<%= yield :page_view_options %>
				<%= yield :layout %>

    <%= yield :page_meta %>
    <%= render :partial=>'shared/page/footer'%>


Improve two column layout

Improve two column layout

@import url(http://fonts.googleapis.com/css?family=Open+Sans:600,700);

/** LAYOUT **/
body {
    font-family: Verdana, Helvetica, Arial;
    font-size: 12px;
    line-height: 1.5;
}
    body.front {
        background: none;
    }

#content {
    width: 840px;
    padding: 0px 60px;
    margin: auto;
}

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

#header_right {
    width: 180px;
    float: left;
    margin-top: 30px;
}

#header_left {
    width: 600px;
    float: right;
    padding: 20px 30px;
}

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

#banner_inner {
    width: 960px;
    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;
    text-transform: capitalize;
}
    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;
    float: right;
}
    #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: 'Open Sans', Helvetica, Arial;
    color: #009a9d;
    font-size: 28px;
    font-weight: 600;
    margin-top: 30px;
    text-decoration: none;
}

h2, h2 a {
    font-family: 'Open Sans', Helvetica, Arial;
    color: #7bbb58;
    font-size: 18px;
    font-weight: 700;
}

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

/** HELP **/
#left_column_flip {
    margin-top: 10px;
    padding-left: 30px;
    margin-right: 30px;
    width: 600px;
}

#right_column_flip {
    text-align: left;
    width: 180px;
    margin-top: 32px;
}
    #right_column_flip h3 {
        margin-bottom: 0px;
    }
    #right_column_flip ul {
        margin-top: 0px;
        list-style: none outside none;
    }

.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: 960px;
    margin: auto;
    position: relative;
}

#frontpage-lead {
    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #73c167;
}

#frontpage-left-balloon {
    float: left;
    width: 196px;
    height: 184px;
    background: url(/asktheeu-theme/images/yellow_balloon.gif);
    padding: 10px 30px 20px 50px;
    margin: 37px 8px 60px 0px;
    text-align: center;
}
    #frontpage-left-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }
    #frontpage-left-balloon p {
        padding-right: 20px;
    }
    #frontpage-left-balloon .frontpage-button-link {
        margin-left: 38px;
    }

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

#frontpage-right-balloon {
    float: left;
    width: 218px;
    height: 174px;
    background: url(/asktheeu-theme/images/green_balloon.gif);
    padding: 5px 20px 20px 50px;
    margin: 42px 0px 60px 4px;
    text-align: center;
}
    #frontpage-right-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 30px;
        margin-bottom: 5px;
    }
    #frontpage-right-balloon p {
        padding-right: 30px;
    }
    #frontpage-right-balloon .frontpage-button-link {
        margin-left: 43px;
    }

#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: 3px;
    padding-bottom: 3px;
}

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

#frontpage-inner-content {
    width: 960px;
    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,
    .picture-frame iframe {
        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: 'Open Sans', 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;
    }

/** GENERAL **/
.request_listing span.head a,
.user_listing span.head a,
.body_listing span.head a {
    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 16px;
    color: #009A9D;
}

a,
.request_listing a,
.body_listing a,
.user_listing a {
    color: #009A9D;
    text-decoration: none !important;
}
    a:hover,
    .request_listing a:hover,
    .body_listing a:hover,
    .user_listing a:hover {
        text-decoration: underline !important;
    }

#header_left p,
#header_left ul,
#header_left ol {
    padding-right: 120px;
}

.request_left {
    width: 600px;
}

.request_right {
    width: 240px;
}

/** REQUEST **/
p.subtitle {
    font-family: Verdana, Helvetica, Arial;
    font-size: 15px;
    color: #444444; /* XXX */
}

p.public-body-name-prefix {
    font-family: Verdana, Helvetica, Arial;
    font-size: 14px;
    margin-top: 0px;
    margin-bottom: -20px;
    color: #444444; /* XXX */
}

#stepwise_make_request {
    background: none;
    width: 480px;
    margin-bottom: 10px;

    font-family: Verdana, Helvetica, Arial;
    font-size: 16px;
    color: #444444; /* XXX */
}
    #stepwise_make_request strong {
        color: #009A9D;
    }

h2.foi_results {
    width: 480px;
    padding-bottom: 0px;
}

#foi_results_section,
.results_section {
    float: right;
    padding-left: 0px;
    padding-right: 150px;
    width: 480px;
}

.request_listing {
    margin-right: -210px;
}

    .request_left {
        width: 480px;
    }
    .request_right {
        width: 210px;
    }
    .request_listing span.desc {
        background: none;
    }

.date_added {
    display: none;
}

#request_header {
    background: none;
}
    #request_header_body h3,
    #request_header_body .form_item_note {
        display: none;
    }
    #request_header_body #request_header_text {
        font-size: 1em;
    }

#request_search_ahead_results {
    font-size: 1em;
    margin-left: 110px;
    margin-top: 10px;
}

#request_header input,
#request_form textarea {
    width: 500px;
}

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

#sign_together h1 {
    margin-top: 10px;
}

#sign_together .errorExplanation {
    width: 360px;
    text-align: left;
}

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

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

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

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

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

#credits {
    float: right;
    margin-top: 13px;
    margin-right: 95px;
    width: 340px;

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

#creative-commons-logo {
    position: absolute;
    right: 0px;
    top: 30px;
}

@import url(http://fonts.googleapis.com/css?family=Open+Sans:600,700);

/** LAYOUT **/
body {
    font-family: Verdana, Helvetica, Arial;
    font-size: 12px;
    line-height: 1.5;
}
    body.front {
        background: none;
    }

#content {
    width: 840px;
    padding: 0px 60px;
    margin: auto;
}

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

#header_right {
    width: 180px;
    float: left;
    margin-top: 30px;
}

#header_left {
    width: 600px;
    float: right;
    padding: 20px 30px;
}

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

#banner_inner {
    width: 960px;
    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;
    text-transform: capitalize;
}
    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;
    float: right;
}
    #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: 'Open Sans', Helvetica, Arial;
    color: #009a9d;
    font-size: 28px;
    font-weight: 600;
    margin-top: 30px;
    text-decoration: none;
}

h2, h2 a {
    font-family: 'Open Sans', Helvetica, Arial;
    color: #7bbb58;
    font-size: 18px;
    font-weight: 700;
}

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

/** HELP **/
#left_column_flip {
    margin-top: 10px;
    padding-left: 30px;
    margin-right: 30px;
    width: 600px;
}

#right_column_flip {
    text-align: left;
    width: 180px;
    margin-top: 32px;
}
    #right_column_flip h3 {
        margin-bottom: 0px;
    }
    #right_column_flip ul {
        margin-top: 0px;
        list-style: none outside none;
    }

.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: 960px;
    margin: auto;
    position: relative;
}

#frontpage-lead {
    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #73c167;
}

#frontpage-left-balloon {
    float: left;
    width: 196px;
    height: 184px;
    background: url(/asktheeu-theme/images/yellow_balloon.gif);
    padding: 10px 30px 20px 50px;
    margin: 37px 8px 60px 0px;
    text-align: center;
}
    #frontpage-left-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 20px;
        margin-bottom: 5px;
    }
    #frontpage-left-balloon p {
        padding-right: 20px;
    }
    #frontpage-left-balloon .frontpage-button-link {
        margin-left: 38px;
    }

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

#frontpage-right-balloon {
    float: left;
    width: 218px;
    height: 174px;
    background: url(/asktheeu-theme/images/green_balloon.gif);
    padding: 5px 20px 20px 50px;
    margin: 42px 0px 60px 4px;
    text-align: center;
}
    #frontpage-right-balloon h2 {
        font-family: 'Open Sans', Helvetica, Arial;
        font-size: 24px;
        font-weight: 700;
        color: #fff;
        padding-right: 30px;
        margin-bottom: 5px;
    }
    #frontpage-right-balloon p {
        padding-right: 30px;
    }
    #frontpage-right-balloon .frontpage-button-link {
        margin-left: 43px;
    }

#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: 3px;
    padding-bottom: 3px;
}

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

#frontpage-inner-content {
    width: 960px;
    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,
    .picture-frame iframe {
        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: 'Open Sans', 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;
    }

/** GENERAL **/
.request_listing span.head a,
.user_listing span.head a,
.body_listing span.head a {
    font-family: 'Open Sans', Helvetica, Arial;
    font-size: 16px;
    color: #009A9D;
}

a,
.request_listing a,
.body_listing a,
.user_listing a {
    color: #009A9D;
    text-decoration: none !important;
}
    a:hover,
    .request_listing a:hover,
    .body_listing a:hover,
    .user_listing a:hover {
        text-decoration: underline !important;
    }

#header_left p,
#header_left ul,
#header_left ol {
    padding-right: 120px;
}

.request_left {
    width: 600px;
}

.request_right {
    width: 240px;
}

/** REQUEST **/
p.subtitle {
    font-family: Verdana, Helvetica, Arial;
    font-size: 15px;
    color: #444444; /* XXX */
}

p.public-body-name-prefix {
    font-family: Verdana, Helvetica, Arial;
    font-size: 14px;
    margin-top: 0px;
    margin-bottom: -20px;
    color: #444444; /* XXX */
}

#stepwise_make_request {
    background: none;
    width: 480px;
    margin-bottom: 10px;

    font-family: Verdana, Helvetica, Arial;
    font-size: 16px;
    color: #444444; /* XXX */
}
    #stepwise_make_request strong {
        color: #009A9D;
    }

h2.foi_results {
    width: 480px;
    padding-bottom: 0px;
}

#foi_results_section,
.results_section {
    padding-left: 210px;
    padding-right: 120px;
}

.request_listing {
    margin-right: -210px;
}

    .request_left {
        width: 480px;
    }
    .request_right {
        width: 210px;
    }
    .request_listing span.desc {
        background: none;
    }

.date_added {
    display: none;
}

#request_header {
    background: none;
}
    #request_header_body h3,
    #request_header_body .form_item_note {
        display: none;
    }
    #request_header_body #request_header_text {
        font-size: 1em;
    }

#request_search_ahead_results {
    font-size: 1em;
    margin-left: 110px;
    margin-top: 10px;
}

#request_header input,
#request_form textarea {
    width: 500px;
}

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

#sign_together h1 {
    margin-top: 10px;
}

#sign_together .errorExplanation {
    width: 360px;
    text-align: left;
}

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

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

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

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

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

#credits {
    float: right;
    margin-top: 13px;
    margin-right: 95px;
    width: 340px;

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

#creative-commons-logo {
    position: absolute;
    right: 0px;
    top: 30px;
}


#1592 added list of coordinators

#1592 added list of coordinators

    Title

    <%= f.text_field :title %>

    Ministry

    <%= f.select :ministry_id, @ministries_options %>

    Default text area character length

    <%= f.text_field :default_text_area_length %>

    <%= f.check_box :hidden %>
    Hide this event group and its sub elements

    Parent

    <%= f.select :parent_id, @tree_list %>

    Long description (this should should fit in a sentence like "you are applying for ..." for example "a 2007 summer project")

    <%= f.text_field :long_desc %>

    Outgoing email

    <%= f.text_field :outgoing_email %>

    <%= f.check_box :has_your_campuses %>
    Has Your Campuses Page

Upload a logo: <%= f.file_field :uploaded_data %>

  <% if @event_group && @event_group.has_logo? -%>

<%= check_box_tag :delete_logo %>Delete logo?

  <% end %>

<% unless @event_group.nil? || @event_group.new_record? %>

Eventgroup Coordinators: <%= @event_group.eventgroup_coordinators_names %> <%= link_to 'Manage Coordinators', { :controller => :eventgroup_coordinators, :action => :list, :id => @event_group.id }, :target => :blank %> (Opens in new window)

Note: Eventgroup Coordinators for all parent EventGroups are automatically considered coordinators for this group.

<% end %>