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

813 B
Raw Blame
<%= render(Primer::OpenProject::PageHeader.new) do |header|
      header.with_title { I18n.t(:label_my_time_tracking) }
      header.with_breadcrumbs(
        [
          { text: I18n.t(:label_my_time_tracking), href: my_time_tracking_path }
        ]
      )

      header.with_tab_nav(label: I18n.t(:label_view_mode_switcher)) do |nav|
        nav.with_tab(selected: view_mode == :calendar, href: view_mode_switch_link(:calendar)) do |tab|
          tab.with_text { I18n.t(:label_calendar) }
          tab.with_icon(icon: :calendar)
        end

        nav.with_tab(selected: view_mode == :list, href: view_mode_switch_link(:list)) do |tab|
          tab.with_text { I18n.t(:label_list) }
          tab.with_icon(icon: "op-view-list")
        end
      end

      header.with_action_zen_mode_button
    end %>