Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Extend rescheduled template

Oliver Günther20b9870cb09b
diff --git a/modules/meeting/app/views/meeting_mailer/rescheduled.html.erb b/modules/meeting/app/views/meeting_mailer/rescheduled.html.erb
index c152dd3c8f1..6a4e7bc9665 100644
--- a/modules/meeting/app/views/meeting_mailer/rescheduled.html.erb
+++ b/modules/meeting/app/views/meeting_mailer/rescheduled.html.erb
@@ -30,6 +30,7 @@ See COPYRIGHT and LICENSE files for more details.
<%= render layout: 'mailer/spacer_table' do %>
<%= render partial: 'mailer/mailer_header',
locals: {
+ user: @user,
summary: I18n.t('meeting.email.rescheduled.summary', title: @meeting.title, actor: @actor),
bottom_spacing: false
} %>
@@ -43,10 +44,11 @@ See COPYRIGHT and LICENSE files for more details.
<td style="<%= placeholder_text_styles(width: '30%') %>">
<%= t('meeting.email.rescheduled.old_date_time') %>
</td>
- <td style="<%= placeholder_text_styles('font-weight': 'bold') %>">
+ <td style="<%= placeholder_text_styles %>">
<s>
<%= format_time_as_date @changes[:old_start] %> <%= format_time @changes[:old_start], false %>
- -<%= format_time (@changes[:old_start] + @changes[:old_duration].hours), false %> <%= Time.zone %>
+ -
+ <%= format_time (@changes[:old_start] + @changes[:old_duration].hours), false %> <%= Time.zone %>
</s>
</td>
</tr>
@@ -54,9 +56,10 @@ See COPYRIGHT and LICENSE files for more details.
<td style="<%= placeholder_text_styles(width: '30%') %>">
<%= t('meeting.email.rescheduled.new_date_time') %>
</td>
- <td style="<%= placeholder_text_styles %>">
+ <td style="<%= placeholder_text_styles('font-weight': 'bold') %>">
<%= format_time_as_date @changes[:new_start] %> <%= format_time @changes[:new_start], false %>
- -<%= format_time (@changes[:new_start] + @changes[:new_duration].hours), false %> <%= Time.zone %>
+ -
+ <%= format_time (@changes[:new_start] + @changes[:new_duration].hours), false %> <%= Time.zone %>
</td>
</tr>
<% if @meeting.location.present? %>
@@ -77,6 +80,32 @@ See COPYRIGHT and LICENSE files for more details.
<%= link_to @meeting.project.name, project_url(@meeting.project) %>
</td>
</tr>
+ <tr>
+ <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <%= Meeting.human_attribute_name(:author) %>
+ </td>
+ <td style="<%= placeholder_text_styles %>">
+ <%= @meeting.author %>
+ </td>
+ </tr>
+ <% if @meeting.participants.exists? %>
+ <tr>
+ <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <%= Meeting.human_attribute_name(:participants_invited) %>
+ </td>
+ <td style="<%= placeholder_text_styles %>">
+ <%= @meeting.participants.invited.sort.join("; ") %>
+ </td>
+ </tr>
+ <tr>
+ <td style="<%= placeholder_text_styles(width: '30%') %>">
+ <%= Meeting.human_attribute_name(:participants_attended) %>
+ </td>
+ <td style="<%= placeholder_text_styles %>">
+ <%= @meeting.participants.attended.sort.join("; ") %>
+ </td>
+ </tr>
+ <% end %>
</table>
</td>
</tr>
@@ -89,10 +118,9 @@ See COPYRIGHT and LICENSE files for more details.
</table>
<%= action_button do %>
- <a href="<%= meeting_url(@meeting) %>"
- target="_blank"
- style="color: #333333; text-decoration: none; font-size: 14px;white-space: nowrap;">
- <%= I18n.t(:'meeting.email.open_meeting_link') %>
- </a>
+ <%= link_to I18n.t(:'meeting.email.open_meeting_link'),
+ meeting_url(@meeting),
+ target: '_blank',
+ style: "color: #333333; text-decoration: none; font-size: 14px;white-space: nowrap;" %>
<% end %>
<% end %>