diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-11-18 15:44:21 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-11-18 15:44:21 +0000 |
commit | 25f99d8499fb70662285ae74b3013296b5f7b410 (patch) | |
tree | ae997e2f84a9564b1c24408a841e7c3bf162f428 | |
parent | baddb8872c1c6ad914d1b65db2d119b11bd147d6 (diff) | |
download | gitlab-ce-25f99d8499fb70662285ae74b3013296b5f7b410.tar.gz |
Fix css class
-rw-r--r-- | app/assets/javascripts/environments/components/environment.js.es6 | 3 | ||||
-rw-r--r-- | app/views/projects/environments/index.html.haml | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/environments/components/environment.js.es6 b/app/assets/javascripts/environments/components/environment.js.es6 index 41bef3af490..b769161e058 100644 --- a/app/assets/javascripts/environments/components/environment.js.es6 +++ b/app/assets/javascripts/environments/components/environment.js.es6 @@ -64,6 +64,7 @@ state: this.store.state, visibility: 'available', isLoading: false, + cssContainerClass: environmentsData.cssClass, endpoint: environmentsData.environmentsDataEndpoint, canCreateDeployment: environmentsData.canCreateDeployment, canReadEnvironment: environmentsData.canReadEnvironment, @@ -150,7 +151,7 @@ }, template: ` - <div class="container-fluid container-limited"> + <div :class="cssContainerClass"> <div class="top-area"> <ul v-if="!isLoading" class="nav-links"> <li v-bind:class="{ 'active': scope === undefined }"> diff --git a/app/views/projects/environments/index.html.haml b/app/views/projects/environments/index.html.haml index b641d2cec34..a9235d6af35 100644 --- a/app/views/projects/environments/index.html.haml +++ b/app/views/projects/environments/index.html.haml @@ -16,4 +16,5 @@ "project-environments-path" => project_environments_path(@project), "project-stopped-environments-path" => project_environments_path(@project, scope: :stopped), "new-environment-path" => new_namespace_project_environment_path(@project.namespace, @project), - "help-page-path" => help_page_path("ci/environments")}, class: container_class } + "help-page-path" => help_page_path("ci/environments"), + "css-class" => container_class}} |