Sanitize user descriptions properly.

Sanitize user descriptions properly.

<% @this_user = User.find_by_display_name(@this_user.display_name) %>

<%= h(@this_user.display_name) %>

<% if @user and @this_user.id == @user.id %>
<%= link_to 'my diary', :controller => 'diary_entry', :action => 'list', :display_name => @user.display_name %>
| <%= link_to 'new diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
| <%= link_to 'my traces', :controller => 'trace', :action=>'mine' %>
| <%= link_to 'my settings', :controller => 'user', :action => 'account', :display_name => @user.display_name %>
<% else %>
<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => @this_user.id %>
| <%= link_to 'diary', :controller => 'diary_entry', :action => 'list', :display_name => @this_user.display_name %>
| <%= link_to 'traces', :controller => 'trace', :action => 'view', :display_name => @this_user.display_name %>
| <% if @user and @user.is_friends_with?(@this_user) %>
  <%= link_to 'remove as friend', :controller => 'user', :action => 'remove_friend', :display_name => @this_user.display_name %>
<% else %>
  <%= link_to 'add as friend', :controller => 'user', :action => 'make_friend', :display_name => @this_user.display_name %>
<% end %>
<% end %>

User image

<% if @this_user.image %>
 <%= image_tag url_for_file_column(@this_user, "image") %>
<% end %>

<% if @user and @this_user.id == @user.id %>
  Upload an image

  <%= form_tag({:action=>'upload_image'}, :multipart => true)%>
    <%= file_column_field 'user', 'image' %>
    <input type="submit" name="Upload" />
  </form>
<% end %>

Description

<%= htmlize(@this_user.description) %>

<% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>

User location

  No home location has been set.
  <% if @user and @this_user.id == @user.id %>
  If you set your location, a pretty map and stuff will appear below. You can set your home location on your <%= link_to 'settings', :controller => 'user', :action => 'account', :display_name => @user.display_name %> page.
  <% end %>
<% else %>

  <% if @user and @this_user.id == @user.id %>

Your friends

    <% if @this_user.friends.empty? %>
      You have not added any friends yet.
    <% else %>

      <% @this_user.friends.each do |friend| %>
      <% @friend = User.find_by_id(friend.friend_user_id) %>

      <% if @friend.image %>
        <%= image_tag url_for_file_column(@friend, "image") %>
      <% end %>

      <%= link_to h(@friend.display_name), :controller => 'user', :action => 'view',  :display_name => @friend.display_name %>
      <% if @friend.home_lon and @friend.home_lat %><%= @this_user.distance(@friend).round %>km away<% end %>
      (<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => @friend.id %>)

      <%end%>

    <%end%>

  <%end%>

  <% if @user and @this_user.id == @user.id %>

Nearby users:

    <% if @this_user.nearby.empty? %>
      There are no users who admit to mapping nearby yet.
    <% else %>

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

      <% @this_user.nearby.each do |nearby| %>

      <%= link_to h(nearby.display_name), :controller => 'user', :action => 'view',  :display_name => nearby.display_name %>
      <%= @this_user.distance(nearby).round %>km away
      (<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => nearby.id %>)

      <% end %>

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

<% @this_user = User.find_by_display_name(@this_user.display_name) %>

<%= h(@this_user.display_name) %>

<% if @user and @this_user.id == @user.id %>
<%= link_to 'my diary', :controller => 'diary_entry', :action => 'list', :display_name => @user.display_name %>
| <%= link_to 'new diary post', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
| <%= link_to 'my traces', :controller => 'trace', :action=>'mine' %>
| <%= link_to 'my settings', :controller => 'user', :action => 'account', :display_name => @user.display_name %>
<% else %>
<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => @this_user.id %>
| <%= link_to 'diary', :controller => 'diary_entry', :action => 'list', :display_name => @this_user.display_name %>
| <%= link_to 'traces', :controller => 'trace', :action => 'view', :display_name => @this_user.display_name %>
| <% if @user and @user.is_friends_with?(@this_user) %>
  <%= link_to 'remove as friend', :controller => 'user', :action => 'remove_friend', :display_name => @this_user.display_name %>
<% else %>
  <%= link_to 'add as friend', :controller => 'user', :action => 'make_friend', :display_name => @this_user.display_name %>
<% end %>
<% end %>

User image

<% if @this_user.image %>
 <%= image_tag url_for_file_column(@this_user, "image") %>
<% end %>

<% if @user and @this_user.id == @user.id %>
  Upload an image

  <%= form_tag({:action=>'upload_image'}, :multipart => true)%>
    <%= file_column_field 'user', 'image' %>
    <input type="submit" name="Upload" />
  </form>
<% end %>

Description

<%= simple_format(@this_user.description) %>

<% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>

User location

  No home location has been set.
  <% if @user and @this_user.id == @user.id %>
  If you set your location, a pretty map and stuff will appear below. You can set your home location on your <%= link_to 'settings', :controller => 'user', :action => 'account', :display_name => @user.display_name %> page.
  <% end %>
<% else %>

  <% if @user and @this_user.id == @user.id %>

Your friends

    <% if @this_user.friends.empty? %>
      You have not added any friends yet.
    <% else %>

      <% @this_user.friends.each do |friend| %>
      <% @friend = User.find_by_id(friend.friend_user_id) %>

      <% if @friend.image %>
        <%= image_tag url_for_file_column(@friend, "image") %>
      <% end %>

      <%= link_to h(@friend.display_name), :controller => 'user', :action => 'view',  :display_name => @friend.display_name %>
      <% if @friend.home_lon and @friend.home_lat %><%= @this_user.distance(@friend).round %>km away<% end %>
      (<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => @friend.id %>)

      <%end%>

    <%end%>

  <%end%>

  <% if @user and @this_user.id == @user.id %>

Nearby users:

    <% if @this_user.nearby.empty? %>
      There are no users who admit to mapping nearby yet.
    <% else %>

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

      <% @this_user.nearby.each do |nearby| %>

      <%= link_to h(nearby.display_name), :controller => 'user', :action => 'view',  :display_name => nearby.display_name %>
      <%= @this_user.distance(nearby).round %>km away
      (<%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => nearby.id %>)

      <% end %>

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


Link SOTM ad to "landing" page.

Link SOTM ad to "landing" page.

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

    <%= javascript_include_tag 'prototype' %>
    <%= javascript_include_tag 'site' %>

    <%= stylesheet_link_tag 'site' %>
    <%= stylesheet_link_tag 'print', :media => "print" %>
    <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %>
    <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %>
    <%= yield :head %>
    <title>OpenStreetMap<%= ' | '+ h(@title) if @title %></title>

      <% if @notice || flash[:notice] %>

<%= @notice || flash[:notice] %>

      <% end %>

      <%= yield %>

      <% if @user and @user.id %>
        <%= t 'layouts.welcome_user', :user_link => (link_to h(@user.display_name), {:controller => 'user', :action => 'view', :display_name => @user.display_name}) %> |
        <% @inbox_weight = 'bold' if @user.new_messages.size > 0 %>
        <%= yield :greeting %>
        <%= link_to t('layouts.inbox', :size => @user.new_messages.size), {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, {:style => "font-weight: #{@inbox_weight};" } %> |
        <%= link_to t('layouts.logout'), {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor'}%>
      <% else %>
        <%= link_to t('layouts.log_in'), {:controller => 'user', :action => 'login', :referer => request.request_uri}, {:id => 'loginanchor'}%> |
        <%= link_to t('layouts.sign_up'), {:controller => 'user', :action => 'new'}, {:id => 'registeranchor'} %>
      <% end %>

        <%
        viewclass = ''
        editclass = ''
        historyclass = ''
        exportclass = ''
        traceclass = ''
        viewclass = 'active' if params['controller'] == 'site' and params['action'] == 'index'
        editclass = 'active' if params['controller'] == 'site' and params['action'] == 'edit'
        historyclass = 'active' if params['controller'] == 'changeset' and params['action'] == 'list_bbox'
        exportclass = 'active' if params['controller'] == 'site' and params['action'] == 'export'
        traceclass = 'active' if params['controller'] == 'trace'
        diaryclass = 'active' if params['controller'] == 'diary_entry'
        %>

<%= link_to t('layouts.view'), {:controller => 'site', :action => 'index'}, {:id => 'viewanchor', :title => 'view maps', :class => viewclass} %>

<%= link_to t('layouts.edit'), {:controller => 'site', :action => 'edit'}, {:id => 'editanchor', :title => 'edit maps', :class => editclass} %>

<%= link_to t('layouts.history'), {:controller => 'changeset', :action => 'list_bbox' }, {:id => 'historyanchor', :title => 'changeset history', :class => historyclass} %>

        <% if params['controller'] == 'site' and (params['action'] == 'index' or params['action'] == 'export') %>

<%= link_to_remote t('layouts.export'), {:url => {:controller => 'export', :action => 'start'}}, {:id => 'exportanchor', :title => 'export map data', :class => exportclass, :href => url_for(:controller => 'site', :action => 'export')} %>

        <% else %>

<%= link_to t('layouts.export'), {:controller => 'site', :action => 'export'}, {:id => 'exportanchor', :title => 'export map data', :class => exportclass} %>

        <% end %>

<%= link_to t('layouts.gps_traces'), {:controller => 'trace', :action => 'list'}, {:id => 'traceanchor', :title => 'manage traces', :class => traceclass} %>

<%= link_to t('layouts.user_diaries'), {:controller => 'diary_entry', :action => 'list', :display_name => nil}, {:id => 'diaryanchor', :title => 'view user diaries', :class => diaryclass} %>

OpenStreetMap

          <%= link_to(image_tag("osm_logo.png", :size => "120x120", :border => 0), :controller => 'site', :action => 'index') %>

<%= t('layouts.tag_line') %>

      <% unless @user %>

          <%= t 'layouts.intro_1' %>

          <%= t 'layouts.intro_2' %>.

        <%= t 'layouts.intro_3',
              :ucl => 'UCL VR Centre',
              :bytemark => 'bytemark' %>

      <% end %>

      <% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>

        <%= t 'layouts.offline' %>

      <% elsif OSM_STATUS == :database_readonly or OSM_STATUS == :api_readonly %>

        <%= t 'layouts.read_only' %>
      <% end %>

      <% if false %>

        <%= t 'layouts.donate', :link => "#{t('layouts.donate_link_text')}" %>

      <% end %>

        <%= t 'layouts.help_wiki' %>

        <%= t 'layouts.news_blog' %>

        <%= t 'layouts.shop' %>

        <%= yield :left_menu %>

        <%= link_to image_tag("sotm.png", :alt => t('layouts.sotm'), :title => t('layouts.sotm'), :border => "0"), "http://www.stateofthemap.org/register" %>

      <%= yield :optionals %>

          <img src="/images/donate.png" border="0" alt="<%= t 'layouts.alt_donation' %>" title="<%= t 'layouts.alt_donation' %>" />

          <%= link_to image_tag("cc_button.png", :alt => "CC by-sa 2.0", :border => "0"), "http://creativecommons.org/licenses/by-sa/2.0/" %>

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

    <%= javascript_include_tag 'prototype' %>
    <%= javascript_include_tag 'site' %>

    <%= stylesheet_link_tag 'site' %>
    <%= stylesheet_link_tag 'print', :media => "print" %>
    <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %>
    <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %>
    <%= yield :head %>
    <title>OpenStreetMap<%= ' | '+ h(@title) if @title %></title>

      <% if @notice || flash[:notice] %>

<%= @notice || flash[:notice] %>

      <% end %>

      <%= yield %>

      <% if @user and @user.id %>
        <%= t 'layouts.welcome_user', :user_link => (link_to h(@user.display_name), {:controller => 'user', :action => 'view', :display_name => @user.display_name}) %> |
        <% @inbox_weight = 'bold' if @user.new_messages.size > 0 %>
        <%= yield :greeting %>
        <%= link_to t('layouts.inbox', :size => @user.new_messages.size), {:controller => 'message', :action => 'inbox', :display_name => @user.display_name}, {:style => "font-weight: #{@inbox_weight};" } %> |
        <%= link_to t('layouts.logout'), {:controller => 'user', :action => 'logout', :referer => request.request_uri}, {:id => 'logoutanchor'}%>
      <% else %>
        <%= link_to t('layouts.log_in'), {:controller => 'user', :action => 'login', :referer => request.request_uri}, {:id => 'loginanchor'}%> |
        <%= link_to t('layouts.sign_up'), {:controller => 'user', :action => 'new'}, {:id => 'registeranchor'} %>
      <% end %>

        <%
        viewclass = ''
        editclass = ''
        historyclass = ''
        exportclass = ''
        traceclass = ''
        viewclass = 'active' if params['controller'] == 'site' and params['action'] == 'index'
        editclass = 'active' if params['controller'] == 'site' and params['action'] == 'edit'
        historyclass = 'active' if params['controller'] == 'changeset' and params['action'] == 'list_bbox'
        exportclass = 'active' if params['controller'] == 'site' and params['action'] == 'export'
        traceclass = 'active' if params['controller'] == 'trace'
        diaryclass = 'active' if params['controller'] == 'diary_entry'
        %>

<%= link_to t('layouts.view'), {:controller => 'site', :action => 'index'}, {:id => 'viewanchor', :title => 'view maps', :class => viewclass} %>

<%= link_to t('layouts.edit'), {:controller => 'site', :action => 'edit'}, {:id => 'editanchor', :title => 'edit maps', :class => editclass} %>

<%= link_to t('layouts.history'), {:controller => 'changeset', :action => 'list_bbox' }, {:id => 'historyanchor', :title => 'changeset history', :class => historyclass} %>

        <% if params['controller'] == 'site' and (params['action'] == 'index' or params['action'] == 'export') %>

<%= link_to_remote t('layouts.export'), {:url => {:controller => 'export', :action => 'start'}}, {:id => 'exportanchor', :title => 'export map data', :class => exportclass, :href => url_for(:controller => 'site', :action => 'export')} %>

        <% else %>

<%= link_to t('layouts.export'), {:controller => 'site', :action => 'export'}, {:id => 'exportanchor', :title => 'export map data', :class => exportclass} %>

        <% end %>

<%= link_to t('layouts.gps_traces'), {:controller => 'trace', :action => 'list'}, {:id => 'traceanchor', :title => 'manage traces', :class => traceclass} %>

<%= link_to t('layouts.user_diaries'), {:controller => 'diary_entry', :action => 'list', :display_name => nil}, {:id => 'diaryanchor', :title => 'view user diaries', :class => diaryclass} %>

OpenStreetMap

          <%= link_to(image_tag("osm_logo.png", :size => "120x120", :border => 0), :controller => 'site', :action => 'index') %>

<%= t('layouts.tag_line') %>

      <% unless @user %>

          <%= t 'layouts.intro_1' %>

          <%= t 'layouts.intro_2' %>.

        <%= t 'layouts.intro_3',
              :ucl => 'UCL VR Centre',
              :bytemark => 'bytemark' %>

      <% end %>

      <% if OSM_STATUS == :database_offline or OSM_STATUS == :api_offline %>

        <%= t 'layouts.offline' %>

      <% elsif OSM_STATUS == :database_readonly or OSM_STATUS == :api_readonly %>

        <%= t 'layouts.read_only' %>
      <% end %>

      <% if false %>

        <%= t 'layouts.donate', :link => "#{t('layouts.donate_link_text')}" %>

      <% end %>

        <%= t 'layouts.help_wiki' %>

        <%= t 'layouts.news_blog' %>

        <%= t 'layouts.shop' %>

        <%= yield :left_menu %>

        <%= link_to image_tag("sotm.png", :alt => t('layouts.sotm'), :title => t('layouts.sotm'), :border => "0"), "http://www.stateofthemap.org/" %>

      <%= yield :optionals %>

          <img src="/images/donate.png" border="0" alt="<%= t 'layouts.alt_donation' %>" title="<%= t 'layouts.alt_donation' %>" />

          <%= link_to image_tag("cc_button.png", :alt => "CC by-sa 2.0", :border => "0"), "http://creativecommons.org/licenses/by-sa/2.0/" %>


Revert accidental commit.

Revert accidental commit.

User details

<%= error_messages_for 'user' %>
<% form_tag :controller => 'user', :action => 'account', :display_name => @user.display_name do %>

Name	<%= @user.email %>

Mapper since	<%= @user.creation_time %> (<%= time_ago_in_words(@user.creation_time) %> ago)

Display Name	<%= text_field :user, :display_name, :value => @user.display_name %>

Password	<%= password_field('user', 'pass_crypt',{:value => '', :size => 50, :maxlength => 255}) %>

Confirm Password	<%= password_field('user', 'pass_crypt_confirmation',{:value => '', :size => 50, :maxlength => 255}) %>

  <tr id="homerow" <% unless @user.home_lat and @user.home_lon %> class="nohome" <%end%> >Your home	You have not entered your home location.Latitude: <%= text_field :user, :home_lat, :value => @user.home_lat, :size => 20, :id => "home_lat" %> Longitude <%= text_field :user, :home_lon, :value => @user.home_lon, :size => 20, :id => "home_lon" %>

Update home location when I click on the map? <input type="checkbox" value="1" <% unless @user.home_lat and @user.home_lon %> checked="checked" <% end %> id="updatehome" />

    <% # This now just used to detect the width/height required for the popup. %>

Description	<%= text_area :user, :description, :value => @user.description, :class => "editDescription" %>

<%= submit_tag 'Save Changes' %>
<% end %>

<% nearest_str = "" %>
<% if @user.home_lat and @user.home_lon %>

Users in your area

    <% if @user.nearby.empty? %>
    There are no users who admit to mapping in your area.  Better go out and spread the word about OSM!
    <% else %>

These users are mapping in your area:

    Name
    Distance
    Contact

    <% @user.nearby.each do |nearby| %>
    <% nearest_str += "nearest.push( { 'display_name' : '#{nearby.display_name}', 'home_lat' : #{nearby.home_lat}, 'home_lon' : #{nearby.home_lon} } );\n" %>

    <%= link_to nearby.display_name, :controller => 'user', :action => 'view',  :display_name => nearby.display_name %>
    <%= @user.distance(nearby).round %>km away
    <%= link_to 'send message', :controller => 'message', :action => 'new', :user_id => nearby.id %>

    <%end%>

    <%end%>

<% end %>

<% if @user.home_lat and @user.home_lon %>
    <% marker = true %>
    <% mlon = @user.home_lon %>
    <% mlat = @user.home_lat %>
    <% lon =  @user.home_lon %>
    <% lat =  @user.home_lat  %>
    <% zoom =  '12' %>

<% else %>
    <% lon =  params['lon'] || '-0.1' %>
    <% lat =  params['lat'] || '51.5' %>
    <% zoom =  params['zoom'] || '4' %>
<% end %>

Privacy

<% if @user.data_public? %>
  All your edits are public.
<% else %>
  Currently your edits are anonymous and people can't find out where you are located. To show what you edited and allow people to contact you through the website, click the button below. This action cannot be reversed.

  <% form_tag :controller => 'user', :action => 'go_public' do %>
  <%= submit_tag 'Make all my edits public, forever' %>
  <% end %>
<% end %>


[project @ examples/rails_openid/app/views/layouts/server.rhtml: add your OpenID to the header when you're logged in.]

  <title>OpenID Server Example</title>

    <% if session[:username] %>

        Welcome, <%= session[:username] %> | <%= link_to('Log out', :controller => 'login', :action => 'logout') %>

	<%= @base_url %>user/<%= session[:username] %>

    <% end %>

Ruby OpenID Server Example

    <% if flash[:notice] or flash[:error] %>
     <div class="<%= flash[:notice].nil? ? 'error' : 'notice' %>">
       <%= flash[:error] or flash[:notice] %>

    <% end %>

    <%= @content_for_layout %>

  <title>OpenID Server Example</title>

    <% if session[:username] %>

        Welcome, <%= session[:username] %> | <%= link_to('Log out', :controller => 'login', :action => 'logout') %>

    <% end %>

Ruby OpenID Server Example

    <% if flash[:notice] or flash[:error] %>
     <div class="<%= flash[:notice].nil? ? 'error' : 'notice' %>">
       <%= flash[:error] or flash[:notice] %>

    <% end %>

    <%= @content_for_layout %>


Move user diaries link to the tab bar as it changes what is displayed in the main frame, and everything else which does that is on the tab bar.


changed button name to search

changed button name to search

Journals

WARNING: Systematic downloading of data is prohibited.
    <% if policy_url = AppConfig.param('usage_policy_url') %>
    Please see <a href="#" class="smallTextlink" onClick="window.open('<%= policy_url %>','image','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,height=380,width=650');">Policy
                                for Use of Online Info.

    <% end %>

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

Searching for a specific journal?

                                    <%= form_tag({:controller=>'search', :action=>'journal_search'}, {:method=>'get', :name=>'OpenURL', :id=>'OpenURL'}, nil)  %>

                                          <input type=hidden name="rfr_id" value="info:sid/sfxit.com:citation">

                                            Enter
                                                the journal title or the ISSN.
                                                If you have both the journal
                                                title
                                        & ISSN, use the ISSN.
                                          <input type="hidden" id="rft_title" name="rft.title">
                                            <input type="hidden" id="rft_object_id" name="rft.object_id">
                                            <input type="hidden" id="date" name="rft.date">

                                            Journal Title:

<%= text_field_with_auto_complete :journal, :title, {:name=>'rft.jtitle', :onchange=>'clearObjectId();',:autocomplete=>'off', :size=>'40'}, {:after_update_element=>'updateObjectId', :min_chars => 4}
%>

                                              <select name="umlaut.title_search_type" id="sfx_title_search">
                                                <option value="contains">contains</option>
                                                <option value="begins">begins
                                                with</option>
                                                <option value="exact">exact match</option>

                                              </select>
                                                ISSN:
                                            <input type=text name="rft.issn" size="10" maxlength="9">

Searching for a specific article?

        Enter as much as you know of the following:

        Date:
          <select name="__year" onChange="setDate('rft.date',document.OpenURL)">

          <option value="" selected>Year</option>
            <% (-1*Time.now.year..-1*1950).each do |year| %>
            <option value="<%= year.abs.to_s %>"><%= year.abs.to_s %></option>
            <% end %>
          </select>

          <select name="__month" onChange="setDate('rft.date',document.OpenURL)">
            <option value="" selected>Month
            <option value="01">Jan
            <option value="02">Feb
            <option value="03">Mar
            <option value="04">Apr
            <option value="05">May
            <option value="06">Jun
            <option value="07">Jul
            <option value="08">Aug
            <option value="09">Sep
            <option value="10">Oct
            <option value="11">Nov
            <option value="12">Dec
          </select>

          <select name="__day" onChange="setDate('rft.date',document.OpenURL)">
            <option value="" selected>Day
            <option value="01">01
            <option value="02">02
            <option value="03">03
            <option value="04">04
            <option value="05">05
            <option value="06">06
            <option value="07">07
            <option value="08">08
            <option value="09">09
            <option value="10">10
            <option value="11">11
            <option value="12">12
            <option value="13">13
            <option value="14">14
            <option value="15">15
            <option value="16">16
            <option value="17">17
            <option value="18">18
            <option value="19">19
            <option value="20">20
            <option value="21">21
            <option value="22">22
            <option value="23">23
            <option value="24">24
            <option value="25">25
            <option value="26">26
            <option value="27">27
            <option value="28">28
            <option value="29">29
            <option value="30">30
          </select>

             Volume:
          <input type=text name="rft.volume" size="5" maxlength="5" value="">   Issue:
          <input type=text name="rft.issue" size="5" value="">

        DOI or Pubmed Identifier:

          <select name='rft_id_type'>
            <option value='doi'>DOI:</option>
            <option value='pmid'>PMID:</option>
          </select>
           <input name="rft_id_value" type=text value="" size=25>

      <input type="submit" name="Generate_OpenURL2" value="Search">

                                      </form>

? Having
    Trouble?

Try entering less information
    about your article. If one piece of information is wrong, it could be causing
    the problem.

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

For technical support, including access problems, please contact us.

  <% end %>

Journals

WARNING: Systematic downloading of data is prohibited.
    <% if policy_url = AppConfig.param('usage_policy_url') %>
    Please see <a href="#" class="smallTextlink" onClick="window.open('<%= policy_url %>','image','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,height=380,width=650');">Policy
                                for Use of Online Info.

    <% end %>

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

Searching for a specific journal?

                                    <%= form_tag({:controller=>'search', :action=>'journal_search'}, {:method=>'get', :name=>'OpenURL', :id=>'OpenURL'}, nil)  %>

                                          <input type=hidden name="rfr_id" value="info:sid/sfxit.com:citation">

                                            Enter
                                                the journal title or the ISSN.
                                                If you have both the journal
                                                title
                                        & ISSN, use the ISSN.
                                          <input type="hidden" id="rft_title" name="rft.title">
                                            <input type="hidden" id="rft_object_id" name="rft.object_id">
                                            <input type="hidden" id="date" name="rft.date">

                                            Journal Title:

<%= text_field_with_auto_complete :journal, :title, {:name=>'rft.jtitle', :onchange=>'clearObjectId();',:autocomplete=>'off', :size=>'40'}, {:after_update_element=>'updateObjectId', :min_chars => 4}
%>

                                              <select name="umlaut.title_search_type" id="sfx_title_search">
                                                <option value="contains">contains</option>
                                                <option value="begins">begins
                                                with</option>
                                                <option value="exact">exact match</option>

                                              </select>
                                                ISSN:
                                            <input type=text name="rft.issn" size="10" maxlength="9">

Searching for a specific article?

        Enter as much as you know of the following:

        Date:
          <select name="__year" onChange="setDate('rft.date',document.OpenURL)">

          <option value="" selected>Year</option>
            <% (-1*Time.now.year..-1*1950).each do |year| %>
            <option value="<%= year.abs.to_s %>"><%= year.abs.to_s %></option>
            <% end %>
          </select>

          <select name="__month" onChange="setDate('rft.date',document.OpenURL)">
            <option value="" selected>Month
            <option value="01">Jan
            <option value="02">Feb
            <option value="03">Mar
            <option value="04">Apr
            <option value="05">May
            <option value="06">Jun
            <option value="07">Jul
            <option value="08">Aug
            <option value="09">Sep
            <option value="10">Oct
            <option value="11">Nov
            <option value="12">Dec
          </select>

          <select name="__day" onChange="setDate('rft.date',document.OpenURL)">
            <option value="" selected>Day
            <option value="01">01
            <option value="02">02
            <option value="03">03
            <option value="04">04
            <option value="05">05
            <option value="06">06
            <option value="07">07
            <option value="08">08
            <option value="09">09
            <option value="10">10
            <option value="11">11
            <option value="12">12
            <option value="13">13
            <option value="14">14
            <option value="15">15
            <option value="16">16
            <option value="17">17
            <option value="18">18
            <option value="19">19
            <option value="20">20
            <option value="21">21
            <option value="22">22
            <option value="23">23
            <option value="24">24
            <option value="25">25
            <option value="26">26
            <option value="27">27
            <option value="28">28
            <option value="29">29
            <option value="30">30
          </select>

             Volume:
          <input type=text name="rft.volume" size="5" maxlength="5" value="">   Issue:
          <input type=text name="rft.issue" size="5" value="">

        DOI or Pubmed Identifier:

          <select name='rft_id_type'>
            <option value='doi'>DOI:</option>
            <option value='pmid'>PMID:</option>
          </select>
           <input name="rft_id_value" type=text value="" size=25>

      <input type="submit" name="Generate_OpenURL2" value="Submit">

                                      </form>

? Having
    Trouble?

Try entering less information
    about your article. If one piece of information is wrong, it could be causing
    the problem.

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

For technical support, including access problems, please contact us.

  <% end %>


With reference to #561, display "[An anonymous user]" rather than an empty string for external requests with no external user name.

<%= _('This is a plain-text version of the Freedom of Information request "{{request_title}}".  The latest, full version is available online at {{full_url}}', :request_title => @info_request.title, :full_url => "http://#{MySociety::Config.get('DOMAIN')}#{show_request_path(:url_title=>@info_request.url_title)}") %>.

<% for info_request_event in @info_request_events %>
<%
    incoming_message = nil
    if info_request_event.visible
    if !info_request_event.nil? && info_request_event.event_type == 'response'
       incoming_message = info_request_event.incoming_message
    end

    if not incoming_message.nil?
        if !incoming_message.safe_mail_from.nil? && incoming_message.safe_mail_from.strip != @info_request.public_body.name.strip %>
<%= _('From:') %> <%= incoming_message.safe_mail_from %><% end
        if incoming_message.safe_mail_from.nil? || (incoming_message.mail_from_domain == @info_request.public_body.request_email_domain) %>, <%= @info_request.public_body.name %><% end %>
<%= _('To:') %> <% if @info_request.user_name %><%= @info_request.user_name %><% else %><%= "[#{_('An anonymous user')}]"%><% end %>
<%= _('Date:') %> <%= simple_date(incoming_message.sent_at) %>

<%= incoming_message.get_body_for_quoting %>
<%        incoming_message.get_attachments_for_display.each do |a| %>
  <%= _('Attachment:') %> <%= a.display_filename %> (<%= a.display_size %>)
        <% end %>
<%
elsif [ 'sent', 'followup_sent' ].include?(info_request_event.event_type)
    outgoing_message = info_request_event.outgoing_message
    %>
<%= _('From:') %> <% if @info_request.user_name %><%= @info_request.user_name %><% else %><%= "[#{_('An anonymous user')}]"%><% end %>
<%= _('To:') %> <%= @info_request.public_body.name %>
<%= _('Date:') %> <%= simple_date(info_request_event.created_at) %>
<%
        text = outgoing_message.body.strip
        outgoing_message.remove_privacy_sensitive_things!(text) %>

<%= text %>
<% elsif [ 'resent', 'followup_resent' ].include?(info_request_event.event_type) %>
<%= _('Date:') %> <%= simple_date(info_request_event.created_at) %>
Sent <% if info_request_event.outgoing_message.message_type == 'initial_request' %> request <% elsif info_request_event.outgoing_message.message_type == 'followup' %> a follow up <% else %> <% raise "unknown message_type" %><% end %> to <%= public_body_link(@info_request.public_body) %> again<% if not info_request_event.same_email_as_previous_send? %>, using a new contact address<% end %>.

<% elsif info_request_event.event_type == 'comment'
    comment = info_request_event.comment
%>
<%= _("{{username}} left an annotation:", :username =>comment.user.name) %> (<%= simple_date(comment.created_at || Time.now) %>)
<%= comment.body.strip %>
<% end %>
-------------------------------<% end %><% end %>

<%= _('This is a plain-text version of the Freedom of Information request "{{request_title}}".  The latest, full version is available online at {{full_url}}', :request_title => @info_request.title, :full_url => "http://#{MySociety::Config.get('DOMAIN')}#{show_request_path(:url_title=>@info_request.url_title)}") %>.

<% for info_request_event in @info_request_events %>
<%
    incoming_message = nil
    if info_request_event.visible
    if !info_request_event.nil? && info_request_event.event_type == 'response'
       incoming_message = info_request_event.incoming_message
    end

    if not incoming_message.nil?
        if !incoming_message.safe_mail_from.nil? && incoming_message.safe_mail_from.strip != @info_request.public_body.name.strip %>
<%= _('From:') %> <%= incoming_message.safe_mail_from %><% end
        if incoming_message.safe_mail_from.nil? || (incoming_message.mail_from_domain == @info_request.public_body.request_email_domain) %>, <%= @info_request.public_body.name %><% end %>
<%= _('To:') %> <%= @info_request.user_name %>
<%= _('Date:') %> <%= simple_date(incoming_message.sent_at) %>

<%= incoming_message.get_body_for_quoting %>
<%        incoming_message.get_attachments_for_display.each do |a| %>
  <%= _('Attachment:') %> <%= a.display_filename %> (<%= a.display_size %>)
        <% end %>
<%
elsif [ 'sent', 'followup_sent' ].include?(info_request_event.event_type)
    outgoing_message = info_request_event.outgoing_message
    %>
<%= _('From:') %> <%= @info_request.user_name %>
<%= _('To:') %> <%= @info_request.public_body.name %>
<%= _('Date:') %> <%= simple_date(info_request_event.created_at) %>
<%
        text = outgoing_message.body.strip
        outgoing_message.remove_privacy_sensitive_things!(text) %>

<%= text %>
<% elsif [ 'resent', 'followup_resent' ].include?(info_request_event.event_type) %>
<%= _('Date:') %> <%= simple_date(info_request_event.created_at) %>
Sent <% if info_request_event.outgoing_message.message_type == 'initial_request' %> request <% elsif info_request_event.outgoing_message.message_type == 'followup' %> a follow up <% else %> <% raise "unknown message_type" %><% end %> to <%= public_body_link(@info_request.public_body) %> again<% if not info_request_event.same_email_as_previous_send? %>, using a new contact address<% end %>.

<% elsif info_request_event.event_type == 'comment'
    comment = info_request_event.comment
%>
<%= _("{{username}} left an annotation:", :username =>comment.user.name) %> (<%= simple_date(comment.created_at || Time.now) %>)
<%= comment.body.strip %>
<% end %>
-------------------------------<% end %><% end %>


Only show request-hiding for requests that have not already been hidden

<% @title = _("FOI request - {{title}}", :title => h(@info_request.title)) %>
<%= javascript_include_tag :defaults %>

<%=@title%>

<% form_tag '../move_request', { :class => "form form-horizontal" } do %>
  <%= hidden_field_tag 'info_request_id', @info_request.id %>

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

            <%= name %>:

            <% if type == 'datetime' %>
              <%= I18n.l(value, :format => "%e %B %Y %H:%M:%S") %>
              (<%= _('{{length_of_time}} ago', :length_of_time => time_ago_in_words(value)) %>)
            <% else %>
              <%= h value %>
            <% end %>
            <% if column_name == 'described_state' %>

Initial request last sent at: <%= @info_request.calculate_status %>

Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>

Date response required by: <%= @info_request.date_response_required_by %>

Very overdue after: <%= @info_request.date_very_overdue_after %>

            <% end %>

      <% end %>

          Created by

          <%= link_to("".html_safe, user_url(@info_request.user), :title => "view user's page on public website") %>
          <%= link_to(@info_request.user.name, user_admin_url(@info_request.user)) %>
          <%= link_to _("move..."), "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

              url_name of new user:
              <%= text_field_tag 'user_url_name', "", { :size => 20 } %>
              <%= submit_tag "Move request to user", :class => "btn btn-info" %>

          Public authority:

          <%= link_to("".html_safe, public_body_url(@info_request.public_body), :title => "view authority on public website") %>
          <%= link_to(@info_request.public_body.name, public_body_admin_url(@info_request.public_body)) %>
          <%= link_to "move...", "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

            url_name of new authority:
            <%= text_field_tag 'public_body_url_name', "", { :size => 20 } %>
            <%= submit_tag "Move request to authority", :class => "btn btn-info" %>

          <%=_("Incoming email address")%>

          <%= link_to h(@info_request.incoming_email), "mailto:#{@info_request.incoming_email}" %>

          <%=_("Tags")%>

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

<% end %>
<formset class="form-horizontal">
 <legend>Actions</legend>

     Other views of this request

    <%= link_to 'Public page', main_url(request_url(@info_request)), :class => "btn" %>
    <%= link_to 'Edit page', '../edit/' + @info_request.id.to_s, :class => "btn" %>

     FOI officer upload URL

    <%= link_to 'Generate URL', '../generate_upload_url/' + @info_request.id.to_s, :class => "btn" %>

(see also option to general URLs for individual incoming messages below)

   <% form_tag '../hide/' + @info_request.id.to_s, :class => "form form-inline", :info_request_id => @info_request.id.to_s, :id => "hide_request_form" do %>

    Hide the request and notify the user:

     <% if ['hidden', 'requester_only'].include? @info_request.prominence %>

This request has already been hidden

     <% else %>

       <%= radio_button_tag "reason", "not_foi" %> <%= _("Not a valid FOI request") %>

       <%= radio_button_tag "reason", "vexatious" %> <%= _("A vexatious request") %>

     <% end %>

    <% if !['hidden', 'requester_only'].include? @info_request.prominence %>

     Reason for hiding the request (will be emailed to user):

         <%= text_area_tag "explanation", h(@request_hidden_user_explanation), {:id => "request_hidden_user_explanation_field"} %>

     <%= submit_tag _("Hide request"), :class => "btn" %>

    <% end %>
   <% end %>
</formset>

Events

  <% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>

        <a href="#event_<%=info_request_event.id%>" data-toggle="collapse" data-parent="events">
          <%= _("Event {{id}}", :id => info_request_event.id) %>
        :

         <%=h info_request_event.event_type.humanize %><% if !info_request_event.calculated_state.nil? %>; state: <%= info_request_event.calculated_state %><% end %>

        <%= info_request_event.created_at%>

      <div id="event_<%=info_request_event.id%>" class="accordion-body collapse">

	        <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
                  <% form_tag '../mark_event_as_clarification', :class => "form form-inline admin-table-form admin-inline-form" do %>
                    <%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
                    <%= submit_tag "Was clarification request", :class => "btn btn-mini btn-primary" %>
                  <% end %>
                <% end %>

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

                  <%=h name%>

                  <% if column_name == 'params_yaml' %>
                    <%= info_request_event.params_yaml_as_html %>
                  <% elsif value.nil? %>
                    nil
                  <% elsif %w(text string).include?(type) %>
                    <%=h value.humanize %>
                  <% elsif type == 'datetime' %>
                    <%= admin_date value %>
                  <% else %>
                    <%=h value %>
                  <% end %>

            <% end %>

  <% end %>

Outgoing messages

  <% for outgoing_message in @info_request.outgoing_messages.find(:all, :order => 'created_at') %>

       <%= link_to("".html_safe, "../edit_outgoing/#{outgoing_message.id}") %>
        <a href="#outgoing_<%=outgoing_message.id%>" data-toggle="collapse" data-parent="outgoing_messages">
          #<%= outgoing_message.id %> -- <%= outgoing_message.status.humanize %> <%= outgoing_message.message_type.humanize %>

	  <%= truncate(outgoing_message.body, :length => 400) %>

      <div id="outgoing_<%=outgoing_message.id%>" class="accordion-body collapse">

                <% form_tag '../resend', :class => "admin-table-form" do %>
                  <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
                  <%= submit_tag "Resend", :class => "btn" %>
                <% end %>

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

                  <%=name%>

                  <% if column_name == 'body' %>
                    <%= simple_format(truncate(outgoing_message.body, :length => 400, :omission => link_to("...", "#", :class => "toggle-hidden" ))) %>

<%= simple_format( outgoing_message.body ) %>

                  <% else %>
                    <%= admin_value(value) %>
                  <% end %>

            <% end %>

  <% end %>

Incoming messages

  <% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>

        <a class="accordion-toggle" href="#incoming_<%=incoming_message.id%>" data-toggle="collapse" data-parent="incoming_messages">
          <%=incoming_message.id%> -- <%= h(incoming_message.mail_from) %> <%=_("at")%> <%=admin_value(incoming_message.sent_at)%>

	  <% if !incoming_message.cached_main_body_text_folded.nil? %>
	  <%= truncate(incoming_message.cached_main_body_text_folded.gsub('FOLDED_QUOTED_SECTION', ''), :length => 400) %>
         <% end %>

      <div id="incoming_<%=incoming_message.id%>" class="accordion-body collapse">

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

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

                  <%=name%>

                  <% if column_name =~ /^cached_.*?$/ %>
                    <%= simple_format( truncate(value, :length => 400, :omission => link_to("...", "#", :class => "toggle-hidden"))) %>

<%= simple_format(value) %>

                  <% else %>
                    <%= simple_format(value) %>
                  <% end %>

            <% end %>

  <% end %>

Annotations

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

    <% for comment in @info_request.comments %>

          <%= link_to("".html_safe, "../edit_comment/#{comment.id}") %>
          <a href="#comment_<%=comment.id%>" data-toggle="collapse" data-parent="comments">
            #<%=comment.id%>
            --
            <%=h(comment.user.name)%>
            <%=admin_value(comment.created_at)%>

	  <%= truncate(comment.body, :length => 400) %>

        <div id="comment_<%=comment.id%>" class="accordion-body collapse">

                 By <%= link_to("".html_safe, user_url(comment.user), :title => "view user's page on public website") %>

                  <%= link_to(h(comment.user.name), user_admin_url(comment.user)) %>

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

                    <%=name%>

                    <% if column_name == 'body' && !comment.visible %>
                      <s><%=h comment.send(column_name) %></s>
                    <% else %>
                      <%=h comment.send(column_name) %>
                    <% end %>

              <% end %>

    <% 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 - {{title}}", :title => h(@info_request.title)) %>
<%= javascript_include_tag :defaults %>

<%=@title%>

<% form_tag '../move_request', { :class => "form form-horizontal" } do %>
  <%= hidden_field_tag 'info_request_id', @info_request.id %>

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

            <%= name %>:

            <% if type == 'datetime' %>
              <%= I18n.l(value, :format => "%e %B %Y %H:%M:%S") %>
              (<%= _('{{length_of_time}} ago', :length_of_time => time_ago_in_words(value)) %>)
            <% else %>
              <%= h value %>
            <% end %>
            <% if column_name == 'described_state' %>

Initial request last sent at: <%= @info_request.calculate_status %>

Initial request last sent at: <%=@info_request.date_initial_request_last_sent_at.to_date %>

Date response required by: <%= @info_request.date_response_required_by %>

Very overdue after: <%= @info_request.date_very_overdue_after %>

            <% end %>

      <% end %>

          Created by

          <%= link_to("".html_safe, user_url(@info_request.user), :title => "view user's page on public website") %>
          <%= link_to(@info_request.user.name, user_admin_url(@info_request.user)) %>
          <%= link_to _("move..."), "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

              url_name of new user:
              <%= text_field_tag 'user_url_name', "", { :size => 20 } %>
              <%= submit_tag "Move request to user", :class => "btn btn-info" %>

          Public authority:

          <%= link_to("".html_safe, public_body_url(@info_request.public_body), :title => "view authority on public website") %>
          <%= link_to(@info_request.public_body.name, public_body_admin_url(@info_request.public_body)) %>
          <%= link_to "move...", "#", :class => "btn btn-mini btn-warning toggle-hidden" %>

            url_name of new authority:
            <%= text_field_tag 'public_body_url_name', "", { :size => 20 } %>
            <%= submit_tag "Move request to authority", :class => "btn btn-info" %>

          <%=_("Incoming email address")%>

          <%= link_to h(@info_request.incoming_email), "mailto:#{@info_request.incoming_email}" %>

          <%=_("Tags")%>

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

<% end %>
<formset class="form-horizontal">
 <legend>Actions</legend>

     Other views of this request

    <%= link_to 'Public page', main_url(request_url(@info_request)), :class => "btn" %>
    <%= link_to 'Edit page', '../edit/' + @info_request.id.to_s, :class => "btn" %>

     FOI officer upload URL

    <%= link_to 'Generate URL', '../generate_upload_url/' + @info_request.id.to_s, :class => "btn" %>

(see also option to general URLs for individual incoming messages below)

   <% form_tag '../hide/' + @info_request.id.to_s, :class => "form form-inline", :info_request_id => @info_request.id.to_s, :id => "hide_request_form" do %>

    Hide the request and notify the user:

       <%= radio_button_tag "reason", "not_foi" %> <%= _("Not a valid FOI request") %>

       <%= radio_button_tag "reason", "vexatious" %> <%= _("A vexatious request") %>

     Reason for hiding the request (will be emailed to user):

         <%= text_area_tag "explanation", h(@request_hidden_user_explanation), {:id => "request_hidden_user_explanation_field"} %>

     <%= submit_tag _("Hide request"), :class => "btn" %>

   <% end %>
</formset>

Events

  <% for info_request_event in @info_request.info_request_events.find(:all, :order => "created_at, id") %>

        <a href="#event_<%=info_request_event.id%>" data-toggle="collapse" data-parent="events">
          <%= _("Event {{id}}", :id => info_request_event.id) %>
        :

         <%=h info_request_event.event_type.humanize %><% if !info_request_event.calculated_state.nil? %>; state: <%= info_request_event.calculated_state %><% end %>

        <%= info_request_event.created_at%>

      <div id="event_<%=info_request_event.id%>" class="accordion-body collapse">

	        <% if info_request_event.described_state != 'waiting_clarification' and info_request_event.event_type == 'response' %>
                  <% form_tag '../mark_event_as_clarification', :class => "form form-inline admin-table-form admin-inline-form" do %>
                    <%= hidden_field_tag 'info_request_event_id', info_request_event.id %>
                    <%= submit_tag "Was clarification request", :class => "btn btn-mini btn-primary" %>
                  <% end %>
                <% end %>

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

                  <%=h name%>

                  <% if column_name == 'params_yaml' %>
                    <%= info_request_event.params_yaml_as_html %>
                  <% elsif value.nil? %>
                    nil
                  <% elsif %w(text string).include?(type) %>
                    <%=h value.humanize %>
                  <% elsif type == 'datetime' %>
                    <%= admin_date value %>
                  <% else %>
                    <%=h value %>
                  <% end %>

            <% end %>

  <% end %>

Outgoing messages

  <% for outgoing_message in @info_request.outgoing_messages.find(:all, :order => 'created_at') %>

       <%= link_to("".html_safe, "../edit_outgoing/#{outgoing_message.id}") %>
        <a href="#outgoing_<%=outgoing_message.id%>" data-toggle="collapse" data-parent="outgoing_messages">
          #<%= outgoing_message.id %> -- <%= outgoing_message.status.humanize %> <%= outgoing_message.message_type.humanize %>

	  <%= truncate(outgoing_message.body, :length => 400) %>

      <div id="outgoing_<%=outgoing_message.id%>" class="accordion-body collapse">

                <% form_tag '../resend', :class => "admin-table-form" do %>
                  <%= hidden_field_tag 'outgoing_message_id', outgoing_message.id %>
                  <%= submit_tag "Resend", :class => "btn" %>
                <% end %>

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

                  <%=name%>

                  <% if column_name == 'body' %>
                    <%= simple_format(truncate(outgoing_message.body, :length => 400, :omission => link_to("...", "#", :class => "toggle-hidden" ))) %>

<%= simple_format( outgoing_message.body ) %>

                  <% else %>
                    <%= admin_value(value) %>
                  <% end %>

            <% end %>

  <% end %>

Incoming messages

  <% for incoming_message in @info_request.incoming_messages.find(:all, :order => 'created_at') %>

        <a class="accordion-toggle" href="#incoming_<%=incoming_message.id%>" data-toggle="collapse" data-parent="incoming_messages">
          <%=incoming_message.id%> -- <%= h(incoming_message.mail_from) %> <%=_("at")%> <%=admin_value(incoming_message.sent_at)%>

	  <% if !incoming_message.cached_main_body_text_folded.nil? %>
	  <%= truncate(incoming_message.cached_main_body_text_folded.gsub('FOLDED_QUOTED_SECTION', ''), :length => 400) %>
         <% end %>

      <div id="incoming_<%=incoming_message.id%>" class="accordion-body collapse">

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

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

                  <%=name%>

                  <% if column_name =~ /^cached_.*?$/ %>
                    <%= simple_format( truncate(value, :length => 400, :omission => link_to("...", "#", :class => "toggle-hidden"))) %>

<%= simple_format(value) %>

                  <% else %>
                    <%= simple_format(value) %>
                  <% end %>

            <% end %>

  <% end %>

Annotations

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

    <% for comment in @info_request.comments %>

          <%= link_to("".html_safe, "../edit_comment/#{comment.id}") %>
          <a href="#comment_<%=comment.id%>" data-toggle="collapse" data-parent="comments">
            #<%=comment.id%>
            --
            <%=h(comment.user.name)%>
            <%=admin_value(comment.created_at)%>

	  <%= truncate(comment.body, :length => 400) %>

        <div id="comment_<%=comment.id%>" class="accordion-body collapse">

                 By <%= link_to("".html_safe, user_url(comment.user), :title => "view user's page on public website") %>

                  <%= link_to(h(comment.user.name), user_admin_url(comment.user)) %>

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

                    <%=name%>

                    <% if column_name == 'body' && !comment.visible %>
                      <s><%=h comment.send(column_name) %></s>
                    <% else %>
                      <%=h comment.send(column_name) %>
                    <% end %>

              <% end %>

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


WDTK-210 Add thanks for the logo

WDTK-210 Add thanks for the logo

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

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

<%= @title%> #

Which people made <%= site_name %>? #

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

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

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

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

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

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

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

    The generous folk at Acceso Inteligente, from Chile, for letting us steal their fabulous logo.

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

They're all stars.

You could be too…

Can I help out? #

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

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

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

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

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

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

Read more about volunteering.

Attribution #

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

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

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

<%= @title%> #

Which people made <%= site_name %>? #

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

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

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

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

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

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

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

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

They're all stars.

You could be too…

Can I help out? #

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

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

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

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

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

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

Read more about volunteering.

Attribution #

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


Slight rewording of thanks to Chilean FOI site

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

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

<%= @title%> #

Which people made <%= site_name %>? #

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

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

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

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

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

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

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

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

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

They're all stars.

You could be too…

Can I help out? #

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

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

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

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

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

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

Read more about volunteering.

Attribution #

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

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

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

<%= @title%> #

Which people made <%= site_name %>? #

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

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

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

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

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

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

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

    The generous folk at Acceso Inteligente, from Chile, for letting us steal their fabulous logo.

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

They're all stars.

You could be too…

Can I help out? #

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

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

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

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

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

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

Read more about volunteering.

Attribution #

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


more derivatives

more derivatives

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

Ubuntu-Derivate

Communtu setzt auf einer Ubuntu-Basisinstallation auf.
Es gibt nun eine ganze Reihe von <%= link_to 'Ubuntu-Derivaten', 'http://wiki.ubuntuusers.de/Was_ist_Linux?#Was-sind-Derivate-einer-Distribution' %>, und viele Ubuntu-Nutzer fragen sich,
ob sie statt Ubuntu lieber ein Derivat benutzen sollten.
Die Antwort ist: meistens fährt man mit dem Standard-Ubuntu ganz gut, denn
Communtu erlaubt, die Derivate auf einfache Weise nachzuinstallieren.
Allerdings ist das nicht bei allen Derivaten gleich sinnvoll.

Alle Derivate können unter <%= link_to 'Installationsvorschläge', user_path(current_user) + "/suggestion" %>
unter der Kategorie "Derivate" zur Installation ausgewählt werden.
Ebenso kannst du dort nachgucken, aus welchen Paketen ein Derivat besteht.

Über Communtu sinnvoll nachinstallierbare Derivate

<%= link_to 'Ubuntu Studio', 'http://wiki.ubuntuusers.de/Ubuntu_Studio'%> - Ubuntu Multimedie-Edition.
Sie wird bei Communtu mitinstalliert, wenn du bei Audio, Film und/oder Grafik/Design "erweitert" anwählst.

<%= link_to 'Medibuntu', 'http://medibuntu.org' %> stellt Multimedia-Paketquellen bereit, die aus rechtlichen Gründen nicht von Ubuntu selbst angeboten wird. Medibuntu wird bei Communtu mit berücksichtigt (z.B. bei Audio und Film).

<%= link_to 'Mythbuntu', 'http://www.mythbuntu.org/' %> - der PC wird zum Videorekorder. Bei Film "Freak" auswählen, und es wird mitinstalliert. Empfohlen: CPU mit 2 GHz, 1024 MByte RAM, 10 GByte Festplattenplatz für das Frontend, 80+ GByte für das Backend, eine Grafikkarte mit 128 MByte RAM mit TV-Ausgang und eine unterstützte TV-Karte.

<%= link_to 'Edubuntu', 'http://www.edubuntu.org/' %> - Lernsoftware. Bei "Bildung und Wissenschaft" den Level "erweitert" auswählen, und es wird mitinstalliert.

<%= link_to 'Kubuntu', 'http://wiki.ubuntuusers.de/KDE' %> Kubuntu ist Ubuntu mit dem KDE-Desktop.

<%= link_to 'Linux Mint', 'http://de.wikipedia.org/wiki/Linux_Mint' %> ist eine Ubuntu-Abspaltung mit eigener User-Community, die sich vor allem Benutzerfreundlichkeit auf die Fahnen schreibt.
Linux Mint ähnelt Ubuntu sehr, hat aber viele Codes, z.B. für DVDs und MP3s, schon vorinstalliert. Diese Codecs gibt es allerdings auch bei Communtu, unter Unterhaltungsmedien.

	<%= link_to 'Automatix', 'http://wiki.ubuntuusers.de/Baustelle/Verlassen/Automatix2' %> war eine Installationshilfe, die sich großer Beliebtheit erfreute (sie wurde sogar von der New York Times empfohlen), die aber nicht ganz den Ubuntu-Programmierstandards entsprach und inzwischen nicht mehr weiterentwickelt wird.

Über Communtu nachinstallierbare Derivate, sinnvollerweise auf einer Xfce-basierten Installation (z.B. Xubuntu) aufzusetzen

 <%= link_to 'ZevenOS', 'http://www.zevenos.com/'%> - orient an BeOS, setzt auf Schnelligkeit, Kompatibilität mit alten Rechnern und einfache Bedienung. CPU mit mindestens 200 MHZ
128 MB RAM (zum Betrieb, zur Installation werden 192 MB RAM benötigt);
2 GB freier Festplattenplatz (Empfohlen: 4 GB oder mehr);
16 MB Grafikkarte (Empfohlen: Intel GMA 9xx).

Derivate, die mit der Derivats-eigenen Installations-CD installiert werden sollten

<%= link_to 'Xubuntu', 'http://wiki.ubuntuusers.de/Xfce' %> - mit dem schlanken Xfce als grafischer Oberfläche - besonders für ältere Rechner geeignet: 128 MByte Arbeitsspeicher und 1,5 GB auf der Festplatte reichen aus. Sollte von CD installiert werden, um wirklich eine schlanke Installation zu haben. Nachinstallationen mit Communtu möglich.

<%= link_to 'Linux MCE', 'http://de.wikipedia.org/wiki/LinuxMCE' %> - damit wird Ubuntu zum <%=link_to 'Fernsehcomputer', 'http://de.wikipedia.org/wiki/Home_Theater_Personal_Computer' %>. Aufgrund der notwendigen Treiberinstallation sollte Linux MCE direkt installiert werden, Communtu kann dann aber für die Installation weiterer Software genutzt werden.

<%= link_to 'Gobuntu', 'http://www.ubuntu.com/products/whatisubuntu/gobuntu' %> ist ein Ubuntu-Derivat komplett aus freier Software. Nur für erfahrene Nutzer geeignet. Sollte mit der Gobuntu-CD installiert werden, damit es auch wirklich nur freie Software ist. Nachinstallationen mit Communtu möglich, sinnvollerweise sollten dann im Nutzerprofil "freie Software" angewählt werden.

 <%= link_to 'Nexenta OS', 'http://de.wikipedia.org/wiki/GNU-Varianten#Nexenta_OS'%> - ersetzt den Linux-Kern durch OpenSolaris. Stellt nur eine minimale Basis an Anwendungen bereit. Die Installation weiterer Pakete bleibt dem Benutzer überlassen; hierfür kann Communtu genutzt werden.

Derivate, die wir uns noch genauer angucken müssen

 <%= link_to 'Impi Linux', 'http://www.impi.org.za/' %> - eine afrikanische Ubuntu-Variante, die allerdings offenbar nicht übers Internet erhältlich ist.

 <%= link_to 'linex', 'http://de.wikipedia.org/wiki/LinEx'%> - öffentliche Distribution der spanischen Region Extremadura.

 <%= link_to 'Ubuntulite', 'http://ubuntulite.tuxfamily.org/'%> für ältere PCs.

 <%= link_to 'Ubuntu mobile', 'http://www.ubuntu.com/products/mobile'%> - für mobile Internetgeräte.

 <%= link_to 'Ubuntu ultimate', 'http://ultimateedition.info/'%> - Ubuntu mit vielen Desktop-Desgins und Programmen.

 <%= link_to 'gOS', 'http://www.thinkgos.com/'%> - spezialisiert auf Webdienste.

 <%= link_to 'OpenGEU', 'http://opengeu.intilinux.com'%> - basiert auf E17. 2D-Effekte auch ohne schnelle Grafikkarte.

 <%= link_to 'Fluxbuntu', 'http://wiki.fluxbuntu.org'%> - minimalistische schnelle Ubuntu-Version für ältere PCs.

 <%= link_to 'Ubuntu Server', 'http://wiki.ubuntuusers.de/Server_Installation'%> - Server-Version von Ubuntu, ohne grafische Oberfläche.

 <%= link_to 'Ubuntu JeOS', 'http://wiki.ubuntuusers.de/JeOS'%> - minimale Server-Version, vor allem für Virtualisierung geeignet..

 <%= link_to 'Elbuntu', 'http://e17blog.tuxfamily.org/'%> - Ubuntu mit Enlightenment als Desktopumgebung.

 <%= link_to 'nUbuntu', 'http://www.nubuntu.org/'%> - mit Fluxbox und verschiedenen Netzwerk-Sicherheitswerkzeugen .

 <%= link_to 'getDeb', 'http://www.getdeb.net'%> - Installation von Programmen und Versionen, die nicht über die offiziellen Repositories erhältlich sind.

Ubuntu-Derivate

Communtu setzt auf einer Ubuntu-Basisinstallation auf.
Es gibt nun eine ganze Reihe von <%= link_to 'Ubuntu-Derivaten', 'http://wiki.ubuntuusers.de/Was_ist_Linux?#Was-sind-Derivate-einer-Distribution' %>, und viele Ubuntu-Nutzer fragen sich,
ob sie statt Ubuntu lieber ein Derivat benutzen sollten.
Die Antwort ist: meistens fährt man mit dem Standard-Ubuntu ganz gut, denn
Communtu erlaubt, die Derivate auf einfache Weise nachzuinstallieren.
Allerdings ist das nicht bei allen Derivaten gleich sinnvoll.

Alle Derivate können unter <%= link_to 'Installationsvorschläge', user_path(current_user) + "/suggestion" %>
unter der Kategorie "Derivate" zur Installation ausgewählt werden.
Ebenso kannst du dort nachgucken, aus welchen Paketen ein Derivat besteht.

Über Communtu sinnvoll nachinstallierbare Derivate

<%= link_to 'Ubuntu Studio', 'http://wiki.ubuntuusers.de/Ubuntu_Studio'%> - Ubuntu Multimedie-Edition.
Sie wird bei Communtu mitinstalliert, wenn du bei Audio, Film und/oder Grafik/Design "erweitert" anwählst.

<%= link_to 'Medibuntu', 'http://medibuntu.org' %> stellt Multimedia-Paketquellen bereit, die aus rechtlichen Gründen nicht von Ubuntu selbst angeboten wird. Medibuntu wird bei Communtu mit berücksichtigt (z.B. bei Audio und Film).

<%= link_to 'Mythbuntu', 'http://www.mythbuntu.org/' %> - der PC wird zum Videorekorder. Bei Film "Freak" auswählen, und es wird mitinstalliert. Empfohlen: CPU mit 2 GHz, 1024 MByte RAM, 10 GByte Festplattenplatz für das Frontend, 80+ GByte für das Backend, eine Grafikkarte mit 128 MByte RAM mit TV-Ausgang und eine unterstützte TV-Karte.

<%= link_to 'Edubuntu', 'http://www.edubuntu.org/' %> - Lernsoftware. Bei "Bildung und Wissenschaft" den Level "erweitert" auswählen, und es wird mitinstalliert.

<%= link_to 'Kubuntu', 'http://wiki.ubuntuusers.de/KDE' %> Kubuntu ist Ubuntu mit dem KDE-Desktop.

<%= link_to 'Linux Mint', 'http://de.wikipedia.org/wiki/Linux_Mint' %> ist eine Ubuntu-Abspaltung mit eigener User-Community, die sich vor allem Benutzerfreundlichkeit auf die Fahnen schreibt.
Linux Mint ähnelt Ubuntu sehr, hat aber viele Codes, z.B. für DVDs und MP3s, schon vorinstalliert. Diese Codecs gibt es allerdings auch bei Communtu, unter Unterhaltungsmedien.

	<%= link_to 'Automatix', 'http://wiki.ubuntuusers.de/Baustelle/Verlassen/Automatix2' %> war eine Installationshilfe, die sich großer Beliebtheit erfreute (sie wurde sogar von der New York Times empfohlen), die aber nicht ganz den Ubuntu-Programmierstandards entsprach und inzwischen nicht mehr weiterentwickelt wird.

Derivate, die mit einer eigenen Installations-CD installiert werden sollten

<%= link_to 'Xubuntu', 'http://wiki.ubuntuusers.de/Xfce' %> - mit dem schlanken Xfce als grafischer Oberfläche - besonders für ältere Rechner geeignet: 128 MByte Arbeitsspeicher und 1,5 GB auf der Festplatte reichen aus. Sollte von CD installiert werden, um wirklich eine schlanke Installation zu haben. Nachinstallationen mit Communtu möglich.

<%= link_to 'Linux MCE', 'http://de.wikipedia.org/wiki/LinuxMCE' %> - damit wird Ubuntu zum <%=link_to 'Fernsehcomputer', 'http://de.wikipedia.org/wiki/Home_Theater_Personal_Computer' %>. Aufgrund der notwendigen Treiberinstallation sollte Linux MCE direkt installiert werden, Communtu kann dann aber für die Installation weiterer Software genutzt werden.

<%= link_to 'Gobuntu', 'http://www.ubuntu.com/products/whatisubuntu/gobuntu' %> ist ein Ubuntu-Derivat komplett aus freier Software. Nur für erfahrene Nutzer geeignet. Sollte mit der Gobuntu-CD installiert werden, damit es auch wirklich nur freie Software ist. Nachinstallationen mit Communtu möglich, sinnvollerweise sollten dann im Nutzerprofil "freie Software" angewählt werden.

 <%= link_to 'Nexenta OS', 'http://de.wikipedia.org/wiki/GNU-Varianten#Nexenta_OS'%> - ersetzt den Linux-Kern durch OpenSolaris. Stellt nur einen minimalen Kern bereit. Die Installation weiterer Pakete bleibt dem Benutzer überlassen; hierfür kann Communtu genutzt werden.

Derivate, die wir uns noch genauer angucken müssen

 <%= link_to 'Impi Linux', 'http://www.impi.org.za/' %> - eine afrikanische Ubuntu-Variante, die allerdings offenbar nicht übers Internet erhältlich ist.

 <%= link_to 'linex', 'http://de.wikipedia.org/wiki/LinEx'%> - öffentliche Distribution der spanischen Region Extremadura.

 <%= link_to 'Ubuntulite', 'http://ubuntulite.tuxfamily.org/'%> für ältere PCs.

 <%= link_to 'Ubuntu mobile', 'http://www.ubuntu.com/products/mobile'%> - für mobile Internetgeräte.

 <%= link_to 'Ubuntu ultimate', 'http://ultimateedition.info/'%> - Ubuntu mit vielen Desktop-Desgins und Programmen.

 <%= link_to 'gOS', 'http://www.thinkgos.com/'%> - spezialisiert auf Webdienste.

 <%= link_to 'ZevenOS', 'http://www.zevenos.com/'%> - orient an BeOS, setzt auf Schnelligkeit, Kompatibilität mit alten Rechnern und einfache Bedienung. CPU mit mindestens 200 MHZ
128 MB RAM (zum Betrieb, zur Installation werden 192 MB RAM benötigt);
2 GB freier Festplattenplatz (Empfohlen: 4 GB oder mehr);
16 MB Grafikkarte (Empfohlen: Intel GMA 9xx).

 <%= link_to 'OpenGEU', 'http://opengeu.intilinux.com'%> - basiert auf E17. 2D-Effekte auch ohne schnelle Grafikkarte.

 <%= link_to 'Fluxbuntu', 'http://wiki.fluxbuntu.org'%> - minimalistische schnelle Ubuntu-Version für ältere PCs.

 <%= link_to 'Ubuntu Server', 'http://wiki.ubuntuusers.de/Server_Installation'%> - Server-Version von Ubuntu, ohne grafische Oberfläche.

 <%= link_to 'Ubuntu JeOS', 'http://wiki.ubuntuusers.de/JeOS'%> - minimale Server-Version, vor allem für Virtualisierung geeignet..

 <%= link_to 'Elbuntu', 'http://e17blog.tuxfamily.org/'%> - Ubuntu mit Enlightenment als Desktopumgebung.

 <%= link_to 'nUbuntu', 'http://www.nubuntu.org/'%>- mit Fluxbox und verschiedenen Netzwerk-Sicherheitswerkzeugen .


ActionItem79: translating the initial "More ..." label

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

<%= error_messages_for :page %>

<% form_for :page, @page do |f| %>

    <%= _("Title") %>
    <%= f.text_field :title, :tabindex => 1, :maxlength => 255, :size => 30 %> <%= link_to_function _("More..."), "ComatoseEditForm.toggle_extra_fields(this, '%s', '%s')" % [_('More...'), _('Less...')], :id => 'more-options' %>

    <%= _('Slug') %>
    <%= f.text_field :slug, :tabindex=>6, :maxlength=>255, :size=>50, :disabled=>@root_pages.include?(@page) %>

    <% if show_field? 'keywords' %>
      <%= _('Keywords') %>
      <%= f.text_field :keywords, :tabindex=>7, :maxlength=>1000, :size=>50 %>
    <% end %>

    <% if show_field? 'parent' %>
      <%= _('Parent') %>
      <% if mode != :new and @root_pages.include? @page %>
        <select id="page_parent" disabled="true"><option><%= _('%s is a root page') % @page.title %></option></select>
      <% else %>
        <select id="page_parent" name="page[parent_id]" tabindex="8"><%= tree_select_box @root_pages, @page.parent_id, @page.id %></select>
      <% end %>
    <% end %>

    <%= _('Content') %>
    <%= text_editor('page', 'body', 'filter_type', :tabindex => 2) %>

    <% if show_field? 'filter' %>
      <%= _("Filter") %>
      <%= select_filter_type('page', 'filter_type', :tabindex => 3 ) %>
      <%= _('Converts plain text into HTML') %>
    <% end %>

    <% if show_field? 'created_on' %>
      <%= _('Created') %>
      <%= f.datetime_select :created_on %>
    <% end %>

<% unless @page.updated_on.nil? %>

      <%= link_to(n_("One revision", "%d revisions", @page.versions.length) % @page.versions.length, :action=>'versions', :id=>@page) if @page.versions.length > 0 %>

<% end %>

<%= image_tag 'comatose/spinner.gif', :id=>'spinner', :align=>'absmiddle', :style=>'display:none;' %>
  <%= button_to_function('Preview', "ComatoseEditForm.preview_content('#{url_for :controller=>controller.controller_name, :action=>'preview', :id=>@page}', '%s')" % _('Loading preview ...'), :tabindex=>3, :id=>'preview-btn' ) if show_field? 'preview' %>
  <%= submit_tag ((mode == :edit) ? _('Save Changes') : _('Create Page')), :tabindex=>4 %>
  <% if @page.versions.length > 0 %>
    <%= link_to _("Revert"), :action=>'versions', :id=>@page %>
  <% end %>
  or
  <a href="<%= url_for :controller=>controller.controller_name, :action=>'index' %>" onlick="ComatoseEditForm.cancel(this.href, '<%= _('Changes detected. You will lose all the updates you have made if you proceed...') %>'); return false;" tabindex="5"><%= _("Cancel") %>

<% end %>

  <fieldset>
    <legend><%= _('Page Preview') %></legend>

<%= _('Loading Preview...') %>

  </fieldset>

    <%= _("Close Preview") %><% _("or") %><%= _('Back to top') %>

<%= javascript_tag "ComatoseEditForm.init('#{mode.to_s}');" %>

<%= error_messages_for :page %>

<% form_for :page, @page do |f| %>

    <%= _("Title") %>
    <%= f.text_field :title, :tabindex => 1, :maxlength => 255, :size => 30 %> <%= link_to_function "More...", "ComatoseEditForm.toggle_extra_fields(this, '%s', '%s')" % [_('More...'), _('Less...')], :id => 'more-options' %>

    <%= _('Slug') %>
    <%= f.text_field :slug, :tabindex=>6, :maxlength=>255, :size=>50, :disabled=>@root_pages.include?(@page) %>

    <% if show_field? 'keywords' %>
      <%= _('Keywords') %>
      <%= f.text_field :keywords, :tabindex=>7, :maxlength=>1000, :size=>50 %>
    <% end %>

    <% if show_field? 'parent' %>
      <%= _('Parent') %>
      <% if mode != :new and @root_pages.include? @page %>
        <select id="page_parent" disabled="true"><option><%= _('%s is a root page') % @page.title %></option></select>
      <% else %>
        <select id="page_parent" name="page[parent_id]" tabindex="8"><%= tree_select_box @root_pages, @page.parent_id, @page.id %></select>
      <% end %>
    <% end %>

    <%= _('Content') %>
    <%= text_editor('page', 'body', 'filter_type', :tabindex => 2) %>

    <% if show_field? 'filter' %>
      <%= _("Filter") %>
      <%= select_filter_type('page', 'filter_type', :tabindex => 3 ) %>
      <%= _('Converts plain text into HTML') %>
    <% end %>

    <% if show_field? 'created_on' %>
      <%= _('Created') %>
      <%= f.datetime_select :created_on %>
    <% end %>

<% unless @page.updated_on.nil? %>

      <%= link_to(n_("One revision", "%d revisions", @page.versions.length) % @page.versions.length, :action=>'versions', :id=>@page) if @page.versions.length > 0 %>

<% end %>

<%= image_tag 'comatose/spinner.gif', :id=>'spinner', :align=>'absmiddle', :style=>'display:none;' %>
  <%= button_to_function('Preview', "ComatoseEditForm.preview_content('#{url_for :controller=>controller.controller_name, :action=>'preview', :id=>@page}', '%s')" % _('Loading preview ...'), :tabindex=>3, :id=>'preview-btn' ) if show_field? 'preview' %>
  <%= submit_tag ((mode == :edit) ? _('Save Changes') : _('Create Page')), :tabindex=>4 %>
  <% if @page.versions.length > 0 %>
    <%= link_to _("Revert"), :action=>'versions', :id=>@page %>
  <% end %>
  or
  <a href="<%= url_for :controller=>controller.controller_name, :action=>'index' %>" onlick="ComatoseEditForm.cancel(this.href, '<%= _('Changes detected. You will lose all the updates you have made if you proceed...') %>'); return false;" tabindex="5"><%= _("Cancel") %>

<% end %>

  <fieldset>
    <legend><%= _('Page Preview') %></legend>

<%= _('Loading Preview...') %>

  </fieldset>

    <%= _("Close Preview") %><% _("or") %><%= _('Back to top') %>

<%= javascript_tag "ComatoseEditForm.init('#{mode.to_s}');" %>


minor refactoring in view

minor refactoring in view

Browse

<% if @repositories %>

Select the repository you would like to browse:

  <% @repositories.each do |r| %>

<%= link_to(h(r.name), :action => 'browse', :r => r) %>

  <% end %>

<% else %>

Browsing <%= path_with_browse_links @repository, @relative_path %>

    <% if @relative_path %>

<%= link_to '^ go to parent', :r => @repository, :p => parent_dir(@relative_path) %>

    <% end %>

    <% files_in(@repository, @relative_path).each do |f| %>
      <li class="<%= cycle('odd', 'even') %>"><%= directory_entry @repository, @relative_path, f %>

    <% end %>

<% end %>

<% if @repositories %>

Browse

Select the repository you would like to browse:

  <% @repositories.each do |r| %>

<%= link_to(h(r.name), :action => 'browse', :r => r) %>

  <% end %>

<% else %>

Browse

Browsing <%= path_with_browse_links @repository, @relative_path %>

    <% if @relative_path %>

<%= link_to '^ go to parent', :r => @repository, :p => parent_dir(@relative_path) %>

    <% end %>

    <% files_in(@repository, @relative_path).each do |f| %>
      <li class="<%= cycle('odd', 'even') %>"><%= directory_entry @repository, @relative_path, f %>

    <% end %>

<% end %>


Make sure the diary link in the LHS navigation goes to the global diary.


explicit linking to request listing URLs so we can translate them

Show only...

<% for view, description, target in [
    ['successful', "Successful responses", request_list_successful_url(:view => 'successful')],
    ['recent', "Recently sent requests", request_list_recent_url(:view => 'recent')]
] %>

    <%= link_to_unless (@view == view), description, target %>

<% end %>

<%=@title%>

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

<% view_cache :ttl => 5.minutes, :tag => [@view, @page] do %>
    <% if @list_results.empty? %>

No requests of this sort yet.

    <% else %>
        <% for result in @list_results%>
            <% if result.class.to_s == 'InfoRequestEvent' %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result, :info_request => result.info_request } %>
            <% else %>

Unexpected search result type <%=result.class.to_s%>

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

    <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @matches_estimated) %>
<% end %>

<% if @track_thing %>

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

Show only...

<% for view, description in [
    ['successful', "Successful responses"],
    ['recent', "Recently sent requests"]
] %>

    <%= link_to_unless (@view == view), description, request_list_url(:view => view) %>

<% end %>

<%=@title%>

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

<% view_cache :ttl => 5.minutes, :tag => [@view, @page] do %>
    <% if @list_results.empty? %>

No requests of this sort yet.

    <% else %>
        <% for result in @list_results%>
            <% if result.class.to_s == 'InfoRequestEvent' %>
                <%= render :partial => 'request/request_listing_via_event', :locals => { :event => result, :info_request => result.info_request } %>
            <% else %>

Unexpected search result type <%=result.class.to_s%>

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

    <%= will_paginate WillPaginate::Collection.new(@page, @per_page, @matches_estimated) %>
<% end %>

<% if @track_thing %>

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