Merge remote-tracking branch 'upstream/pull/1894'
This commit is contained in:
commit
3da3b93f80
3 changed files with 10 additions and 26 deletions
|
@ -155,8 +155,8 @@ class DiaryEntryController < ApplicationController
|
||||||
|
|
||||||
if user
|
if user
|
||||||
@entries = user.diary_entries
|
@entries = user.diary_entries
|
||||||
@title = I18n.t("diary_entry.feed.user.title", :user => user.display_name)
|
@title = t("diary_entry.feed.user.title", :user => user.display_name)
|
||||||
@description = I18n.t("diary_entry.feed.user.description", :user => user.display_name)
|
@description = t("diary_entry.feed.user.description", :user => user.display_name)
|
||||||
@link = url_for :controller => "diary_entry", :action => "list", :display_name => user.display_name, :host => SERVER_URL, :protocol => SERVER_PROTOCOL
|
@link = url_for :controller => "diary_entry", :action => "list", :display_name => user.display_name, :host => SERVER_URL, :protocol => SERVER_PROTOCOL
|
||||||
else
|
else
|
||||||
head :not_found
|
head :not_found
|
||||||
|
@ -167,12 +167,12 @@ class DiaryEntryController < ApplicationController
|
||||||
|
|
||||||
if params[:language]
|
if params[:language]
|
||||||
@entries = @entries.where(:language_code => params[:language])
|
@entries = @entries.where(:language_code => params[:language])
|
||||||
@title = I18n.t("diary_entry.feed.language.title", :language_name => Language.find(params[:language]).english_name)
|
@title = t("diary_entry.feed.language.title", :language_name => Language.find(params[:language]).english_name)
|
||||||
@description = I18n.t("diary_entry.feed.language.description", :language_name => Language.find(params[:language]).english_name)
|
@description = t("diary_entry.feed.language.description", :language_name => Language.find(params[:language]).english_name)
|
||||||
@link = url_for :controller => "diary_entry", :action => "list", :language => params[:language], :host => SERVER_URL, :protocol => SERVER_PROTOCOL
|
@link = url_for :controller => "diary_entry", :action => "list", :language => params[:language], :host => SERVER_URL, :protocol => SERVER_PROTOCOL
|
||||||
else
|
else
|
||||||
@title = I18n.t("diary_entry.feed.all.title")
|
@title = t("diary_entry.feed.all.title")
|
||||||
@description = I18n.t("diary_entry.feed.all.description")
|
@description = t("diary_entry.feed.all.description")
|
||||||
@link = url_for :controller => "diary_entry", :action => "list", :host => SERVER_URL, :protocol => SERVER_PROTOCOL
|
@link = url_for :controller => "diary_entry", :action => "list", :host => SERVER_URL, :protocol => SERVER_PROTOCOL
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,12 +1,4 @@
|
||||||
<%
|
|
||||||
browse_not_found_type = {
|
|
||||||
'node' => I18n.t('.type.node'),
|
|
||||||
'way' => I18n.t('.type.way'),
|
|
||||||
'relation' => I18n.t('.type.relation'),
|
|
||||||
'changeset' => I18n.t('.type.changeset'),
|
|
||||||
};
|
|
||||||
%>
|
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
|
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
|
||||||
<%= t '.sorry', :type=> browse_not_found_type[@type] , :id => params[:id] %></h2>
|
<%= t ".sorry", :type => t(".type.#{@type}"), :id => params[:id] %>
|
||||||
|
</h2>
|
||||||
|
|
|
@ -1,12 +1,4 @@
|
||||||
<%
|
|
||||||
browse_timeout_type = {
|
|
||||||
'node' => I18n.t('.type.node'),
|
|
||||||
'way' => I18n.t('.type.way'),
|
|
||||||
'relation' => I18n.t('.type.relation'),
|
|
||||||
'changeset' => I18n.t('.type.changeset'),
|
|
||||||
};
|
|
||||||
%>
|
|
||||||
<div class="browse-section">
|
<div class="browse-section">
|
||||||
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
|
<a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
|
||||||
<%= t '.sorry', :type=> browse_timeout_type[@type] , :id => params[:id] %>
|
<%= t '.sorry', :type => t(".type.#{@type}"), :id => params[:id] %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue