forked from openstreetmap/openstreetmap-website
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'openstreetmap/pull/1401' into next
- Loading branch information
Showing
18 changed files
with
243 additions
and
66 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"></meta> | ||
</head> | ||
<body style="padding: 0; margin: 0; font-size: 14px; font-family: 'Helvetica Neue', Arial, sans-serif; color: #222"> | ||
<table style="background-color: #eee; width: 100%"> | ||
<tr> | ||
<td style="text-align: center"> | ||
<table style="width: 600px; color: #222; margin-left: auto; margin-right: auto"> | ||
<tr> | ||
<td style="width: 30px; padding: 10px 10px 10px 0px"> | ||
<a href="<%= @root_url %>" target="_blank"> | ||
<%= image_tag attachments["logo.png"].url, alt: "OpenStreetMap logo", title: "OpenStreetMap", height: "30", width: "30", border: "0" %> | ||
</a> | ||
</td> | ||
<td style="padding: 10px 0px"> | ||
<a href="<%= @root_url %>" target="_blank" style="text-decoration: none; color: #000"> | ||
<h1 style="font-size: 18px; font-weight: 600; margin: 0; text-align: left">OpenStreetMap</h1> | ||
</a> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td colspan="2"> | ||
<table style="background-color: #fff; color: #222; border: solid 1px #ccc; border-collapse: separate"> | ||
<tr> | ||
<td style="text-align: left; padding: 0px 15px 5px 15px"> | ||
<%= raw apply_inline_css(yield) %> | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
</table> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align: center; font-size: 11px"> | ||
<%= yield :footer %> | ||
<p style="margin-bottom: 10px"> | ||
<a href="<%= @root_url %>" target="_blank" style="color: #222">OpenStreetMap</a> | ||
</p> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
<%= t'notifier.gpx_notification.greeting' %> | ||
<%= t'notifier.gpx_notification.your_gpx_file' %> | ||
<%= @trace_name %> | ||
<strong><%= @trace_name %></strong> | ||
<%= t'notifier.gpx_notification.with_description' %> | ||
<%= @trace_description %> | ||
<em><%= @trace_description %></em> | ||
<% if @trace_tags.length>0 %> | ||
<%= t'notifier.gpx_notification.and_the_tags' %> | ||
<% @trace_tags.each do |tag| %> | ||
<%= tag.tag.rstrip %><% end %><% else %> | ||
<%= t'notifier.gpx_notification.and_no_tags' %><% end %> | ||
<%= 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' %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<table style="font-size: 15px; font-style: italic; margin: 15px 0px; background-color: #eee; width: 520px"> | ||
<tr> | ||
<td style="width: 50px; vertical-align: top; padding: 15px"> | ||
<%= link_to( | ||
image_tag( | ||
attachments["avatar.png"].url, | ||
alt: @author, | ||
title: @author, | ||
width: 50, | ||
height: 50, | ||
border: 0 | ||
), | ||
user_url(@author, :host => SERVER_URL), | ||
:target => "_blank" | ||
) %> | ||
</td> | ||
<td style="text-align: left; vertical-align: top; padding-right: 10px"> | ||
<%= body %> | ||
</td> | ||
</tr> | ||
</table> |
24 changes: 15 additions & 9 deletions
24
app/views/notifier/changeset_comment_notification.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
<p><%= t 'notifier.changeset_comment_notification.greeting' %></p> | ||
|
||
<p> | ||
<% if @owner %> | ||
<%= t "notifier.changeset_comment_notification.commented.your_changeset", :commenter => @commenter, :time => @time %> | ||
<%= raw t "notifier.changeset_comment_notification.commented.your_changeset", :commenter => link_to_user(@commenter), :time => @time %> | ||
<% else %> | ||
<%= t "notifier.changeset_comment_notification.commented.commented_changeset", :commenter => @commenter, :time => @time, :changeset_author => @changeset_author %> | ||
<%= raw t "notifier.changeset_comment_notification.commented.commented_changeset", :commenter => link_to_user(@commenter), :time => @time, :changeset_author => @changeset_author %> | ||
<% end %> | ||
<% if @changeset_comment %> | ||
<%= t "notifier.changeset_comment_notification.commented.partial_changeset_with_comment", :changeset_comment => @changeset_comment %> | ||
<%= raw t "notifier.changeset_comment_notification.commented.partial_changeset_with_comment", :changeset_comment => content_tag("em", @changeset_comment) %> | ||
<% else %> | ||
<%= t "notifier.changeset_comment_notification.commented.partial_changeset_without_comment" %> | ||
<% end %> | ||
</p> | ||
|
||
== | ||
<%= @comment.to_html %> | ||
== | ||
<%= message_body do %> | ||
<%= @comment.to_html %> | ||
<% end %> | ||
|
||
<p> | ||
<%= raw t 'notifier.changeset_comment_notification.details', :url => link_to(@changeset_url, @changeset_url, :style => "white-space: nowrap") %> | ||
</p> | ||
|
||
<p><%= raw t 'notifier.changeset_comment_notification.details', :url => link_to(@changeset_url, @changeset_url) %></p> | ||
<% content_for :footer do %> | ||
<p> | ||
<%= raw t 'notifier.changeset_comment_notification.unsubscribe', :url => link_to(@changeset_url, @changeset_url, :style => "color: #222; white-space: nowrap") %> | ||
</p> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
<p><%= t'notifier.diary_comment_notification.hi', :to_user => @to_user %></p> | ||
<p> | ||
<%= t'notifier.diary_comment_notification.hi', :to_user => @to_user %> | ||
</p> | ||
<p> | ||
<%= raw t'notifier.diary_comment_notification.header', :from_user => link_to_user(@from_user), :subject => content_tag("em", @title) %> | ||
</p> | ||
|
||
<p><%= raw t'notifier.diary_comment_notification.header', :from_user => link_to(@from_user, :host => SERVER_URL, :controller => :user, :action => :view, :display_name => @from_user), :subject => @title %></p> | ||
<%= message_body do %> | ||
<%= @text.to_html %> | ||
<% end %> | ||
== | ||
<%= @text.to_html %> | ||
== | ||
|
||
<p><%= raw t'notifier.diary_comment_notification.footer', :readurl => link_to(@readurl, @readurl), :commenturl => link_to(@commenturl, @commenturl), :replyurl => link_to(@replyurl, @replyurl) %></p> | ||
<% content_for :footer do %> | ||
<p><%= raw t'notifier.diary_comment_notification.footer', | ||
:readurl => link_to(@readurl, @readurl) + tag(:br), | ||
:commenturl => link_to(@commenturl, @commenturl) + tag(:br), | ||
:replyurl => link_to(@replyurl, @replyurl) | ||
%></p> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<p><%= t 'notifier.friend_notification.had_added_you', :user => @friend.befriender.display_name %></p> | ||
|
||
<p><%= raw t 'notifier.friend_notification.see_their_profile', :userurl => link_to(@viewurl, @viewurl) %></p> | ||
<%= message_body do %> | ||
<p><%= raw t 'notifier.friend_notification.see_their_profile', :userurl => link_to(@viewurl, @viewurl) %></p> | ||
|
||
<% unless @friend.befriendee.is_friends_with?(@friend.befriender) -%> | ||
<p><%= raw t 'notifier.friend_notification.befriend_them', :befriendurl => link_to(@friendurl, @friendurl) %></p> | ||
<% end -%> | ||
<% unless @friend.befriendee.is_friends_with?(@friend.befriender) -%> | ||
<p><%= raw t 'notifier.friend_notification.befriend_them', :befriendurl => link_to(@friendurl, @friendurl) %></p> | ||
<% end -%> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
<%= render :partial => "gpx_description" %> | ||
<%= t'notifier.gpx_notification.failure.failed_to_import' %> | ||
<p><%= t'notifier.gpx_notification.greeting' %></p> | ||
|
||
<%= @error %> | ||
<p> | ||
<%= render :partial => "gpx_description" %> | ||
<%= t'notifier.gpx_notification.failure.failed_to_import' %> | ||
</p> | ||
|
||
<%= t'notifier.gpx_notification.failure.more_info_1' %> | ||
<%= t'notifier.gpx_notification.failure.more_info_2' %> | ||
<blockquote> | ||
<%= @error %> | ||
</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' %> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
<%= render :partial => "gpx_description" %> | ||
<%= t'notifier.gpx_notification.success.loaded_successfully', :trace_points => @trace_points, :possible_points => @possible_points %> | ||
<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 %> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
<p><%= t'notifier.message_notification.hi', :to_user => @to_user %></p> | ||
<p> | ||
<%= t'notifier.message_notification.hi', :to_user => @to_user %> | ||
</p> | ||
<p> | ||
<%= raw t'notifier.message_notification.header', | ||
:from_user => link_to_user(@from_user), | ||
:subject => content_tag("em", @title) | ||
%> | ||
</p> | ||
|
||
<p><%= raw t'notifier.message_notification.header', :from_user => link_to(@from_user, :host => SERVER_URL, :controller => :user, :action => :view, :display_name => @from_user), :subject => @title %></p> | ||
<%= message_body do %> | ||
<%= @text.to_html %> | ||
<% end %> | ||
== | ||
<%= @text.to_html %> | ||
== | ||
|
||
<p><%= t'notifier.message_notification.footer_html', :readurl => link_to(@readurl, @readurl), :replyurl => link_to(@replyurl, @replyurl) %></p> | ||
<% content_for :footer do %> | ||
<p> | ||
<%= t'notifier.message_notification.footer_html', | ||
:readurl => link_to(@readurl, @readurl) + tag(:br), | ||
:replyurl => link_to(@replyurl, @replyurl) | ||
%> | ||
</p> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<p><%= t 'notifier.note_comment_notification.greeting' %></p> | ||
|
||
<% if @owner %> | ||
<p><%= t "notifier.note_comment_notification.#{@event}.your_note", :commenter => @commenter, :place => @place %></p> | ||
<p><%= raw t "notifier.note_comment_notification.#{@event}.your_note", :commenter => link_to_user(@commenter), :place => @place %></p> | ||
<% else %> | ||
<p><%= t "notifier.note_comment_notification.#{@event}.commented_note", :commenter => @commenter, :place => @place %></p> | ||
<p><%= raw t "notifier.note_comment_notification.#{@event}.commented_note", :commenter => link_to_user(@commenter), :place => @place %></p> | ||
<% end %> | ||
== | ||
<%= @comment.to_html %> | ||
== | ||
<%= message_body do %> | ||
<%= @comment.to_html %> | ||
<% end %> | ||
|
||
<p><%= raw t 'notifier.note_comment_notification.details', :url => link_to(@noteurl, @noteurl) %></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.