gitlab-org--gitlab-foss/app/views/projects/clusters/_tabs.html.haml
Filipa Lacerda 24aadbdfa1
Merge branch 'list-multiple-clusters' of https://gitlab.com/gitlab-org/gitlab-ce into list-multiple-clusters
* 'list-multiple-clusters' of https://gitlab.com/gitlab-org/gitlab-ce:
  Fix symbolization error in #clusters
  Add specs for scoping in ClustersController
  Add pagination specs for ClustersController
  Add specs for cluster counters
  Use current_user in ClustersController#clusters
  Add specs for ClustersFinder
2017-11-27 17:32:57 +00:00

19 lines
1.2 KiB
Text

.top-area.scrolling-tabs-container.inner-page-scroll-tabs
.fade-left= icon("angle-left")
.fade-right= icon("angle-right")
%ul.nav-links.scrolling-tabs
%li{ class: ('active' if @scope == 'enabled') }>
= link_to project_clusters_path(@project, scope: :enabled), class: "js-active-tab" do
= s_("ClusterIntegration|Active")
%span.badge= @active_count
%li{ class: ('active' if @scope == 'disabled') }>
= link_to project_clusters_path(@project, scope: :disabled), class: "js-inactive-tab #{'active' if @scope == 'disabled'}" do
= s_("ClusterIntegration|Inactive")
%span.badge= @inactive_count
%li{ class: ('active' if @scope.nil? || @scope == 'all') }>
= link_to project_clusters_path(@project, scope: :all), class: "js-all-tab #{'active' if @scope == 'all' || @scope.nil?}" do
= s_("ClusterIntegration|All")
%span.badge= @all_count
.pull-right.nav-bar-right
= link_to s_("ClusterIntegration|Add cluster"), new_project_cluster_path(@project), class: "btn btn-success disabled has-tooltip js-add-cluster", title: s_("ClusterIntegration|Multiple clusters are available in GitLab Entreprise Edition Premium and Ultimate")