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

1.2 KB
Raw Blame
<%=
  render(
    Primer::Alpha::Dialog.new(
      id: "enterprise-trial-welcome-dialog",
      data: {
        controller: "auto-show-dialog media-dialog"
      },
      title: I18n.t("ee.trial.welcome_title"),
      size: :xlarge
    )
  ) do |dialog|
    dialog.with_header(variant: :large)
    dialog.with_body do
      flex_layout do |flex|
        flex.with_row do
          render(Primer::Beta::Text.new(color: :subtle)) { I18n.t("ee.trial.welcome_description") }
        end
        flex.with_row(mt: 2) do
          content_tag :div, class: "onboarding--video" do
            render(
              Primer::BaseComponent.new(
                my: 2,
                tag: :video,
                height: "430",
                width: "100%",
                controls: true,
                preload: "none",
                allowfullscreen: true,
                data: { "media-dialog-target": "video" }
              )
            ) do
              render(
                Primer::BaseComponent.new(
                  tag: :source,
                  src: OpenProject::Static::Links.url_for(:enterprise_welcome_video),
                  type: "video/mp4"
                )
              )
            end
          end
        end
      end
    end
  end
%>