Rails/OutputSafety:
Enabled: false
Style/StringLiterals:
- Enabled: false # TODO
- Style/BracesAroundHashParameters:
- Enabled: false # TODO
+ Exclude: # TODO
+ - app/views/browse/*
+ - app/views/changesets/*
+ - app/views/changeset_comments/*
+ - app/views/diary_entries/*
+ - app/views/geocoder/*
+ - app/views/issues/*
+ - app/views/layouts/*
+ - app/views/messages/*
+ - app/views/notes/*
+ - app/views/notifier/*
+ - app/views/oauth/*
+ - app/views/oauth_clients/*
+ - app/views/redactions/*
+ - app/views/reports/*
+ - app/views/traces/*
+ - app/views/user_blocks/*
+ - app/views/users/*
Rails/DynamicFindBy:
Enabled: false # TODO
Style/AndOr:
Enabled: false # TODO
Style/WordArray:
Enabled: false # TODO
- Style/MethodCallWithoutArgsParentheses:
- Enabled: false # TODO
Layout/LeadingBlankLines:
Enabled: false # TODO
Style/NestedParenthesizedCalls:
Enabled: false # TODO
Rails/LinkToBlank:
Enabled: false # TODO
- Style/HashSyntax:
- Enabled: false # TODO
Style/SymbolProc:
Enabled: false # TODO
Style/Not:
layout "site"
require "xml/libxml"
- skip_before_action :verify_authenticity_token, :except => [:index]
before_action :authorize_web
before_action :set_locale
before_action -> { check_database_readable(true) }, :only => [:index, :feed]
<% if @type == "node" and common_details.visible? %>
<div class="details geo">
<%= t 'browse.location' %>
- <%= link_to(content_tag(:span, number_with_delimiter(common_details.lat), :class => "latitude") + ", " + content_tag(:span, number_with_delimiter(common_details.lon), :class => "longitude"), { :controller => 'site', :action => 'index', :anchor => "map=18/#{common_details.lat}/#{common_details.lon}" }) %>
+ <%= link_to(content_tag(:span, number_with_delimiter(common_details.lat), :class => "latitude") + ", " + content_tag(:span, number_with_delimiter(common_details.lon), :class => "longitude"), :controller => 'site', :action => 'index', :anchor => "map=18/#{common_details.lat}/#{common_details.lon}") %>
</div>
<% end %>
<h4><%= t 'browse.part_of' %></h4>
<ul>
<% node.ways.uniq.each do |way| %>
- <li><%= link_to printable_name(way), { :action => "way", :id => way.id.to_s }, :class => link_class('way', way), :title => link_title(way) %></li>
+ <li><%= link_to printable_name(way), { :action => "way", :id => way.id.to_s }, { :class => link_class('way', way), :title => link_title(way) } %></li>
<% end %>
<%= render :partial => "containing_relation", :collection => node.containing_relation_members.uniq %>
</ul>
<%
member_class = link_class(relation_member.member_type.downcase, relation_member.member)
- linked_name = link_to printable_name(relation_member.member), { :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s }, :title => link_title(relation_member.member), :rel => link_follow(relation_member.member)
+ linked_name = link_to printable_name(relation_member.member), { :action => relation_member.member_type.downcase, :id => relation_member.member_id.to_s }, { :title => link_title(relation_member.member), :rel => link_follow(relation_member.member) }
type_str = t '.type.' + relation_member.member_type.downcase
%>
<li class="<%= member_class %>">
<ul>
<% way.way_nodes.each do |wn| %>
<li>
- <%= link_to printable_name(wn.node), { :action => "node", :id => wn.node_id.to_s }, :class => link_class('node', wn.node), :title => link_title(wn.node), :rel => link_follow(wn.node) %>
+ <%= link_to printable_name(wn.node), { :action => "node", :id => wn.node_id.to_s }, { :class => link_class('node', wn.node), :title => link_title(wn.node), :rel => link_follow(wn.node) } %>
<% related_ways = wn.node.ways.reject { |w| w.id == wn.way_id } %>
<% if related_ways.size > 0 then %>
- (<%= raw t '.also_part_of', :count => related_ways.size, :related_ways => related_ways.map { |w| link_to(printable_name(w), { :action => "way", :id => w.id.to_s }, :class => link_class('way', w), :title => link_title(w)) }.to_sentence %>)
+ (<%= raw t '.also_part_of', :count => related_ways.size, :related_ways => related_ways.map { |w| link_to(printable_name(w), { :action => "way", :id => w.id.to_s }, { :class => link_class('way', w), :title => link_title(w) }) }.to_sentence %>)
<% end %>
</li>
<% end %>
</h4>
<ul>
<% @ways.each do |way| %>
- <li><%= link_to printable_name(way, true), { :action => "way", :id => way.way_id.to_s }, :class => link_class('way', way), :title => link_title(way) %></li>
+ <li><%= link_to printable_name(way, true), { :action => "way", :id => way.way_id.to_s }, { :class => link_class('way', way), :title => link_title(way) } %></li>
<% end %>
</ul>
<% end %>
</h4>
<ul>
<% @relations.each do |relation| %>
- <li><%= link_to printable_name(relation, true), { :action => "relation", :id => relation.relation_id.to_s }, :class => link_class('relation', relation), :title => link_title(relation) %></li>
+ <li><%= link_to printable_name(relation, true), { :action => "relation", :id => relation.relation_id.to_s }, { :class => link_class('relation', relation), :title => link_title(relation) } %></li>
<% end %>
</ul>
<% end %>
</h4>
<ul>
<% @nodes.each do |node| %>
- <li><%= link_to printable_name(node, true), { :action => "node", :id => node.node_id.to_s }, :class => link_class('node', node), :title => link_title(node), :rel => link_follow(node) %></li>
+ <li><%= link_to printable_name(node, true), { :action => "node", :id => node.node_id.to_s }, { :class => link_class('node', node), :title => link_title(node), :rel => link_follow(node) } %></li>
<% end %>
</ul>
<% end %>
</table>
<div class='secondary-actions clearfix'>
- <span><%= link_to t('.older_comments'), { :page => @comment_pages.current.next } if @comment_pages.current.next %>
- <%= link_to t('.newer_comments'), { :page => @comment_pages.current.previous } if @comment_pages.current.previous %></span>
+ <span><%= link_to t('.older_comments'), :page => @comment_pages.current.next if @comment_pages.current.next %>
+ <%= link_to t('.newer_comments'), :page => @comment_pages.current.previous if @comment_pages.current.previous %></span>
</div>
<% if @user %>
<% if @user == current_user %>
<div>
- <li><%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t('.new'), diary_new_path, { :title => t('.new_title') } %></li>
+ <li><%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t('.new'), diary_new_path, :title => t('.new_title') %></li>
</div>
<% end %>
<% else %>
<% if current_user %>
<div>
- <li><%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t('.new'), diary_new_path, { :title => t('.new_title') } %></li>
+ <li><%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t('.new'), diary_new_path, :title => t('.new_title') %></li>
</div>
<% end %>
<% end %>
</div>
<br/>
<div class="comment">
- <%= form_for @new_comment, url: issue_comments_path(@issue) do |f| %>
+ <%= form_for @new_comment, :url => issue_comments_path(@issue) do |f| %>
<%= richtext_area :issue_comment, :body, :cols => 10, :rows => 8, :required => true %>
<%= label_tag :reassign, t('.reassign_param') %> <%= check_box_tag :reassign, true %>
<br/>
<p><%= t ".search_guidance" %></p>
<%= select_tag :status, options_for_select(Issue.aasm.states.map(&:name).map { |state| [t(".states.#{state}"), state] }, params[:status]), :include_blank => t(".select_status"), :data => { :behavior => 'category_dropdown' } %>
<%= select_tag :issue_type, options_for_select(@issue_types, params[:issue_type]), :include_blank => t(".select_type"), :data => { :behavior => 'category_dropdown' } %>
-<%= text_field_tag :search_by_user, params[:search_by_user], placeholder: t(".reported_user") %>
+<%= text_field_tag :search_by_user, params[:search_by_user], :placeholder => t(".reported_user") %>
<%= select_tag :last_updated_by, options_for_select(@users.all.collect { |f| [f.display_name, f.id] } << [t(".not_updated"), "nil"], params[:last_updated_by]), :include_blank => t(".select_last_updated_by"), :data => { :behavior => 'category_dropdown' } %>
<%= submit_tag t(".search"), :name => nil %>
<% end %>
<% if @read_reports.present? %>
<div class="read-reports">
<h4><%= t ".read_reports" %></h4>
- <%= render 'reports', reports: @read_reports %>
+ <%= render 'reports', :reports => @read_reports %>
</div>
<% end %>
<% if @unread_reports.any? %>
<div class="unread-reports">
<h4><%= t ".new_reports" %></h4>
- <%= render 'reports', reports: @unread_reports %>
+ <%= render 'reports', :reports => @unread_reports %>
</div>
<% end %>
<br/>
</div>
<h3><%= t ".comments_on_this_issue" %></h3>
-<%= render 'comments', comments: @comments %>
+<%= render 'comments', :comments => @comments %>
<%= favicon_link_tag "favicon-96x96.png", :rel => "icon", :sizes => "96x96", :type => "image/png" %>
<%= favicon_link_tag "android-chrome-192x192.png", :rel => "icon", :sizes => "192x192", :type => "image/png" %>
<%= favicon_link_tag "favicon-16x16.png", :rel => "icon", :sizes => "16x16", :type => "image/png" %>
- <%= tag("link", { :rel => "mask-icon", :href => asset_path("tab-icon.svg"), :color => "#7ebc6f" }) %>
- <%= tag("link", { :rel => "manifest", :href => asset_path("manifest.json") }) %>
- <%= tag("meta", { :name => "msapplication-config", :content => asset_path("browserconfig.xml") }) %>
- <%= tag("meta", { :name => "msapplication-TileColor", :content => "#00a300" }) %>
- <%= tag("meta", { :name => "msapplication-TileImage", :content => image_path("mstile-144x144.png") }) %>
- <%= tag("meta", { :name => "theme-color", :content => "#ffffff" }) %>
+ <%= tag("link", :rel => "mask-icon", :href => asset_path("tab-icon.svg"), :color => "#7ebc6f") %>
+ <%= tag("link", :rel => "manifest", :href => asset_path("manifest.json")) %>
+ <%= tag("meta", :name => "msapplication-config", :content => asset_path("browserconfig.xml")) %>
+ <%= tag("meta", :name => "msapplication-TileColor", :content => "#00a300") %>
+ <%= tag("meta", :name => "msapplication-TileImage", :content => image_path("mstile-144x144.png")) %>
+ <%= tag("meta", :name => "theme-color", :content => "#ffffff") %>
<%= canonical_tag %>
<% if Settings.key?(:publisher_url) -%>
- <%= tag("link", { :rel => "publisher", :href => Settings.publisher_url }) %>
+ <%= tag("link", :rel => "publisher", :href => Settings.publisher_url) %>
<% end -%>
- <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => asset_path("osm.xml") }) %>
- <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %>
+ <%= tag("link", :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => asset_path("osm.xml")) %>
+ <%= tag("meta", :name => "description", :content => "OpenStreetMap is the free wiki world map.") %>
<%= opengraph_tags(@title) %>
<% if flash[:piwik_goal] -%>
<%= tag("meta", :name => "piwik-goal", :content => flash[:piwik_goal]) %>
<div class="search_forms">
<form method="GET" action="<%= search_path %>" class="search_form">
- <%= link_to image_tag('directions.png', :class => 'button'), directions_path, { :class => "button switch_link", :title => t('site.search.get_directions_title') } %>
- <%= submit_tag t('site.search.submit_text'), :class => 'float', :data => { disable_with: false } %>
+ <%= link_to image_tag('directions.png', :class => 'button'), directions_path, :class => "button switch_link", :title => t('site.search.get_directions_title') %>
+ <%= submit_tag t('site.search.submit_text'), :class => 'float', :data => { :disable_with => false } %>
<div class='query_wrapper'>
<%= text_field_tag "query", params[:query], :placeholder => t("site.search.search"), :autofocus => autofocus, :class => 'overflow' %>
- <%= link_to t('site.search.where_am_i'), '#', { :class => "describe_location", :title => t('site.search.where_am_i_title') } %>
+ <%= link_to t('site.search.where_am_i'), '#', :class => "describe_location", :title => t('site.search.where_am_i_title') %>
</div>
</form>
</div>
<div class="line">
<select class="routing_engines" name="routing_engines"></select>
- <%= submit_tag t('site.search.submit_text'), :class => "routing_go", :data => { disable_with: false } %>
+ <%= submit_tag t('site.search.submit_text'), :class => "routing_go", :data => { :disable_with => false } %>
</div>
<div class="line">
<a class="reverse_directions"><%= t('site.search.reverse_directions_text') %></a>
<tr>
<td style="width: 30px; padding: 10px 10px 10px 0px">
<a href="<%= @root_url %>" target="_blank">
- <%= image_tag attachments["logo.png"].url, alt: "OpenStreetMap", title: "OpenStreetMap", height: "30", width: "30", border: "0" %>
+ <%= image_tag attachments["logo.png"].url, :alt => "OpenStreetMap", :title => "OpenStreetMap", :height => "30", :width => "30", :border => "0" %>
</a>
</td>
<%# the "width: 100%" here looks wrong, but I couldn't find a better way of making Outlook give this cell full width %>
<td class="inbox-sender"><%= link_to h(message_summary.sender.display_name), user_path(message_summary.sender) %></td>
<td class="inbox-subject"><%= link_to h(message_summary.title), message_path(message_summary) %></td>
<td class="inbox-sent"><%= l message_summary.sent_on, :format => :friendly %></td>
- <td class="inbox-mark-unread"><%= button_to t('.unread_button'), message_mark_path(message_summary, :mark => 'unread'), { :remote => true } %></td>
- <td class="inbox-mark-read"><%= button_to t('.read_button'), message_mark_path(message_summary, :mark => 'read'), { :remote => true } %></td>
- <td class="inbox-destroy"><%= button_to t('.destroy_button'), message_path(message_summary, :referer => request.fullpath), { :method => :delete, :remote => true } %></td>
+ <td class="inbox-mark-unread"><%= button_to t('.unread_button'), message_mark_path(message_summary, :mark => 'unread'), :remote => true %></td>
+ <td class="inbox-mark-read"><%= button_to t('.read_button'), message_mark_path(message_summary, :mark => 'read'), :remote => true %></td>
+ <td class="inbox-destroy"><%= button_to t('.destroy_button'), message_path(message_summary, :referer => request.fullpath), :method => :delete, :remote => true %></td>
</tr>
<td class="inbox-sender"><%= link_to h(sent_message_summary.recipient.display_name), user_path(sent_message_summary.recipient) %></td>
<td class="inbox-subject"><%= link_to h(sent_message_summary.title), message_path(sent_message_summary) %></td>
<td class="inbox-sent"><%= l sent_message_summary.sent_on, :format => :friendly %></td>
- <td class="inbox-destroy"><%= button_to t('.destroy_button'), message_path(sent_message_summary, :referer => request.fullpath), { :method => :delete, :remote => true } %></td>
+ <td class="inbox-destroy"><%= button_to t('.destroy_button'), message_path(sent_message_summary, :referer => request.fullpath), :method => :delete, :remote => true %></td>
</tr>
<p>
<% if @page > 1 %>
-<%= link_to t('changesets.changeset_paging_nav.previous'), @params.merge({ :page => @page - 1 }) %>
+<%= link_to t('changesets.changeset_paging_nav.previous'), @params.merge(:page => @page - 1) %>
<% else %>
<%= t('changesets.changeset_paging_nav.previous') %>
<% end %>
<% if @notes.size < @page_size %>
<%= t('changesets.changeset_paging_nav.next') %>
<% else %>
-<%= link_to t('changesets.changeset_paging_nav.next'), @params.merge({ :page => @page + 1 }) %>
+<%= link_to t('changesets.changeset_paging_nav.next'), @params.merge(:page => @page + 1) %>
<% end %>
</p>
<%= link_to(
image_tag(
attachments["avatar.png"].url,
- alt: @author,
- title: @author,
- width: 50,
- height: 50,
- border: 0
+ :alt => @author,
+ :title => @author,
+ :width => 50,
+ :height => 50,
+ :border => 0
),
user_url(@author),
:target => "_blank"
</div>
<div class='form-row'>
- <%= text_area :report, :details, :cols => 20, :rows => 5, placeholder: t('.details') %>
+ <%= text_area :report, :details, :cols => 20, :rows => 5, :placeholder => t('.details') %>
</div>
<div class='buttons'>
<div class='section' id='partners'>
<h2><div class='icon partners'></div><%= t ".partners_title" %></h2>
- <p><%= t 'layouts.hosting_partners_html',
- :ucl => link_to(t('layouts.partners_ucl'), "https://www.ucl.ac.uk"),
- :bytemark => link_to(t('layouts.partners_bytemark'), "https://www.bytemark.co.uk"),
- :partners => link_to(t('layouts.partners_partners'), "https://hardware.openstreetmap.org/thanks/") %>
+ <p><%= t "layouts.hosting_partners_html",
+ :ucl => link_to(t("layouts.partners_ucl"), "https://www.ucl.ac.uk"),
+ :bytemark => link_to(t("layouts.partners_bytemark"), "https://www.bytemark.co.uk"),
+ :partners => link_to(t("layouts.partners_partners"), "https://hardware.openstreetmap.org/thanks/") %>
</p>
</div>
</div>
<% content_for :heading do %>
-<% if @locale == 'en' %>
+<% if @locale == "en" %>
<!-- Maybe ease foreigners back to their native page -->
- <% if t('.legal_babble', :locale => I18n.locale) != t('.legal_babble', :locale => :en) %>
+ <% if t(".legal_babble", :locale => I18n.locale) != t(".legal_babble", :locale => :en) %>
<%= tag.h1 :lang => @locale, :dir => t("html.dir", :locale => @locale) do %>
- <h1><%= t '.native.title' %></h1>
+ <h1><%= t ".native.title" %></h1>
<p>
- <%= raw t '.native.text',
- :native_link => link_to(t('.native.native_link'),
- :controller => 'site',
- :action => 'copyright',
+ <%= raw t ".native.text",
+ :native_link => link_to(t(".native.native_link"),
+ :controller => "site",
+ :action => "copyright",
:copyright_locale => nil),
- :mapping_link => link_to(t('.native.mapping_link'),
- :controller => 'site',
- :action => 'index') %>
+ :mapping_link => link_to(t(".native.mapping_link"),
+ :controller => "site",
+ :action => "index") %>
</p>
<% end %>
<hr />
<% else %>
<!-- Maybe note that this page has been translated -->
<%= tag.div :lang => "en", :dir => t("html.dir", :locale => "en") do %>
- <% if t('.legal_babble', :locale => @locale) != t('.legal_babble', :locale => :en) %>
- <h1><%= t '.foreign.title' %></h1>
+ <% if t(".legal_babble", :locale => @locale) != t(".legal_babble", :locale => :en) %>
+ <h1><%= t ".foreign.title" %></h1>
<p>
- <%= raw t '.foreign.text',
- :english_original_link => link_to(t('.foreign.english_link'),
- :controller => 'site',
- :action => 'copyright',
- :copyright_locale => 'en') %>
+ <%= raw t ".foreign.text",
+ :english_original_link => link_to(t(".foreign.english_link"),
+ :controller => "site",
+ :action => "copyright",
+ :copyright_locale => "en") %>
</p>
<% end %>
<hr />
<p><%= t ".legal_babble.credit_2_html", :locale => @locale %></p>
<p><%= t ".legal_babble.credit_3_html", :locale => @locale %></p>
<p><%= image_tag("attribution_example.png",
- :alt => t('.legal_babble.attribution_example.alt'),
+ :alt => t(".legal_babble.attribution_example.alt"),
:border => 0,
- :title => t('.legal_babble.attribution_example.title')) %>
+ :title => t(".legal_babble.attribution_example.title")) %>
<h3><%= t ".legal_babble.more_title_html", :locale => @locale %></h3>
<p><%= t ".legal_babble.more_1_html", :locale => @locale %></p>
<% content_for :content do %>
<% if Settings.status == "database_offline" or Settings.status == "api_offline" %>
- <p><%= t 'layouts.osm_offline' %></p>
+ <p><%= t "layouts.osm_offline" %></p>
<% elsif Settings.status == "database_readonly" or Settings.status == "api_readonly" %>
- <p><%= t 'layouts.osm_read_only' %></p>
+ <p><%= t "layouts.osm_read_only" %></p>
<% elsif !current_user.data_public? %>
- <p><%= t '.not_public' %></p>
- <p><%= raw t '.not_public_description', :user_page => (link_to t('.user_page_link'), { :controller => 'user', :action => 'account', :display_name => current_user.display_name, :anchor => 'public' }) %></p>
- <p><%= raw t 'site.edit.anon_edits', :link => link_to(t('.anon_edits_link_text'), t('.anon_edits_link')) %></p>
+ <p><%= t ".not_public" %></p>
+ <p><%= raw t ".not_public_description", :user_page => (link_to t(".user_page_link"), :controller => "user", :action => "account", :display_name => current_user.display_name, :anchor => "public") %></p>
+ <p><%= raw t "site.edit.anon_edits", :link => link_to(t(".anon_edits_link_text"), t(".anon_edits_link")) %></p>
<% else %>
<%= render :partial => preferred_editor %>
<% end %>
-<% set_title(t('.title')) %>
+<% set_title(t(".title")) %>
<h2>
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
- <%= t '.title' %>
+ <%= t ".title" %>
</h2>
-<%= form_tag({ :controller => "export", :action => "finish" }, :class => "export_form") do %>
- <%= hidden_field_tag 'format', 'osm' %>
+<%= form_tag({ :controller => "export", :action => "finish" }, { :class => "export_form" }) do %>
+ <%= hidden_field_tag "format", "osm" %>
<div class='export_area_inputs'>
<div class='export_boxy'>
- <%= text_field_tag('maxlat', nil, :size => 10, :class => "export_bound") %>
+ <%= text_field_tag("maxlat", nil, :size => 10, :class => "export_bound") %>
<br/>
- <%= text_field_tag('minlon', nil, :size => 10, :class => "export_bound") %>
- <%= text_field_tag('maxlon', nil, :size => 10, :class => "export_bound") %>
+ <%= text_field_tag("minlon", nil, :size => 10, :class => "export_bound") %>
+ <%= text_field_tag("maxlon", nil, :size => 10, :class => "export_bound") %>
<br/><br/>
- <%= text_field_tag('minlat', nil, :size => 10, :class => "export_bound") %>
+ <%= text_field_tag("minlat", nil, :size => 10, :class => "export_bound") %>
</div>
- <a id='drag_box' href="#"><%= t '.manually_select' %></a>
+ <a id='drag_box' href="#"><%= t ".manually_select" %></a>
</div>
- <h4><%= t '.licence' %></h4>
- <p><%= raw t '.export_details' %></p>
+ <h4><%= t ".licence" %></h4>
+ <p><%= raw t ".export_details" %></p>
<div id="export_osm_too_large">
<p class="warning">
- <%= t '.too_large.body' %>
+ <%= t ".too_large.body" %>
</p>
</div>
<div id="export_commit">
<div class="export_button">
- <%= submit_tag t('.export_button') %>
+ <%= submit_tag t(".export_button") %>
</div>
- <p><%= t '.too_large.advice' %></p>
+ <p><%= t ".too_large.advice" %></p>
</div>
<dl class="inner12">
- <dt><a id="export_overpass" href="https://overpass-api.de/api/map?bbox="><%= t '.too_large.overpass.title' %></a></dt>
- <dd><%= t '.too_large.overpass.description' %></dd>
+ <dt><a id="export_overpass" href="https://overpass-api.de/api/map?bbox="><%= t ".too_large.overpass.title" %></a></dt>
+ <dd><%= t ".too_large.overpass.description" %></dd>
- <dt><a href="https://planet.openstreetmap.org/"><%= t '.too_large.planet.title' %></a></dt>
- <dd><%= t '.too_large.planet.description' %></dd>
+ <dt><a href="https://planet.openstreetmap.org/"><%= t ".too_large.planet.title" %></a></dt>
+ <dd><%= t ".too_large.planet.description" %></dd>
- <dt><a href="https://download.geofabrik.de/"><%= t '.too_large.geofabrik.title' %></a></dt>
- <dd><%= t '.too_large.geofabrik.description' %></dd>
+ <dt><a href="https://download.geofabrik.de/"><%= t ".too_large.geofabrik.title" %></a></dt>
+ <dd><%= t ".too_large.geofabrik.description" %></dd>
- <dt><a href="https://wiki.openstreetmap.org/wiki/Download"><%= t '.too_large.other.title' %></a></dt>
- <dd><%= t '.too_large.other.description' %></dd>
+ <dt><a href="https://wiki.openstreetmap.org/wiki/Download"><%= t ".too_large.other.title" %></a></dt>
+ <dd><%= t ".too_large.other.description" %></dd>
</dl>
<% end %>
<h3><%= t ".how_to_help.join_the_community.title" %></h3>
<%= t ".how_to_help.join_the_community.explanation_html" %>
<div class='clearfix center'>
- <a class="button sign-up" href="<%= user_new_path %>"><%= t('layouts.start_mapping') %></a>
+ <a class="button sign-up" href="<%= user_new_path %>"><%= t("layouts.start_mapping") %></a>
</div>
</div>
<div class='col6 inner11'>
<p class='introduction'><%= t ".introduction" %></p>
-<% ['welcome', 'beginners_guide', 'help', 'mailing_lists', 'forums', 'irc', 'switch2osm', 'welcomemat', 'wiki'].each do |site| %>
+<% %w[welcome beginners_guide help mailing_lists forums irc switch2osm welcomemat wiki].each do |site| %>
<% unless site == 'welcome' && !current_user %>
<div class='<%= site %> help-item'>
<h3>
<html>
<head>
<meta charset='utf-8'>
- <%= stylesheet_link_tag 'id' %>
+ <%= stylesheet_link_tag "id" %>
<!--[if !IE || gte IE 9]><!-->
- <%= javascript_include_tag 'id' %>
+ <%= javascript_include_tag "id" %>
<!-- <![endif]-->
</head>
<body>
<%
- set_title()
+ set_title
content_for(:content_class) { "overlay-sidebar" }
%>
<table class="mapkey-table">
<% YAML.load_file(Rails.root.join("config", "key.yml")).each do |name,data| %>
<% data.each do |entry| %>
- <tr class="mapkey-table-entry" data-layer="<%= name %>" data-zoom-min="<%= entry['min_zoom'] %>" data-zoom-max="<%= entry['max_zoom'] %>">
+ <tr class="mapkey-table-entry" data-layer="<%= name %>" data-zoom-min="<%= entry["min_zoom"] %>" data-zoom-max="<%= entry["max_zoom"] %>">
<td class="mapkey-table-key">
<%= image_tag "key/#{name}/#{entry['image']}" %>
</td>
<% if Settings.status == "database_offline" %>
-<p><%= t 'layouts.osm_offline' %>
+<p><%= t "layouts.osm_offline" %>
</p>
<% else %>
-<p><%= t 'layouts.osm_read_only' %>
+<p><%= t "layouts.osm_read_only" %>
</p>
<% end %>
<% end %>
<% end %>
</td>
- <td class="<%= cl %>"><%= link_to trace.name, { :controller => 'traces', :action => 'show', :display_name => trace.user.display_name, :id => trace.id } %>
+ <td class="<%= cl %>"><%= link_to trace.name, :controller => 'traces', :action => 'show', :display_name => trace.user.display_name, :id => trace.id %>
<span class="trace_summary" title="<%= trace.timestamp %>"> ...
<% if trace.inserted %>
(<%= t '.count_points', :count => trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/, '\1,') %>)
<% if @traces.size > 1 %>
<% if @page > 1 %>
-<%= link_to t('.newer'), @params.merge({ :page => @page - 1 }) %>
+<%= link_to t('.newer'), @params.merge(:page => @page - 1) %>
<% else %>
<%= t('.newer') %>
<% end %>
<% if @traces.size < @page_size %>
<%= t('.older') %>
<% else %>
-<%= link_to t('.older'), @params.merge({ :page => @page + 1 }) %>
+<%= link_to t('.older'), @params.merge(:page => @page + 1) %>
<% end %>
<% end %>
</p>
<td><%= t '.tags' %></td>
<td>
<% unless @trace.tags.empty? %>
- <%= raw(@trace.tags.collect { |tag| link_to tag.tag, { :controller => 'traces', :action => 'index', :tag => tag.tag, :id => nil } }.join(", ")) %>
+ <%= raw(@trace.tags.collect { |tag| link_to tag.tag, :controller => 'traces', :action => 'index', :tag => tag.tag, :id => nil }.join(", ")) %>
<% else %>
<i><%= t '.none' %></i>
<% end %>
<% if current_user == @trace.user %>
<%= link_to t('.edit_trace'), edit_trace_path(@trace), :class => "button" %>
<% end %>
- <%= button_to t('.delete_trace'), { :controller => 'traces', :action => 'delete', :id => @trace.id }, :data => { :confirm => t('.confirm_delete') } %>
+ <%= button_to t('.delete_trace'), { :controller => 'traces', :action => 'delete', :id => @trace.id }, { :data => { :confirm => t('.confirm_delete') } } %>
</div>
<% end %>
<ul class='secondary-actions'>
<% if @user_blocks_pages.current_page.number > 1 -%>
- <li><%= link_to t('.previous'), @params.merge({ :page => @user_blocks_pages.current_page.number - 1 }) %></li>
+ <li><%= link_to t('.previous'), @params.merge(:page => @user_blocks_pages.current_page.number - 1) %></li>
<% else -%>
<li><%= t('.previous') %></li>
<% end -%>
<li><%= t('.showing_page', :page => @user_blocks_pages.current_page.number) %></li>
<% if @user_blocks_pages.current_page.number < @user_blocks_pages.page_count -%>
- <li><%= link_to t('.next'), @params.merge({ :page => @user_blocks_pages.current_page.number + 1 }) %></li>
+ <li><%= link_to t('.next'), @params.merge(:page => @user_blocks_pages.current_page.number + 1) %></li>
<% else -%>
<li><%= t('.next') %></li>
<% end -%>
<li><%= link_to t('.edit'), edit_user_block_path(@user_block) %></li>
<% end %>
<% if current_user and current_user.moderator? %>
- <li><%= link_to(t('.revoke'), { :controller => 'user_blocks', :action => 'revoke', :id => @user_block.id }) %></li>
+ <li><%= link_to(t('.revoke'), :controller => 'user_blocks', :action => 'revoke', :id => @user_block.id) %></li>
<% end %>
<% end %>
<li><%= link_to t('.back'), user_blocks_path %></li>
<fieldset>
<div class="form-row">
<label class="standard-label"><%= t 'users.new.password' %></label>
- <%= f.password_field :pass_crypt, { :value => '', :autocomplete => :off } %>
+ <%= f.password_field :pass_crypt, :value => '', :autocomplete => :off %>
</div>
<div class="form-row">
<label class="standard-label"><%= t 'users.new.confirm password' %></label>
- <%= f.password_field :pass_crypt_confirmation, { :value => '', :autocomplete => :off } %>
+ <%= f.password_field :pass_crypt_confirmation, :value => '', :autocomplete => :off %>
</div>
</fieldset>
<% end %>
- <%= form_tag(auth_path(:provider => "openid"), { :id => "openid_login_form" }) do %>
+ <%= form_tag(auth_path(:provider => "openid"), :id => "openid_login_form") do %>
<div id="loginForm" class="standard-form">
<fieldset class='form-divider'>
<div id='login_openid_url' class='form-row'>
<label for='openid_url' class="standard-label"><%= raw t '.openid', :logo => openid_logo %></label>
<%= hidden_field_tag("openid_referer", params[:referer]) if params[:referer] %>
- <%= text_field_tag("openid_url", "", { :tabindex => 3, :class => "openid_url" }) %>
+ <%= text_field_tag("openid_url", "", :tabindex => 3, :class => "openid_url") %>
<span class="minorNote">(<a href="<%= t 'users.account.openid.link' %>" target="_new"><%= t 'users.account.openid.link text' %></a>)</span>
</div>
<%= form_tag :action => 'lost_password' do %>
<div class="standard-form">
<label class="standard-label"><%= t '.email address' %></label>
- <%= text_field('user', 'email', { :tabindex => 1 }) %>
+ <%= text_field('user', 'email', :tabindex => 1) %>
<%= submit_tag t('.new password button'), :tabindex => 2 %>
</div>
<% end %>
<label for="email" class="standard-label">
<%= t '.email address' %>
</label>
- <%= f.email_field(:email, { :tabindex => 1 }) %>
+ <%= f.email_field(:email, :tabindex => 1) %>
<%= f.error_message_on(:email) %>
</div>
<div class="form-row">
<label for="email_confirmation" class="standard-label">
<%= t '.confirm email address' %>
</label>
- <%= f.email_field(:email_confirmation, { :tabindex => 2 }) %>
+ <%= f.email_field(:email_confirmation, :tabindex => 2) %>
<%= f.error_message_on(:email_confirmation) %>
</div>
<span class="form-help deemphasize"><%= raw(t '.not displayed publicly') %></span>
<label for="display_name" class="standard-label">
<%= t '.display name' %>
</label>
- <%= f.text_field(:display_name, { :tabindex => 3 }) %>
+ <%= f.text_field(:display_name, :tabindex => 3) %>
<%= f.error_message_on(:display_name) %>
</div>
<span class="form-help deemphasize"><%= t '.display name description' %></span>
<label for="openid_url" class="standard-label">
<%= raw t '.external auth' %>
</label>
- <%= f.select(:auth_provider, Auth::PROVIDERS, { :default => "", :tabindex => 4 }) %>
- <%= f.text_field(:auth_uid, { :tabindex => 5 }) %>
+ <%= f.select(:auth_provider, Auth::PROVIDERS, :default => "", :tabindex => 4) %>
+ <%= f.text_field(:auth_uid, :tabindex => 5) %>
<%= f.error_message_on(:auth_uid) %>
</div>
<span class="form-help deemphasize"><%= t '.auth no password' %></span>
<label for='user[pass_crypt]' class="standard-label">
<%= t '.password' %>
</label>
- <%= f.password_field(:pass_crypt, { :tabindex => 6 }) %>
+ <%= f.password_field(:pass_crypt, :tabindex => 6) %>
<%= f.error_message_on(:pass_crypt) %>
</div>
<div class="form-row">
<label class="standard-label">
<%= t '.confirm password' %>
</label>
- <%= f.password_field(:pass_crypt_confirmation, { :tabindex => 7 }) %>
+ <%= f.password_field(:pass_crypt_confirmation, :tabindex => 7) %>
<%= f.error_message_on(:pass_crypt_confirmation) %>
</div>
</fieldset>
<div class="standard-form">
<fieldset>
<label class="standard-label"><%= t '.password' %></label>
- <%= password_field(:user, :pass_crypt, { :value => '', :tabindex => 4 }) %>
+ <%= password_field(:user, :pass_crypt, :value => '', :tabindex => 4) %>
</fieldset>
<fieldset>
<label class="standard-label"><%= t '.confirm password' %></label>
- <%= password_field(:user, :pass_crypt_confirmation, { :value => '', :tabindex => 5 }) %>
+ <%= password_field(:user, :pass_crypt_confirmation, :value => '', :tabindex => 5) %>
</fieldset>
<%= submit_tag t('.reset'), :tabindex => 6 %>
</div>