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
afa4a075
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+5
-2
app/views/projects/network/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