diff --git a/app/views/person_notifier/mailer/_comment.html.erb b/app/views/person_notifier/mailer/_comment.html.erb index b0430a0..89f3512 100644 --- a/app/views/person_notifier/mailer/_comment.html.erb +++ b/app/views/person_notifier/mailer/_comment.html.erb @@ -19,7 +19,7 @@ <%= comment.title %>
<% end %> <%= txt2html comment.body %>
- <%= time_ago_as_sentence(comment.created_at) %> + <%= time_ago_as_sentence(comment.created_at) %>
<% unless comment.replies.blank? %> diff --git a/app/views/person_notifier/mailer/_create_article.html.erb b/app/views/person_notifier/mailer/_create_article.html.erb index 75acaaf..1cf53e9 100644 --- a/app/views/person_notifier/mailer/_create_article.html.erb +++ b/app/views/person_notifier/mailer/_create_article.html.erb @@ -6,7 +6,7 @@

<%= link_to activity.user.short_name(20), activity.user.url %> <%= _("has published on community %s") % link_to(activity.target.profile.short_name(20), activity.target.profile.url, :style => "color: #333; font-weight: bold; text-decoration: none;") if activity.target.profile.is_a?(Community) %> - <%= time_ago_as_sentence(activity.created_at) %> + <%= time_ago_as_sentence(activity.created_at) %>

<%= link_to(activity.params['name'], activity.params['url'], :style => "color: #333; font-weight: bold; text-decoration: none;") %> diff --git a/app/views/person_notifier/mailer/_default_activity.html.erb b/app/views/person_notifier/mailer/_default_activity.html.erb index 04a6ff7..135e10b 100644 --- a/app/views/person_notifier/mailer/_default_activity.html.erb +++ b/app/views/person_notifier/mailer/_default_activity.html.erb @@ -5,7 +5,7 @@

<%= link_to activity.user.name, activity.user.url %> <%= describe activity %> - <%= time_ago_as_sentence(activity.created_at) %> + <%= time_ago_as_sentence(activity.created_at) %>

diff --git a/app/views/person_notifier/mailer/_task.html.erb b/app/views/person_notifier/mailer/_task.html.erb index b00d8e9..ddafbe3 100644 --- a/app/views/person_notifier/mailer/_task.html.erb +++ b/app/views/person_notifier/mailer/_task.html.erb @@ -12,7 +12,7 @@ <%= task_information(task) %> - <%= time_ago_as_sentence(task.created_at) %> + <%= time_ago_as_sentence(task.created_at) %> diff --git a/app/views/person_notifier/mailer/_upload_image.html.erb b/app/views/person_notifier/mailer/_upload_image.html.erb index bdae2bf..c17cd6e 100644 --- a/app/views/person_notifier/mailer/_upload_image.html.erb +++ b/app/views/person_notifier/mailer/_upload_image.html.erb @@ -5,7 +5,7 @@

<%= link_to activity.user.name, activity.user.url %> <%= describe activity %> - <%= time_ago_as_sentence(activity.created_at) %> + <%= time_ago_as_sentence(activity.created_at) %>

diff --git a/app/views/person_notifier/mailer/content_summary.html.erb b/app/views/person_notifier/mailer/content_summary.html.erb index 44130f6..78731ad 100644 --- a/app/views/person_notifier/mailer/content_summary.html.erb +++ b/app/views/person_notifier/mailer/content_summary.html.erb @@ -7,14 +7,21 @@ <% end %> <%= _("%s's Notifications") % @profile.name %> -
+
<% if @tasks.present? %> -
<%= _('Tasks') %>
- <%= render :partial => 'task', :collection => @tasks %> +
+
+ <%= _('Tasks') %> +
+ <%= render :partial => 'task', :collection => @tasks %> +
<% end %> <% if @notifications.present? %> -
<%= _('Network Activity') %>
+
+
+ <%= _('Network Activity') %> +
<% @notifications.each do |activity| %>
-- libgit2 0.21.2