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

634 B
Raw Blame
<section class="form--section">
  <h3 class="form--section-title"><%= t("consent.title") %></h3>
  <% consent_link = admin_settings_users_path(anchor: "consent_settings") %>

  <%= render ::Components::OnOffStatusComponent.new(
        {
          is_on: @user.consented_at.present?,
          on_text: format_time(@user.consented_at),
          on_description: link_translate("consent.user_has_consented", links: { consent_settings: consent_link }),
          off_text: t(:label_never),
          off_description: link_translate("consent.not_yet_consented", links: { consent_settings: consent_link })
        }
      ) %>
</section>