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
iv
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
...
@@ -226,8 +226,11 @@ module ApplicationHelper
GitHub
::
Markup
.
render
(
file_name
,
file_content
).
html_safe
GitHub
::
Markup
.
render
(
file_name
,
file_content
).
html_safe
end
end
def
spinner
(
text
=
nil
)
def
spinner
(
text
=
nil
,
visible
=
false
)
content_tag
:div
,
class:
'loading hide'
do
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
content_tag
(
:i
,
nil
,
class:
'icon-spinner icon-spin'
)
+
text
end
end
end
end
...
...
app/views/projects/network/show.html.haml
View file @
afa4a075
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
.tip
.tip
You can move around the graph by using the arrow keys.
You can move around the graph by using the arrow keys.
.network-graph
.network-graph
=
spinner
=
spinner
nil
,
true
:javascript
:javascript
new
Network
({
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