index.html.haml 1.49 KB
Newer Older
1
- page_title s_("UsageQuota|Usage")
2
- url_to_purchase_storage = purchase_storage_url if purchase_storage_link_enabled?(@group)
3 4

%h3.page-title
5
  = s_('UsageQuota|Usage Quotas')
6 7 8 9 10 11

.row
  .col-sm-6
    = s_('UsageQuota|Usage of group resources across the projects in the %{strong_start}%{group_name}%{strong_end} group').html_safe % { strong_start: '<strong>'.html_safe, strong_end: '</strong>'.html_safe, group_name: @group.name }

.top-area.scrolling-tabs-container.inner-page-scroll-tabs
12
  %ul.nav.nav-tabs.nav-links.scrolling-tabs.separator.js-storage-tabs{ role: 'tablist' }
13
    %li.nav-item
14
      %a.nav-link#pipelines-quota{ data: { toggle: "tab", action: '#pipelines-quota-tab' }, href: '#pipelines-quota-tab', 'aria-controls': '#pipelines-quota-tab', 'aria-selected': true }
15
        = s_('UsageQuota|Pipelines')
16 17 18
    %li.nav-item
      %a.nav-link#storage-quota{ data: { toggle: "tab", action: '#storage-quota-tab' }, href: '#storage-quota-tab', 'aria-controls': '#storage-quota-tab', 'aria-selected': false }
        = s_('UsageQuota|Storage')
19
.tab-content
20
  .tab-pane#pipelines-quota-tab
21 22
    = render "namespaces/pipelines_quota/list",
      locals: { namespace: @group, projects: @projects }
23
  .tab-pane#storage-quota-tab
24
    #js-storage-counter-app{ data: { namespace_path: @group.full_path, help_page_path: help_page_path('user/usage_quotas.md', anchor: 'storage-usage-quota'), purchase_storage_url: url_to_purchase_storage, is_temporary_storage_increase_visible: temporary_storage_increase_visible?(@group).to_s } }