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

5.2 KB
Raw Blame
<%#-- copyright
OpenProject is an open source project management software.
Copyright (C) the OpenProject GmbH

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 3.

OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
Copyright (C) 2006-2013 Jean-Philippe Lang
Copyright (C) 2010-2013 the ChiliProject Team

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

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.series_updated.summary", title: @series.title, actor: @actor),
               bottom_spacing: false
             } %>

  <%= render layout: "mailer/border_table" do %>
    <tr>
      <%= placeholder_cell("24px", vertical: true) %>
      <td>
        <table>
          <% if @changes[:old_schedule] != @series.full_schedule_in_words %>
          <tr>
            <td style="<%= placeholder_text_styles(width: "30%") %>">
              <%= t("meeting.email.series_updated.old_schedule") %>:
            </td>
            <td style="<%= placeholder_text_styles %>">
              <s>
                <%= @changes[:old_schedule] %> (<%= formatted_time_zone_offset %>)
              </s>
            </td>
          </tr>
          <tr>
            <td style="<%= placeholder_text_styles(width: "30%") %>">
              <%= t("meeting.email.series_updated.new_schedule") %>:
            </td>
            <td style="<%= placeholder_text_styles(color: "#1f2328", "font-weight": "bold") %>">
              <%= @series.full_schedule_in_words %> (<%= formatted_time_zone_offset %>)
            </td>
          </tr>
          <% else %>
            <tr>
              <td style="<%= placeholder_text_styles(width: "30%") %>">
                <%= I18n.t(:label_recurring_meeting_schedule) %>:
              </td>
              <td style="<%= placeholder_text_styles %>">
                <%= @series.full_schedule_in_words %> (<%= formatted_time_zone_offset %>)
              </td>
            </tr>
          <% end %>

          <% if @changes[:old_location].present? || @series.location.present? %>
            <% if @changes[:old_location] != @series.location %>
              <tr>
                <td style="<%= placeholder_text_styles(width: "30%") %>">
                  <%= t("meeting.email.updated.old_location") %>
                </td>
                <td style="<%= placeholder_text_styles %>">
                  <s>
                    <%= @changes[:old_location].presence || "-" %>
                  </s>
                </td>
              </tr>
              <tr>
                <td style="<%= placeholder_text_styles(width: "30%") %>">
                  <%= t("meeting.email.updated.new_location") %>
                </td>
                <td style="<%= placeholder_text_styles(color: "#1f2328", "font-weight": "bold") %>">
                  <%= @series.location.blank? ? "-" : (auto_link @series.location) %>
                </td>
              </tr>
            <% else %>
              <tr>
                <td style="<%= placeholder_text_styles(width: "30%") %>">
                  <%= Meeting.human_attribute_name(:location) %>
                </td>
                <td style="<%= placeholder_text_styles %>">
                  <%= auto_link @series.location %>
                </td>
              </tr>
            <% end %>
          <% end %>

          <tr>
            <td style="<%= placeholder_text_styles(width: "30%") %>">
              <%= Meeting.human_attribute_name(:project) %>
            </td>
            <td style="<%= placeholder_text_styles %>">
              <%= link_to @series.project.name, project_url(@series.project) %>
            </td>
          </tr>

          <tr>
            <td style="<%= placeholder_text_styles(width: "30%") %>">
              <%= Meeting.human_attribute_name(:author) %>
            </td>
            <td style="<%= placeholder_text_styles %>">
              <%= @series.author %>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  <% end %>

  <table>
    <tr>
      <%= placeholder_cell("20px", vertical: false) %>
    </tr>
  </table>

  <%= action_button do %>
    <%= link_to I18n.t(:"meeting.email.open_meeting_link"),
                recurring_meeting_url(@series),
                target: "_blank",
                style: "color: #333333; text-decoration: none; font-size: 14px;white-space: nowrap;", rel: "noopener" %>
  <% end %>
<% end %>