BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
afa4a075
Unverified
Commit
afa4a075
authored
Jun 11, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show spinner on network graph while it loading
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
e740a00e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
application_helper.rb
app/helpers/application_helper.rb
+5
-2
show.html.haml
app/views/projects/network/show.html.haml
+1
-1
No files found.
app/helpers/application_helper.rb
View file @
afa4a075
...
...
@@ -226,8 +226,11 @@ module ApplicationHelper
GitHub
::
Markup
.
render
(
file_name
,
file_content
).
html_safe
end
def
spinner
(
text
=
nil
)
content_tag
:div
,
class:
'loading hide'
do
def
spinner
(
text
=
nil
,
visible
=
false
)
css_class
=
"loading"
css_class
<<
" hide"
unless
visible
content_tag
:div
,
class:
css_class
do
content_tag
(
:i
,
nil
,
class:
'icon-spinner icon-spin'
)
+
text
end
end
...
...
app/views/projects/network/show.html.haml
View file @
afa4a075
...
...
@@ -3,7 +3,7 @@
.tip
You can move around the graph by using the arrow keys.
.network-graph
=
spinner
=
spinner
nil
,
true
:javascript
new
Network
({
...
...
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