Enabled: false
Rails/OutputSafety:
Enabled: false
- Style/StringLiterals:
- 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:
<h4>
<% if common_details.changeset.tags['comment'].present? %>
- <%= linkify(h(common_details.changeset.tags['comment'])) %>
+ <%= linkify(h(common_details.changeset.tags["comment"])) %>
<% else %>
- <%= t 'browse.no_comment' %>
+ <%= t "browse.no_comment" %>
<% end %>
</h4>
</div>
<div class="details">
- <%= t 'browse.version' %>
+ <%= t "browse.version" %>
#<%= h(common_details.version) %>
·
- <%= t 'browse.in_changeset' %>
+ <%= t "browse.in_changeset" %>
#<%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %>
</div>
<% 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}") %>
+ <%= 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}") %>
</div>
<% end %>
<li><%=
linked_name = link_to h(printable_name(containing_relation.relation)), :action => "relation", :id => containing_relation.relation.id.to_s
if containing_relation.member_role.blank?
- raw t '.entry', :relation_name => linked_name
+ raw t ".entry", :relation_name => linked_name
else
- raw t '.entry_role', :relation_name => linked_name, :relation_role => h(containing_relation.member_role)
+ raw t ".entry_role", :relation_name => linked_name, :relation_role => h(containing_relation.member_role)
end
%>
</li>
<% if node.redacted? %>
<div class='browse-section browse-redacted'>
- <%= t 'browse.redacted.message_html',
- :type => t('browse.redacted.type.node'),
+ <%= t "browse.redacted.message_html",
+ :type => t("browse.redacted.type.node"),
:version => node.version,
- :redaction_link => link_to(t('browse.redacted.redaction',
+ :redaction_link => link_to(t("browse.redacted.redaction",
:id => node.redaction.id), node.redaction) %>
</div>
<% else %>
<%= render :partial => "common_details", :object => node %>
<% unless node.ways.empty? and node.containing_relation_members.empty? %>
- <h4><%= t 'browse.part_of' %></h4>
+ <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>
<% if relation.redacted? %>
<div class='browse-section browse-redacted'>
- <%= t 'browse.redacted.message_html',
- :type => t('browse.redacted.type.relation'),
+ <%= t "browse.redacted.message_html",
+ :type => t("browse.redacted.type.relation"),
:version => relation.version,
- :redaction_link => link_to(t('browse.redacted.redaction',
+ :redaction_link => link_to(t("browse.redacted.redaction",
:id => relation.redaction.id), relation.redaction) %>
</div>
<% else %>
<%= render :partial => "common_details", :object => relation %>
<% unless relation.containing_relation_members.empty? %>
- <h4><%= t 'browse.part_of' %></h4>
+ <h4><%= t "browse.part_of" %></h4>
<ul><%= render :partial => "containing_relation", :collection => relation.containing_relation_members.uniq %></ul>
<% end %>
<% unless relation.relation_members.empty? %>
- <h4><%= t '.members' %></h4>
+ <h4><%= t ".members" %></h4>
<ul><%= render :partial => "relation_member", :collection => relation.relation_members %></ul>
<% end %>
</div>
<%
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) }
- type_str = t '.type.' + relation_member.member_type.downcase
+ type_str = t ".type." + relation_member.member_type.downcase
%>
<li class="<%= member_class %>">
<%=
if relation_member.member_role.blank?
- raw t '.entry', :type => type_str, :name => linked_name
+ raw t ".entry", :type => type_str, :name => linked_name
else
- raw t '.entry_role', :type => type_str, :name => linked_name, :role => h(relation_member.member_role)
+ raw t ".entry_role", :type => type_str, :name => linked_name, :role => h(relation_member.member_role)
end
%>
</li>
<% unless tag_details.empty? %>
- <h4><%= t '.tags' %></h4>
+ <h4><%= t ".tags" %></h4>
<table class='browse-tag-list'>
<%= render :partial => "tag", :collection => tag_details.sort %>
</table>
<% if way.redacted? %>
<div class='browse-section browse-redacted'>
- <%= t 'browse.redacted.message_html',
- :type => t('browse.redacted.type.way'),
+ <%= t "browse.redacted.message_html",
+ :type => t("browse.redacted.type.way"),
:version => way.version,
- :redaction_link => link_to(t('browse.redacted.redaction',
+ :redaction_link => link_to(t("browse.redacted.redaction",
:id => way.redaction.id), way.redaction) %>
</div>
<% else %>
<%= render :partial => "common_details", :object => way %>
<% unless way.containing_relation_members.empty? %>
- <h4><%= t 'browse.part_of' %></h4>
+ <h4><%= t "browse.part_of" %></h4>
<ul>
<%= render :partial => "containing_relation", :collection => way.containing_relation_members.uniq %>
</ul>
<% end %>
<% unless way.way_nodes.empty? %>
- <h4><%= t '.nodes' %></h4>
+ <h4><%= t ".nodes" %></h4>
<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 %>
-<% set_title(t('.title', :id => @changeset.id)) %>
+<% set_title(t(".title", :id => @changeset.id)) %>
<h2>
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
- <%= t('.title', :id => @changeset.id) %>
+ <%= t(".title", :id => @changeset.id) %>
</h2>
<div class="browse-section">
- <h4><%= linkify(h(@changeset.tags['comment'].to_s.presence || t('browse.no_comment'))) %></h4>
+ <h4><%= linkify(h(@changeset.tags["comment"].to_s.presence || t("browse.no_comment"))) %></h4>
<div class="details"><%= changeset_details(@changeset) %></div>
- <%= render :partial => "tag_details", :object => @changeset.tags.except('comment') %>
+ <%= render :partial => "tag_details", :object => @changeset.tags.except("comment") %>
- <h4 class="comments-header"><%= t('.discussion') %></h4>
+ <h4 class="comments-header"><%= t(".discussion") %></h4>
<% if current_user %>
<div class="buttons clearfix subscribe-buttons">
<form action="#">
<% if @changeset.subscribers.exists?(current_user.id) %>
- <input class="action-button" type="submit" name="unsubscribe" value="<%= t('javascripts.changesets.show.unsubscribe') %>" data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" />
+ <input class="action-button" type="submit" name="unsubscribe" value="<%= t("javascripts.changesets.show.unsubscribe") %>" data-method="POST" data-url="<%= changeset_unsubscribe_url(@changeset) %>" />
<% else %>
- <input class="action-button" type="submit" name="subscribe" value="<%= t('javascripts.changesets.show.subscribe') %>" data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" />
+ <input class="action-button" type="submit" name="subscribe" value="<%= t("javascripts.changesets.show.subscribe") %>" data-method="POST" data-url="<%= changeset_subscribe_url(@changeset) %>" />
<% end %>
</form>
</div>
:exact_time => l(comment.created_at),
:user => link_to(h(comment.author.display_name), user_path(comment.author))).html_safe %>
<% if current_user and current_user.moderator? %>
- — <span class="action-button deemphasize" data-comment-id="<%= comment.id %>" data-method="POST" data-url="<%= changeset_comment_hide_url(comment.id) %>"><%= t('javascripts.changesets.show.hide_comment') %></span>
+ — <span class="action-button deemphasize" data-comment-id="<%= comment.id %>" data-method="POST" data-url="<%= changeset_comment_hide_url(comment.id) %>"><%= t("javascripts.changesets.show.hide_comment") %></span>
<% end %>
</small>
<%= comment.body.to_html %>
:when => friendly_date(comment.created_at),
:exact_time => l(comment.created_at),
:user => link_to(h(comment.author.display_name), user_path(comment.author))).html_safe %>
- — <span class="action-button deemphasize" data-comment-id="<%= comment.id %>" data-method="POST" data-url="<%= changeset_comment_unhide_url(comment.id) %>"><%= t('javascripts.changesets.show.unhide_comment') %></span>
+ — <span class="action-button deemphasize" data-comment-id="<%= comment.id %>" data-method="POST" data-url="<%= changeset_comment_unhide_url(comment.id) %>"><%= t("javascripts.changesets.show.unhide_comment") %></span>
</small>
<%= comment.body.to_html %>
</li>
<% unless current_user %>
<div class="notice">
- <%= link_to(t(".join_discussion"), :controller => 'users', :action => 'login', :referer => request.fullpath) %>
+ <%= link_to(t(".join_discussion"), :controller => "users", :action => "login", :referer => request.fullpath) %>
</div>
<% end %>
<form action="#">
<textarea class="comment" name="text" cols="40" rows="5"></textarea>
<div class="buttons clearfix">
- <input type="submit" name="comment" value="<%= t('javascripts.changesets.show.comment') %>" data-changeset-id="<%= @changeset.id %>" data-method="POST" data-url="<%= changeset_comment_url(@changeset) %>" disabled="1"/>
+ <input type="submit" name="comment" value="<%= t("javascripts.changesets.show.comment") %>" data-changeset-id="<%= @changeset.id %>" data-method="POST" data-url="<%= changeset_comment_url(@changeset) %>" disabled="1"/>
</div>
</form>
<% else %>
<div class="notice">
- <%= t('.still_open') %>
+ <%= t(".still_open") %>
</div>
<% end %>
<% end %>
<% unless @ways.empty? %>
<h4>
- <%= type_and_paginated_count('way', @way_pages) %>
- <%= render :partial => 'paging_nav', :locals => { :pages => @way_pages, :page_param => "way_page" } %>
+ <%= type_and_paginated_count("way", @way_pages) %>
+ <%= render :partial => "paging_nav", :locals => { :pages => @way_pages, :page_param => "way_page" } %>
</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 %>
<% unless @relations.empty? %>
<h4>
- <%= type_and_paginated_count('relation', @relation_pages) %>
- <%= render :partial => 'paging_nav', :locals => { :pages => @relation_pages, :page_param => "relation_page" } %>
+ <%= type_and_paginated_count("relation", @relation_pages) %>
+ <%= render :partial => "paging_nav", :locals => { :pages => @relation_pages, :page_param => "relation_page" } %>
</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 %>
<% unless @nodes.empty? %>
<h4>
- <%= type_and_paginated_count('node', @node_pages) %>
- <%= render :partial => 'paging_nav', :locals => { :pages => @node_pages, :page_param => "node_page" } %>
+ <%= type_and_paginated_count("node", @node_pages) %>
+ <%= render :partial => "paging_nav", :locals => { :pages => @node_pages, :page_param => "node_page" } %>
</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 %>
<% end %>
<div class='secondary-actions'>
- <%= link_to(t('.changesetxml'), :controller => "api/changesets", :action => "show") %>
+ <%= link_to(t(".changesetxml"), :controller => "api/changesets", :action => "show") %>
·
- <%= link_to(t('.osmchangexml'), :controller => "api/changesets", :action => "download") %>
+ <%= link_to(t(".osmchangexml"), :controller => "api/changesets", :action => "download") %>
</div>
<%= render :partial => @type, :object => @feature %>
<div class='secondary-actions'>
- <%= link_to(t('browse.download_xml'), :controller => "api/#{@type.pluralize}", :action => :show) %>
+ <%= link_to(t("browse.download_xml"), :controller => "api/#{@type.pluralize}", :action => :show) %>
·
- <%= link_to(t('browse.view_history'), :action => "#{@type}_history") %>
+ <%= link_to(t("browse.view_history"), :action => "#{@type}_history") %>
</div>
<%= render :partial => @type, :collection => @feature.send("old_#{@type}s").reverse %>
<div class='secondary-actions'>
- <%= link_to(t('browse.download_xml'), :controller => "api/old_#{@type.pluralize}", :action => "history") %>
+ <%= link_to(t("browse.download_xml"), :controller => "api/old_#{@type.pluralize}", :action => "history") %>
·
- <%= link_to(t('browse.view_details'), :action => @type) %>
+ <%= link_to(t("browse.view_details"), :action => @type) %>
</div>
</h2>
<div class="note browse-section">
- <p class="warning"><%= t('javascripts.notes.new.intro') %></p>
+ <p class="warning"><%= t("javascripts.notes.new.intro") %></p>
<form action="#">
<input type="hidden" name="lon">
<input type="hidden" name="lat">
- <textarea class="comment" name="text" cols="40" rows="10" maxlength="2000" placeholder="<%= t('javascripts.notes.new.advice') %>"></textarea>
+ <textarea class="comment" name="text" cols="40" rows="10" maxlength="2000" placeholder="<%= t("javascripts.notes.new.advice") %>"></textarea>
<div class="buttons clearfix">
- <input type="submit" name="add" value="<%= t('javascripts.notes.new.add') %>" disabled="1">
+ <input type="submit" name="add" value="<%= t("javascripts.notes.new.add") %>" disabled="1">
</div>
</form>
</div>
-<% set_title(t('.title', :id => @note.id)) %>
+<% set_title(t(".title", :id => @note.id)) %>
<h2>
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
</h2>
<div class="browse-section">
- <h4><%= t('.description') %></h4>
+ <h4><%= t(".description") %></h4>
<div class="note-description">
<%= h(@note_comments.first.body.to_html) %>
</div>
<div class="details" data-coordinates="<%= @note.lat %>,<%= @note.lon %>" data-status="<%= @note.status %>">
- <%= note_event('open', @note.created_at, @note.author) %>
+ <%= note_event("open", @note.created_at, @note.author) %>
<% if @note.status == "closed" %>
<br/>
<%= note_event(@note.status, @note.closed_at, @note_comments.last.author) %>
<textarea class="comment" name="text" cols="40" rows="5" maxlength="2000"></textarea>
<div class="buttons clearfix">
<% if current_user and current_user.moderator? -%>
- <input type="submit" name="hide" value="<%= t('javascripts.notes.show.hide') %>" class="deemphasize" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, 'json') %>">
+ <input type="submit" name="hide" value="<%= t("javascripts.notes.show.hide") %>" class="deemphasize" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>">
<% end -%>
<% if current_user -%>
- <input type="submit" name="close" value="<%= t('javascripts.notes.show.resolve') %>" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= close_note_url(@note, 'json') %>">
+ <input type="submit" name="close" value="<%= t("javascripts.notes.show.resolve") %>" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= close_note_url(@note, "json") %>">
<% end -%>
- <input type="submit" name="comment" value="<%= t('javascripts.notes.show.comment') %>" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= comment_note_url(@note, 'json') %>" disabled="1">
+ <input type="submit" name="comment" value="<%= t("javascripts.notes.show.comment") %>" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= comment_note_url(@note, "json") %>" disabled="1">
</div>
</form>
<% else %>
<input type="hidden" name="text" value="">
<div class="buttons clearfix">
<% if current_user and current_user.moderator? -%>
- <input type="submit" name="hide" value="<%= t('javascripts.notes.show.hide') %>" class="deemphasize" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, 'json') %>">
+ <input type="submit" name="hide" value="<%= t("javascripts.notes.show.hide") %>" class="deemphasize" data-note-id="<%= @note.id %>" data-method="DELETE" data-url="<%= note_url(@note, "json") %>">
<% end -%>
<% if current_user -%>
- <input type="submit" name="reopen" value="<%= t('javascripts.notes.show.reactivate') %>" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= reopen_note_url(@note, 'json') %>">
+ <input type="submit" name="reopen" value="<%= t("javascripts.notes.show.reactivate") %>" data-note-id="<%= @note.id %>" data-method="POST" data-url="<%= reopen_note_url(@note, "json") %>">
<% end -%>
</div>
</form>
<div class="browse-section">
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
- <%= t '.sorry', :type => t(".type.#{@type}"), :id => params[:id] %>
+ <%= t ".sorry", :type => t(".type.#{@type}"), :id => params[:id] %>
</div>
-<p><%= t '.sorry' %></p>
+<p><%= t ".sorry" %></p>
<%= content_tag "li", :id => "changeset_#{changeset.id}", :data => { :changeset => changeset_data } do %>
<h4>
<a class="changeset_id" href="<%= changeset_path(changeset) %>">
- <%= changeset.tags['comment'].to_s.presence || t('browse.no_comment') %>
+ <%= changeset.tags["comment"].to_s.presence || t("browse.no_comment") %>
</a>
</h4>
<div class="comments comments-<%= changeset.comments.length %>">
<%
set_title(changeset_index_title(params, current_user))
if params[:display_name]
- @heading = t('changesets.index.title_user', :user => link_to(params[:display_name], user_path(:display_name => params[:display_name]))).html_safe
+ @heading = t("changesets.index.title_user", :user => link_to(params[:display_name], user_path(:display_name => params[:display_name]))).html_safe
else
@heading = @title
end
<% if @edits.present? %>
<ol class="changesets">
- <%= render :partial => 'changeset', :collection => @edits %>
+ <%= render :partial => "changeset", :collection => @edits %>
</ol>
<% if @edits.size == 20 -%>
<div class="changeset_more">
- <%= link_to t('.load_more'), url_for(@params.merge(:max_id => @edits.last.id - 1)), :class => "button load_more" %>
+ <%= link_to t(".load_more"), url_for(@params.merge(:max_id => @edits.last.id - 1)), :class => "button load_more" %>
<div class="loader"><%= image_tag "searching.gif" %></div>
</div>
<% end -%>
<% elsif params[:bbox] %>
- <div class="inner22"><%= t(params[:max_id] ? '.no_more_area' : '.empty_area') %></div>
+ <div class="inner22"><%= t(params[:max_id] ? ".no_more_area" : ".empty_area") %></div>
<% elsif params[:display_name] %>
- <div class="inner22"><%= t(params[:max_id] ? '.no_more_user' : '.empty_user') %></div>
+ <div class="inner22"><%= t(params[:max_id] ? ".no_more_user" : ".empty_user") %></div>
<% else %>
- <div class="inner22"><%= t(params[:max_id] ? '.no_more' : '.empty') %></div>
+ <div class="inner22"><%= t(params[:max_id] ? ".no_more" : ".empty") %></div>
<% end %>
-<p><%= t '.sorry' %></p>
+<p><%= t ".sorry" %></p>
<div class="clearfix diary-comment">
<%= user_thumbnail diary_comment.user %>
- <p class="deemphasize comment-heading" id="comment<%= diary_comment.id %>"><%= raw(t('.comment_from', :link_user => (link_to h(diary_comment.user.display_name), user_path(diary_comment.user)), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}"))) %>
+ <p class="deemphasize comment-heading" id="comment<%= diary_comment.id %>"><%= raw(t(".comment_from", :link_user => (link_to h(diary_comment.user.display_name), user_path(diary_comment.user)), :comment_created_at => link_to(l(diary_comment.created_at, :format => :friendly), :anchor => "comment#{diary_comment.id}"))) %>
<% if current_user and diary_comment.user.id != current_user.id %>
| <%= report_link(t(".report"), diary_comment) %>
<% end %>
<div class="richtext"><%= diary_comment.body.to_html %></div>
<% if current_user && current_user.administrator? %>
<span>
- <%= link_to t('.hide_link'), hide_diary_comment_path(:display_name => diary_comment.diary_entry.user.display_name, :id => diary_comment.diary_entry.id, :comment => diary_comment.id), :method => :post, :data => { :confirm => t('.confirm') } %>
+ <%= link_to t(".hide_link"), hide_diary_comment_path(:display_name => diary_comment.diary_entry.user.display_name, :id => diary_comment.diary_entry.id, :comment => diary_comment.id), :method => :post, :data => { :confirm => t(".confirm") } %>
</span>
<% end %>
</div>
<h2><%= link_to h(diary_entry.title), diary_entry_path(diary_entry.user, diary_entry) %></h2>
<small class='deemphasize'>
- <%= raw(t '.posted_by', :link_user => (link_to h(diary_entry.user.display_name), user_path(diary_entry.user)), :created => l(diary_entry.created_at, :format => :blog), :language_link => (link_to h(diary_entry.language.name), :controller => 'diary_entries', :action => 'index', :display_name => nil, :language => diary_entry.language_code)) %>
+ <%= raw(t ".posted_by", :link_user => (link_to h(diary_entry.user.display_name), user_path(diary_entry.user)), :created => l(diary_entry.created_at, :format => :blog), :language_link => (link_to h(diary_entry.language.name), :controller => "diary_entries", :action => "index", :display_name => nil, :language => diary_entry.language_code)) %>
</small>
</div>
<ul class='secondary-actions clearfix'>
<% if params[:action] == 'index' %>
- <li><%= link_to t('.comment_link'), diary_entry_path(diary_entry.user, diary_entry, :anchor => 'newcomment') %></li>
- <li><%= link_to t('.reply_link'), new_message_path(diary_entry.user, :message => { :title => "Re: #{diary_entry.title}" }) %></li>
- <li><%= link_to t('.comment_count', :count => diary_entry.visible_comments.count), diary_entry_path(diary_entry.user, diary_entry, :anchor => 'comments') %></li>
+ <li><%= link_to t(".comment_link"), diary_entry_path(diary_entry.user, diary_entry, :anchor => "newcomment") %></li>
+ <li><%= link_to t(".reply_link"), new_message_path(diary_entry.user, :message => { :title => "Re: #{diary_entry.title}" }) %></li>
+ <li><%= link_to t(".comment_count", :count => diary_entry.visible_comments.count), diary_entry_path(diary_entry.user, diary_entry, :anchor => "comments") %></li>
<% end %>
<% if current_user && current_user == diary_entry.user %>
- <li><%= link_to t('.edit_link'), :action => 'edit', :display_name => diary_entry.user.display_name, :id => diary_entry.id %></li>
+ <li><%= link_to t(".edit_link"), :action => "edit", :display_name => diary_entry.user.display_name, :id => diary_entry.id %></li>
<% end %>
<% if current_user and diary_entry.user != current_user %>
<% if current_user && current_user.administrator? %>
<li>
- <%= link_to t('.hide_link'), hide_diary_entry_path(:display_name => diary_entry.user.display_name, :id => diary_entry.id), :method => :post, :data => { :confirm => t('.confirm') } %>
+ <%= link_to t(".hide_link"), hide_diary_entry_path(:display_name => diary_entry.user.display_name, :id => diary_entry.id), :method => :post, :data => { :confirm => t(".confirm") } %>
</li>
<% end %>
</ul>
-<%= t '.location' %>
+<%= t ".location" %>
-<a href="<%= url_for :controller => 'site', :action => 'index', :anchor => "map=14/#{location.latitude}/#{location.longitude}" %>">
+<a href="<%= url_for :controller => "site", :action => "index", :anchor => "map=14/#{location.latitude}/#{location.longitude}" %>">
<abbr class="geo" title="<%= number_with_precision(location.latitude, :precision => 4) %>; <%= number_with_precision(location.longitude, :precision => 4) %>">
<%= describe_location location.latitude, location.longitude, 14, location.language_code %>
</abbr>
<% content_for :heading do %>
- <h1><%= t('.has_commented_on', :display_name => @user.display_name) %></h1>
+ <h1><%= t(".has_commented_on", :display_name => @user.display_name) %></h1>
<% end %>
<table class="messages" width="100%">
<tr>
- <th width="25%"><%= t '.post' %></th>
- <th width="25%"><%= t '.when' %></th>
- <th width="50%"><%= t '.comment' %></th>
+ <th width="25%"><%= t ".post" %></th>
+ <th width="25%"><%= t ".when" %></th>
+ <th width="50%"><%= t ".comment" %></th>
</tr>
<% @comments.each do |comment| -%>
- <% cl = cycle('table0', 'table1') %>
+ <% cl = cycle("table0", "table1") %>
<tr class="<%= cl %>">
<td width="25%"><%= link_to comment.diary_entry.title, diary_entry_path(comment.diary_entry.user, comment.diary_entry) %></td>
- <td width="25%"><span title="<%= l comment.created_at, :format => :friendly %>"><%= t '.ago', :ago => time_ago_in_words(comment.created_at) %></span></td>
+ <td width="25%"><span title="<%= l comment.created_at, :format => :friendly %>"><%= t ".ago", :ago => time_ago_in_words(comment.created_at) %></span></td>
<td width="50%" class="richtext"><%= comment.body.to_html %></td>
</tr>
<% 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>
<h1><%= @title %></h1>
<% end %>
-<%= error_messages_for 'diary_entry' %>
+<%= error_messages_for "diary_entry" %>
<%= form_for :diary_entry do |f| %>
<div class="diary_entry standard-form">
<fieldset>
<div class='form-row'>
- <label class="standard-label"><%= t '.subject' -%></label>
+ <label class="standard-label"><%= t ".subject" -%></label>
<%= f.text_field :title, :class => "richtext_title" %>
</div>
<div class='form-row'>
- <label class="standard-label"><%= t '.body' -%></label>
+ <label class="standard-label"><%= t ".body" -%></label>
<%= richtext_area :diary_entry, :body, :cols => 80, :rows => 20, :format => @diary_entry.body_format %>
</div>
<div class='form-row'>
- <label class="standard-label"><%= t '.language' -%></label>
+ <label class="standard-label"><%= t ".language" -%></label>
<%= f.collection_select :language_code, Language.order(:english_name), :code, :name %>
</div>
</fieldset>
<fieldset class='location'>
- <label class="standard-label"><%= t '.location' -%></label>
+ <label class="standard-label"><%= t ".location" -%></label>
<%= content_tag "div", "", :id => "map", :data => { :lat => @lat, :lon => @lon, :zoom => @zoom } %>
<div class='form-row clearfix'>
<div class='form-column'>
- <label class="secondary standard-label"><%= t '.latitude' -%></label>
+ <label class="secondary standard-label"><%= t ".latitude" -%></label>
<%= f.text_field :latitude, :size => 20, :id => "latitude" %>
</div>
<div class='form-column'>
- <label class="secondary standard-label"><%= t '.longitude' -%></label>
+ <label class="secondary standard-label"><%= t ".longitude" -%></label>
<%= f.text_field :longitude, :size => 20, :id => "longitude" %>
</div>
<div class='form-column'>
- <a href="#" id="usemap"><%= t '.use_map_link' -%></a>
+ <a href="#" id="usemap"><%= t ".use_map_link" -%></a>
</div>
</div>
</fieldset>
<% if action_name == 'new' %>
- <%= submit_tag t('diary_entries.new.publish_button') %>
+ <%= submit_tag t("diary_entries.new.publish_button") %>
<% else %>
- <%= submit_tag t('.save_button') %>
+ <%= submit_tag t(".save_button") %>
<% end %>
</div>
<% end %>
<ul class='secondary-actions clearfix'>
<% unless params[:friends] or params[:nearby] -%>
- <li><%= rss_link_to :action => 'rss', :language => params[:language] %></li>
+ <li><%= rss_link_to :action => "rss", :language => params[:language] %></li>
<% end -%>
<% 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 %>
<% end %>
<% if @entries.empty? %>
- <h4><%= t '.no_entries' %></h4>
+ <h4><%= t ".no_entries" %></h4>
<% else %>
- <h4><%= t '.recent_entries' %></h4>
+ <h4><%= t ".recent_entries" %></h4>
<% if @user %>
- <%= render :partial => 'diary_entry', :collection => @entries %>
+ <%= render :partial => "diary_entry", :collection => @entries %>
<% else %>
- <%= render :partial => 'diary_index_entry', :collection => @entries %>
+ <%= render :partial => "diary_index_entry", :collection => @entries %>
<% end %>
<div class="pagination">
<% if @entries.size < @page_size -%>
- <%= t('.older_entries') %>
+ <%= t(".older_entries") %>
<% else -%>
- <%= link_to t('.older_entries'), @params.merge(:page => @page + 1) %>
+ <%= link_to t(".older_entries"), @params.merge(:page => @page + 1) %>
<% end -%>
|
<% if @page > 1 -%>
- <%= link_to t('.newer_entries'), @params.merge(:page => @page - 1) %>
+ <%= link_to t(".newer_entries"), @params.merge(:page => @page - 1) %>
<% else -%>
- <%= t('.newer_entries') %>
+ <%= t(".newer_entries") %>
<% end -%>
</div>
<% end %>
<% unless params[:friends] or params[:nearby] -%>
<% content_for :auto_discovery_link_tag do -%>
- <%= auto_discovery_link_tag :rss, :action => 'rss', :language => params[:language] %>
+ <%= auto_discovery_link_tag :rss, :action => "rss", :language => params[:language] %>
<% end -%>
<% end -%>
<% content_for :heading do %>
- <h2><%= t '.heading', :id => h(params[:id]) %></h2>
+ <h2><%= t ".heading", :id => h(params[:id]) %></h2>
<% end %>
-<p><%= t '.body', :id => h(params[:id]) %></p>
+<p><%= t ".body", :id => h(params[:id]) %></p>
<% content_for :heading do %>
<div id="userinformation" >
<%= user_image @entry.user %>
- <h2><%= link_to t('.user_title', :user => h(@entry.user.display_name)), :action => :index %></h2>
+ <h2><%= link_to t(".user_title", :user => h(@entry.user.display_name)), :action => :index %></h2>
<p><%= rss_link_to :action => :rss, :display_name => @entry.user.display_name %></p>
</div>
<% end %>
-<%= render :partial => 'diary_entry', :object => @entry %>
+<%= render :partial => "diary_entry", :object => @entry %>
<a id="comments"></a>
<div class='comments'>
-<%= render :partial => 'diary_comment', :collection => @entry.visible_comments %>
+<%= render :partial => "diary_comment", :collection => @entry.visible_comments %>
</div>
<div>
<% if current_user %>
- <h3 id="newcomment"><%= t '.leave_a_comment' %></h3>
+ <h3 id="newcomment"><%= t ".leave_a_comment" %></h3>
- <%= error_messages_for 'diary_comment' %>
+ <%= error_messages_for "diary_comment" %>
- <%= form_for :diary_comment, :url => { :action => 'comment' } do |f| %>
+ <%= form_for :diary_comment, :url => { :action => "comment" } do |f| %>
<%= richtext_area :diary_comment, :body, :cols => 80, :rows => 15 %>
- <%= submit_tag t('.save_button') %>
+ <%= submit_tag t(".save_button") %>
<% end %>
<% if @entry.subscribers.exists?(current_user.id) %>
- <div class="diary-subscribe-buttons"><%= link_to t('javascripts.changesets.show.unsubscribe'), diary_entry_unsubscribe_path(:display_name => @entry.user.display_name, :id => @entry.id), :method => :post, :class => :button %></div>
+ <div class="diary-subscribe-buttons"><%= link_to t("javascripts.changesets.show.unsubscribe"), diary_entry_unsubscribe_path(:display_name => @entry.user.display_name, :id => @entry.id), :method => :post, :class => :button %></div>
<% else %>
- <div class="diary-subscribe-buttons"><%= link_to t('javascripts.changesets.show.subscribe'), diary_entry_subscribe_path(:display_name => @entry.user.display_name, :id => @entry.id), :method => :post, :class => :button %></div>
+ <div class="diary-subscribe-buttons"><%= link_to t("javascripts.changesets.show.subscribe"), diary_entry_subscribe_path(:display_name => @entry.user.display_name, :id => @entry.id), :method => :post, :class => :button %></div>
<% end %>
<% else %>
- <h3 id="newcomment"><%= raw t(".login_to_leave_a_comment", :login_link => link_to(t(".login"), :controller => 'users', :action => 'login', :referer => request.fullpath)) %></h3>
+ <h3 id="newcomment"><%= raw t(".login_to_leave_a_comment", :login_link => link_to(t(".login"), :controller => "users", :action => "login", :referer => request.fullpath)) %></h3>
<% end %>
</div>
<% if @results.empty? %>
- <p class="search_results_entry inner12"><%= t '.no_results' %></p>
+ <p class="search_results_entry inner12"><%= t ".no_results" %></p>
<% else %>
<ul class='results-list'>
<% @results.each do |result| %>
</ul>
<% if @more_params %>
<div class="search_more">
- <%= link_to t('.more_results'), url_for(@more_params), :class => "button load_more" %>
+ <%= link_to t(".more_results"), url_for(@more_params), :class => "button load_more" %>
<div class="loader"><%= image_tag "searching.gif" %></div>
</div>
<% end %>
<h2>
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
- <%= t('site.sidebar.search_results') %>
+ <%= t("site.sidebar.search_results") %>
</h2>
<% @sources.each do |source| %>
<h4 class="inner12"><%= raw(t ".title.#{source}") %></h4>
<div class="comment">
<%= 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 %>
+ <%= label_tag :reassign, t(".reassign_param") %> <%= check_box_tag :reassign, true %>
<br/>
<br/>
- <%= submit_tag 'Submit' %>
+ <%= submit_tag "Submit" %>
<% end %>
</div>
<%= form_tag(issues_path, :method => :get) do %>
<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' } %>
+<%= 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") %>
-<%= 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' } %>
+<%= 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 %>
<br/>
</small>
</p>
<p>
- <%= link_to t('.resolve'), resolve_issue_url(@issue), :method => :post if @issue.may_resolve? %>
+ <%= link_to t(".resolve"), resolve_issue_url(@issue), :method => :post if @issue.may_resolve? %>
<% if @issue.may_ignore? %>
- | <%= link_to t('.ignore'), ignore_issue_url(@issue), :method => :post %>
+ | <%= link_to t(".ignore"), ignore_issue_url(@issue), :method => :post %>
<% end %>
</p>
-<p><%= link_to t('.reopen'), reopen_issue_url(@issue), :method => :post if @issue.may_reopen? %></p>
+<p><%= link_to t(".reopen"), reopen_issue_url(@issue), :method => :post if @issue.may_reopen? %></p>
<% end %>
<div class="report-related-block">
<% 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 %>
<%= yield :auto_discovery_link_tag %>
<%= csrf_meta_tag %>
<%= csp_meta_tag %>
- <title><%= @title + ' | ' if @title %><%= t 'layouts.project_name.title' %></title>
+ <title><%= @title + " | " if @title %><%= t "layouts.project_name.title" %></title>
<% end %>
<a href="<%= root_path %>" class="geolink">
<picture>
<source srcset="<%= image_path "osm_logo.svg" %>" type="image/svg+xml"></source>
- <%= image_tag "osm_logo.png", :srcset => image_path("osm_logo.svg"), :alt => t('layouts.logo.alt_text'), :class => 'logo' %>
+ <%= image_tag "osm_logo.png", :srcset => image_path("osm_logo.svg"), :alt => t("layouts.logo.alt_text"), :class => "logo" %>
</picture>
- <%= t 'layouts.project_name.h1' %>
+ <%= t "layouts.project_name.h1" %>
</a>
</h1>
<a href="#" id="menu-icon"></a>
<%= content_for :header %>
<ul>
<li id="edit_tab" class="dropdown <%= current_page_class(edit_path) %>">
- <%= link_to t('layouts.edit'),
+ <%= link_to t("layouts.edit"),
edit_path,
:class => "tab geolink editlink",
- :id => 'editanchor',
+ :id => "editanchor",
:data => { :editor => preferred_editor } %>
<a class='dropdown-toggle' data-toggle='dropdown' href='#'><b class="caret"></b></a>
<ul class='dropdown-menu'>
<% Editors::RECOMMENDED_EDITORS.each do |editor| %>
<li>
- <%= link_to t('layouts.edit_with', :editor => t("editor.#{editor}.description")),
+ <%= link_to t("layouts.edit_with", :editor => t("editor.#{editor}.description")),
edit_path(:editor => editor),
:data => { :editor => editor },
:class => "geolink editlink" %>
</ul>
</li>
<li id="history_tab" class="<%= current_page_class(history_path) %>">
- <%= link_to t('layouts.history'), history_path, :class => 'tab geolink' %>
+ <%= link_to t("layouts.history"), history_path, :class => "tab geolink" %>
</li>
<li id="export_tab" class="<%= current_page_class(export_path) %>">
- <%= link_to t('layouts.export'), export_path, :class => 'tab geolink' %>
+ <%= link_to t("layouts.export"), export_path, :class => "tab geolink" %>
</li>
</ul>
</nav>
<ul>
<% if current_user and ( current_user.administrator? or current_user.moderator? ) %>
<li class="compact-hide <%= current_page_class(issues_path) %>">
- <%= link_to issues_path(:status => 'open') do %>
- <%= t('layouts.issues') %>
+ <%= link_to issues_path(:status => "open") do %>
+ <%= t("layouts.issues") %>
<%= open_issues_count %>
<% end -%>
</li>
<% end %>
- <li class="compact-hide <%= current_page_class(traces_path) %>"><%= link_to t('layouts.gps_traces'), traces_path %></li>
- <li class="compact-hide <%= current_page_class(diary_path) %>"><%= link_to t('layouts.user_diaries'), diary_path %></li>
- <li class="compact-hide <%= current_page_class(copyright_path) %>"><%= link_to t('layouts.copyright'), copyright_path %></li>
- <li class="compact-hide <%= current_page_class(help_path) %>"><%= link_to t('layouts.help'), help_path %></li>
- <li class="compact-hide <%= current_page_class(about_path) %>"><%= link_to t('layouts.about'), about_path %></li>
+ <li class="compact-hide <%= current_page_class(traces_path) %>"><%= link_to t("layouts.gps_traces"), traces_path %></li>
+ <li class="compact-hide <%= current_page_class(diary_path) %>"><%= link_to t("layouts.user_diaries"), diary_path %></li>
+ <li class="compact-hide <%= current_page_class(copyright_path) %>"><%= link_to t("layouts.copyright"), copyright_path %></li>
+ <li class="compact-hide <%= current_page_class(help_path) %>"><%= link_to t("layouts.help"), help_path %></li>
+ <li class="compact-hide <%= current_page_class(about_path) %>"><%= link_to t("layouts.about"), about_path %></li>
<li id="compact-secondary-nav" class="dropdown">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#"><%= t 'layouts.more' %> <b class="caret"></b></a>
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#"><%= t "layouts.more" %> <b class="caret"></b></a>
<ul class="dropdown-menu">
<% if Settings.status != "database_offline" && can?(:index, Issue) %>
<li class="<%= current_page_class(issues_path) %>">
- <%= link_to issues_path(:status => 'open') do %>
+ <%= link_to issues_path(:status => "open") do %>
<%= open_issues_count %>
- <%= t('layouts.issues') %>
+ <%= t("layouts.issues") %>
<% end -%>
</li>
<% end %>
- <li class="<%= current_page_class(traces_path) %>"><%= link_to t('layouts.gps_traces'), traces_path %></li>
- <li class="<%= current_page_class(diary_path) %>"><%= link_to t('layouts.user_diaries'), diary_path %></li>
- <li class="<%= current_page_class(copyright_path) %>"><%= link_to t('layouts.copyright'), copyright_path %></li>
- <li class="<%= current_page_class(help_path) %>"><%= link_to t('layouts.help'), help_path %></li>
- <li class="<%= current_page_class(about_path) %>"><%= link_to t('layouts.about'), about_path %></li>
+ <li class="<%= current_page_class(traces_path) %>"><%= link_to t("layouts.gps_traces"), traces_path %></li>
+ <li class="<%= current_page_class(diary_path) %>"><%= link_to t("layouts.user_diaries"), diary_path %></li>
+ <li class="<%= current_page_class(copyright_path) %>"><%= link_to t("layouts.copyright"), copyright_path %></li>
+ <li class="<%= current_page_class(help_path) %>"><%= link_to t("layouts.help"), help_path %></li>
+ <li class="<%= current_page_class(about_path) %>"><%= link_to t("layouts.about"), about_path %></li>
</ul>
</li>
</ul>
<div class='dropdown user-menu logged-in'>
<a class='dropdown-toggle' data-toggle='dropdown' href="#">
<%= user_thumbnail_tiny(current_user, :width => 25, :height => 25) %>
- <%= render :partial => 'layouts/inbox' %>
+ <%= render :partial => "layouts/inbox" %>
<span class="user-button">
<span class='username'>
<%= current_user.display_name %>
<li>
<%= link_to inbox_messages_path do %>
<span class='count-number'><%= number_with_delimiter(current_user.new_messages.size) %></span>
- <%= t('users.show.my messages') %>
+ <%= t("users.show.my messages") %>
<% end %>
</li>
<li>
- <%= link_to t('users.show.my profile'), user_path(current_user) %>
+ <%= link_to t("users.show.my profile"), user_path(current_user) %>
</li>
<li>
- <%= link_to t('users.show.my settings'), :controller => 'users', :action => 'account', :display_name => current_user.display_name %>
+ <%= link_to t("users.show.my settings"), :controller => "users", :action => "account", :display_name => current_user.display_name %>
</li>
<li class="divider"></li>
<li>
<%= yield :greeting %>
</li>
<li>
- <%= link_to t('layouts.logout'), logout_path(:session => session.id, :referer => request.fullpath) %>
+ <%= link_to t("layouts.logout"), logout_path(:session => session.id, :referer => request.fullpath) %>
</li>
</ul>
</div>
<% else %>
<ul class="user-menu clearfix">
- <li><%= link_to t('layouts.log_in'), login_path(:referer => request.fullpath) %></li>
- <li><%= link_to t('layouts.sign_up'), user_new_path %></li>
+ <li><%= link_to t("layouts.log_in"), login_path(:referer => request.fullpath) %></li>
+ <li><%= link_to t("layouts.sign_up"), user_new_path %></li>
</ul>
<% end %>
</nav>
<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') %>
+ <%= 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") %>
</div>
</form>
<div class="line">
<%= image_tag "marker-green.png", :class => "routing_marker", :data => { :type => "from" }, :draggable => "true" %>
- <span class="force_width"><%= text_field_tag "route_from", params[:from], :placeholder => t('site.search.from') %></span>
+ <span class="force_width"><%= text_field_tag "route_from", params[:from], :placeholder => t("site.search.from") %></span>
</div>
<div class="line">
<%= image_tag "marker-red.png", :class => "routing_marker", :data => { :type => "to" }, :draggable => "true" %>
- <span class="force_width"><%= text_field_tag "route_to", params[:to], :placeholder => t('site.search.to') %></span>
+ <span class="force_width"><%= text_field_tag "route_to", params[:to], :placeholder => t("site.search.to") %></span>
</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>
+ <a class="reverse_directions"><%= t("site.search.reverse_directions_text") %></a>
</div>
<div class="loader_copy"><div class="loader"><%= image_tag "searching.gif" %></div></div>
<div id="browse_status"></div>
<div id="sidebar_loader">
- <img alt="<%= t('browse.start_rjs.loading') %>" class="loader" src="<%= image_path("searching.gif") %>">
+ <img alt="<%= t("browse.start_rjs.loading") %>" class="loader" src="<%= image_path("searching.gif") %>">
</div>
<div id="sidebar_content">
<% unless current_user %>
<div class="welcome">
- <h2><%= t 'layouts.intro_header' %></h2>
+ <h2><%= t "layouts.intro_header" %></h2>
<div class="close-wrap"><span class="icon close"></span></div>
- <p><%= t 'layouts.intro_text' %></p>
- <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.intro_text" %></p>
+ <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>
- <a class="button learn-more" href="<%= about_path %>"><%= t('layouts.learn_more') %></a>
- <a class="button sign-up" href="<%= user_new_path %>"><%= t('layouts.start_mapping') %></a>
+ <a class="button learn-more" href="<%= about_path %>"><%= t("layouts.learn_more") %></a>
+ <a class="button sign-up" href="<%= user_new_path %>"><%= t("layouts.start_mapping") %></a>
</div>
<% end %>
<noscript>
<div id="noscript">
- <p><%= t 'site.index.js_1' %></p>
- <p><%= t 'site.index.js_2' %></p>
+ <p><%= t "site.index.js_1" %></p>
+ <p><%= t "site.index.js_2" %></p>
</div>
</noscript>
<div id="attribution">
<table>
<tr>
- <td class="attribution_license"><%= t 'site.index.license.license_url' %></td>
- <td class="attribution_project"><%= t 'site.index.license.project_url' %></td>
+ <td class="attribution_license"><%= t "site.index.license.license_url" %></td>
+ <td class="attribution_project"><%= t "site.index.license.project_url" %></td>
</tr>
<tr>
- <td colspan="2" class="attribution_notice"><%= t 'site.index.license.copyright' %></td>
+ <td colspan="2" class="attribution_notice"><%= t "site.index.license.copyright" %></td>
</tr>
</table>
</div>
<% end %>
-<%= render :template => 'layouts/site' %>
+<%= render :template => "layouts/site" %>
<%= render :partial => "layouts/header" %>
<%= render :partial => "layouts/content" %>
<% if defined?(PIWIK) -%>
- <noscript><p><img src="<%= request.protocol %><%= PIWIK['location'] %>/piwik.php?idsite=<%= PIWIK['site'] %>" class="piwik" alt="" /></p></noscript>
+ <noscript><p><img src="<%= request.protocol %><%= PIWIK["location"] %>/piwik.php?idsite=<%= PIWIK["site"] %>" class="piwik" alt="" /></p></noscript>
<% end -%>
</body>
</html>
<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>
<% end %>
<% content_for :heading do %>
- <h2><%= t '.my_inbox' %>/<%= link_to t('.outbox'), outbox_messages_path %></h2>
+ <h2><%= t ".my_inbox" %>/<%= link_to t(".outbox"), outbox_messages_path %></h2>
<% end %>
<h4><%= render :partial => "message_count" %></h4>
<table class="messages">
<thead>
<tr>
- <th><%= t '.from' %></th>
- <th><%= t '.subject' %></th>
- <th><%= t '.date' %></th>
+ <th><%= t ".from" %></th>
+ <th><%= t ".subject" %></th>
+ <th><%= t ".date" %></th>
<th></th>
<th></th>
</tr>
</tbody>
</table>
<% else %>
- <div><%= raw(t '.no_messages_yet', :people_mapping_nearby_link => link_to(t('.people_mapping_nearby'), user_path(current_user))) %></div>
+ <div><%= raw(t ".no_messages_yet", :people_mapping_nearby_link => link_to(t(".people_mapping_nearby"), user_path(current_user))) %></div>
<% end %>
<% content_for :heading do %>
- <h2><%= raw(t '.send_message_to', :name => link_to(h(@message.recipient.display_name), user_path(@message.recipient))) %></h2>
+ <h2><%= raw(t ".send_message_to", :name => link_to(h(@message.recipient.display_name), user_path(@message.recipient))) %></h2>
<% end %>
-<%= error_messages_for 'message' %>
+<%= error_messages_for "message" %>
-<%= form_for @message, :html => { :class => 'standard-form' } do |f| %>
+<%= form_for @message, :html => { :class => "standard-form" } do |f| %>
<%= hidden_field_tag :display_name, @message.recipient.display_name %>
<fieldset>
<div class='form-row'>
- <label class="standard-label" for="message_title"><%= t '.subject' %></label>
+ <label class="standard-label" for="message_title"><%= t ".subject" %></label>
<%= f.text_field :title, :size => 60, :class => "richtext_title" %>
</div>
<div class='form-row'>
- <label class="standard-label" for="message_body"><%= t '.body' %></label>
+ <label class="standard-label" for="message_body"><%= t ".body" %></label>
<%= richtext_area :message, :body, :cols => 80, :rows => 20 %>
</div>
<div class='buttons'>
- <%= submit_tag t('.send_button') %>
- <%= link_to t('.back_to_inbox'), inbox_messages_path, :class => 'deemphasize button' %>
+ <%= submit_tag t(".send_button") %>
+ <%= link_to t(".back_to_inbox"), inbox_messages_path, :class => "deemphasize button" %>
</div>
</fieldset>
<% end %>
<% content_for :heading do %>
- <h1><%= t '.heading' %></h1>
+ <h1><%= t ".heading" %></h1>
<% end %>
-<p><%= t '.body' %></p>
+<p><%= t ".body" %></p>
<% end %>
<% content_for :heading do %>
- <h2><%= raw(t '.my_inbox', :inbox_link => link_to(t('.inbox'), inbox_messages_path)) %>/<%= t '.outbox' %></h2>
+ <h2><%= raw(t ".my_inbox", :inbox_link => link_to(t(".inbox"), inbox_messages_path)) %>/<%= t ".outbox" %></h2>
<% end %>
-<h4><%= t '.messages', :count => current_user.sent_messages.size %></h4>
+<h4><%= t ".messages", :count => current_user.sent_messages.size %></h4>
<% if current_user.sent_messages.size > 0 %>
<table class="messages">
<thead>
<tr>
- <th><%= t '.to' %></th>
- <th><%= t '.subject' %></th>
- <th><%= t '.date' %></th>
+ <th><%= t ".to" %></th>
+ <th><%= t ".subject" %></th>
+ <th><%= t ".date" %></th>
<th></th>
</tr>
</thead>
</tbody>
</table>
<% else %>
- <div class="messages"><%= raw(t '.no_sent_messages', :people_mapping_nearby_link => link_to(t('.people_mapping_nearby'), user_path(current_user))) %></div>
+ <div class="messages"><%= raw(t ".no_sent_messages", :people_mapping_nearby_link => link_to(t(".people_mapping_nearby"), user_path(current_user))) %></div>
<% end %>
<div class="richtext"><%= @message.body.to_html %></div>
<div class='message-buttons buttons'>
- <%= button_to t('.reply_button'), message_reply_path(@message), :class => 'reply-button' %>
- <%= button_to t('.unread_button'), message_mark_path(@message, :mark => 'unread'), :class => 'mark-unread-button' %>
- <%= button_to t('.destroy_button'), message_path(@message), :method => 'delete', :class => 'destroy-button' %>
+ <%= button_to t(".reply_button"), message_reply_path(@message), :class => "reply-button" %>
+ <%= button_to t(".unread_button"), message_mark_path(@message, :mark => "unread"), :class => "mark-unread-button" %>
+ <%= button_to t(".destroy_button"), message_path(@message), :method => "delete", :class => "destroy-button" %>
<% else %>
<% end %>
- <%= link_to t('.back'), outbox_messages_path, :class => "button deemphasize" %>
+ <%= link_to t(".back"), outbox_messages_path, :class => "button deemphasize" %>
</div>
<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') %>
+<%= t("changesets.changeset_paging_nav.previous") %>
<% end %>
-| <%= t('changesets.changeset_paging_nav.showing_page', :page => @page) %> |
+| <%= t("changesets.changeset_paging_nav.showing_page", :page => @page) %> |
<% if @notes.size < @page_size %>
-<%= t('changesets.changeset_paging_nav.next') %>
+<%= 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>
<p><%= raw @description %></p>
<% end %>
-<%= render :partial => 'notes_paging_nav' %>
+<%= render :partial => "notes_paging_nav" %>
<table class="note_list">
<tr>
<th></th>
- <th><%= t '.id' %></th>
- <th><%= t '.creator' %></th>
- <th><%= t '.description' %></th>
- <th><%= t '.created_at' %></th>
- <th><%= t '.last_changed' %></th>
+ <th><%= t ".id" %></th>
+ <th><%= t ".creator" %></th>
+ <th><%= t ".description" %></th>
+ <th><%= t ".created_at" %></th>
+ <th><%= t ".last_changed" %></th>
</tr>
<% @notes.each do |note| -%>
<tr<% if note.author != @user2 %> class="creator"<% end %>>
<td>
<% if note.closed? %>
- <%= image_tag("closed_note_marker.png", :alt => 'closed') %>
+ <%= image_tag("closed_note_marker.png", :alt => "closed") %>
<% else %>
- <%= image_tag("open_note_marker.png", :alt => 'open') %>
+ <%= image_tag("open_note_marker.png", :alt => "open") %>
<% end %>
</td>
<td><%= link_to note.id.to_s, :controller => "browse", :action => "note", :id => note.id %></td>
<td><%= note_author(note.author) %></td>
<td><%= note.comments.first.body.to_html %></td>
- <td><%= t '.ago_html', :when => friendly_date(note.created_at) %></td>
- <td><%= t '.ago_html', :when => friendly_date(note.updated_at) %></td>
+ <td><%= t ".ago_html", :when => friendly_date(note.created_at) %></td>
+ <td><%= t ".ago_html", :when => friendly_date(note.updated_at) %></td>
</tr>
<% end -%>
</table>
-<%= render :partial => 'notes_paging_nav' %>
+<%= render :partial => "notes_paging_nav" %>
-<%= t 'notifier.gpx_notification.your_gpx_file' %>
+<%= t "notifier.gpx_notification.your_gpx_file" %>
<strong><%= @trace_name %></strong>
-<%= t 'notifier.gpx_notification.with_description' %>
+<%= t "notifier.gpx_notification.with_description" %>
<em><%= @trace_description %></em>
<% if @trace_tags.length>0 %>
- <%= t 'notifier.gpx_notification.and_the_tags' %>
+ <%= t "notifier.gpx_notification.and_the_tags" %>
<em><% @trace_tags.each do |tag| %>
<%= tag.tag.rstrip %>
<% end %></em>
<% else %>
- <%= t 'notifier.gpx_notification.and_no_tags' %>
+ <%= t "notifier.gpx_notification.and_no_tags" %>
<% end %>
<p>
- <%= t '.hi', :to_user => @to_user %>
+ <%= t ".hi", :to_user => @to_user %>
</p>
<p>
<% if @owner %>
<% end %>
<p>
- <%= raw t '.details', :url => link_to(@changeset_url, @changeset_url) %>
+ <%= raw t ".details", :url => link_to(@changeset_url, @changeset_url) %>
</p>
<% content_for :footer do %>
<p>
- <%= raw t '.unsubscribe', :url => link_to(@changeset_url, @changeset_url, :style => "color: #222") %>
+ <%= raw t ".unsubscribe", :url => link_to(@changeset_url, @changeset_url, :style => "color: #222") %>
</p>
<% end %>
<p>
- <%= t '.hi', :to_user => @to_user %>
+ <%= t ".hi", :to_user => @to_user %>
</p>
<p>
- <%= raw t '.header', :from_user => link_to_user(@from_user), :subject => content_tag("em", @title) %>
+ <%= raw t ".header", :from_user => link_to_user(@from_user), :subject => content_tag("em", @title) %>
</p>
<%= message_body do %>
<% end %>
<% content_for :footer do %>
- <p><%= raw t '.footer',
+ <p><%= raw t ".footer",
:readurl => link_to(@readurl, @readurl) + tag(:br),
:commenturl => link_to(@commenturl, @commenturl) + tag(:br),
:replyurl => link_to(@replyurl, @replyurl) %>
-<p><%= t 'notifier.email_confirm_html.greeting' %></p>
+<p><%= t "notifier.email_confirm_html.greeting" %></p>
-<p><%= t 'notifier.email_confirm_html.hopefully_you', :server_url => Settings.server_url, :new_address => @address %></p>
+<p><%= t "notifier.email_confirm_html.hopefully_you", :server_url => Settings.server_url, :new_address => @address %></p>
-<p><%= t 'notifier.email_confirm_html.click_the_link' %></p>
+<p><%= t "notifier.email_confirm_html.click_the_link" %></p>
<p><a href="<%= @url %>"><%= @url %></a></p>
-<p><%= t '.had_added_you', :user => @friend.befriender.display_name %></p>
+<p><%= t ".had_added_you", :user => @friend.befriender.display_name %></p>
<%= message_body do %>
- <p><%= raw t '.see_their_profile', :userurl => link_to(@viewurl, @viewurl) %></p>
+ <p><%= raw t ".see_their_profile", :userurl => link_to(@viewurl, @viewurl) %></p>
<% unless @friend.befriendee.is_friends_with?(@friend.befriender) -%>
- <p><%= raw t '.befriend_them', :befriendurl => link_to(@friendurl, @friendurl) %></p>
+ <p><%= raw t ".befriend_them", :befriendurl => link_to(@friendurl, @friendurl) %></p>
<% end -%>
<% end %>
-<p><%= t 'notifier.gpx_notification.greeting' %></p>
+<p><%= t "notifier.gpx_notification.greeting" %></p>
<p>
<%= render :partial => "gpx_description" %>
- <%= t 'notifier.gpx_notification.failure.failed_to_import' %>
+ <%= t "notifier.gpx_notification.failure.failed_to_import" %>
</p>
<blockquote>
</blockquote>
<p>
- <%= t 'notifier.gpx_notification.failure.more_info_1' %>
- <%= t 'notifier.gpx_notification.failure.more_info_2' %>
- <%= t 'notifier.gpx_notification.failure.import_failures_url' %>
+ <%= t "notifier.gpx_notification.failure.more_info_1" %>
+ <%= t "notifier.gpx_notification.failure.more_info_2" %>
+ <%= t "notifier.gpx_notification.failure.import_failures_url" %>
</p>
-<p><%= t 'notifier.gpx_notification.greeting' %></p>
+<p><%= t "notifier.gpx_notification.greeting" %></p>
<p>
<%= render :partial => "gpx_description" %>
- <%= t 'notifier.gpx_notification.success.loaded_successfully', :trace_points => @trace_points, :possible_points => @possible_points %>
+ <%= t "notifier.gpx_notification.success.loaded_successfully", :trace_points => @trace_points, :possible_points => @possible_points %>
</p>
-<p><%= t 'notifier.lost_password_html.greeting' %></p>
+<p><%= t "notifier.lost_password_html.greeting" %></p>
-<p><%= t 'notifier.lost_password_html.hopefully_you' %></p>
+<p><%= t "notifier.lost_password_html.hopefully_you" %></p>
-<p><%= t 'notifier.lost_password_html.click_the_link' %></p>
+<p><%= t "notifier.lost_password_html.click_the_link" %></p>
<p><a href="<%= @url %>"><%= @url %></a></p>
<p>
- <%= t '.hi', :to_user => @to_user %>
+ <%= t ".hi", :to_user => @to_user %>
</p>
<p>
- <%= raw t '.header',
+ <%= raw t ".header",
:from_user => link_to_user(@from_user),
:subject => content_tag("em", @title) %>
</p>
<% content_for :footer do %>
<p>
- <%= t '.footer_html',
+ <%= t ".footer_html",
:readurl => link_to(@readurl, @readurl) + tag(:br),
:replyurl => link_to(@replyurl, @replyurl) %>
</p>
-<p><%= t '.greeting' %></p>
+<p><%= t ".greeting" %></p>
<% if @owner %>
<p><%= raw t ".#{@event}.your_note", :commenter => link_to_user(@commenter), :place => @place %></p>
<% end %>
<% end %>
-<p><%= raw t '.details', :url => link_to(@noteurl, @noteurl) %></p>
+<p><%= raw t ".details", :url => link_to(@noteurl, @noteurl) %></p>
<%- if params[:oauth_callback] -%>
<%= hidden_field_tag "oauth_callback", params[:oauth_callback] %>
<%- end -%>
- <p><%= t '.allow_to' %></p>
+ <p><%= t ".allow_to" %></p>
<ul>
<% @token.client_application.permissions.each do |perm| %>
<li><%= check_box_tag perm.to_s, "yes", @token.read_attribute(perm) %><%= label_tag perm.to_s, t(".#{perm}") %></li>
<div class='standard-form'>
<fieldset>
<div class="form-row">
- <label class='standard-label' for="client_application_name"><%= t '.name' %> (<%= t '.required' %>)</label>
+ <label class='standard-label' for="client_application_name"><%= t ".name" %> (<%= t ".required" %>)</label>
<%= f.text_field :name %>
</div>
<div class="form-row">
- <label class='standard-label' for="client_application_url"><%= t '.url' %> (<%= t '.required' %>)</label>
+ <label class='standard-label' for="client_application_url"><%= t ".url" %> (<%= t ".required" %>)</label>
<%= f.text_field :url %>
</div>
<div class="form-row">
- <label class='standard-label' for="client_application_callback_url"><%= t '.callback_url' %></label>
+ <label class='standard-label' for="client_application_callback_url"><%= t ".callback_url" %></label>
<%= f.text_field :callback_url %>
</div>
<div class="form-row">
- <label class='standard-label' for="client_application_support_url"><%= t '.support_url' %></label>
+ <label class='standard-label' for="client_application_support_url"><%= t ".support_url" %></label>
<%= f.text_field :support_url %>
</div>
</fieldset>
<fieldset class='form-divider'>
- <p><%= t '.requests' %></p>
+ <p><%= t ".requests" %></p>
<% ClientApplication.all_permissions.each do |perm| %>
<div class="form-row">
<%= f.check_box perm %>
- <label class='standard-label' for="client_application_<%= perm.to_s %>"><%= t('.' + perm.to_s) %></label>
+ <label class='standard-label' for="client_application_<%= perm.to_s %>"><%= t("." + perm.to_s) %></label>
</div>
<% end %>
</fieldset>
<% content_for :heading do %>
- <h1><%= t '.title' %></h1>
+ <h1><%= t ".title" %></h1>
<% end %>
<%= form_for @client_application, :url => oauth_client_path(@client_application.user.display_name, @client_application), :html => { :method => :put } do |f| %>
<%= render :partial => "form", :locals => { :f => f } %>
- <%= submit_tag t '.submit' %>
+ <%= submit_tag t ".submit" %>
<% end %>
<% content_for :heading do %>
- <h1><%= t '.title' %></h1>
+ <h1><%= t ".title" %></h1>
<% end %>
<% unless @tokens.empty? %>
-<h3><%= t '.my_tokens' %></h3>
-<p><%= t '.list_tokens' %></p>
+<h3><%= t ".my_tokens" %></h3>
+<p><%= t ".list_tokens" %></p>
<table>
- <tr><th><%= t '.application' %></th>
- <th><%= t '.issued_at' %></th><th> </th></tr>
+ <tr><th><%= t ".application" %></th>
+ <th><%= t ".issued_at" %></th><th> </th></tr>
<% @tokens.each do |token| %>
<%= content_tag_for :tr, token do %>
<td><%= link_to token.client_application.name, token.client_application.url %></td>
<td><%= token.authorized_at %></td>
<td>
- <%= form_tag :controller => 'oauth', :action => 'revoke' do %>
- <%= hidden_field_tag 'token', token.token %>
- <%= submit_tag t('.revoke') %>
+ <%= form_tag :controller => "oauth", :action => "revoke" do %>
+ <%= hidden_field_tag "token", token.token %>
+ <%= submit_tag t(".revoke") %>
<% end %>
</td>
<% end %>
<% end %>
</table>
<% end %>
-<h3><%= t '.my_apps' %></h3>
+<h3><%= t ".my_apps" %></h3>
<% if @client_applications.empty? %>
-<p><%= raw(t('.no_apps', :oauth => "<a href=\"https://oauth.net\">OAuth</a>")) %></p>
+<p><%= raw(t(".no_apps", :oauth => "<a href=\"https://oauth.net\">OAuth</a>")) %></p>
<% else %>
-<p><%= t '.registered_apps' %></p>
+<p><%= t ".registered_apps" %></p>
<% @client_applications.each do |client| %>
<%= div_for client do %>
<%= link_to client.name, :action => :show, :id => client.id %>
<% end %>
<% end %>
<% end %>
-<h3><%= link_to t('.register_new'), :action => :new %></h3>
+<h3><%= link_to t(".register_new"), :action => :new %></h3>
<% content_for :heading do %>
- <h1><%= t '.title' %></h1>
+ <h1><%= t ".title" %></h1>
<% end %>
<div class='standard-form'>
<%= form_for :client_application, :url => { :action => :create } do |f| %>
<%= render :partial => "form", :locals => { :f => f } %>
- <%= submit_tag t('.submit') %>
+ <%= submit_tag t(".submit") %>
<% end %>
</div>
<% content_for :heading do %>
- <h1><%= t('.title', :app_name => @client_application.name) %></h1>
+ <h1><%= t(".title", :app_name => @client_application.name) %></h1>
<% end %>
<div class='prose'>
<p>
- <strong><%= t '.key' %></strong> <%= @client_application.key %>
+ <strong><%= t ".key" %></strong> <%= @client_application.key %>
</p>
<p>
- <strong><%= t '.secret' %></strong> <%= @client_application.secret %>
+ <strong><%= t ".secret" %></strong> <%= @client_application.secret %>
</p>
<p>
- <strong><%= t '.url' %></strong> http<%= 's' if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.request_token_path %>
+ <strong><%= t ".url" %></strong> http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.request_token_path %>
</p>
<p>
- <strong><%= t '.access_url' %></strong> http<%= 's' if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.access_token_path %>
+ <strong><%= t ".access_url" %></strong> http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.access_token_path %>
</p>
<p>
- <strong><%= t '.authorize_url' %></strong> http<%= 's' if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.authorize_path %>
+ <strong><%= t ".authorize_url" %></strong> http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.authorize_path %>
</p>
- <p><%= t '.requests' %></p>
+ <p><%= t ".requests" %></p>
<ul><% @client_application.permissions.each do |perm| %>
<div class="field">
- <li><%= t('oauth_clients.form.' + perm.to_s) %></li>
+ <li><%= t("oauth_clients.form." + perm.to_s) %></li>
</div>
<% end %></ul>
- <p><%= t '.support_notice' %></p>
+ <p><%= t ".support_notice" %></p>
</div>
<div class="buttons">
- <%= button_to t('.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class => "oauth-edit" %>
- <%= button_to t('.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t('.confirm') }, :class => "oauth-delete deemphasize" %>
+ <%= button_to t(".edit"), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class => "oauth-edit" %>
+ <%= button_to t(".delete"), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t(".confirm") }, :class => "oauth-delete deemphasize" %>
</div>
<ul id="redaction_list">
- <%= render :partial => 'redaction', :collection => @redactions %>
+ <%= render :partial => "redaction", :collection => @redactions %>
</ul>
-<% @title = t '.title' %>
+<% @title = t ".title" %>
<% content_for :heading do %>
- <h1><%= t '.heading' %></h1>
+ <h1><%= t ".heading" %></h1>
<% end %>
<%= form_for(@redaction) do |f| %>
<%= f.error_messages %>
<p>
- <%= f.label :title, t('.title') %><br />
+ <%= f.label :title, t(".title") %><br />
<%= f.text_field :title %>
</p>
<p>
- <%= f.label :description, t('.description') %><br />
+ <%= f.label :description, t(".description") %><br />
<%= richtext_area :redaction, :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
</p>
<p>
- <%= f.submit t('.submit') %>
+ <%= f.submit t(".submit") %>
</p>
<% end %>
-<% @title = t('.title') %>
+<% @title = t(".title") %>
<% content_for :heading do %>
- <h1><%= t('.heading') %></h1>
+ <h1><%= t(".heading") %></h1>
<% end %>
<% unless @redactions.empty? %>
- <%= render :partial => 'redactions' %>
+ <%= render :partial => "redactions" %>
<% else %>
- <p><%= t '.empty' %></p>
+ <p><%= t ".empty" %></p>
<% end %>
-<% @title = t '.title' %>
+<% @title = t ".title" %>
<% content_for :heading do %>
- <h1><%= t '.heading' %></h1>
+ <h1><%= t ".heading" %></h1>
<% end %>
<%= form_for(@redaction) do |f| %>
<%= f.error_messages %>
<p>
- <%= f.label :title, t('.title') %><br />
+ <%= f.label :title, t(".title") %><br />
<%= f.text_field :title %>
</p>
<p>
- <%= f.label :description, t('.description') %><br />
+ <%= f.label :description, t(".description") %><br />
<%= richtext_area :redaction, :description, :cols => 80, :rows => 20, :format => @redaction.description_format %>
</p>
<p>
- <%= f.submit t('.submit') %>
+ <%= f.submit t(".submit") %>
</p>
<% end %>
-<% @title = t('.title') %>
+<% @title = t(".title") %>
<% content_for :heading do %>
- <h1><%= t('.heading', :title => @redaction.title) %></h1>
+ <h1><%= t(".heading", :title => @redaction.title) %></h1>
<% end %>
<p>
- <b><%= t '.user' %></b>
+ <b><%= t ".user" %></b>
<%= link_to(@redaction.user.display_name, user_path(@redaction.user)) %>
</p>
<div class="richtext">
- <b><%= t '.description' %></b>
+ <b><%= t ".description" %></b>
<%= @redaction.description.to_html %>
</div>
<% if current_user and current_user.moderator? %>
<div class="buttons">
- <%= button_to t('.edit'), edit_redaction_path(@redaction), :method => :get %></td>
- <%= button_to t('.destroy'), @redaction, :method => "delete", :remote => true, :data => { :confirm => t('.confirm') } %>
+ <%= button_to t(".edit"), edit_redaction_path(@redaction), :method => :get %></td>
+ <%= button_to t(".destroy"), @redaction, :method => "delete", :remote => true, :data => { :confirm => t(".confirm") } %>
</div>
<% end %>
<% end %>
<div class="report-disclaimer">
- <%= t('.disclaimer.intro') %>
+ <%= t(".disclaimer.intro") %>
<ul>
- <li> <%= t('.disclaimer.not_just_mistake') %> </li>
- <li> <%= t('.disclaimer.unable_to_fix') %> </li>
- <li> <%= t('.disclaimer.resolve_with_user') %> </li>
+ <li> <%= t(".disclaimer.not_just_mistake") %> </li>
+ <li> <%= t(".disclaimer.unable_to_fix") %> </li>
+ <li> <%= t(".disclaimer.resolve_with_user") %> </li>
</ul>
</div>
<% end %>
<div class='form-row'>
- <p><%= t('.select') %></p>
+ <p><%= t(".select") %></p>
<ul>
<% Report.categories_for(@report.issue.reportable).each do |c| %>
<li>
</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'>
<tr>
- <% cl = cycle('table0', 'table1') %>
+ <% cl = cycle("table0", "table1") %>
<td class="<%= cl %>">
<% if Settings.status != "gpx_offline" %>
<% if trace.inserted %>
- <a href="<%= url_for :controller => 'traces', :action => 'show', :id => trace.id, :display_name => trace.user.display_name %>"><img src="<%= url_for :controller => 'traces', :action => 'icon', :id => trace.id, :display_name => trace.user.display_name %>" border="0" alt="" /></a>
+ <a href="<%= url_for :controller => "traces", :action => "show", :id => trace.id, :display_name => trace.user.display_name %>"><img src="<%= url_for :controller => "traces", :action => "icon", :id => trace.id, :display_name => trace.user.display_name %>" border="0" alt="" /></a>
<% else %>
- <span class="trace_pending"><%= t '.pending' %></span>
+ <span class="trace_pending"><%= t ".pending" %></span>
<% 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,') %>)
+ (<%= t ".count_points", :count => trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/, '\1,') %>)
<% end %>
- ... <%= t '.ago', :time_in_words_ago => time_ago_in_words(trace.timestamp) %></span>
- <%= link_to_if trace.inserted?, t('.map'), { :controller => 'site', :action => 'index', :mlat => trace.latitude, :mlon => trace.longitude, :anchor => "map=14/#{trace.latitude}/#{trace.longitude}" }, { :title => t('.view_map') } %> /
- <%= link_to t('.edit'), { :controller => 'site', :action => 'edit', :gpx => trace.id }, { :title => t('.edit_map') } %>
- <span class="trace_<%= trace.visibility %>"><%= t('.' + trace.visibility) %></span>
+ ... <%= t ".ago", :time_in_words_ago => time_ago_in_words(trace.timestamp) %></span>
+ <%= link_to_if trace.inserted?, t(".map"), { :controller => "site", :action => "index", :mlat => trace.latitude, :mlon => trace.longitude, :anchor => "map=14/#{trace.latitude}/#{trace.longitude}" }, { :title => t(".view_map") } %> /
+ <%= link_to t(".edit"), { :controller => "site", :action => "edit", :gpx => trace.id }, { :title => t(".edit_map") } %>
+ <span class="trace_<%= trace.visibility %>"><%= t("." + trace.visibility) %></span>
<br />
<%= trace.description %>
<br />
- <%= t '.by' %> <%= link_to h(trace.user.display_name), user_path(trace.user) %>
+ <%= t ".by" %> <%= link_to h(trace.user.display_name), user_path(trace.user) %>
<% if !trace.tags.empty? %>
- <%= t '.in' %>
+ <%= t ".in" %>
<%= raw(trace.tags.collect { |tag| link_to_tag tag.tag }.join(", ")) %>
<% end %>
</td>
<% content_for :optionals do %>
<div class="optionalbox">
- <h4><%= t '.tags' %></h4>
+ <h4><%= t ".tags" %></h4>
<% if @all_tags %>
<% @all_tags.each do |tag| %>
<%= link_to_tag tag %><br />
<% 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') %>
+<%= t(".newer") %>
<% end %>
-| <%= t('.showing_page', :page => @page) %> |
+| <%= t(".showing_page", :page => @page) %> |
<% if @traces.size < @page_size %>
-<%= t('.older') %>
+<%= t(".older") %>
<% else %>
-<%= link_to t('.older'), @params.merge(:page => @page + 1) %>
+<%= link_to t(".older"), @params.merge(:page => @page + 1) %>
<% end %>
<% end %>
</p>
<% content_for :heading do %>
- <h2><%= t '.heading', :name => h(@trace.name) %></h2>
+ <h2><%= t ".heading", :name => h(@trace.name) %></h2>
<% end %>
-<img src="<%= url_for :controller => 'traces', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
+<img src="<%= url_for :controller => "traces", :action => "picture", :id => @trace.id, :display_name => @trace.user.display_name %>">
<%= form_for @trace do |f| %>
<div id='edit-trace-form' class='standard-form'>
<fieldset>
<div class='form-row'>
- <label class='standard-label'><%= t '.filename' %></label>
- <p class='deemphasize'><%= @trace.name %> (<%= link_to t('.download'), trace_data_path(@trace) %>)</p>
+ <label class='standard-label'><%= t ".filename" %></label>
+ <p class='deemphasize'><%= @trace.name %> (<%= link_to t(".download"), trace_data_path(@trace) %>)</p>
</div>
<div class='form-row'>
- <label class='standard-label'><%= t '.uploaded_at' %></label>
+ <label class='standard-label'><%= t ".uploaded_at" %></label>
<p class='deemphasize'><%= l @trace.timestamp, :format => :friendly %></p>
</div>
<% if @trace.inserted? %>
<div class='form-row'>
- <label class='standard-label'><%= t '.points' %></label>
+ <label class='standard-label'><%= t ".points" %></label>
<p class='deemphasize'><%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/, '\1,') %></p>
</div>
<div class='form-row'>
- <label class='standard-label'><%= t '.start_coord' %></label>
+ <label class='standard-label'><%= t ".start_coord" %></label>
</div>
<div class="geo">
<span class="latitude"><%= @trace.latitude %></span>;
<span class="longitude"><%= @trace.longitude %></span>
</div>
- (<%= link_to t('.map'), :controller => 'site', :action => 'index', :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%= link_to t('.edit'), :controller => 'site', :action => 'edit', :gpx => @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)
+ (<%= link_to t(".map"), :controller => "site", :action => "index", :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%= link_to t(".edit"), :controller => "site", :action => "edit", :gpx => @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)
<% end %>
<div class='form-row'>
- <label class='standard-label'><%= t '.owner' %></label>
+ <label class='standard-label'><%= t ".owner" %></label>
<p class='deemphasize'><%= link_to h(@trace.user.display_name), user_path(@trace.user) %></p>
</div>
<div class='form-row'>
- <label class='standard-label'><%= t '.description' %></label>
+ <label class='standard-label'><%= t ".description" %></label>
<%= f.text_field :description %>
</div>
<div class='form-row'>
- <label class='standard-label'><%= t '.tags' %></label>
- <%= f.text_field :tagstring %> (<%= t '.tags_help' %>)
+ <label class='standard-label'><%= t ".tags" %></label>
+ <%= f.text_field :tagstring %> (<%= t ".tags_help" %>)
</div>
<div class='form-row'>
- <label class='standard-label'><%= t '.visibility' %></label>
- <%= f.select :visibility, [[t('traces.visibility.private'), "private"], [t('traces.visibility.public'), "public"], [t('traces.visibility.trackable'), "trackable"], [t('traces.visibility.identifiable'), "identifiable"]] %> (<a href="<%= t '.visibility_help_url' %>"><%= t '.visibility_help' %></a>)
+ <label class='standard-label'><%= t ".visibility" %></label>
+ <%= f.select :visibility, [[t("traces.visibility.private"), "private"], [t("traces.visibility.public"), "public"], [t("traces.visibility.trackable"), "trackable"], [t("traces.visibility.identifiable"), "identifiable"]] %> (<a href="<%= t ".visibility_help_url" %>"><%= t ".visibility_help" %></a>)
</div>
</fieldset>
</div>
-<%= submit_tag t '.save_button' %>
+<%= submit_tag t ".save_button" %>
<% end %>
<% content_for :heading do %>
<h1><%= h(@title) %></h1>
<ul class='secondary-actions clearfix'>
- <li><%= t('.description') %></li>
- <li><%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %></li>
- <li><%= link_to t('.upload_trace'), new_trace_path %></li>
+ <li><%= t(".description") %></li>
+ <li><%= rss_link_to :action => "georss", :display_name => @display_name, :tag => @tag %></li>
+ <li><%= link_to t(".upload_trace"), new_trace_path %></li>
<% if @tag %>
- <li><%= link_to t('.see_all_traces'), :controller => 'traces', :action => 'index', :display_name => nil, :tag => nil, :page => nil %></li>
- <li><%= link_to t('.see_my_traces'), :action => 'mine', :tag => nil, :page => nil %></li>
+ <li><%= link_to t(".see_all_traces"), :controller => "traces", :action => "index", :display_name => nil, :tag => nil, :page => nil %></li>
+ <li><%= link_to t(".see_my_traces"), :action => "mine", :tag => nil, :page => nil %></li>
<% else %>
<% if @display_name %>
- <li><%= link_to t('.see_all_traces'), :controller => 'traces', :action => 'index', :display_name => nil, :tag => nil, :page => nil %></li>
+ <li><%= link_to t(".see_all_traces"), :controller => "traces", :action => "index", :display_name => nil, :tag => nil, :page => nil %></li>
<% end %>
<% if current_user && current_user != @target_user %>
- <li><%= link_to t('.see_my_traces'), :action => 'mine', :tag => nil, :page => nil %></li>
+ <li><%= link_to t(".see_my_traces"), :action => "mine", :tag => nil, :page => nil %></li>
<% end %>
<% end %>
</ul>
<% end %>
<% content_for :auto_discovery_link_tag do %>
-<%= auto_discovery_link_tag :rss, :action => 'georss', :display_name => @display_name, :tag => @tag %>
+<%= auto_discovery_link_tag :rss, :action => "georss", :display_name => @display_name, :tag => @tag %>
<% end %>
<% if @traces.size > 0 %>
- <%= render :partial => 'trace_paging_nav' %>
+ <%= render :partial => "trace_paging_nav" %>
<table id="trace_list" cellpadding="3">
<thead>
</tr>
</thead>
<tbody>
- <%= render :partial => 'trace', :collection => @traces unless @traces.nil? %>
+ <%= render :partial => "trace", :collection => @traces unless @traces.nil? %>
</tbody>
</table>
- <%= render :partial => 'trace_paging_nav' %>
+ <%= render :partial => "trace_paging_nav" %>
<% else %>
- <h4><%= t '.empty_html', :upload_link => new_trace_path %></h4>
+ <h4><%= t ".empty_html", :upload_link => new_trace_path %></h4>
<% end %>
-<%= render :partial => 'trace_optionals' %>
+<%= render :partial => "trace_optionals" %>
<% content_for :heading do %>
- <h1><%= t '.upload_trace' %></h1>
+ <h1><%= t ".upload_trace" %></h1>
<% end %>
-<%= error_messages_for 'trace' %>
+<%= error_messages_for "trace" %>
<%= form_for @trace, :url => { :action => "create" }, :html => { :multipart => true } do |f| %>
<div class="standard-form">
<fieldset>
<div class='form-row'>
- <label for="trace_gpx_file" class="standard-label"><%= t '.upload_gpx' %></label>
+ <label for="trace_gpx_file" class="standard-label"><%= t ".upload_gpx" %></label>
<%= f.file_field :gpx_file %>
</div>
<div class='form-row'>
- <label class="standard-label"><%= t '.description' %></label>
+ <label class="standard-label"><%= t ".description" %></label>
<%= f.text_field :description %>
</div>
<div class='form-row'>
- <label class="standard-label"><%= t '.tags' %></label>
+ <label class="standard-label"><%= t ".tags" %></label>
<%= f.text_field :tagstring %>
- <span class="form-help deemphasize">(<%= t '.tags_help' %>)</span>
+ <span class="form-help deemphasize">(<%= t ".tags_help" %>)</span>
</div>
<div class='form-row'>
- <label class="standard-label"><%= t '.visibility' %></label>
- <%= f.select :visibility, [[t('traces.visibility.private'), "private"], [t('traces.visibility.public'), "public"], [t('traces.visibility.trackable'), "trackable"], [t('traces.visibility.identifiable'), "identifiable"]] %>
- <span class="form-help deemphasize">(<a href="<%= t '.visibility_help_url' %>"><%= t '.visibility_help' %></a>)</span>
+ <label class="standard-label"><%= t ".visibility" %></label>
+ <%= f.select :visibility, [[t("traces.visibility.private"), "private"], [t("traces.visibility.public"), "public"], [t("traces.visibility.trackable"), "trackable"], [t("traces.visibility.identifiable"), "identifiable"]] %>
+ <span class="form-help deemphasize">(<a href="<%= t ".visibility_help_url" %>"><%= t ".visibility_help" %></a>)</span>
</div>
</fieldset>
- <%= submit_tag t('.upload_button') %>
- <span class="form-help deemphasize"><a href="<%= t '.help_url' %>"><%= t '.help' %></a></span>
+ <%= submit_tag t(".upload_button") %>
+ <span class="form-help deemphasize"><a href="<%= t ".help_url" %>"><%= t ".help" %></a></span>
</div>
<% end %>
<% content_for :heading do %>
-<h2><%= t '.heading' %></h2>
+<h2><%= t ".heading" %></h2>
<% end %>
-<p><%= t '.message' %></p>
+<p><%= t ".message" %></p>
<% content_for :heading do %>
- <h2><%= t '.heading', :name => h(@trace.name) %></h2>
+ <h2><%= t ".heading", :name => h(@trace.name) %></h2>
<% end %>
<% if Settings.status != "gpx_offline" %>
<% if @trace.inserted %>
- <img src="<%= url_for :controller => 'traces', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
+ <img src="<%= url_for :controller => "traces", :action => "picture", :id => @trace.id, :display_name => @trace.user.display_name %>">
<% else %>
- <span class="trace_pending"><%= t '.pending' %></span>
+ <span class="trace_pending"><%= t ".pending" %></span>
<% end %>
<% end %>
<table border="0">
<tr>
- <td><%= t '.filename' %></td>
- <td><%= @trace.name %> (<%= link_to t('.download'), trace_data_path(@trace) %>)</td>
+ <td><%= t ".filename" %></td>
+ <td><%= @trace.name %> (<%= link_to t(".download"), trace_data_path(@trace) %>)</td>
</tr>
<tr>
- <td><%= t '.uploaded' %></td>
+ <td><%= t ".uploaded" %></td>
<td><%= l @trace.timestamp, :format => :friendly %></td>
</tr>
<% if @trace.inserted? %>
<tr>
- <td><%= t '.points' %></td>
+ <td><%= t ".points" %></td>
<td><%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/, '\1,') %></td></tr>
<tr>
- <td><%= t '.start_coordinates' %></td>
- <td><div class="geo"><span class="latitude"><%= @trace.latitude %></span>; <span class="longitude"><%= @trace.longitude %></span></div> (<%= link_to t('.map'), :controller => 'site', :action => 'index', :mlat => @trace.latitude, :mlon => @trace.longitude, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%= link_to t('.edit'), :controller => 'site', :action => 'edit', :gpx => @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)</td>
+ <td><%= t ".start_coordinates" %></td>
+ <td><div class="geo"><span class="latitude"><%= @trace.latitude %></span>; <span class="longitude"><%= @trace.longitude %></span></div> (<%= link_to t(".map"), :controller => "site", :action => "index", :mlat => @trace.latitude, :mlon => @trace.longitude, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%= link_to t(".edit"), :controller => "site", :action => "edit", :gpx => @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)</td>
</tr>
<% end %>
<tr>
- <td><%= t '.owner' %></td>
+ <td><%= t ".owner" %></td>
<td><%= link_to h(@trace.user.display_name), user_path(@trace.user) %></td>
</tr>
<tr>
- <td><%= t '.description' %></td>
+ <td><%= t ".description" %></td>
<td><%= h(@trace.description) %></td>
</tr>
<tr>
- <td><%= t '.tags' %></td>
+ <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>
+ <i><%= t ".none" %></i>
<% end %>
</td>
</tr>
<tr>
- <td><%= t '.visibility' %></td>
+ <td><%= t ".visibility" %></td>
<td><%= t "traces.visibility.#{@trace.visibility}" %></td>
</tr>
</table>
<% if current_user && (current_user==@trace.user || current_user.administrator? || current_user.moderator?) %>
<div class="buttons">
<% if current_user == @trace.user %>
- <%= link_to t('.edit_trace'), edit_trace_path(@trace), :class => "button" %>
+ <%= 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 %>
<tr>
- <% c1 = cycle('table0', 'table1') %>
+ <% c1 = cycle("table0", "table1") %>
<% if show_user_name %>
<td class="<%= c1 %>"><%= link_to h(block.user.display_name), user_path(block.user) %></td>
<td class="<%= c1 %>"><%= h block_status(block) %></td>
<td class="<%= c1 %>">
<% if block.revoker_id.nil? %>
- <%= t('.not_revoked') %>
+ <%= t(".not_revoked") %>
<% else %>
<%= link_to h(block.revoker.display_name), user_path(block.revoker) %>
<% end %>
</td>
- <td class="<%= c1 %>"><%= link_to t('.show'), block %></td>
- <td class="<%= c1 %>"><% if current_user and current_user.id == block.creator_id and block.active? %><%= link_to t('.edit'), edit_user_block_path(block) %><% end %></td>
+ <td class="<%= c1 %>"><%= link_to t(".show"), block %></td>
+ <td class="<%= c1 %>"><% if current_user and current_user.id == block.creator_id and block.active? %><%= link_to t(".edit"), edit_user_block_path(block) %><% end %></td>
<% if show_revoke_link %>
- <td class="<%= c1 %>"><% if block.active? %><%= link_to t('.revoke'), :controller => 'user_blocks', :action => 'revoke', :id => block.id %><% end %></td>
+ <td class="<%= c1 %>"><% if block.active? %><%= link_to t(".revoke"), :controller => "user_blocks", :action => "revoke", :id => block.id %><% end %></td>
<% end %>
</tr>
<table id="block_list" cellpadding="3">
<tr>
<% if show_user_name %>
- <th><%= t '.display_name' %></th>
+ <th><%= t ".display_name" %></th>
<% end %>
<% if show_creator_name %>
- <th><%= t '.creator_name' %></th>
+ <th><%= t ".creator_name" %></th>
<% end %>
- <th><%= t '.reason' %></th>
- <th><%= t '.status' %></th>
- <th><%= t '.revoker_name' %></th>
+ <th><%= t ".reason" %></th>
+ <th><%= t ".status" %></th>
+ <th><%= t ".revoker_name" %></th>
<th></th>
<th></th>
<% if show_revoke_link %>
<th></th>
<% end %>
</tr>
- <%= render :partial => 'block', :locals => { :show_revoke_link => show_revoke_link, :show_user_name => show_user_name, :show_creator_name => show_creator_name }, :collection => @user_blocks %>
+ <%= render :partial => "block", :locals => { :show_revoke_link => show_revoke_link, :show_user_name => show_user_name, :show_creator_name => show_creator_name }, :collection => @user_blocks %>
</table>
<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>
+ <li><%= t(".previous") %></li>
<% end -%>
- <li><%= t('.showing_page', :page => @user_blocks_pages.current_page.number) %></li>
+ <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>
+ <li><%= t(".next") %></li>
<% end -%>
</ul>
-<% @title = t('.title', :name => h(@user.display_name)) %>
+<% @title = t(".title", :name => h(@user.display_name)) %>
<% content_for :heading do %>
- <h1><%= raw(t('.heading', :name => link_to(h(@user.display_name), user_path(@user)))) %></h1>
+ <h1><%= raw(t(".heading", :name => link_to(h(@user.display_name), user_path(@user)))) %></h1>
<% end %>
<% unless @user_blocks.empty? %>
-<%= render :partial => 'blocks', :locals => { :show_revoke_link => (current_user and current_user.moderator?), :show_user_name => true, :show_creator_name => false } %>
+<%= render :partial => "blocks", :locals => { :show_revoke_link => (current_user and current_user.moderator?), :show_user_name => true, :show_creator_name => false } %>
<% else %>
<p><%= t ".empty", :name => h(@user.display_name) %></p>
<% end %>
-<% @title = t('.title', :name => h(@user.display_name)) %>
+<% @title = t(".title", :name => h(@user.display_name)) %>
<% content_for :heading do %>
- <h1><%= raw(t('.heading', :name => link_to(h(@user.display_name), user_path(@user)))) %></h1>
+ <h1><%= raw(t(".heading", :name => link_to(h(@user.display_name), user_path(@user)))) %></h1>
<% end %>
<% unless @user_blocks.empty? %>
-<%= render :partial => 'blocks', :locals => { :show_revoke_link => (current_user and current_user.moderator?), :show_user_name => false, :show_creator_name => true } %>
+<%= render :partial => "blocks", :locals => { :show_revoke_link => (current_user and current_user.moderator?), :show_user_name => false, :show_creator_name => true } %>
<% else %>
<p><%= t ".empty", :name => h(@user.display_name) %></p>
<% end %>
-<% @title = t '.title', :name => h(@user_block.user.display_name) %>
+<% @title = t ".title", :name => h(@user_block.user.display_name) %>
<% content_for :heading do %>
- <h1><%= raw t('.title',
+ <h1><%= raw t(".title",
:name => link_to(h(@user_block.user.display_name),
user_path(@user_block.user))) %></h1>
<ul class='secondary-actions clearfix'>
- <li><%= link_to t('.show'), @user_block %></li>
- <li><%= link_to t('.back'), user_blocks_path %></li>
+ <li><%= link_to t(".show"), @user_block %></li>
+ <li><%= link_to t(".back"), user_blocks_path %></li>
</ul>
<% end %>
<%= f.error_messages %>
<p>
- <%= f.label :reason, t('.reason', :name => h(@user_block.user.display_name)) %><br />
+ <%= f.label :reason, t(".reason", :name => h(@user_block.user.display_name)) %><br />
<%= richtext_area :user_block, :reason, :cols => 80, :rows => 20, :format => @user_block.reason_format %>
</p>
<p>
- <%= label_tag 'user_block_period', t('.period') %><br />
- <%= select_tag('user_block_period', options_for_select(UserBlock::PERIODS.collect { |h| [t('user_blocks.period', :count => h), h.to_s] }, params[:user_block_period])) %>
+ <%= label_tag "user_block_period", t(".period") %><br />
+ <%= select_tag("user_block_period", options_for_select(UserBlock::PERIODS.collect { |h| [t("user_blocks.period", :count => h), h.to_s] }, params[:user_block_period])) %>
</p>
<p>
<%= f.check_box :needs_view %>
- <%= f.label :needs_view, t('.needs_view') %>
+ <%= f.label :needs_view, t(".needs_view") %>
</p>
<p>
- <%= f.submit t('.submit') %>
+ <%= f.submit t(".submit") %>
</p>
<% end %>
-<% @title = t('.title') %>
+<% @title = t(".title") %>
<% content_for :heading do %>
- <h1><%= t('.heading') %></h1>
+ <h1><%= t(".heading") %></h1>
<% end %>
<% unless @user_blocks.empty? %>
-<%= render :partial => 'blocks', :locals => { :show_revoke_link => (current_user and current_user.moderator?), :show_user_name => true, :show_creator_name => true } %>
+<%= render :partial => "blocks", :locals => { :show_revoke_link => (current_user and current_user.moderator?), :show_user_name => true, :show_creator_name => true } %>
<% else %>
<p><%= t ".empty" %></p>
<% end %>
-<% @title = t '.title', :name => h(@user.display_name) %>
+<% @title = t ".title", :name => h(@user.display_name) %>
<% content_for :heading do %>
- <h1><%= raw t('.heading',
+ <h1><%= raw t(".heading",
:name => link_to(h(@user.display_name),
user_path(@user))) %></h1>
<% end %>
<%= f.error_messages %>
<p>
- <%= f.label :reason, t('.reason', :name => @user.display_name) %><br />
+ <%= f.label :reason, t(".reason", :name => @user.display_name) %><br />
<%= richtext_area :user_block, :reason, :cols => 80, :rows => 20 %>
</p>
<p>
- <%= label_tag 'user_block_period', t('.period') %><br />
- <%= select_tag('user_block_period', options_for_select(UserBlock::PERIODS.collect { |h| [t('user_blocks.period', :count => h), h.to_s] }, params[:user_block_period])) %>
+ <%= label_tag "user_block_period", t(".period") %><br />
+ <%= select_tag("user_block_period", options_for_select(UserBlock::PERIODS.collect { |h| [t("user_blocks.period", :count => h), h.to_s] }, params[:user_block_period])) %>
</p>
<p>
<%= f.check_box :needs_view %>
- <%= f.label :needs_view, t('.needs_view') %>
+ <%= f.label :needs_view, t(".needs_view") %>
</p>
<p>
- <%= hidden_field_tag 'display_name', @user.display_name %>
- <%= f.submit t('.submit') %>
+ <%= hidden_field_tag "display_name", @user.display_name %>
+ <%= f.submit t(".submit") %>
</p>
<% end %>
-<%= link_to t('.back'), user_blocks_path %>
+<%= link_to t(".back"), user_blocks_path %>
-<p><%= t '.sorry', :id => params[:id] %></p>
+<p><%= t ".sorry", :id => params[:id] %></p>
-<%= link_to t('.back'), user_blocks_path %>
+<%= link_to t(".back"), user_blocks_path %>
-<% @title = t('.title',
+<% @title = t(".title",
:block_on => h(@user_block.user.display_name),
:block_by => h(@user_block.creator.display_name)) %>
<% content_for :heading do %>
- <h1><%= raw t('.heading',
+ <h1><%= raw t(".heading",
:block_on => link_to(h(@user_block.user.display_name),
user_path(@user_block.user)),
:block_by => link_to(h(@user_block.creator.display_name),
<% if @user_block.ends_at > Time.now %>
<p><b>
- <%= t('.time_future', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
+ <%= t(".time_future", :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
</b></p>
<%= form_for :revoke, :url => { :action => "revoke" } do |f| %>
<%= f.error_messages %>
<p>
- <%= check_box_tag 'confirm', 'yes' %>
- <%= label_tag 'confirm', t('.confirm') %>
+ <%= check_box_tag "confirm", "yes" %>
+ <%= label_tag "confirm", t(".confirm") %>
</p>
<p>
- <%= submit_tag t('.revoke') %>
+ <%= submit_tag t(".revoke") %>
</p>
<% end %>
<% else %>
<p>
- <%= t('.past', :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
+ <%= t(".past", :time => distance_of_time_in_words_to_now(@user_block.ends_at)) %>
</p>
<% end %>
-<% @title = t('.title',
+<% @title = t(".title",
:block_on => @user_block.user.display_name,
:block_by => @user_block.creator.display_name) %>
<% content_for :heading do %>
- <h1><%= raw t('.heading',
+ <h1><%= raw t(".heading",
:block_on => link_to(h(@user_block.user.display_name),
user_path(@user_block.user)),
:block_by => link_to(h(@user_block.creator.display_name),
<ul class='secondary-actions clearfix'>
<% if @user_block.ends_at > Time.now.getutc %>
<% if current_user and current_user.id == @user_block.creator_id %>
- <li><%= link_to t('.edit'), edit_user_block_path(@user_block) %></li>
+ <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>
+ <li><%= link_to t(".back"), user_blocks_path %></li>
</ul>
<% end %>
<% if @user_block.revoker %>
<p>
- <b><%= t '.revoker' %></b>
+ <b><%= t ".revoker" %></b>
<%= link_to h(@user_block.revoker.display_name), user_path(@user_block.revoker) %>
</p>
<% end %>
-<p><b><%= t '.created' %></b>: <%= raw t '.ago', :time => friendly_date(@user_block.created_at) %></p>
+<p><b><%= t ".created" %></b>: <%= raw t ".ago", :time => friendly_date(@user_block.created_at) %></p>
-<p><b><%= t '.status' %></b>: <%= block_status(@user_block) %></p>
+<p><b><%= t ".status" %></b>: <%= block_status(@user_block) %></p>
-<p><b><%= t '.reason' %></b></p>
+<p><b><%= t ".reason" %></b></p>
<div class="richtext"><%= @user_block.reason.to_html %></div>
<% if @user.home_lon and @user.home_lat and contact.home_lon and contact.home_lat %>
<% distance = @user.distance(contact) %>
<% if distance < 1 %>
- (<%= t 'users.show.m away', :count => (distance * 1000).round %>)
+ (<%= t "users.show.m away", :count => (distance * 1000).round %>)
<% else %>
- (<%= t 'users.show.km away', :count => distance.round %>)
+ (<%= t "users.show.km away", :count => distance.round %>)
<% end %>
<% end %>
</p>
<p>
<% changeset = contact.changesets.first %>
<% if changeset %>
- <%= t('users.show.latest edit', :ago => t('users.show.ago', :time_in_words_ago => time_ago_in_words(changeset.created_at))) %>
- <% comment = changeset.tags['comment'].to_s != '' ? changeset.tags['comment'] : t('browse.no_comment') %>
+ <%= t("users.show.latest edit", :ago => t("users.show.ago", :time_in_words_ago => time_ago_in_words(changeset.created_at))) %>
+ <% comment = changeset.tags["comment"].to_s != "" ? changeset.tags["comment"] : t("browse.no_comment") %>
"<%= link_to(comment,
- { :controller => 'browse', :action => 'changeset', :id => changeset.id },
- { :title => t('changesets.changeset.view_changeset_details') }) %>"
+ { :controller => "browse", :action => "changeset", :id => changeset.id },
+ { :title => t("changesets.changeset.view_changeset_details") }) %>"
<% else %>
- <%= t 'changesets.changeset.no_edits' %>
+ <%= t "changesets.changeset.no_edits" %>
<% end %>
</p>
<ul class='secondary-actions clearfix deemphasize'>
- <li><%= link_to t('users.show.send message'), new_message_path(contact) %></li>
+ <li><%= link_to t("users.show.send message"), new_message_path(contact) %></li>
<li>
<% if current_user.is_friends_with?(contact) %>
- <%= link_to t('users.show.remove as friend'), remove_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
+ <%= link_to t("users.show.remove as friend"), remove_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
<% else %>
- <%= link_to t('users.show.add as friend'), make_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
+ <%= link_to t("users.show.add as friend"), make_friend_path(:display_name => contact.display_name, :referer => request.fullpath), :method => :post %>
<% end %>
</li>
</ul>
<div class="user_popup">
<%= user_thumbnail popup %>
- <p><%= t('.' + type) %></p>
+ <p><%= t("." + type) %></p>
<p><%= link_to popup.display_name, user_path(popup) %></p>
</div>
<p id="first">
- <%= raw @text['intro'] %>
- <%= raw @text['next_with_decline'] %>
+ <%= raw @text["intro"] %>
+ <%= raw @text["next_with_decline"] %>
</p>
-<h3><%= raw @text['introduction'] %></h3>
+<h3><%= raw @text["introduction"] %></h3>
<ol>
<li>
- <p><%= raw @text['section_1'] %></p>
+ <p><%= raw @text["section_1"] %></p>
<% unless @text['section_1a'].nil? %>
<ol>
- <li><%= raw @text['section_1a'] %></li>
- <li><%= raw @text['section_1b'] %></li>
+ <li><%= raw @text["section_1a"] %></li>
+ <li><%= raw @text["section_1b"] %></li>
</ol>
<% end %>
</li>
</ol>
-<h3><%= raw @text['rights_granted'] %></h3>
+<h3><%= raw @text["rights_granted"] %></h3>
<ol start="2">
<li>
- <p><%= raw @text['section_2'] %></p>
+ <p><%= raw @text["section_2"] %></p>
</li>
<li>
- <p><%= raw @text['section_3'] %></p>
- <p><%= raw @text['active_defn_1'] %></p>
- <p><%= raw @text['active_defn_2'] %></p>
+ <p><%= raw @text["section_3"] %></p>
+ <p><%= raw @text["active_defn_1"] %></p>
+ <p><%= raw @text["active_defn_2"] %></p>
</ul>
</li>
<li>
- <p><%= raw @text['section_4'] %></p>
+ <p><%= raw @text["section_4"] %></p>
</li>
<li>
- <p><%= raw @text['section_5'] %></p>
+ <p><%= raw @text["section_5"] %></p>
</li>
</ol>
-<h3><%= raw @text['limitation_of_liability'] %></h3>
+<h3><%= raw @text["limitation_of_liability"] %></h3>
<ol start="6">
- <li><p><%= raw @text['section_6'] %></p></li>
- <li><p><%= raw @text['section_7'] %></p></li>
+ <li><p><%= raw @text["section_6"] %></p></li>
+ <li><p><%= raw @text["section_7"] %></p></li>
</ol>
-<h3><%= raw @text['miscellaneous'] %></h3>
+<h3><%= raw @text["miscellaneous"] %></h3>
<ol start="8">
<li>
- <p id="last"><%= raw @text['section_8'] %></p>
+ <p id="last"><%= raw @text["section_8"] %></p>
</li>
</ol>
-<% cl = cycle('table0', 'table1') %>
+<% cl = cycle("table0", "table1") %>
<tr class="<%= cl %>">
<td>
<td>
<p>
<% if user.creation_ip %>
- <%= raw t 'users.index.summary',
+ <%= raw t "users.index.summary",
:name => link_to(h(user.display_name), user_path(user)),
:ip_address => link_to(user.creation_ip, :ip => user.creation_ip),
:date => l(user.creation_time, :format => :friendly) %>
<% else %>
- <%= raw t 'users.index.summary_no_ip',
+ <%= raw t "users.index.summary_no_ip",
:name => link_to(h(user.display_name), user_path(user)),
:date => l(user.creation_time, :format => :friendly) %>
<% end %>
<% end %>
<% content_for :heading do %>
- <h1><%= t '.my settings' %></h1>
+ <h1><%= t ".my settings" %></h1>
<ul class='secondary-actions clearfix'>
- <li><%= link_to t('.return to profile'), user_path(current_user) %></li>
- <li><%= link_to t('users.show.oauth settings'), :controller => 'oauth_clients', :action => 'index' %></li>
+ <li><%= link_to t(".return to profile"), user_path(current_user) %></li>
+ <li><%= link_to t("users.show.oauth settings"), :controller => "oauth_clients", :action => "index" %></li>
</ul>
<% end %>
<%= error_messages_for current_user %>
-<%= form_for current_user, :url => { :action => :account }, :method => :post, :html => { :multipart => true, :id => 'accountForm', :class => 'standard-form', :autocomplete => :off } do |f| %>
+<%= form_for current_user, :url => { :action => :account }, :method => :post, :html => { :multipart => true, :id => "accountForm", :class => "standard-form", :autocomplete => :off } do |f| %>
<fieldset>
<div class="form-row">
- <label class="standard-label"><%= t 'users.new.display name' %></label>
+ <label class="standard-label"><%= t "users.new.display name" %></label>
<%= f.text_field :display_name %>
</div>
</fieldset>
<fieldset>
<div class="form-row">
- <label class="standard-label"><%= t '.current email address' %></label>
+ <label class="standard-label"><%= t ".current email address" %></label>
<input type="email" disabled value="<%= current_user.email %>" />
- <span class="form-help deemphasize"><%= t '.email never displayed publicly' %></span>
+ <span class="form-help deemphasize"><%= t ".email never displayed publicly" %></span>
</div>
<div class="form-row">
- <label class="standard-label"><%= t '.new email address' %></label>
+ <label class="standard-label"><%= t ".new email address" %></label>
<%= f.email_field :new_email, :autocomplete => :off %>
- <span class="form-help deemphasize"><%= t '.email never displayed publicly' %></span>
+ <span class="form-help deemphasize"><%= t ".email never displayed publicly" %></span>
</div>
</fieldset>
<fieldset>
<div class="form-row">
- <label class="standard-label"><%= t 'users.new.password' %></label>
- <%= f.password_field :pass_crypt, :value => '', :autocomplete => :off %>
+ <label class="standard-label"><%= t "users.new.password" %></label>
+ <%= 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 %>
+ <label class="standard-label"><%= t "users.new.confirm password" %></label>
+ <%= f.password_field :pass_crypt_confirmation, :value => "", :autocomplete => :off %>
</div>
</fieldset>
<fieldset>
<div class="form-row">
- <label class="standard-label"><%= t '.external auth' %></label>
+ <label class="standard-label"><%= t ".external auth" %></label>
<%= f.select :auth_provider, Auth::PROVIDERS %>
<%= f.text_field :auth_uid %>
- <span class="form-help deemphasize">(<a href="<%= t '.openid.link' %>" target="_new"><%= t '.openid.link text' %></a>)</span>
+ <span class="form-help deemphasize">(<a href="<%= t ".openid.link" %>" target="_new"><%= t ".openid.link text" %></a>)</span>
</div>
</fieldset>
<fieldset class="form-divider">
<div class="form-row">
- <label class="standard-label"><%= t '.public editing.heading' %></label>
+ <label class="standard-label"><%= t ".public editing.heading" %></label>
<span class="form-help deemphasize">
<% if current_user.data_public? %>
- <%= t '.public editing.enabled' %>
- (<a href="<%= t '.public editing.enabled link' %>" target="_new"><%= t '.public editing.enabled link text' %></a>)
+ <%= t ".public editing.enabled" %>
+ (<a href="<%= t ".public editing.enabled link" %>" target="_new"><%= t ".public editing.enabled link text" %></a>)
<% else %>
- <%= t '.public editing.disabled' %>
- (<a href="#public"><%= t '.public editing.disabled link text' %></a>)
+ <%= t ".public editing.disabled" %>
+ (<a href="#public"><%= t ".public editing.disabled link text" %></a>)
<% end %>
</span>
</div>
<div class="form-row">
- <label class="standard-label"><%= t '.contributor terms.heading' %></label>
+ <label class="standard-label"><%= t ".contributor terms.heading" %></label>
<span class="form-help deemphasize">
<% if current_user.terms_agreed? %>
- <%= t '.contributor terms.agreed' %>
- (<a href="<%= t '.contributor terms.link' %>" target="_new"><%= t '.contributor terms.link text' %></a>)
+ <%= t ".contributor terms.agreed" %>
+ (<a href="<%= t ".contributor terms.link" %>" target="_new"><%= t ".contributor terms.link text" %></a>)
<% if current_user.consider_pd? %>
- <%= t '.contributor terms.agreed_with_pd' %>
+ <%= t ".contributor terms.agreed_with_pd" %>
<% end %>
<% else %>
- <%= t '.contributor terms.not yet agreed' %>
- <%= link_to t('.contributor terms.review link text'), :controller => 'users', :action => 'terms' %>
+ <%= t ".contributor terms.not yet agreed" %>
+ <%= link_to t(".contributor terms.review link text"), :controller => "users", :action => "terms" %>
<% end %>
</span>
</div>
<div class="form-row">
- <label class="standard-label"><%= t '.preferred editor' %></label>
- <%= f.select :preferred_editor, [[t("editor.default", :name => t("editor.#{Settings.default_editor}.name")), 'default']] + Editors::ALL_EDITORS.collect { |e| [t("editor.#{e}.description"), e] } %>
+ <label class="standard-label"><%= t ".preferred editor" %></label>
+ <%= f.select :preferred_editor, [[t("editor.default", :name => t("editor.#{Settings.default_editor}.name")), "default"]] + Editors::ALL_EDITORS.collect { |e| [t("editor.#{e}.description"), e] } %>
</div>
</fieldset>
<fieldset class="form-divider">
<div class='form-row'>
- <label class="standard-label"><%= t '.profile description' %></label>
+ <label class="standard-label"><%= t ".profile description" %></label>
<%= richtext_area :user, :description, :object => current_user, :cols => 80, :rows => 20 %>
</div>
<div class="form-row">
- <label class="standard-label"><%= t '.preferred languages' %></label>
+ <label class="standard-label"><%= t ".preferred languages" %></label>
<%= f.text_field :languages %>
</div>
<div class='form-row accountImage'>
- <label class="standard-label"><%= t '.image' %></label>
+ <label class="standard-label"><%= t ".image" %></label>
<%= user_image current_user %>
<ul class='form-list accountImage-options'>
<% if current_user.image.file? %>
<li>
<%= radio_button_tag "image_action", "keep", !current_user.image_use_gravatar %>
- <label class='standard-label' for='image_action_keep'><%= t '.keep image' %></label>
+ <label class='standard-label' for='image_action_keep'><%= t ".keep image" %></label>
</li>
<% end %>
<% if current_user.image.file? || current_user.image_use_gravatar? %>
<li>
<%= radio_button_tag "image_action", "delete" %>
- <label class='standard-label' for='image_action_delete'><%= t '.delete image' %></label>
+ <label class='standard-label' for='image_action_delete'><%= t ".delete image" %></label>
</li>
<% end %>
<% if current_user.image.file? %>
<li>
<%= radio_button_tag "image_action", "new" %>
<label class='standard-label' for='image_action_new'>
- <%= t '.replace image' %>
- <span class="form-help deemphasize"><%= t '.image size hint' %></span>
+ <%= t ".replace image" %>
+ <span class="form-help deemphasize"><%= t ".image size hint" %></span>
</label>
<%= f.file_field :image %>
</li>
<li>
<%= radio_button_tag "image_action", "new" %>
<label class='standard-label' for='image_action_new'>
- <%= t '.new image' %>
- <span class="form-help deemphasize"><%= t '.image size hint' %></span>
+ <%= t ".new image" %>
+ <span class="form-help deemphasize"><%= t ".image size hint" %></span>
</label>
<%= f.file_field :image %>
</li>
<li>
<%= radio_button_tag "image_action", "gravatar", current_user.image_use_gravatar %>
<label class='standard-label' for='image_action_gravatar'>
- <%= t '.gravatar.gravatar' %>
- <span class='form-help deemphasize'> (<a href="<%= t '.gravatar.link' %>" target="_new"><%= t '.gravatar.link text' %></a>)</span>
+ <%= t ".gravatar.gravatar" %>
+ <span class='form-help deemphasize'> (<a href="<%= t ".gravatar.link" %>" target="_new"><%= t ".gravatar.link text" %></a>)</span>
</label>
</li>
</ul>
<fieldset class="form-divider">
<div class='form-row location clearfix'>
- <label class="standard-label"><%= t '.home location' %></label>
+ <label class="standard-label"><%= t ".home location" %></label>
<div id="homerow" <% unless current_user.home_lat and current_user.home_lon %>class="nohome"<% end %> >
- <p class="message form-help deemphasize"><%= t '.no home location' %></p>
+ <p class="message form-help deemphasize"><%= t ".no home location" %></p>
<div class='form-column'>
- <label class="standard-label secondary"><%= t '.latitude' %></label>
+ <label class="standard-label secondary"><%= t ".latitude" %></label>
<%= f.text_field :home_lat, :id => "home_lat" %>
</div>
<div class='form-column'>
- <label class="standard-label secondary"><%= t '.longitude' %></label>
+ <label class="standard-label secondary"><%= t ".longitude" %></label>
<%= f.text_field :home_lon, :id => "home_lon" %>
</div>
</div>
<div class="form-row">
<input type="checkbox" name="updatehome" value="1" <% unless current_user.home_lat and current_user.home_lon %> checked="checked" <% end %> id="updatehome" />
- <label class="standard-label" for="updatehome"><%= t '.update home location on click' %></label>
+ <label class="standard-label" for="updatehome"><%= t ".update home location on click" %></label>
</div>
<%= content_tag "div", "", :id => "map", :class => "content_map settings_map set_location" %>
</fieldset>
- <%= submit_tag t('.save changes button') %>
+ <%= submit_tag t(".save changes button") %>
<% end %>
<% unless current_user.data_public? %>
<a name="public"></a>
-<h2><%= t '.public editing note.heading' %></h2>
-<%= raw t '.public editing note.text' %>
- <%= button_to t('.make edits public button'), :action => :go_public %>
+<h2><%= t ".public editing note.heading" %></h2>
+<%= raw t ".public editing note.text" %>
+ <%= button_to t(".make edits public button"), :action => :go_public %>
<% end %>
<% content_for :heading do %>
- <h1><%= t 'users.new.title' %></h1>
+ <h1><%= t "users.new.title" %></h1>
<div class='header-illustration new-user-main'></div>
<div class='header-illustration new-user-arm'></div>
<% end %>
<div class="message">
- <h1><%= t 'users.new.no_auto_account_create' %></h1>
- <h2><%= raw t 'users.new.contact_webmaster', :webmaster => "mailto:#{Settings.support_email}" %></h2>
+ <h1><%= t "users.new.no_auto_account_create" %></h1>
+ <h2><%= raw t "users.new.contact_webmaster", :webmaster => "mailto:#{Settings.support_email}" %></h2>
</div>
<% content_for :heading do %>
- <h1><%= t '.heading' %></h1>
+ <h1><%= t ".heading" %></h1>
<div class='header-illustration confirm-main'></div>
<% end %>
<% content_for(:content_class) { "user_confirm" } %>
- <p><%= t '.press confirm button' %></p>
+ <p><%= t ".press confirm button" %></p>
<%= form_tag({}, { :id => "confirm" }) do %>
<input type="display_name" name="confirm_string" value="<%= params[:display_name] %>">
<input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
- <input type="submit" name="confirm_action" value="<%= t '.button' %>">
+ <input type="submit" name="confirm_action" value="<%= t ".button" %>">
<% end %>
<% else %>
<h1>
</h1>
<p class='deemphasize'><%= t ".reconfirm_html",
- :reconfirm => url_for(:action => 'confirm_resend') %></p>
+ :reconfirm => url_for(:action => "confirm_resend") %></p>
<% end %>
<% content_for(:content_class) { "user_confirm" } %>
<% content_for :heading do %>
- <h1><%= t '.heading' %></h1>
+ <h1><%= t ".heading" %></h1>
<% end %>
-<p><%= t '.press confirm button' %></p>
+<p><%= t ".press confirm button" %></p>
<%= form_tag({}, { :id => "confirm" }) do %>
<input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
- <input type="submit" name="confirm_action" value="<%= t '.button' %>">
+ <input type="submit" name="confirm_action" value="<%= t ".button" %>">
<% end %>
-<% @title = t('.title') %>
+<% @title = t(".title") %>
<% content_for :head do %>
<%= javascript_include_tag "user" %>
<% end %>
<% content_for :heading do %>
- <h1><%= t('.heading') %></h1>
+ <h1><%= t(".heading") %></h1>
<% end %>
<% unless @users.empty? %>
<table id="user_list">
<tr>
<td colspan="2">
- <%= t '.showing',
+ <%= t ".showing",
:page => @user_pages.current_page.number,
:first_item => @user_pages.current_page.first_item,
:last_item => @user_pages.current_page.last_item,
<%= check_box_tag "user_all", "1", false %>
</td>
</tr>
- <%= render :partial => 'user', :collection => @users %>
+ <%= render :partial => "user", :collection => @users %>
</table>
<div id="user_list_actions buttons">
- <%= submit_tag t('.confirm'), :name => "confirm" %>
- <%= submit_tag t('.hide'), :name => "hide" %>
+ <%= submit_tag t(".confirm"), :name => "confirm" %>
+ <%= submit_tag t(".hide"), :name => "hide" %>
</div>
<% end %>
<% else %>
<% end %>
<% content_for :heading do %>
- <h1><%= t '.heading' %></h1>
+ <h1><%= t ".heading" %></h1>
<% end %>
<div id="login_login">
<%= form_tag({ :action => "login" }, { :id => "login_form" }) do %>
- <%= hidden_field_tag('referer', h(params[:referer])) %>
+ <%= hidden_field_tag("referer", h(params[:referer])) %>
- <p class='deemphasize'><%= t '.no account' %> <%= link_to t('.register now'), :action => :new, :referer => params[:referer] %></p>
+ <p class='deemphasize'><%= t ".no account" %> <%= link_to t(".register now"), :action => :new, :referer => params[:referer] %></p>
<div id="loginForm" class="standard-form">
<fieldset>
<div class="form-row">
<label for="username" class="standard-label">
- <%= t '.email or username' %>
+ <%= t ".email or username" %>
</label>
<%= text_field_tag "username", params[:username], :tabindex => 1 %>
</div>
<div class="form-row">
<label for="password" class="standard-label">
- <%= t '.password' %>
+ <%= t ".password" %>
</label>
<%= password_field_tag "password", "", :tabindex => 2 %>
</div>
<span class="form-help deemphasize">
- <%= link_to t('.lost password link'), :controller => 'users', :action => 'lost_password' %>
+ <%= link_to t(".lost password link"), :controller => "users", :action => "lost_password" %>
</span>
</fieldset>
<fieldset>
<%= check_box_tag "remember_me", "yes", params[:remember_me] == "yes", :tabindex => 3 %>
<label for="remember_me" class="standard-label">
- <%= t '.remember' %>
+ <%= t ".remember" %>
</label>
- <%= submit_tag t('.login_button'), :tabindex => 4 %>
+ <%= submit_tag t(".login_button"), :tabindex => 4 %>
</fieldset>
</div>
<fieldset class='form-divider'>
- <p class='standard-label'><%= t '.with external' %></p>
+ <p class='standard-label'><%= t ".with external" %></p>
<ul class='clearfix' id="login_auth_buttons">
<li><%= link_to image_tag("openid.png", :alt => t(".auth_providers.openid.title")), "#", :id => "openid_open_url", :title => t(".auth_providers.openid.title") %></li>
</ul>
<div id='login_openid_url' class='form-row'>
- <label for='openid_url' class="standard-label"><%= raw t '.openid', :logo => openid_logo %></label>
+ <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") %>
- <span class="minorNote">(<a href="<%= t 'users.account.openid.link' %>" target="_new"><%= t 'users.account.openid.link text' %></a>)</span>
+ <span class="minorNote">(<a href="<%= t "users.account.openid.link" %>" target="_new"><%= t "users.account.openid.link text" %></a>)</span>
</div>
- <%= submit_tag t('.login_button'), :tabindex => 6, :id => "login_openid_submit" %>
+ <%= submit_tag t(".login_button"), :tabindex => 6, :id => "login_openid_submit" %>
</fieldset>
<% content_for :heading do %>
- <h1><%= t '.heading' %></h1>
+ <h1><%= t ".heading" %></h1>
<% end %>
<%= form_tag :action => "logout" do %>
<%= hidden_field_tag("referer", h(params[:referer])) %>
<%= hidden_field_tag("session", session.id) %>
- <%= submit_tag t('.logout_button') %>
+ <%= submit_tag t(".logout_button") %>
<% end %>
<% content_for :heading do %>
- <h1><%= t '.heading' %></h1>
+ <h1><%= t ".heading" %></h1>
<% end %>
-<p><%= t '.help_text' %></p>
+<p><%= t ".help_text" %></p>
-<%= form_tag :action => 'lost_password' do %>
+<%= form_tag :action => "lost_password" do %>
<div class="standard-form">
- <label class="standard-label"><%= t '.email address' %></label>
- <%= text_field('user', 'email', :tabindex => 1) %>
- <%= submit_tag t('.new password button'), :tabindex => 2 %>
+ <label class="standard-label"><%= t ".email address" %></label>
+ <%= text_field("user", "email", :tabindex => 1) %>
+ <%= submit_tag t(".new password button"), :tabindex => 2 %>
</div>
<% end %>
<% end %>
<% content_for :heading do %>
- <h1><%= t '.title' %></h1>
+ <h1><%= t ".title" %></h1>
<div class='header-illustration new-user-main'></div>
<div class='header-illustration new-user-arm'></div>
<% end %>
-<%= form_for current_user, :url => { :action => 'create' }, :html => { :class => 'standard-form fillL col6 inner22' } do |f| %>
- <%= hidden_field_tag('referer', h(@referer)) unless @referer.nil? %>
+<%= form_for current_user, :url => { :action => "create" }, :html => { :class => "standard-form fillL col6 inner22" } do |f| %>
+ <%= hidden_field_tag("referer", h(@referer)) unless @referer.nil? %>
<fieldset>
<div class="form-row">
<label for="email" class="standard-label">
- <%= t '.email address' %>
+ <%= t ".email address" %>
</label>
<%= 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' %>
+ <%= t ".confirm email address" %>
</label>
<%= 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>
+ <span class="form-help deemphasize"><%= raw(t ".not displayed publicly") %></span>
</fieldset>
<fieldset>
<div class="form-row">
<label for="display_name" class="standard-label">
- <%= t '.display name' %>
+ <%= t ".display name" %>
</label>
<%= f.text_field(:display_name, :tabindex => 3) %>
<%= f.error_message_on(:display_name) %>
</div>
- <span class="form-help deemphasize"><%= t '.display name description' %></span>
+ <span class="form-help deemphasize"><%= t ".display name description" %></span>
</fieldset>
<fieldset class="form-divider" id="auth_field">
<div class="form-row">
<label for="openid_url" class="standard-label">
- <%= raw t '.external auth' %>
+ <%= raw t ".external auth" %>
</label>
<%= 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>
+ <span class="form-help deemphasize"><%= t ".auth no password" %></span>
</fieldset>
<fieldset>
<div class="form-row">
<label for='user[pass_crypt]' class="standard-label">
- <%= t '.password' %>
+ <%= t ".password" %>
</label>
<%= 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' %>
+ <%= t ".confirm password" %>
</label>
<%= f.password_field(:pass_crypt_confirmation, :tabindex => 7) %>
<%= f.error_message_on(:pass_crypt_confirmation) %>
<%= link_to raw(t(".use external auth")), "#", :id => "auth_enable" %>
</div>
- <%= submit_tag t('.continue'), :tabindex => 8 %>
+ <%= submit_tag t(".continue"), :tabindex => 8 %>
<% end %>
<div class='aside col6 deemphasize inner22'>
- <h4><%= t '.about.header' %></h4>
- <%= t '.about.html' %>
+ <h4><%= t ".about.header" %></h4>
+ <%= t ".about.html" %>
</div>
<% content_for :heading do %>
- <h1><%= t '.heading', :user => h(@not_found_user) %></h1>
+ <h1><%= t ".heading", :user => h(@not_found_user) %></h1>
<% end %>
-<p><%= t '.body', :user => h(@not_found_user) %></p>
+<p><%= t ".body", :user => h(@not_found_user) %></p>
<% content_for :heading do %>
- <h1><%= t '.heading', :user => current_user.display_name %></h1>
+ <h1><%= t ".heading", :user => current_user.display_name %></h1>
<% end %>
<%= error_messages_for current_user %>
<%= hidden_field_tag(:token, params[:token]) %>
<div class="standard-form">
<fieldset>
- <label class="standard-label"><%= t '.password' %></label>
- <%= password_field(:user, :pass_crypt, :value => '', :tabindex => 4) %>
+ <label class="standard-label"><%= t ".password" %></label>
+ <%= 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) %>
+ <label class="standard-label"><%= t ".confirm password" %></label>
+ <%= password_field(:user, :pass_crypt_confirmation, :value => "", :tabindex => 5) %>
</fieldset>
- <%= submit_tag t('.reset'), :tabindex => 6 %>
+ <%= submit_tag t(".reset"), :tabindex => 6 %>
</div>
<% end %>
<!-- Displaying user's own profile page to themself -->
<ul class='secondary-actions clearfix'>
<li>
- <%= link_to t('.my edits'), :controller => 'changesets', :action => 'index', :display_name => current_user.display_name %>
+ <%= link_to t(".my edits"), :controller => "changesets", :action => "index", :display_name => current_user.display_name %>
<span class='count-number'><%= number_with_delimiter(current_user.changesets.size) %></span>
</li>
<li>
- <%= link_to t('.my notes'), :controller => 'notes', :action => 'mine' %>
+ <%= link_to t(".my notes"), :controller => "notes", :action => "mine" %>
</li>
<li>
- <%= link_to t('.my traces'), :controller => 'traces', :action => 'mine' %>
+ <%= link_to t(".my traces"), :controller => "traces", :action => "mine" %>
<span class='count-number'><%= number_with_delimiter(current_user.traces.size) %></span>
</li>
<li>
- <%= link_to t('.my diary'), :controller => 'diary_entries', :action => 'index', :display_name => current_user.display_name %>
+ <%= link_to t(".my diary"), :controller => "diary_entries", :action => "index", :display_name => current_user.display_name %>
<span class='count-number'><%= number_with_delimiter(current_user.diary_entries.size) %></span>
</li>
<li>
- <%= link_to t('.my comments'), :controller => 'diary_entries', :action => 'comments', :display_name => current_user.display_name %>
+ <%= link_to t(".my comments"), :controller => "diary_entries", :action => "comments", :display_name => current_user.display_name %>
</li>
<li>
- <%= link_to t('.my settings'), :controller => 'users', :action => 'account', :display_name => current_user.display_name %>
+ <%= link_to t(".my settings"), :controller => "users", :action => "account", :display_name => current_user.display_name %>
</li>
<% if current_user.blocks.exists? %>
<li>
- <%= link_to t('.blocks on me'), :controller => 'user_blocks', :action => 'blocks_on', :display_name => current_user.display_name %>
+ <%= link_to t(".blocks on me"), :controller => "user_blocks", :action => "blocks_on", :display_name => current_user.display_name %>
<span class='count-number'><%= number_with_delimiter(current_user.blocks.active.size) %></span>
</li>
<% end %>
<% if current_user and current_user.moderator? and current_user.blocks_created.exists? %>
<li>
- <%= link_to t('.blocks by me'), :controller => 'user_blocks', :action => 'blocks_by', :display_name => current_user.display_name %>
+ <%= link_to t(".blocks by me"), :controller => "user_blocks", :action => "blocks_by", :display_name => current_user.display_name %>
<span class='count-number'><%= number_with_delimiter(current_user.blocks_created.active.size) %></span>
</li>
<% end %>
<ul class='secondary-actions clearfix'>
<li>
- <%= link_to t('.edits'), :controller => 'changesets', :action => 'index', :display_name => @user.display_name %>
+ <%= link_to t(".edits"), :controller => "changesets", :action => "index", :display_name => @user.display_name %>
<span class='count-number'><%= number_with_delimiter(@user.changesets.size) %></span>
</li>
<li>
- <%= link_to t('.notes'), :controller => 'notes', :action => 'mine' %>
+ <%= link_to t(".notes"), :controller => "notes", :action => "mine" %>
</li>
<li>
- <%= link_to t('.traces'), :controller => 'traces', :action => 'index', :display_name => @user.display_name %>
+ <%= link_to t(".traces"), :controller => "traces", :action => "index", :display_name => @user.display_name %>
<span class='count-number'><%= number_with_delimiter(@user.traces.size) %></span>
</li>
<!-- Displaying another user's profile page -->
<li>
- <%= link_to t('.send message'), new_message_path(@user) %>
+ <%= link_to t(".send message"), new_message_path(@user) %>
</li>
<li>
- <%= link_to t('.diary'), :controller => 'diary_entries', :action => 'index', :display_name => @user.display_name %>
+ <%= link_to t(".diary"), :controller => "diary_entries", :action => "index", :display_name => @user.display_name %>
<span class='count-number'><%= number_with_delimiter(@user.diary_entries.size) %></span>
</li>
<li>
- <%= link_to t('.comments'), :controller => 'diary_entries', :action => 'comments', :display_name => @user.display_name %>
+ <%= link_to t(".comments"), :controller => "diary_entries", :action => "comments", :display_name => @user.display_name %>
</li>
<li>
<% if current_user and current_user.is_friends_with?(@user) %>
- <%= link_to t('.remove as friend'), remove_friend_path(:display_name => @user.display_name), :method => :post %>
+ <%= link_to t(".remove as friend"), remove_friend_path(:display_name => @user.display_name), :method => :post %>
<% elsif current_user %>
- <%= link_to t('.add as friend'), make_friend_path(:display_name => @user.display_name), :method => :post %>
+ <%= link_to t(".add as friend"), make_friend_path(:display_name => @user.display_name), :method => :post %>
<% else %>
- <%= link_to t('.add as friend'), make_friend_path(:display_name => @user.display_name) %>
+ <%= link_to t(".add as friend"), make_friend_path(:display_name => @user.display_name) %>
<% end %>
</li>
<% if @user.blocks.exists? %>
<li>
- <%= link_to t('.block_history'), :controller => 'user_blocks', :action => 'blocks_on', :display_name => @user.display_name %>
+ <%= link_to t(".block_history"), :controller => "user_blocks", :action => "blocks_on", :display_name => @user.display_name %>
<span class='count-number'><%= number_with_delimiter(@user.blocks.active.size) %></span>
</li>
<% end %>
<% if @user.moderator? and @user.blocks_created.exists? %>
<li>
- <%= link_to t('.moderator_history'), :controller => 'user_blocks', :action => 'blocks_by', :display_name => @user.display_name %>
+ <%= link_to t(".moderator_history"), :controller => "user_blocks", :action => "blocks_by", :display_name => @user.display_name %>
<span class='count-number'><%= number_with_delimiter(@user.blocks_created.active.size) %></span>
</li>
<% end %>
<% if current_user and current_user.moderator? %>
<li>
- <%= link_to t('.create_block'), :controller => 'user_blocks', :action => 'new', :display_name => @user.display_name %>
+ <%= link_to t(".create_block"), :controller => "user_blocks", :action => "new", :display_name => @user.display_name %>
</li>
<% end %>
<ul class='secondary-actions clearfix'>
<% if ["active", "confirmed"].include? @user.status %>
<li>
- <%= link_to t('.deactivate_user'), set_status_user_path(:status => 'pending', :display_name => @user.display_name), :data => { :confirm => t('.confirm') } %>
+ <%= link_to t(".deactivate_user"), set_status_user_path(:status => "pending", :display_name => @user.display_name), :data => { :confirm => t(".confirm") } %>
</li>
<% elsif ["pending"].include? @user.status %>
<li>
- <%= link_to t('.activate_user'), set_status_user_path(:status => 'active', :display_name => @user.display_name), :data => { :confirm => t('.confirm') } %>
+ <%= link_to t(".activate_user"), set_status_user_path(:status => "active", :display_name => @user.display_name), :data => { :confirm => t(".confirm") } %>
</li>
<% end %>
<% if ["active", "suspended"].include? @user.status %>
<li>
- <%= link_to t('.confirm_user'), set_status_user_path(:status => 'confirmed', :display_name => @user.display_name), :data => { :confirm => t('.confirm') } %>
+ <%= link_to t(".confirm_user"), set_status_user_path(:status => "confirmed", :display_name => @user.display_name), :data => { :confirm => t(".confirm") } %>
</li>
<% end %>
<li>
<% if ["pending", "active", "confirmed", "suspended"].include? @user.status %>
- <%= link_to t('.hide_user'), set_status_user_path(:status => 'deleted', :display_name => @user.display_name), :data => { :confirm => t('.confirm') } %>
+ <%= link_to t(".hide_user"), set_status_user_path(:status => "deleted", :display_name => @user.display_name), :data => { :confirm => t(".confirm") } %>
<% else %>
- <%= link_to t('.unhide_user'), set_status_user_path(:status => 'active', :display_name => @user.display_name), :data => { :confirm => t('.confirm') } %>
+ <%= link_to t(".unhide_user"), set_status_user_path(:status => "active", :display_name => @user.display_name), :data => { :confirm => t(".confirm") } %>
</li>
<% end %>
<li>
- <%= link_to t('.delete_user'), delete_user_path(:display_name => @user.display_name), :data => { :confirm => t('.confirm') } %>
+ <%= link_to t(".delete_user"), delete_user_path(:display_name => @user.display_name), :data => { :confirm => t(".confirm") } %>
</li>
</ul>
<p class='deemphasize'>
<small>
- <%= t '.mapper since' %> <%= l @user.creation_time.to_date, :format => :long %>
+ <%= t ".mapper since" %> <%= l @user.creation_time.to_date, :format => :long %>
<% unless @user.terms_agreed %>
|
- <%= t '.ct status' %>
+ <%= t ".ct status" %>
<% if @user.terms_seen? -%>
- <%= t '.ct declined' %>
+ <%= t ".ct declined" %>
<% else -%>
- <%= t '.ct undecided' %>
+ <%= t ".ct undecided" %>
<% end -%>
<% end -%>
</small>
<% if current_user and current_user.administrator? -%>
<div class='admin-user-info deemphasize'>
- <small><b><%= t '.email address' %></b> <%= @user.email %></small>
+ <small><b><%= t ".email address" %></b> <%= @user.email %></small>
<% unless @user.creation_ip.nil? -%>
- <small><b><%= t '.created from' %></b> <%= @user.creation_ip %></small>
+ <small><b><%= t ".created from" %></b> <%= @user.creation_ip %></small>
<% end -%>
- <small><b><%= t '.status' %></b> <%= @user.status.capitalize %></small>
- <small><b><%= t '.spam score' %></b> <%= @user.spam_score %></small>
+ <small><b><%= t ".status" %></b> <%= @user.status.capitalize %></small>
+ <small><b><%= t ".spam score" %></b> <%= @user.spam_score %></small>
</div>
<% end -%>
<% if current_user and @user.id == current_user.id %>
<% if @user.home_lat.nil? or @user.home_lon.nil? %>
<div id="map" class="content_map">
- <p id="no_home_location"><%= raw(t '.if set location', :settings_link => (link_to t('.settings_link_text'), :controller => 'users', :action => 'account', :display_name => current_user.display_name)) %></p>
+ <p id="no_home_location"><%= raw(t ".if set location", :settings_link => (link_to t(".settings_link_text"), :controller => "users", :action => "account", :display_name => current_user.display_name)) %></p>
</div>
<% else %>
<% content_for :head do %>
<% nearby = @user.nearby - friends %>
<div class="activity-block column-1">
- <h3><%= t '.my friends' %></h3>
+ <h3><%= t ".my friends" %></h3>
<% if friends.empty? %>
- <%= t '.no friends' %>
+ <%= t ".no friends" %>
<% else %>
<ul class='secondary-actions clearfix'>
- <li><%= link_to t('.friends_changesets'), friend_changesets_path %></li>
- <li><%= link_to t('.friends_diaries'), friend_diaries_path %></li>
+ <li><%= link_to t(".friends_changesets"), friend_changesets_path %></li>
+ <li><%= link_to t(".friends_diaries"), friend_diaries_path %></li>
</ul>
<div id="friends-container">
<%= render :partial => "contact", :collection => friends, :locals => { :type => "friend" } %>
</div>
<div class="activity-block column-1">
- <h3><%= t '.nearby users' %></h3>
+ <h3><%= t ".nearby users" %></h3>
<% if nearby.empty? %>
- <%= t '.no nearby users' %>
+ <%= t ".no nearby users" %>
<% else %>
<ul class='secondary-actions clearfix'>
- <li><%= link_to t('.nearby_changesets'), nearby_changesets_path %></li>
- <li><%= link_to t('.nearby_diaries'), nearby_diaries_path %></li>
+ <li><%= link_to t(".nearby_changesets"), nearby_changesets_path %></li>
+ <li><%= link_to t(".nearby_diaries"), nearby_diaries_path %></li>
</ul>
<div id="nearbyusers">
<%= render :partial => "contact", :collection => nearby, :locals => { :type => "nearby mapper" } %>
<% end %>
<% content_for :heading do %>
- <h1><%= t '.heading' %></h1>
+ <h1><%= t ".heading" %></h1>
<div class='header-illustration new-user-terms'></div>
<% end %>
<!-- legale is <%= @legale %> -->
<div class='form-row horizontal-list'>
<label class="standard-label">
- <%= t '.legale_select' %>
+ <%= t ".legale_select" %>
</label>
- <% [['france', 'FR'], ['italy', 'IT'], ['rest_of_world', 'GB']].each do |name, legale| %>
+ <% [["france", "FR"], ["italy", "IT"], ["rest_of_world", "GB"]].each do |name, legale| %>
<div class="form-row">
<label for="legale_<%= legale %>">
- <%= radio_button_tag 'legale', legale, @legale == legale, :data => { :url => url_for(:legale => legale) } %>
- <%= t('.legale_names.' + name) %>
+ <%= radio_button_tag "legale", legale, @legale == legale, :data => { :url => url_for(:legale => legale) } %>
+ <%= t(".legale_names." + name) %>
</label>
</div>
<% end %>
<div class="form-row">
<label for="user_consider_pd">
- <%= check_box('user', 'consider_pd') %>
- <%= t '.consider_pd' %>
+ <%= check_box("user", "consider_pd") %>
+ <%= t ".consider_pd" %>
</label>
- <span class="minorNote">(<%= link_to(t('.consider_pd_why'), t('.consider_pd_why_url'), :target => :new) %>)</span>
+ <span class="minorNote">(<%= link_to(t(".consider_pd_why"), t(".consider_pd_why_url"), :target => :new) %>)</span>
- <%= hidden_field_tag('referer', h(params[:referer])) unless params[:referer].nil? %>
+ <%= hidden_field_tag("referer", h(params[:referer])) unless params[:referer].nil? %>
<div class="buttons form-row inner20 clearfix">
- <p class="deemphasize"><%= t '.read and accept' %></p>
- <%= submit_tag(t('.agree'), :name => "agree", :id => "agree") %>
- <%= submit_tag(t('.decline'), :name => "decline", :id => "decline") %>
+ <p class="deemphasize"><%= t ".read and accept" %></p>
+ <%= submit_tag(t(".agree"), :name => "agree", :id => "agree") %>
+ <%= submit_tag(t(".decline"), :name => "decline", :id => "decline") %>
</div>
<div class="deemphasize">
<p id="contributorGuidance">
- <%= raw t '.guidance',
- :summary => 'https://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary',
- :translations => 'https://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations' %>
+ <%= raw t ".guidance",
+ :summary => "https://www.osmfoundation.org/wiki/License/Contributor_Terms_Summary",
+ :translations => "https://www.osmfoundation.org/wiki/License/Contributor_Terms/Informal_Translations" %>
</p>
</div>
</div>