Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
08e70857
Commit
08e70857
authored
Oct 04, 2016
by
Filipa Lacerda
Committed by
Kamil Trzcinski
Oct 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds tabs to environments list
parent
b60e8309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
app/views/projects/environments/index.html.haml
app/views/projects/environments/index.html.haml
+13
-0
No files found.
app/views/projects/environments/index.html.haml
View file @
08e70857
...
@@ -5,6 +5,19 @@
...
@@ -5,6 +5,19 @@
%div
{
class:
container_class
}
%div
{
class:
container_class
}
-
if
can?
(
current_user
,
:create_environment
,
@project
)
&&
!
@environments
.
blank?
-
if
can?
(
current_user
,
:create_environment
,
@project
)
&&
!
@environments
.
blank?
.top-area
.top-area
%ul
.nav-links
%li
{
class:
(
'active'
if
@scope
.
nil?
)}
=
link_to
project_environments_path
(
@project
)
do
Availabe
%span
.badge.js-avaibale-environments-count
=
number_with_delimiter
(
@available_environments_count
)
%li
{
class:
(
'active'
if
@scope
==
'stopped'
)}
=
link_to
project_environments_path
(
@project
,
scope: :stopped
)
do
Stopped
%span
.badge.js-stopped-environments-count
=
number_with_delimiter
(
@stopped_environments_count
)
.nav-controls
.nav-controls
=
link_to
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
do
=
link_to
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
do
New environment
New environment
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment