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

3.1 KB
Raw Blame
<%#-- copyright
OpenProject is an open source project management software.
Copyright (C) 2012-2024 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.

++#%>

<% if @recurring_meeting.has_ended? && @recurring_meeting.ongoing_meetings.empty? -%>
  <%=
    render(Primer::Beta::Blankslate.new(border: true)) do |component|
      component.with_visual_icon(icon: :book)
      component.with_heading(tag: :h2).with_content(t("recurring_meeting.ended_blankslate.title"))
      component.with_description do
        concat render(Primer::Beta::Text.new(tag: :p, color: :subtle)) { t("recurring_meeting.ended_blankslate.message") }
        concat render(Primer::Beta::Text.new(tag: :p, color: :subtle)) { t("recurring_meeting.ended_blankslate.action") }
      end
    end
  %>
<% else -%>
  <%= render RecurringMeetings::TableHeaderComponent.new(
        meeting: @recurring_meeting,
        title: I18n.t("recurring_meeting.open.title"),
        subtitle: I18n.t("recurring_meeting.open.subtitle")
      ) %>
  <%= render RecurringMeetings::TableComponent.new(
        recurring_meeting: @recurring_meeting,
        rows: @meetings,
        current_project: @project,
        count: @count,
        direction: @direction,
        hide_footer: true,
        test_selector: "agenda-opened-table",
        blankslate_title: I18n.t("recurring_meeting.open.blankslate.title"),
        blankslate_desc: I18n.t("recurring_meeting.open.blankslate.desc")
      ) %>
  <%= render RecurringMeetings::TableHeaderComponent.new(
        meeting: @recurring_meeting,
        title: I18n.t("recurring_meeting.planned.title"),
        subtitle: I18n.t("recurring_meeting.planned.subtitle"),
        planned: true
      ) %>
  <%= render RecurringMeetings::TableComponent.new(
        recurring_meeting: @recurring_meeting,
        rows: @planned_meetings,
        current_project: @project,
        count: @count,
        direction: @direction,
        max_count: @max_count,
        test_selector: "planned-table",
        blankslate_title: I18n.t("recurring_meeting.planned.blankslate.title"),
        blankslate_desc: I18n.t("recurring_meeting.planned.blankslate.desc")
      ) %>
<% end -%>