Translate close link title (fix #598 http://code.google.com/p/activescaffold/issues/detail?id=598)

<%= update_page_tag { |page| page.replace_html active_scaffold_messages_id, :partial => 'core/messages' } %>

    <div class="<%= "#{params[:action]}-view" if params[:action] %> <%= "#{params[:associations] ? params[:associations] : params[:controller]}-view" %> view">
      <a href="" class="inline-adapter-close" title="<%= as_('Close') %>"><%= as_('Close') %>
      <%= payload -%>

<%= update_page_tag { |page| page.replace_html active_scaffold_messages_id, :partial => 'core/messages' } %>

    <div class="<%= "#{params[:action]}-view" if params[:action] %> <%= "#{params[:associations] ? params[:associations] : params[:controller]}-view" %> view">
      <%= as_('Close') %>
      <%= payload -%>


Fixed invalid links showing up on custom sharing form

<%# initialization: required to keep javascript independent of the access type codes, to allow the use the constants instead -%>
<%= render :partial=>"assets/sharing_constants" %>

<%# this hidden input will submit all permission data with the form -%>
<%= hidden_field_tag "sharing[permissions][contributor_types]", "" -%>
<%= hidden_field_tag "sharing[permissions][values]", "" -%>

<%# @resource_type -%>
<%# @favourite_groups -%>
<%# @all_projects -%>

<%# @policy_type -%>
<%# @sharing_mode -%>
<%# @access_mode -%>
<%# @use_custom_sharing -%>
<%# @use_whitelist -%>
<%# @use_blacklist -%>

    <%= help_icon("Here you can specify who can view, download and edit this #{@resource_type}.") -%>
    Sharing

        Here you can specify who can view, download and edit this <%= @resource_type -%>.
        <%= link_to_function "Click here" + expand_image, visual_effect(:toggle_blind, "more_info", :duration => 0.3) -%> for more information.

          Here you may specify the People, Projects or Groups that may View and Edit the details about your <%= @resource_type -%>.

          You may:

Keep the <%= @resource_type -%> private, and only visible to yourself.

Share with all other users, including those that are not a member of a Sysmo project.

Share with all other users that are a member of a Sysmo project.

Define more fine-grained sharing, by selecting Custom sharing permissions.
 By using custom sharing permissions you can share within your Project/Institution only,
 with specific individuals, or set up custom favourite groups for people you regularly need to share with.

<label for="sharing_scope_<%= Policy::PRIVATE -%>">
        <input type="hidden" name="sharing[access_type_<%= Policy::PRIVATE -%>]" value="<%= Policy::NO_ACCESS -%>">
        <input type="hidden" name="sharing[include_custom_sharing_<%= Policy::PRIVATE -%>]" value="0">

        <input <%= 'checked="checked"' if @sharing_mode == Policy::PRIVATE %> id="sharing_scope_<%= Policy::PRIVATE -%>" name="sharing[sharing_scope]"
                                                                              value="<%= Policy::PRIVATE -%>" type="radio" onclick="javascript:setSharingElementVisibility(<%= Policy::PRIVATE -%>);" />
        - Keep this <%= @resource_type -%> private.

Or share it with..

      <label for="sharing_scope_<%= Policy::ALL_REGISTERED_USERS -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_REGISTERED_USERS -%> id="sharing_scope_<%= Policy::ALL_REGISTERED_USERS -%>" name="sharing[sharing_scope]"
               value="<%= Policy::ALL_REGISTERED_USERS -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::ALL_REGISTERED_USERS -%>);" />
        - All users, including those that are not members of SysMO projects, for

      <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::ALL_REGISTERED_USERS,
        :sharing_scope => @sharing_mode, :access_type => @access_mode } -%>

      <%= render :partial => "assets/sharing_form_custom_permissions_checkbox", :locals => { :custom_sharing_cb_for_scope => Policy::ALL_REGISTERED_USERS,
        :sharing_scope => @sharing_mode, :use_custom_sharing => @use_custom_sharing } -%>

      <label for="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::ALL_SYSMO_USERS -%> id="sharing_scope_<%= Policy::ALL_SYSMO_USERS -%>" name="sharing[sharing_scope]"
               value="<%= Policy::ALL_SYSMO_USERS -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::ALL_SYSMO_USERS -%>);" />
        - All registered users that are members of a SysMO project for

      <%= render :partial => "assets/sharing_form_access_type_dropdown", :locals => { :access_type_selector_for_scope => Policy::ALL_SYSMO_USERS,
        :sharing_scope => @sharing_mode, :access_type => @access_mode } -%>

      <%= render :partial => "assets/sharing_form_custom_permissions_checkbox", :locals => { :custom_sharing_cb_for_scope => Policy::ALL_SYSMO_USERS,
        :sharing_scope => @sharing_mode, :use_custom_sharing => @use_custom_sharing } -%>

      <label for="sharing_scope_<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>">
        <input type="radio" <%= 'checked="checked"' if @sharing_mode == Policy::CUSTOM_PERMISSIONS_ONLY -%> id="sharing_scope_<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>" name="sharing[sharing_scope]"
               value="<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>" onclick="javascript:setSharingElementVisibility(<%= Policy::CUSTOM_PERMISSIONS_ONLY -%>);" />
        - Use custom sharing permissions only

    <div id="specific_sharing" style="display: <%= (@use_custom_sharing || @sharing_mode == Policy::CUSTOM_PERMISSIONS_ONLY) ? "block" : "none" -%>; margin-top: 2em;">

        Custom sharing permissions

          So far you have selected to share this <%= @resource_type -%> with:

          Loading...

          Build up the list of people and groups to share with.
          Select from the options below and click "Add" to apply
          your choices and add collaborators to your current selection:

            <%= image_tag icon_filename_for_key("spinner"), :id => "f_group_deleting_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
            <%= help_icon("Here you can choose your favourite groups to share this #{@resource_type} with.") -%>
            Favourite Groups

              <% favourite_groups = FavouriteGroup.get_all_without_blacklists_and_whitelists(current_user.id) -%>
              <% f_group_select_options = (favourite_groups.blank? ? "<option value=\"\">You don't have any favourite groups</option>" : options_for_select(favourite_groups)) -%>

              <%= select_tag "favourite_group_select", f_group_select_options, :onchange => "javascript: replaceFavouriteGroupRedboxActionURL(); return(false);", :style => "width: 82%; vertical-align: middle; margin-right: 0.4em;", :disabled => (favourite_groups.blank?) -%>

              <%= link_to "Add", "", :id => "add_f_group_link", :style => "font-weight: bold; vertical-align: middle;", :disabled => (favourite_groups.blank?),
                :onclick => "javascript: if($('favourite_group_select').disabled) return(false); addContributor('FavouriteGroup', $('favourite_group_select').options[$('favourite_group_select').selectedIndex].text, parseInt($('favourite_group_select').options[$('favourite_group_select').selectedIndex].value), #{Policy::DETERMINED_BY_GROUP}); return(false);" -%>

              <li id="edit_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;"><%= favourite_group_popup_link_action_edit() -%>

              <li id="delete_f_group_li" style="display: <%= favourite_groups.blank? ? "none" : "block" -%>; list-style-type: disc; padding: 0;">
                <%= link_to "Delete selected favourite group", delete_favourite_group_path(0), :onclick => "deleteSelectedFavouriteGroup(); return(false);" -%>

<%= favourite_group_popup_link_action_new() -%>

            <%= help_icon("Here you can choose projects, institutions and workgroups to share this #{@resource_type} with.") -%>
            Projects and Institutions

              <% right_arrow_image = icon_filename_for_key("arrow_right") -%>

              Step 1
              <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

              Step 2
              <%= image_tag right_arrow_image, :style => "vertical-align: middle; padding: 0 0.8em;" -%>

              Step 3

                <input type="hidden" id="proj_select_step_index" value="1">

                  <%= image_tag icon_filename_for_key("spinner"), :id => "institutions_loading_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle; float: right;" -%>
                  Step 1: Select a project
                  <%= select("proj_project", "select",
                    Project.find(:all).collect {|p| [ p.name, p.id ] },
                    {:include_blank => 'All Projects @ Institution (from Step 2)'}, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                  Step 2: Select scope of the project
                  <%= select_tag("proj_institution_select", nil, {:style => "width: 100%; vertical-align: middle; margin: 0.3em 0;"}) -%>

                  Step 3: Choose access rights, review and submit

                  <select name="proj_access_type_select" id="proj_access_type_select" onchange="javascript: replaceReviewWorkGroupURL();" style="width: 100%; vertical-align: middle; margin: 0.3em 0;">
                    <option value="<%= Policy::VIEWING -%>" >Viewing only</option>
                    <option value="<%= Policy::DOWNLOADING -%>" >Viewing and downloading only</option>
                    <option value="<%= Policy::EDITING -%>" >Viewing, downloading and editing</option>
                  </select>

                    <%= link_to "< Previous step", "", :onclick => "javascript: projectInstitutionStepAction(-1); return(false);", :style => "font-weight: bold;" -%>

                    <%= link_to "Next step >", "", :onclick => "javascript: projectInstitutionStepAction(1); return(false);", :style => "font-weight: bold;" -%>

                        <%= link_to "Add immediately", "", :onclick => "javascript: addProjectInstitution(); return(false);", :style => "font-weight: bold; padding: 0;" -%>

<%= workgroup_member_review_popup_link() -%>

            <%= help_icon("Here you can specify individual people to share this #{@resource_type} with.") -%>
            Individual People

                Please type names of people to share this <%= @resource_type -%> with into the box below - suggestions will be displayed as you type.
                Select access rights from drop-down menu; these will be applied to all chosen people.
                Clicking "Add" will add selected people to the list.

                      ^_^<input type="text" id="ip_hidden_input" tabindex="-1" >

                        <input type="text" size="1" tabindex="" id="ip_autocomplete_input" />

Type the name of a friend, friend list, or email address

                    <select name="individual_people_access_type_select" id="individual_people_access_type_select" style="width: 344px; vertical-align: middle; margin-top: 0.3em;">
                      <option value="<%= Policy::NO_ACCESS -%>" >no access</option>
                      <option value="<%= Policy::VIEWING -%>" >viewing only</option>
                      <option value="<%= Policy::DOWNLOADING -%>" >viewing and downloading only</option>
                      <option value="<%= Policy::EDITING -%>" >viewing, downloading and editing</option>
                      <option value="<%= Policy::MANAGING -%>" >manage</option>
                    </select>

                    <%= link_to "Add", "", :onclick => "javascript: addIndividualPeople(); return(false);" -%>

    <%= "
" unless @enable_black_white_listing %>

Also include people in my..

          <input <%= "disabled" if @sharing_mode == Policy::PRIVATE -%> style="margin-right: 0.3em;" value="1" type="checkbox" name="sharing[use_whitelist]" id="cb_use_whitelist" <%= "checked='checked'" if @use_whitelist -%> />
          - "white list", who always get full access

        <% white_lst = current_user.get_whitelist -%>
        <%= hidden_field_tag "#{FavouriteGroup::WHITELIST_NAME}_group_id", (white_lst ? white_lst.id : "none") -%>
          [
          <span id="<%= FavouriteGroup::WHITELIST_NAME -%>_edit_span" style="display: <%= white_lst ? "inline" : "none" -%>;">
            <%= link_to "edit", "/", :onclick => "editWhitelistBlacklist('#{FavouriteGroup::WHITELIST_NAME}'); return(false);" -%>

          <% unless white_lst -%>
            <span id="<%= FavouriteGroup::WHITELIST_NAME -%>_create_span">
              <%= link_to "create", "/", :onclick => "createWhitelistBlacklist('#{FavouriteGroup::WHITELIST_NAME}'); return(false);" -%>

          <% end -%>
          ]
        <%= image_tag icon_filename_for_key("spinner"), :id => "#{FavouriteGroup::WHITELIST_NAME}_creation_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle;" -%>

          <input <%= "disabled" if @sharing_mode == Policy::PRIVATE -%> style="margin-right: 0.3em;" value="1" type="checkbox" name="sharing[use_blacklist]" id="cb_use_blacklist" <%= "checked='checked'" if @use_blacklist -%> />
          - "black list", who have no access at all

        <% black_lst = current_user.get_blacklist -%>
        <%= hidden_field_tag "#{FavouriteGroup::BLACKLIST_NAME}_group_id", (black_lst ? black_lst.id : "none") -%>
          [
          <span id="<%= FavouriteGroup::BLACKLIST_NAME -%>_edit_span" style="display: <%= black_lst ? "inline" : "none" -%>;">
            <%= link_to "edit", "/", :onclick => "editWhitelistBlacklist('#{FavouriteGroup::BLACKLIST_NAME}'); return(false);" -%>

          <% unless black_lst -%>
            <span id="<%= FavouriteGroup::BLACKLIST_NAME -%>_create_span">
              <%= link_to "create", "/", :onclick => "createWhitelistBlacklist('#{FavouriteGroup::BLACKLIST_NAME}'); return(false);" -%>

          <% end -%>
          ]
        <%= image_tag icon_filename_for_key("spinner"), :id => "#{FavouriteGroup::BLACKLIST_NAME}_creation_spinner", :alt=>"loading...", :title=>"loading...", :style => "display: none; vertical-align: middle;" -%>

  <%# this DIV is to hold the 'redbox' links generated by a method in application_helper, -%>
  <%# these will be "clicked" by javascript, because hidden divs that are present in the -%>
  <%# generated code causes IE to break layout by inserting extra line break otherwise -%>
        <div id="<%= FavouriteGroup::WHITELIST_NAME -%>_redbox_link_div">
          <%= whitelist_blacklist_edit_popup_link(FavouriteGroup::WHITELIST_NAME) -%>

        <div id="<%= FavouriteGroup::BLACKLIST_NAME -%>_redbox_link_div">
          <%= whitelist_blacklist_edit_popup_link(FavouriteGroup::BLACKLIST_NAME) -%>

    <%= "
" unless @enable_black_white_listing %>


fix bug causing invalid custom report show url

when there's only one project, the custom reports default to that one
item, but the url needs to be updated for that to work

<% formats = [ 'html', 'excel(csv)' ] %>

Project: <%= select_tag 'render_report_project_id',
  options_for_select([[]] + @show_projects.collect{ |p| [p.title, p.id] } << [ 'All','all' ],
                     if @show_projects.length == 1 then @show_projects.first.id end ),
  :onChange => (update_js = "update_view_links('custom_reports','render_report', [ 'id', 'project_id' ], [ #{formats.collect{|f| "'#{f}'"}.join(',')} ]);")
%>

<script><%= update_js %></script>
<%= text_field_tag 'render_report_id', @record.id.to_s, :style => 'display:none' %>

<% for format in formats %>
  <%= link_to format, {}, :id => "render_report_#{format}" %>
<% end %>

<% formats = [ 'html', 'excel(csv)' ] %>

Project: <%= select_tag 'render_report_project_id',
  options_for_select([[]] + @show_projects.collect{ |p| [p.title, p.id] } << [ 'All','all' ],
                     if @show_projects.length == 1 then @show_projects.first.id end ),
  :onChange => "update_view_links('custom_reports','render_report', [ 'id', 'project_id' ], [ #{formats.collect{|f| "'#{f}'"}.join(',')} ]);"
%>

<%= text_field_tag 'render_report_id', @record.id.to_s, :style => 'display:none' %>

<% for format in formats %>
  <%= link_to format, {}, :id => "render_report_#{format}" %>
<% end %>


fix an error

fix an error

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

  <% @page_heading = _('Manage Resources') %>
  <% @page_title = _('Upload a new File') %>
  <% content_for('tasks') do %>
    <%= task_new _('Upload a new Resource') %>
	<%= tab _("Manage Articles"), :controller=>"content", :action=>"list"%>
	<%= tab _("Manage Pages"), :controller=>"pages", :action=>"list" %>
	<%= tab _("Manage Categories"), :controller=>"categories", :action=>"list" %>
	<%= tab _("Manage Text Filters"), :controller=>"textfilters", :action=>"list" %>
  <% end %>

  <div class="list" id="resources">
    <%= render :partial => 'resources' -%>
  </div>

  <% @page_heading = _('Manage Resources') %>
  <% @page_title = _('Upload a new File') %>
  <% content_for('tasks') do %>
    <%= task_new _('Upload a new Resource') %>
	<%= tab -("Manage Articles"), :controller=>"content", :action=>"list" %>
	<%= tab _("Manage Pages"), :controller=>"pages", :action=>"list" %>
	<%= tab _("Manage Categories"), :controller=>"categories", :action=>"list" %>
	<%= tab _("Manage Text Filters"), :controller=>"textfilters", :action=>"list" %>
  <% end %>

  <div class="list" id="resources">
    <%= render :partial => 'resources' -%>
  </div>


update links in documentation sidebar

update links in documentation sidebar

API Calls

      Authentication

        Countries

          GET /v3/countries
          GET /v3/countries/:iso_3

        Protected Areas

          GET /v3/protected_areas
          GET /v3/protected_areas/:wdpa_id
          GET /v3/protected_areas/search


minor i18n string hanging around

minor i18n string hanging around

<% form_for(:comment, @comment, :url => { :controller => "comment", :action => "new", :type => "request" },  :html => { :id => 'comment_form' } ) do |f| %>

        <%= f.text_area :body, :rows => 10, :cols => 55 %>

    <% if !TrackThing.find_by_existing_track(@user, track_thing) && (!@user || @info_request.user != @user) %>

        <%= check_box_tag 'subscribe_to_request', "1", params[:subscribe_to_request] ? true : false %> <%= _('Email me future updates to this request') %>

    <% end %>

        <%= hidden_field_tag 'submitted_comment', 1 %>
        <%= hidden_field_tag 'preview', 1 %>
        <%= submit_tag "Preview your annotation" %>
        (no ranty politics, read our moderation policy)

<% end %>

<% form_for(:comment, @comment, :url => { :controller => "comment", :action => "new", :type => "request" },  :html => { :id => 'comment_form' } ) do |f| %>

        <%= f.text_area :body, :rows => 10, :cols => 55 %>

    <% if !TrackThing.find_by_existing_track(@user, track_thing) && (!@user || @info_request.user != @user) %>

        <%= check_box_tag 'subscribe_to_request', "1", params[:subscribe_to_request] ? true : false %> Email me future updates to this request

    <% end %>

        <%= hidden_field_tag 'submitted_comment', 1 %>
        <%= hidden_field_tag 'preview', 1 %>
        <%= submit_tag "Preview your annotation" %>
        (no ranty politics, read our moderation policy)

<% end %>


Changing destroy string to delete string

(ActionItem2220)

 <%=_('Listing products and services') %>

    <%= _('Product') %>
    <%= _('Price') %>
    <%= _('Actions') %>

  <% if @products.empty? %>

      <%= _('(no product registered yet)') %>

  <% end %>
  <% @products.each do |product| %>

      <%= link_to product.name, :action => 'show', :id => product %>
      <%= product.price %>

        <%= button :delete, _('Delete'), :action => 'destroy', :id => product %>

  <% end %>

<%= pagination_links @products %>

<% button_bar do %>
  <%= button :add, _('New product or service'), :action => 'new' if @profile.create_product? %>
  <%= button :back,  _('Back'), { :controller => 'profile_editor', :profile => @profile.identifier, :action => 'index' } %>
<% end %>

 <%=_('Listing products and services') %>

    <%= _('Product') %>
    <%= _('Price') %>
    <%= _('Actions') %>

  <% if @products.empty? %>

      <%= _('(no product registered yet)') %>

  <% end %>
  <% @products.each do |product| %>

      <%= link_to product.name, :action => 'show', :id => product %>
      <%= product.price %>

        <%= button :delete, _('Destroy'), :action => 'destroy', :id => product %>

  <% end %>

<%= pagination_links @products %>

<% button_bar do %>
  <%= button :add, _('New product or service'), :action => 'new' if @profile.create_product? %>
  <%= button :back,  _('Back'), { :controller => 'profile_editor', :profile => @profile.identifier, :action => 'index' } %>
<% end %>


remove possibly incorrect article 'a'.  Better if it was 'a' or 'an' appropriate for next word, but no time to do that now, just remove it. Internet speak\!

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

Find <%=@user_request.referent.type_of_thing.titlecase %>

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

              <% SectionRenderer.html_sections(:resource_info).each do |section|
              %>
                <% content_tag "div", :id => section[:div_id] do %>
                  <%= render_section(section) %>
                <% end %>
              <% end %>

              <%= render_section(:id => "cover_image") %>

      <% SectionRenderer.html_sections(:main).each do |section|
      %>
        <% content_tag "div", :id => section[:div_id] do %>
          <%= render_section(section) %>
        <% end %>
      <% end %>

      <% SectionRenderer.html_sections(:sidebar).each do |section|
      %>
        <% content_tag "div", :id => section[:div_id] do %>
          <%= render_section(section) %>
        <% end %>
      <% end %>

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

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

Find a <%=@user_request.referent.type_of_thing.titlecase %>

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

              <% SectionRenderer.html_sections(:resource_info).each do |section|
              %>
                <% content_tag "div", :id => section[:div_id] do %>
                  <%= render_section(section) %>
                <% end %>
              <% end %>

              <%= render_section(:id => "cover_image") %>

      <% SectionRenderer.html_sections(:main).each do |section|
      %>
        <% content_tag "div", :id => section[:div_id] do %>
          <%= render_section(section) %>
        <% end %>
      <% end %>

      <% SectionRenderer.html_sections(:sidebar).each do |section|
      %>
        <% content_tag "div", :id => section[:div_id] do %>
          <%= render_section(section) %>
        <% end %>
      <% end %>

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


delete old partial

delete old partial

This will allow you to use a BigBlueButton server from REDMINE.

BigBlueButton server
<%= text_field_tag 'settings[bbb_server]', @settings['bbb_server'], :size => 80 %>

for example: http://mybbb.domain.com

Internal address
<%= text_field_tag 'settings[bbb_ip]', @settings['bbb_ip'], :size => 80 %>

for example: http://192.168.10.1

salt
<%= text_field_tag 'settings[bbb_salt]', @settings['bbb_salt'], :size => 80 %>

You'll find it in /var/lib/tomcat6/webapps/bigbluebutton/WEB-INF/classes/bigbluebutton.properties at line beans.dynamicConferenceService.securitySalt=[your_salt]

return url
<%= text_field_tag 'settings[bbb_url]', @settings['bbb_url'], :size => 80 %>

url where users will be redirected when exiting the meeting. Leave empty to go back to the previous url (project's overviwe)...

Use popup window
<%= check_box_tag 'settings[bbb_popup]', 1, @settings['bbb_popup'] %>

Checked if you want to use a popup window without menu, toolbars, etc... (chat is not allowed in fullscreen mode)


Move the "show all" button to be next to the search box

<% if @query.nil? %>
  <% @title = _('Listing public authorities') %>
<% else %>
  <% @title = _("Listing public authorities matching '{{query}}'", :query => @query ) %>
<% end %>

<%=@title%>

    <%= link_to 'New public authority', 'new', :class => "btn btn-primary" %>

    <%= link_to 'Import from CSV file', 'import_csv', :class => "btn btn-warning" %>

<% form_tag("", :method => "get", :class => "form form-search") do %>
   <%= text_field_tag 'query', params[:query], { :size => 30, :class => "input-large search-query" } %>
   <%= submit_tag "Search", :class => "btn" %>
    <% if !@query.nil? %>
      <%= link_to 'Show all', 'list', :class => "btn" %>
    <% end %>

 (substring search in names and emails; exact match of tags)
<% end %>

<% if @public_bodies_by_tag.size > 0 %>

Exact tag matches (<%= @public_bodies_by_tag.size %> total)

    <%= render :partial => 'one_list', :locals => { :bodies => @public_bodies_by_tag, :table_name => 'exact' } %>
<% end %>

<% if @public_bodies.size > 0 %>
    <% if @query.nil? %>

All authorities

    <% else %>

Substring search matches (<%= @public_bodies.total_entries %> total)

    <% end %>
    <%= render :partial => 'one_list', :locals => { :bodies => @public_bodies, :table_name => 'substring' } %>
<% end %>

<%= will_paginate(@public_bodies, :class => "paginator") %>

<% if @query.nil? %>
  <% @title = _('Listing public authorities') %>
<% else %>
  <% @title = _("Listing public authorities matching '{{query}}'", :query => @query ) %>
<% end %>

<%=@title%>

    <% if !@query.nil? %>

        <%= link_to 'Show all', 'list', :class => "btn" %>

    <% end %>

    <%= link_to 'New public authority', 'new', :class => "btn btn-primary" %>

    <%= link_to 'Import from CSV file', 'import_csv', :class => "btn btn-warning" %>

<% form_tag("", :method => "get", :class => "form form-search") do %>
   <%= text_field_tag 'query', params[:query], { :size => 30, :class => "input-large search-query" } %>
   <%= submit_tag "Search", :class => "btn" %> (substring search in names and emails; exact match of tags)
<% end %>

<% if @public_bodies_by_tag.size > 0 %>

Exact tag matches (<%= @public_bodies_by_tag.size %> total)

    <%= render :partial => 'one_list', :locals => { :bodies => @public_bodies_by_tag, :table_name => 'exact' } %>
<% end %>

<% if @public_bodies.size > 0 %>
    <% if @query.nil? %>

All authorities

    <% else %>

Substring search matches (<%= @public_bodies.total_entries %> total)

    <% end %>
    <%= render :partial => 'one_list', :locals => { :bodies => @public_bodies, :table_name => 'substring' } %>
<% end %>

<%= will_paginate(@public_bodies, :class => "paginator") %>


ActionItem70: highlighting top ancestor of current category

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

  <% @environment.display_categories.each do |item| %>
    <li id='category<%= item.display_color %>' <%= 'class="active"' if (@category.top_ancestor == item) %> >
      <%= item.name %>

        <% item.children.each do |child| %>

<%= link_to(content_tag('span', child.name), :controller => 'category', :action => 'view', :path => child.explode_path) %>

        <% end %>

  <% end %>

  <% @environment.display_categories.each do |item| %>
    <li id='category<%= item.display_color %>'>
      <%= item.name %>

        <% item.children.each do |child| %>

<%= link_to(content_tag('span', child.name), :controller => 'category', :path => child.path) %>

        <% end %>

  <% end %>


What's a FOI?

What's a FOI?

<% @title = h(@public_body.name) + " - view and make Freedom of Information requests" %>

Track this authority

    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'sidebar' } %>

More about this authority

    <% if !@public_body.calculated_home_page.nil? %>
        <%= link_to "Home page", @public_body.calculated_home_page %>

    <% end %>
    <% if !@public_body.publication_scheme.empty? %>
        <%= link_to "Publication scheme", @public_body.publication_scheme %>

    <% end %>
    <% if !@public_body.charity_number.empty? %>
        <%= link_to "Charity overview", 'http://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=' + @public_body.charity_number %>

    <% end %>
    <%= link_to "View FOI email address", view_public_body_email_url(@public_body.url_name) %>

<%=h(@public_body.name)%>

<%=@public_body.type_of_authority(true)%> in the UK<% if not @public_body.short_name.empty? %>, also called <%= h(@public_body.short_name) %><% end %>
<% if !@user.nil? && @user.admin_page_links? %>
(<%= link_to "admin", public_body_admin_url(@public_body) %>)
<% end %>

<% if @public_body.has_notes? && (@public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact') %>

<%= @public_body.notes_as_html %>

<% end %>

<% if @public_body.eir_only? %>

You can only request information about the environment from this authority.

<% end %>

    <% if @public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact' %>
        Next,
            <% if @public_body.eir_only? %>
            <%= link_to "make a new Environmental Information request", new_request_to_body_url(:public_body_id => @public_body.id.to_s)%>
            <% else %>
            <%= link_to "make a new Freedom of Information request", new_request_to_body_url(:public_body_id => @public_body.id.to_s)%>
            <% end %>
            to <%= h(@public_body.name) %>
    <% elsif @public_body.has_notes? %>
        <%= @public_body.notes_as_html %>
    <% elsif @public_body.not_requestable_reason == 'not_apply' %>
        Freedom of Information law does not apply to this authority, so you cannot make
        a request to it.
    <% elsif @public_body.not_requestable_reason == 'defunct' %>
        This authority no longer exists, so you cannot make a request to it.
    <% else %>
        For an unknown reason, it is not possible to make a request to this authority.
    <% end %>

<% if !@xapian_requests.nil? %>
    <% if @xapian_requests.results.empty? %>
        <% if @public_body.eir_only? %>

Environmental Information Regulations requests made

Nobody has made any Environmental Information Regulations requests to <%=h(@public_body.name)%> using this site yet.

        <% else %>

Freedom of Information requests made

Nobody has made any Freedom of Information requests to <%=h(@public_body.name)%> using this site yet.

        <% end %>
    <% else %>

        <% if @public_body.eir_only? %>
            <%=pluralize(@public_body.info_requests.size, "Environmental Information Regulations request") %> made
        <% else %>
            <%=pluralize(@public_body.info_requests.size, "Freedom of Information request") %> made
        <% end %>
        <%= @page_desc %>

        <% for result in @xapian_requests.results %>
            <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @public_body.info_requests.size) %>

Only requests made using WhatDoTheyKnow.com are shown.

    <% end %>
<% else %>
    <% if @public_body.eir_only? %>

Environmental Information Regulations requests made

    <% else %>

Freedom of Information requests made

    <% end %>

The search index is currently offline, so we can't show the Freedom of Information requests that have been made to this authority.

<% end %>

<% @title = h(@public_body.name) + " - view and make Freedom of Information requests" %>

Track this authority

    <%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'sidebar' } %>

More about this authority

    <% if !@public_body.calculated_home_page.nil? %>
        <%= link_to "Home page", @public_body.calculated_home_page %>

    <% end %>
    <% if !@public_body.publication_scheme.empty? %>
        <%= link_to "Publication scheme", @public_body.publication_scheme %>

    <% end %>
    <% if !@public_body.charity_number.empty? %>
        <%= link_to "Charity overview", 'http://www.charity-commission.gov.uk/SHOWCHARITY/RegisterOfCharities/CharityFramework.aspx?RegisteredCharityNumber=' + @public_body.charity_number %>

    <% end %>
    <%= link_to "View FOI email address", view_public_body_email_url(@public_body.url_name) %>

<%=h(@public_body.name)%>

<%=@public_body.type_of_authority(true)%> in the UK<% if not @public_body.short_name.empty? %>, also called <%= h(@public_body.short_name) %><% end %>
<% if !@user.nil? && @user.admin_page_links? %>
(<%= link_to "admin", public_body_admin_url(@public_body) %>)
<% end %>

<% if @public_body.has_notes? && (@public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact') %>

<%= @public_body.notes_as_html %>

<% end %>

<% if @public_body.eir_only? %>

You can only request information about the environment from this authority.

<% end %>

    <% if @public_body.is_requestable? || @public_body.not_requestable_reason == 'bad_contact' %>
        Next,
            <% if @public_body.eir_only? %>
            <%= link_to "make a new EIR request", new_request_to_body_url(:public_body_id => @public_body.id.to_s)%>
            <% else %>
            <%= link_to "make a new FOI request", new_request_to_body_url(:public_body_id => @public_body.id.to_s)%>
            <% end %>
            to <%= h(@public_body.name) %>
    <% elsif @public_body.has_notes? %>
        <%= @public_body.notes_as_html %>
    <% elsif @public_body.not_requestable_reason == 'not_apply' %>
        Freedom of Information law does not apply to this authority, so you cannot make
        a request to it.
    <% elsif @public_body.not_requestable_reason == 'defunct' %>
        This authority no longer exists, so you cannot make a request to it.
    <% else %>
        For an unknown reason, it is not possible to make a request to this authority.
    <% end %>

<% if !@xapian_requests.nil? %>
    <% if @xapian_requests.results.empty? %>
        <% if @public_body.eir_only? %>

Environmental Information Regulations requests made

Nobody has made any Environmental Information Regulations requests to <%=h(@public_body.name)%> using this site yet.

        <% else %>

Freedom of Information requests made

Nobody has made any Freedom of Information requests to <%=h(@public_body.name)%> using this site yet.

        <% end %>
    <% else %>

        <% if @public_body.eir_only? %>
            <%=pluralize(@public_body.info_requests.size, "Environmental Information Regulations request") %> made
        <% else %>
            <%=pluralize(@public_body.info_requests.size, "Freedom of Information request") %> made
        <% end %>
        <%= @page_desc %>

        <% for result in @xapian_requests.results %>
            <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
        <% end %>

        <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @public_body.info_requests.size) %>

Only requests made using WhatDoTheyKnow.com are shown.

    <% end %>
<% else %>
    <% if @public_body.eir_only? %>

Environmental Information Regulations requests made

    <% else %>

Freedom of Information requests made

    <% end %>

The search index is currently offline, so we can't show the Freedom of Information requests that have been made to this authority.

<% end %>


ActionItem152: focusing on login field

ActionItem152: focusing on login field

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

<%= _('Login') %>

<% labelled_form_for :user, @user, :url => { :controller => 'account', :action => 'login' } do |f| %>

<%= display_form_field(_('Login'), text_field_tag(:login) ) %>

<%= display_form_field(_('Password'), password_field_tag(:password) ) %>

<% button_bar do %>
  <%= submit_button( 'login', _('Log in') )%>
  <%= lightbox_close_button(_('Cancel')) if lightbox? %>
<% end %>

<% end %>

<%= link_to _("I forgot my password!"), :controller => 'account', :action => 'forgot_password' %>

<%= link_to _("I want to be an user!"), :controller => 'account', :action => 'signup' %>

<% if lightbox? %>

<% end %>


Added July 1 update notes.

Added July 1 update notes.

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

<% @title = 'News' %>

<%= @title %>

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

Friday July 6, 2007

Reorganized the links on the observation, image and name pages to hopefully be more intuitive.

Limited the ability to change the name and author of name to avoid changes to other people's observations without
	        their approval.

Fixed a few minor bugs.

Sunday July 1, 2007

Updated the checklist code to give long lists after a visit to either the Observation Index or Name Index pages.

Cleaned up the naming of Observation Index and Name Index.  All Names is still maintained, but is now the same as the Name Index.

Saturday June 30, 2007

Valid names are now in bold.  Deprecated names are not.

Thursday June 28, 2007

Moved to new hosting service.

Sunday June 24, 2007

If there are two names that have exactly the same name and author and at least one of them has no notes, then they will get automatically merged if one of them is edited.

Added a facility for testing the performance of image uploading.

Fixed an omission in the error reporting code that caused alert emails to not get sent.

Monday June 18, 2007

Names can now be marked as deprecated.  The setting can be changed using the Edit Name page.

Synonyms support added.  Synonyms are used to verify names of observations and in species lists.

Synonyms can be changed for one name by selecting 'Change Synonyms' from any Show Name page.

Larger sets of names and synonyms can be added from the Bulk Name Edit page available from any Show
	        Name page, the Name Index page or the All Names page.

The Name Index page only lists names that have observations.

The All Names page lists all names in the database and can be accessed from the Name Index page.

Fixed bug with Creating Observations immediately after creating a new account.

Monday May 21, 2007

One year anniversary!

Added Site Stats, Contributors, Show User, User Observations and Comments for User pages.

Sunday May 13, 2007

Fixed a variety of minor issues.

Added 'sanitize' calls to avoid cross-site scripting vulnerabilities.

Thursday May 10, 2007

Fixed bug in creating new names when creating a species list.

Sunday April 29, 2007

Substantially improved error handling.

Fixed problem with Google Web Accelerator.

Sunday April 22, 2007

Reorganized and simplified observation editing and creation.

Completed unit testing for existing pages.

Friday February 23, 2007

Adjusted the size of some of the notes widgets to fill more of the screen.

Monday February 19, 2007

Added note snippet and comment count to Show Image page for easier review.

Adjusted options available for the number of rows in list displays.

Fixed database migration scripts.

Internal data simplification (removed observations.what field).

Tuesday February 13, 2007

Added multiple upload option for Add Images.

Changed some of the links in the left hand panel based on user feedback.

Saturday February 10, 2007

Added image and location search within the site.

Thursday February 8, 2007

Added Google image search links to Observation and Name pages.

Wednesday February 7, 2007

Added checklists.  Items in the checklist are the results of the
                latest search or viewed species list.  Viewing large lists like
                'Latest Changes' or 'Name Index' will reset the checklist to all
                names.

Moved loading species lists from files to a separate page off of
                Edit Species List to avoid an interaction between the checklist
                and file loading.

Saturday January 27, 2007

Name edits now appear in the RSS feed.

Sunday January 21, 2007

Added How To Use page.

Changed 'New' links to 'Create'.

Fixed a bug with the search box.

Fixed a couple of bugs with the next/prev links.

Thursday January 11, 2007

Fixed a bug with creating new species.

Fixed many bugs with page titles, some of which were preventing pages from loading.

Tuesday January 9, 2007

Names are now database objects rather than just strings.  They have a
                rank, a text name an author and notes.

A show_name page shows this information as well as a list of all
        observations that use that Name.  The show_pages can be accessed from
        each show_observation page as well as the name_index page that is
        available in the left-side panel.

Names can be edited on the edit_name pages that are accessible from
        the show_name pages.  Anyone is allowed to edit any name, but
        following the Wikipedia model,
        a record is kept of every version.  The previous versions are stored as
        'past names'.  A show_past_name page shows the name information for a
        previous version of a name and is accessible from each show_name page.

Names are associated with observations through the 'what' field of the
        observation.  When the 'what' field is changed, the names are searched
        for a match.  The 'what' field can either be the text_name or the
        text_name and the author for a name.  No match is found for a 'what'
        value, then the user is given the option to create the new name.  If a
        'what' value matches more than one name (due to different authors
        publishing the same name), then the user is given a choice between the
        options.  The options list how many observations use each version of
        the name.  If you add an author to a 'what' field for a name that does
        not have an author already, it will ask you if you want to create the
        new name, but it will actually update the existing name.

Names given in species lists are treated in the exact same manner,
        except that all the new names and all of the multiple matches are
        dealt with on the same page.  There is also an option on the
        new_species_list and edit_species_list pages to 'Just Create New
        Names'.  This adds the names without updating the species list or
        creating the corresponding observations.

The search box is now available on every page.

Removed the Observation Index in favor of the Name Index.

Fixed some of the list ordering to make it more intuitive.

A filter was added to the account creation process that should reduce the
        number of bot created users.

Fixed a bug with bouncing between observations and images and using the
        next/prev links.

Monday December 18, 2006

Added prev/next links that follow the RSS feed.

Improved prev/next functionality throughout the site.

RSS feed descriptions now have appropriate line breaks.

Monday December 4, 2006

Species lists can now be uploaded from files.

Separated note for species list from note that applies to member observations.

Fixed use of multiple tabs by switching from session data to hidden fields.

mushroomobserver.org/# == mushroomobserver.org/observer/show_observation/#

Monday October 26, 2006

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

Maintained old By Name behavior as Observations->Index.

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

Monday October 23, 2006

Changed default page to the RSS feed.

Changed page layout for observation and image list pages.

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

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

Provided Prev/Next buttons for images.

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

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

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

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

Made database lookup for all observations much more efficient.

Rearranged left-hand panel.

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

Removed Edit and Destroy links from view pages.

Add mini-icon for webpages.

Sunday September 9, 2006

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

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

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

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

Monday August 21, 2006

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

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

	Tweaked page titles to make the site easier to index.

Sunday August 13, 2006

	Added this news page.

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

Saturday August 12, 2006

	Added email verification system to user signup.

<% @title = 'News' %>

<%= @title %>

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

Friday July 6, 2007

Reorganized the links on the observation, image and name pages to hopefully be more intuitive.

Limited the ability to change the name and author of name to avoid changes to other people's observations without
	        their approval.

Fixed a few minor bugs.

Saturday June 30, 2007

Valid names are now in bold.  Deprecated names are not.

Thursday June 28, 2007

Moved to new hosting service.

Sunday June 24, 2007

If there are two names that have exactly the same name and author and at least one of them has no notes, then they will get automatically merged if one of them is edited.

Added a facility for testing the performance of image uploading.

Fixed an omission in the error reporting code that caused alert emails to not get sent.

Monday June 18, 2007

Names can now be marked as deprecated.  The setting can be changed using the Edit Name page.

Synonyms support added.  Synonyms are used to verify names of observations and in species lists.

Synonyms can be changed for one name by selecting 'Change Synonyms' from any Show Name page.

Larger sets of names and synonyms can be added from the Bulk Name Edit page available from any Show
	        Name page, the Name Index page or the All Names page.

The Name Index page only lists names that have observations.

The All Names page lists all names in the database and can be accessed from the Name Index page.

Fixed bug with Creating Observations immediately after creating a new account.

Monday May 21, 2007

One year anniversary!

Added Site Stats, Contributors, Show User, User Observations and Comments for User pages.

Sunday May 13, 2007

Fixed a variety of minor issues.

Added 'sanitize' calls to avoid cross-site scripting vulnerabilities.

Thursday May 10, 2007

Fixed bug in creating new names when creating a species list.

Sunday April 29, 2007

Substantially improved error handling.

Fixed problem with Google Web Accelerator.

Sunday April 22, 2007

Reorganized and simplified observation editing and creation.

Completed unit testing for existing pages.

Friday February 23, 2007

Adjusted the size of some of the notes widgets to fill more of the screen.

Monday February 19, 2007

Added note snippet and comment count to Show Image page for easier review.

Adjusted options available for the number of rows in list displays.

Fixed database migration scripts.

Internal data simplification (removed observations.what field).

Tuesday February 13, 2007

Added multiple upload option for Add Images.

Changed some of the links in the left hand panel based on user feedback.

Saturday February 10, 2007

Added image and location search within the site.

Thursday February 8, 2007

Added Google image search links to Observation and Name pages.

Wednesday February 7, 2007

Added checklists.  Items in the checklist are the results of the
                latest search or viewed species list.  Viewing large lists like
                'Latest Changes' or 'Name Index' will reset the checklist to all
                names.

Moved loading species lists from files to a separate page off of
                Edit Species List to avoid an interaction between the checklist
                and file loading.

Saturday January 27, 2007

Name edits now appear in the RSS feed.

Sunday January 21, 2007

Added How To Use page.

Changed 'New' links to 'Create'.

Fixed a bug with the search box.

Fixed a couple of bugs with the next/prev links.

Thursday January 11, 2007

Fixed a bug with creating new species.

Fixed many bugs with page titles, some of which were preventing pages from loading.

Tuesday January 9, 2007

Names are now database objects rather than just strings.  They have a
                rank, a text name an author and notes.

A show_name page shows this information as well as a list of all
        observations that use that Name.  The show_pages can be accessed from
        each show_observation page as well as the name_index page that is
        available in the left-side panel.

Names can be edited on the edit_name pages that are accessible from
        the show_name pages.  Anyone is allowed to edit any name, but
        following the Wikipedia model,
        a record is kept of every version.  The previous versions are stored as
        'past names'.  A show_past_name page shows the name information for a
        previous version of a name and is accessible from each show_name page.

Names are associated with observations through the 'what' field of the
        observation.  When the 'what' field is changed, the names are searched
        for a match.  The 'what' field can either be the text_name or the
        text_name and the author for a name.  No match is found for a 'what'
        value, then the user is given the option to create the new name.  If a
        'what' value matches more than one name (due to different authors
        publishing the same name), then the user is given a choice between the
        options.  The options list how many observations use each version of
        the name.  If you add an author to a 'what' field for a name that does
        not have an author already, it will ask you if you want to create the
        new name, but it will actually update the existing name.

Names given in species lists are treated in the exact same manner,
        except that all the new names and all of the multiple matches are
        dealt with on the same page.  There is also an option on the
        new_species_list and edit_species_list pages to 'Just Create New
        Names'.  This adds the names without updating the species list or
        creating the corresponding observations.

The search box is now available on every page.

Removed the Observation Index in favor of the Name Index.

Fixed some of the list ordering to make it more intuitive.

A filter was added to the account creation process that should reduce the
        number of bot created users.

Fixed a bug with bouncing between observations and images and using the
        next/prev links.

Monday December 18, 2006

Added prev/next links that follow the RSS feed.

Improved prev/next functionality throughout the site.

RSS feed descriptions now have appropriate line breaks.

Monday December 4, 2006

Species lists can now be uploaded from files.

Separated note for species list from note that applies to member observations.

Fixed use of multiple tabs by switching from session data to hidden fields.

mushroomobserver.org/# == mushroomobserver.org/observer/show_observation/#

Monday October 26, 2006

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

Maintained old By Name behavior as Observations->Index.

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

Monday October 23, 2006

Changed default page to the RSS feed.

Changed page layout for observation and image list pages.

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

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

Provided Prev/Next buttons for images.

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

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

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

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

Made database lookup for all observations much more efficient.

Rearranged left-hand panel.

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

Removed Edit and Destroy links from view pages.

Add mini-icon for webpages.

Sunday September 9, 2006

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

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

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

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

Monday August 21, 2006

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

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

	Tweaked page titles to make the site easier to index.

Sunday August 13, 2006

	Added this news page.

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

Saturday August 12, 2006

	Added email verification system to user signup.


Fixed a small bug in new bat with no cage in histories

<%= error_messages_for 'bat' %>

<% if @deactivating == true %>
<%   @disable_leave_date = false %>
<%   @disable_cage = true %>
<%   @everything_else = '
' %>
<%   @leave_date = '
' %>
<% else %>
<% if @reactivating == true %>
<%   @disable_leave_date = true %>
<%   @disable_cage = false %>
<%   @everything_else = '
' %>
<%   @leave_date = '
' %>
<% else %>
<%   @disable_leave_date = true %>
<%   @disable_cage = false %>
<%   @everything_else = '
' %>
<%   @leave_date = '
' %>
<% end %>
<% end %>

<%= @everything_else %>

Band

<%= text_field 'bat', 'band', :disabled => @reactivating %>

Species

<%= select_tag("bat[species]", options_for_select([["Eptesicus fuscus","Eptesicus fuscus"],["Glossophaga soricina","Glossophaga soricina"],["Carollia perspicillata","Carollia perspicillata"],["Myotis septentrionalis","Myotis septentrionalis"]],@bat.species), :disabled => @reactivating) %>

Gender

<%= select_tag("bat[gender]", options_for_select([["Male","M"],["Female","F"]],@bat.gender), :disabled => @reactivating) %>

Collection date

<%= date_select 'bat', 'collection_date', :disabled => @reactivating %>

Collection age

<%= select_tag("bat[collection_age]", options_for_select([["Juvenile","Juvenile"],["Adult", "Adult"]], @bat.collection_age), :disabled => @reactivating) %>

Collection place

<%= text_field 'bat', 'collection_place', :disabled => @reactivating %>

<% if @bat.vaccination_date %>
	<% show_vaccination_date_select = true %>
<% else %>
  <% show_vaccination_date_select = false %>
<% end %>

<%= render :partial=>'form_vaccination', :locals =>{:bat => @bat, :show_vaccination_date_select=> show_vaccination_date_select, :reactivating=>@reactivating} %>

<% if (@reactivating == true) || (@creating == true) %>

Choose cage

<% if @reactivating %>
(previous cage: <%=h @bat.cage_out_histories[0].cage.name %>)
<% end %>

Cage
Number of bats
Average current weight

<% for cage in Cage.active %>

<%=radio_button :bat, :cage_id, cage.id %>
<%= cage.name %>
<%= cage.bats.length %>
<%= cage.average_bat_weight %>

<% end %>

<% end %>

<%= @leave_date %>

Leave date

<%= date_select 'bat', 'leave_date',  :disabled => @disable_leave_date%>

Leave reason

<%= text_field 'move', 'note',  :disabled => @disable_leave_date%>

<%= error_messages_for 'bat' %>

<% if @deactivating == true %>
<%   @disable_leave_date = false %>
<%   @disable_cage = true %>
<%   @everything_else = '
' %>
<%   @leave_date = '
' %>
<% else %>
<% if @reactivating == true %>
<%   @disable_leave_date = true %>
<%   @disable_cage = false %>
<%   @everything_else = '
' %>
<%   @leave_date = '
' %>
<% else %>
<%   @disable_leave_date = true %>
<%   @disable_cage = false %>
<%   @everything_else = '
' %>
<%   @leave_date = '
' %>
<% end %>
<% end %>

<%= @everything_else %>

Band

<%= text_field 'bat', 'band', :disabled => @reactivating %>

Species

<%= select_tag("bat[species]", options_for_select([["Eptesicus fuscus","Eptesicus fuscus"],["Glossophaga soricina","Glossophaga soricina"],["Carollia perspicillata","Carollia perspicillata"],["Myotis septentrionalis","Myotis septentrionalis"]],@bat.species), :disabled => @reactivating) %>

Gender

<%= select_tag("bat[gender]", options_for_select([["Male","M"],["Female","F"]],@bat.gender), :disabled => @reactivating) %>

Collection date

<%= date_select 'bat', 'collection_date', :disabled => @reactivating %>

Collection age

<%= select_tag("bat[collection_age]", options_for_select([["Juvenile","Juvenile"],["Adult", "Adult"]], @bat.collection_age), :disabled => @reactivating) %>

Collection place

<%= text_field 'bat', 'collection_place', :disabled => @reactivating %>

<% if @bat.vaccination_date %>
	<% show_vaccination_date_select = true %>
<% else %>
  <% show_vaccination_date_select = false %>
<% end %>

<%= render :partial=>'form_vaccination', :locals =>{:bat => @bat, :show_vaccination_date_select=> show_vaccination_date_select, :reactivating=>@reactivating} %>

<% if (@reactivating == true) || (@creating == true) %>

Choose cage (previous cage: <%=h @bat.cage_out_histories[0].cage.name %>)

Cage
Number of bats
Average current weight

<% for cage in Cage.active %>

<%=radio_button :bat, :cage_id, cage.id %>
<%= cage.name %>
<%= cage.bats.length %>
<%= cage.average_bat_weight %>

<% end %>

<% end %>

<%= @leave_date %>

Leave date

<%= date_select 'bat', 'leave_date',  :disabled => @disable_leave_date%>

Leave reason

<%= text_field 'move', 'note',  :disabled => @disable_leave_date%>


ActionItem392: marking string for translation

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

<%= content_tag('a', '', :name => comment.anchor) %>
<div class="article-comment<%= ' comment-from-owner' if ( comment.author && (@page.profile.name == comment.author.name) ) %> comment-logged-<%= comment.author ? 'in' : 'out' %>">
  <% if logged_in? && (user == @page.profile || user == comment.author) %>
    <% button_bar(:style => 'float: right; margin-top: 0;') do %>
      <%= icon_button(:delete, _('Remove'), { :remove_comment => comment.id }, :method => :post, :confirm => _('Are you sure you want to remove this comment?')) %>
    <% end %>
  <% end %>

  <% if comment.author %>
    <%= link_to content_tag( 'span', comment.author.name() ), comment.author.url,
        :class => 'comment-picture',
        :style => 'background-image:url(%s)' % profile_icon(comment.author, :minor)
    %>
  <% else %>
    <%# unauthenticated user: display gravatar icon %>
    <%= content_tag 'span', ' ',
        :class => 'comment-picture',
        :style => 'background-image:url(%s)' % str_gravatar_url_for( comment.email, :size => 50 )
    %>
  <% end %>

<%= comment.title %>

    <%= _('By %{author} on %{date}') % {
        :author => comment.author ? link_to(comment.author.name, comment.author.url) : content_tag('u', comment.name),
        :date => show_time(comment.created_at) } %>
    <%= '
' + _('(unauthenticated user)') if ! comment.author %>

    <%=
      comment.body.
              gsub( /\n\s*\n/, '
 ' ).
              gsub( /\n/, '
 ' ).
              gsub( /(^|\s)(www\.[^\s])/, '\1http://\2' ).
              gsub( /(https?:\/\/([^\s]+))/,
                    '\2' )
    %>

<%= content_tag('a', '', :name => comment.anchor) %>
<div class="article-comment<%= ' comment-from-owner' if ( comment.author && (@page.profile.name == comment.author.name) ) %> comment-logged-<%= comment.author ? 'in' : 'out' %>">
  <% if logged_in? && (user == @page.profile || user == comment.author) %>
    <% button_bar(:style => 'float: right; margin-top: 0;') do %>
      <%= icon_button(:delete, 'Delete', { :remove_comment => comment.id }, :method => :post, :confirm => _('Are you sure you want to remove this comment?')) %>
    <% end %>
  <% end %>

  <% if comment.author %>
    <%= link_to content_tag( 'span', comment.author.name() ), comment.author.url,
        :class => 'comment-picture',
        :style => 'background-image:url(%s)' % profile_icon(comment.author, :minor)
    %>
  <% else %>
    <%# unauthenticated user: display gravatar icon %>
    <%= content_tag 'span', ' ',
        :class => 'comment-picture',
        :style => 'background-image:url(%s)' % str_gravatar_url_for( comment.email, :size => 50 )
    %>
  <% end %>

<%= comment.title %>

    <%= _('By %{author} on %{date}') % {
        :author => comment.author ? link_to(comment.author.name, comment.author.url) : content_tag('u', comment.name),
        :date => show_time(comment.created_at) } %>
    <%= '
' + _('(unauthenticated user)') if ! comment.author %>

    <%=
      comment.body.
              gsub( /\n\s*\n/, '
 ' ).
              gsub( /\n/, '
 ' ).
              gsub( /(^|\s)(www\.[^\s])/, '\1http://\2' ).
              gsub( /(https?:\/\/([^\s]+))/,
                    '\2' )
    %>


handle appln being deleted; remove caching

<% @project ||= @show_projects.first -%>

<%= your_project.title %>

<% if profile = @viewer.profiles.find_by_project_id(@project.id) %>
  (<%= link_to("View #{@viewer.person.full_name} Dashboard", profile_path(profile)) %>)
<% end %>

<%= render :remote, :controller => 'reports', :action => :project_stats, :project_id => your_project.id %>

<%
@viewer.set_project(your_project)

title = ""
if @viewer.is_eventgroup_coordinator?(@eg)
    title += ", Projects Coordinator"
end
if @viewer.is_project_director?
    title += ", Project Director"
end
if @viewer.is_project_administrator?
    title += ", Project Administrator"
end
if @viewer.is_support_coach?
    title += ", Support Coach"
end
if @viewer.is_project_staff?
    title += ", Project Staff"
end
if @viewer.is_processor?
    title += ", Processor"
end

%>

<%= "#{@viewer.name}#{title}" %>

<% if @viewer.is_support_coach? || @viewer.is_atleast_project_staff(your_project) %>
    <%= render :partial => "support_coach_list", :locals => { :project => your_project } %>
<% end %>

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

    <%= link_to 'Assign tasks', :action => 'assign_individual_tasks', :project_id => your_project.id %>

Accepted pile:

      <%= render :partial => "accepted_pile", :locals => { :project => your_project } %>

  <% @can_evaluate = @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_processor? %>
  <% appln_includes = [ :references, { :viewer => { :persons => :campuses } }, :preference1, :profiles ]
     @processor_list = Applying.find_all_by_project_id your_project.id
  %>
  <% @refs_for_questionnaire = Hash[*(@processor_list.collect{ |applying|
         applying.try(:appln).try(:form).try(:questionnaire).try(:id)
       }.compact.uniq.inject([]) { |arr,qid|
         arr << qid << Questionnaire.find(qid).references
       })]
  %>

Processor's pile:

    <%= render :partial => "processor_pile", :locals => { :project => your_project } %>

Staff:

      <%= render :partial => "staff_pile", :locals => { :project => your_project } %>

  <% if @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_processor? %>

Withdrawn pile:

      <%= render :partial => "withdrawn_pile", :locals => {:project => your_project }%>

  <% end %>
<% end %>

<% @project ||= @show_projects.first -%>

<%= your_project.title %>

<% if profile = @viewer.profiles.find_by_project_id(@project.id) %>
  (<%= link_to("View #{@viewer.person.full_name} Dashboard", profile_path(profile)) %>)
<% end %>

<%= render :remote, :controller => 'reports', :action => :project_stats, :project_id => your_project.id %>

<%
@viewer.set_project(your_project)

title = ""
if @viewer.is_eventgroup_coordinator?(@eg)
    title += ", Projects Coordinator"
end
if @viewer.is_project_director?
    title += ", Project Director"
end
if @viewer.is_project_administrator?
    title += ", Project Administrator"
end
if @viewer.is_support_coach?
    title += ", Support Coach"
end
if @viewer.is_project_staff?
    title += ", Project Staff"
end
if @viewer.is_processor?
    title += ", Processor"
end

%>

<%= "#{@viewer.name}#{title}" %>

<% if @viewer.is_support_coach? || @viewer.is_atleast_project_staff(your_project) %>
    <%= render :partial => "support_coach_list", :locals => { :project => your_project } %>
<% end %>

<% if !@viewer.is_student?(@eg) %>
  <%
    cache(:controller => 'main', :action => 'your_projects', :section => 'Acceptance',
          :project_id => your_project.id, :role => @viewer.roles_wrt_project(your_project)) do
  %>

      <%= link_to 'Assign tasks', :action => 'assign_individual_tasks', :project_id => your_project.id %>

Accepted pile:

	      <%= render :partial => "accepted_pile", :locals => { :project => your_project } %>

  <% end %>

    <% @can_evaluate = @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_processor? %>
    <% appln_includes = [ :references, { :viewer => { :persons => :campuses } }, :preference1, :profiles ]
       @processor_list = Applying.find_all_by_project_id your_project.id
    %>
    <% @refs_for_questionnaire = Hash[*(@processor_list.collect{ |applying|
           applying.appln.form.questionnaire.id
         }.uniq.inject([]) { |arr,qid|
           arr << qid << Questionnaire.find(qid).references
         })]
    %>

Processor's pile:

    <%= render :partial => "processor_pile", :locals => { :project => your_project } %>

Staff:

      <%= render :partial => "staff_pile", :locals => { :project => your_project } %>

  <% if @viewer.is_eventgroup_coordinator?(@eg) || @viewer.is_processor? %>

Withdrawn pile:

      <%= render :partial => "withdrawn_pile", :locals => {:project => your_project }%>

  <% end %>
<% end %>


Tweaks to RISD list

Tweaks to RISD list

<% @title = "Fungal Terminology" %>

Overall shape:

Crust or Parchment Fungi

Cup Fungi

Gasteroid

Stinkhorn

Pileus shape from side:

Campanulate

Convoluted

Cylindrical

Depressed

Plane to Uplifted

Umbonate

Pileus surface:

Glabrous

Glutinous

Rugose (Wrinkled)

Sulcate

Translucent Striate

Zonate

Hymenophore shape:

Gilled

Pored

Smooth

Toothed

Stipe shape

Base Enlarged

Base Pinched

Clavate

Clavate-bulbous

Equal

Incrassate

Tapered Downward

Tapered Upward [Subclavate]

Ventricose

Stipe attachment

Central

Lateral

Off-center

Sessile

Universal veil:

Collar [Circumsessile]

Constricted [Flaring]

Fragmented [Scaly]

Gelatinous

Indistinct

Powdery [Farinose]

Saccate

Zoned [Rings]

Partial veil:

Double

Intermediate

Peronate [Sheathlike]

Single

Stellate

Gill attachment:

Adnate

Adnexed

Notched (Sinuate)

Subdecurrent

<% @title = "Fungal Terminology" %>

Overall shape:

birdnest fungi

branching (coral fungi)

crust fungi

cup fungi

earthstar

gasteroid

jelly fungi

shelf fungi

stalked ascomycete

stalked puffball

stinkhorn

stipitate agaric

Pileus shape from side:

campanulate

conic

convex

convoluted

depressed

infundibuliform

parabolic

plane

umbilicate

umbonate

Pileus surface:

Glabrous

Rugose (Wrinkled)

Areolate

Zonate

Sulcate

Squamose

Translucent Striate

Glutinous

Hymenophore shape:

Gilled

Pored

Toothed

Smooth

Stipe shape

Base Enlarged

Ventricose

Radicated [Pseudorhiza, Radicating]

Base pinched

Bulbous

Tapered upward [Subclavate]

Clavate

Incrassate

Clavate-bulbous

Equal

Tapered downward

Universal veil:

Gelatinous

Collar [Circumsessile]

Constricted [Flaring]

Indistinct

Zoned [Rings]

Saccate

Fragmented [Scaly]

Powdery [Farinose]

Partial veil:

Single

Double

Stellate

Pendant

Intermediate

Peronate [Sheathlike]

Gill attachment:

Free

Adnexed

Notched (Sinuate)

Adnate

Subdecurrent

Decurrent


fix bug in moderate comments page

fix bug in moderate comments page

<% @filter = params[:filter].to_s.humanize.downcase %>
<% content_for :action_nav do %>

    <% if controller.controller_name == 'comments' && controller.action_name == 'index' && @comments.size > 0 -%>

<%= link_to_remote "Delete these #{@filter != 'all' ? @filter : ''} comments", :confirm => "Are you sure you wish to delete all #{@filter != 'all' ? @filter : ''} comments?",
          :url => { :controller => 'comments', :action => 'destroy', :id => @article }, :with => "ArticleForm.getAvailableComments().toQueryString('comment')"
        %>

    <% end -%>
  <% if @article && (admin? || @article.user_id == current_user.id) && @article.comment_age != -1 -%>

<%= link_to_remote 'Close comments for this article',
      :url => { :controller => 'admin/comments', :action => 'close', :id => @article } %>

  <% end -%>
  <% if controller.action_name == 'edit' -%>

<%= link_to('Preview', {:action => 'show', :id => @article}, {:target => '_blank'}) %>

  <% end -%>

        <% unless @article.nil? || @article.new_record? -%>

<%= link_to 'Edit this article', :controller => 'articles', :action => 'edit', :id => @article, :version => nil %>

        <% end -%>
        <% if @article && @article.comments.size > 0 && !(controller.controller_name == 'comments' && controller.action_name == 'index') -%>

<%= link_to "View comments", :controller => 'comments', :action => 'index', :article_id => @article %>

        <% end %>
				<% if @article && (admin? || @article.user_id == current_user.id) -%>

<%= link_to_remote 'Delete this article', :url => article_path(@article), :method => :delete, :confirm => 'Are you sure you want to delete this article?' %>

				<% end -%>

    <% if @article && controller.controller_name == 'articles' && controller.action_name == 'edit' -%>

Revision:

      <select name="filter" id="revisionnum">
        <option value="0">Newest</option>
        <%= options_from_collection_for_select @article.versions.reverse, :version, :version, params[:version].to_i %>
      </select>

    <% end -%>
    <% if controller.controller_name == 'comments' && controller.action_name == 'index' -%>

Show comments:

      <select id="comments-view">
        <%= options_for_select ['All', 'Unapproved', 'Approved'], params[:filter].to_s.humanize %>
      </select>

    <% end -%>

<% end unless @article && @article.new_record? && @article.comments.size == 0 -%>

<% @filter = params[:filter].to_s.humanize.downcase %>
<% content_for :action_nav do %>

    <% if controller.controller_name == 'comments' && controller.action_name == 'index' && @comments.size > 0 -%>

<%= link_to_remote "Delete these #{@filter != 'all' ? @filter : ''} comments", :confirm => "Are you sure you wish to delete all #{@filter != 'all' ? @filter : ''} comments?",
          :url => { :controller => 'comments', :action => 'destroy', :id => @article }, :with => "ArticleForm.getAvailableComments().toQueryString('comment')"
        %>

    <% end -%>
  <% if @article && (admin? || @article.user_id == current_user.id) && @article.comment_age != -1 -%>

<%= link_to_remote 'Close comments for this article',
      :url => { :controller => 'admin/comments', :action => 'close', :id => @article } %>

  <% end -%>
  <% if controller.action_name == 'edit' -%>

<%= link_to('Preview', {:action => 'show', :id => @article}, {:target => '_blank'}) %>

  <% end -%>

        <% unless @article.nil? || @article.new_record? -%>

<%= link_to 'Edit this article', :controller => 'articles', :action => 'edit', :id => @article, :version => nil %>

        <% end -%>
        <% if @article && @article.comments.size > 0 && !(controller.controller_name == 'comments' && controller.action_name == 'index') -%>

<%= link_to "View comments", :controller => 'comments', :action => 'index', :article_id => @article %>

        <% end %>
				<% if @article && (admin? || @article.user_id == current_user.id) -%>

<%= link_to_remote 'Delete this article', :url => article_path(@article), :method => :delete, :confirm => 'Are you sure you want to delete this article?' %>

				<% end -%>

    <% if @article && controller.controller_name == 'articles' && controller.action_name == 'edit' %>

Revision:

      <select name="filter" id="revisionnum">
        <option value="0">Newest</option>
        <%= options_from_collection_for_select @article.versions.reverse, :version, :version, params[:version].to_i %>
      </select>

    <% end %>
    <% if controller.controller_name == 'comments' && controller.action_name == 'index' -%>

Show comments:

      <select id="comments-view">
        <%= options_for_select ['All', 'Unapproved', 'Approved'], params[:filter].to_s.humanize %>
      </select>

    <% end %>

<% end unless @article.new_record? && @article.comments.empty? -%>


updated copyright

updated copyright

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Your description goes here..." />
<meta name="keywords" content="your,keywords,goes,here" />
<meta name="author" content="The mediabumper team / Design by Andreas Viklund - http://andreasviklund.com/" />
<%= stylesheet_link_tag 'style', :media => 'screen,projection' %>
<%= javascript_include_tag :defaults, 'swfobject' %>
<title>mediabumper</title>

Go to:
  <%= link_to 'search', :controller => 'files', :action => 'search' %> |
  <%= link_to 'browse', :controller => 'files', :action => 'browse' %> |
  <%= link_to 'your profile', :controller => 'users', :action => 'profile' %>

<%= link_to 'mediabumper',
                :controller => 'home', :action => 'index' %>

social media sharing

  <%= yield %>

  <%= render :partial => 'users/sidebar' %>
  <%= render :partial => 'shared/player' %>
  <%= render :partial => 'files/quick_search' %>
  <%= render :partial => 'playlists/sidebar' %>
  <%= render :partial => 'files/random' %>

© 2006-2007 mediabumper |
  design by Andreas Viklund

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Your description goes here..." />
<meta name="keywords" content="your,keywords,goes,here" />
<meta name="author" content="The mediabumper team / Design by Andreas Viklund - http://andreasviklund.com/" />
<%= stylesheet_link_tag 'style', :media => 'screen,projection' %>
<%= javascript_include_tag :defaults, 'swfobject' %>
<title>mediabumper</title>

Go to:
  <%= link_to 'search', :controller => 'files', :action => 'search' %> |
  <%= link_to 'browse', :controller => 'files', :action => 'browse' %> |
  <%= link_to 'your profile', :controller => 'users', :action => 'profile' %>

<%= link_to 'mediabumper',
                :controller => 'home', :action => 'index' %>

social media sharing

  <%= yield %>

  <%= render :partial => 'users/sidebar' %>
  <%= render :partial => 'shared/player' %>
  <%= render :partial => 'files/quick_search' %>
  <%= render :partial => 'playlists/sidebar' %>
  <%= render :partial => 'files/random' %>

© 2006 mediabumper |
  design by Andreas Viklund


fixed view

fixed view

  <%= "Please enter the movie details.".t  %>
  <%= "You can get more information about filling in this form in our help section \"%s\"" / link_to( 'Help:LayoutBoxFacts'.t, :controller => 'generic_page', :page => 'Help:LayoutBoxFacts', :action => :page ) %>

  <%= edit_freeze_state @movie, :name %>
  <%= "Original Title".t %>
  <%= display_attribute :movie, :name %>

  <%= "Original Title".t + " " + "(#{@language.english_name.t})" %>
  <% if not @movie.official_translation(@language).empty? and @movie.official_translation(@language).first.frozen? %>
    <%= edit_freeze_state @movie.official_translation(@language).first, :self %>
    <%= content_tag 'span', @movie.official_translation(@language).first.name %>
  <% else %>
    <select name="select_alias" onchange="local_alias_check_method(this);">
      <%= local_alias_select_options( @movie, @language ) %>
    </select>

      <input type="text" name="new_alias" value="" style="display: none;" id="new_alias_input"/>

  <% end %>

  <%= edit_freeze_state @movie, :type %>
  <%= "Type".t %>
  <% if @movie.attribute_frozen?( :type ) %>
    <%= @movie.class.to_s.t %>
  <% else %>
    <select name="movie[type]">
      <%= options_for_select Movie.valid_types.collect {|t| [ t.to_s.t, t.to_s ] }, @movie.class.to_s %>
    </select>
  <% end %>

<% if @movie.class.has_status? %>

  <%= edit_freeze_state @movie, :status %>
  <%= "Status".t %>
  <% if @movie.attribute_frozen?( :status ) %>
    <%= @movie.status.t %>
  <% else %>
    <select name="movie[status]">
      <%= options_for_select Movie.valid_status_types.collect {|t| [ t.to_s.t, t.to_s ] }, @movie.status %>
    </select>
    <%= error_message_on :movie, :status %>
  <% end %>

<% end %>

  <%= edit_freeze_state @movie, :homepage %>
  <%= "International Homepage".t %>
  <%= display_attribute :movie, :homepage %>
  <%= error_message_on :movie, :homepage %>

<% if @movie.class.has_date? -%>

  <%= edit_freeze_state @movie, :end %>
  <% case @movie.class %>
  <% when Season %>
    <%= "DVD Release".t %>
  <% when Episode %>
    <%= "Original Airdate".t %>
  <% else %>
    <%= "Opening Night".t %>
  <% end %>
  <%= display_attribute :movie, :end, 'date', :size => 10 %>
  <% if not @movie.attribute_frozen?( :end ) %>
    <%= "calendar".t %>
  <% end %>

  <%= error_message_on :movie, :end %>

<% end %>

<% if @movie.class.has_runtime? -%>

  <%= edit_freeze_state @movie, :runtime %>
  <%= "Runtime".t %>
  <%= display_attribute :movie, :runtime, 'string', :size => 4 %> <%= "Minutes".t %>
  <%= error_message_on :movie, :runtime %>

<% end -%>

<% if @movie.class.has_budget? -%>

  <%= edit_freeze_state @movie, :budget %>
  <%= "Budget".t %>
  <%= display_attribute :movie, :budget, 'string', :size => 10 %> <%= "US$".t %>
  <%= error_message_on :movie, :budget %>

<% end -%>

<% if @movie.class.has_budget? -%>

  <%= edit_freeze_state @movie, :revenue %>
  <%= "Revenue".t %>
  <%= display_attribute :movie, :revenue, 'string', :size => 10 %> <%= "US$".t %>
  <%= error_message_on :movie, :revenue %>

<% end -%>

<% if @movie.class.has_series_type? -%>

    <%= edit_freeze_state @movie, :series_type %>
    <%= "Series-Type".t %>
    <% if @movie.attribute_frozen?( :series_type ) %>
      <%= @movie.series_type.to_s.t %>
    <% else %>
      <select name="movie[series_type]">
        <%= options_for_select Series.valid_series_types.collect {|t| [ t.to_s.t, t.to_s ] }, @movie.series_type %>
      </select>
    <% end %>

<% end -%>

<% if @movie.class.has_season_type? -%>

    <%= edit_freeze_state @movie, :season_type %>
    <%= "Season-Type".t %>
    <% if @movie.attribute_frozen?( :season_type ) %>
      <%= @movie.season_type.to_s.t %>
    <% else %>
      <select name="movie[season_type]">
        <%= options_for_select Series.valid_season_types.collect {|t| [ t.to_s.t, t.to_s ] }, @movie.season_type %>
      </select>
    <% end %>

<% end -%>

<% if @movie.class.has_inheritable_cast? -%>

  <%= edit_freeze_state @movie, :inherit_cast %>
  <%= "Inherit Crew".t %>
  <%= display_attribute :movie, :inherit_cast, 'enum', :choices => [ true, false ] %>

<% end -%>

<% if not @movie.attribute_frozen?( :end ) and @movie.class.has_date? %>

<% end %>

  <%= "Please enter the movie details.".t  %>
  <%= "You can get more information about filling in this form in our help section \"%s\"" / link_to( 'Help:LayoutBoxFacts'.t, :controller => 'generic_page', :page => 'Help:LayoutBoxFacts', :action => :page ) %>

  <%= edit_freeze_state @movie, :name %>
  <%= "Original Title".t %>
  <%= display_attribute :movie, :name %>

  <%= "Original Title".t + " " + "(#{@language.english_name.t})" %>
  <% if not @movie.official_translation(@language).empty? and @movie.official_translation(@language).first.frozen? %>
    <%= edit_freeze_state @movie.official_translation(@language).first, :self %>
    <%= content_tag 'span', @movie.official_translation(@language).first.name %>
  <% else %>
    <select name="select_alias" onchange="local_alias_check_method(this);">
      <%= local_alias_select_options( @movie, @language ) %>
    </select>

      <input type="text" name="new_alias" value="" style="display: none;" id="new_alias_input"/>

  <% end %>

  <%= edit_freeze_state @movie, :type %>
  <%= "Type".t %>
  <% if @movie.attribute_frozen?( :type ) %>
    <%= @movie.class.to_s.t %>
  <% else %>
    <select name="movie[type]">
      <%= options_for_select Movie.valid_types.collect {|t| [ t.to_s.t, t.to_s ] }, @movie.class.to_s %>
    </select>
  <% end %>

<% if @movie.class.has_status? %>

  <%= edit_freeze_state @movie, :status %>
  <%= "Status".t %>
  <% if @movie.attribute_frozen?( :status ) %>
    <%= @movie.status.t %>
  <% else %>
    <select name="movie[status]">
      <%= options_for_select Movie.valid_status_types.collect {|t| [ t.to_s.t, t.to_s ] }, @movie.status %>
    </select>
    <%= error_message_on :movie, :status %>
  <% end %>

<% end %>

  <%= edit_freeze_state @movie, :homepage %>
  <%= "International Homepage".t %>
  <%= display_attribute :movie, :homepage %>
  <%= error_message_on :movie, :homepage %>

<% if @movie.class.has_date? -%>

  <%= edit_freeze_state @movie, :end %>
  <%= "Opening Night".t %>
  <%= display_attribute :movie, :end, 'date', :size => 10 %>
  <% if not @movie.attribute_frozen?( :end ) %>
    <%= "calendar".t %>
  <% end %>

  <%= error_message_on :movie, :end %>

<% end %>

<% if @movie.class.has_runtime? -%>

  <%= edit_freeze_state @movie, :runtime %>
  <%= "Runtime".t %>
  <%= display_attribute :movie, :runtime, 'string', :size => 4 %> <%= "Minutes".t %>
  <%= error_message_on :movie, :runtime %>

<% end -%>

<% if @movie.class.has_budget? -%>

  <%= edit_freeze_state @movie, :budget %>
  <%= "Budget".t %>
  <%= display_attribute :movie, :budget, 'string', :size => 10 %> <%= "US$".t %>
  <%= error_message_on :movie, :budget %>

<% end -%>

<% if @movie.class.has_budget? -%>

  <%= edit_freeze_state @movie, :revenue %>
  <%= "Revenue".t %>
  <%= display_attribute :movie, :revenue, 'string', :size => 10 %> <%= "US$".t %>
  <%= error_message_on :movie, :revenue %>

<% end -%>

<% if @movie.class.has_series_type? -%>

    <%= edit_freeze_state @movie, :series_type %>
    <%= "Series-Type".t %>
    <% if @movie.attribute_frozen?( :series_type ) %>
      <%= @movie.series_type.to_s.t %>
    <% else %>
      <select name="movie[series_type]">
        <%= options_for_select Series.valid_series_types.collect {|t| [ t.to_s.t, t.to_s ] }, @movie.series_type %>
      </select>
    <% end %>

<% end -%>

<% if @movie.class.has_inheritable_cast? -%>

  <%= edit_freeze_state @movie, :inherit_cast %>
  <%= "Inherit Crew".t %>
  <%= display_attribute :movie, :inherit_cast, 'enum', :choices => [ true, false ] %>

<% end -%>

<% if not @movie.attribute_frozen?( :end ) and @movie.class.has_date? %>

<% end %>