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
58f95c2c
Commit
58f95c2c
authored
Oct 17, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds loading while fetching data
parent
109dc41f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
app/assets/stylesheets/pages/environments.scss
app/assets/stylesheets/pages/environments.scss
+5
-0
app/views/projects/environments/index.html.haml
app/views/projects/environments/index.html.haml
+3
-3
No files found.
app/assets/stylesheets/pages/environments.scss
View file @
58f95c2c
...
...
@@ -73,3 +73,8 @@
}
}
}
.environments-list-loading
{
width
:
100%
;
font-size
:
34px
;
}
app/views/projects/environments/index.html.haml
View file @
58f95c2c
...
...
@@ -26,10 +26,10 @@
New environment
.environments-container
#environments-list-view
{
"v-cloak"
=>
true
,
data:
environments_list_data
}
.environments-list-
view
text-center
{
"v-if"
=>
"loading"
}
.environments-list-
loading.
text-center
{
"v-if"
=>
"loading"
}
=
icon
(
"spinner spin"
)
.blank-state.blank-state-no-icon
{
"v-if"
=>
"state.environments.length === 0"
}
.blank-state.blank-state-no-icon
{
"v-if"
=>
"
!loading &&
state.environments.length === 0"
}
%h2
.blank-state-title
You don't have any environments right now.
%p
.blank-state-text
...
...
@@ -41,7 +41,7 @@
=
link_to
new_namespace_project_environment_path
(
@project
.
namespace
,
@project
),
class:
'btn btn-create'
do
New environment
.table-holder
{
"v-if"
=>
"state.environments.length"
}
.table-holder
{
"v-if"
=>
"
!loading &&
state.environments.length"
}
%table
.table.ci-table.environments
%thead
%th
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