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

693 B
Raw Blame
<%=
container.with_row do
  render(
    OpPrimer::InsetBoxComponent.new
  ) do
    content_tag(:div, class: tooltip_wrapper_classes, data: { tooltip: tooltip_message }) do
      render(
        Primer::Forms::ToggleSwitchForm.new(
          name: "publish_project_query",
          label: t("sharing.project_queries.public_flag.label", instance_name: Setting.app_title),
          caption: t("sharing.project_queries.public_flag.caption"),
          src: toggle_public_flag_link,
          csrf_token: form_authenticity_token,
          status_label_position: :start,
          checked: published?,
          enabled: can_publish?,
          turbo: true
        )
      )
    end
  end
end
%>