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
Tatuya Kamada
gitlab-ce
Commits
ea9d910c
Commit
ea9d910c
authored
8 years ago
by
Patricio Cano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor clone button sanitation to its own method to avoid duplication.
parent
82652013
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
app/helpers/application_settings_helper.rb
app/helpers/application_settings_helper.rb
+6
-2
No files found.
app/helpers/application_settings_helper.rb
View file @
ea9d910c
...
...
@@ -47,12 +47,16 @@ module ApplicationSettingsHelper
def
enabled_project_tooltip
(
project
,
protocol
)
case
protocol
when
'ssh'
sanitize
(
ssh_clone_button
(
project
),
tags:
%w(a)
,
attributes:
%w(id class title data-html data-container data-placement data-title data-original-title aria-describedby
)
)
sanitize
_clone_button
(
ssh_clone_button
(
project
))
else
sanitize
(
http_clone_button
(
project
),
tags:
%w(a)
,
attributes:
%w(id class title data-html data-container data-placement data-title data-original-title aria-describedby
)
)
sanitize
_clone_button
(
http_clone_button
(
project
))
end
end
def
sanitize_clone_button
(
input
)
sanitize
(
input
,
tags:
%w(a)
,
attributes:
%w(id class title data-html data-container data-placement data-title data-original-title aria-describedby)
)
end
# Return a group of checkboxes that use Bootstrap's button plugin for a
# toggle button effect.
def
restricted_level_checkboxes
(
help_block_id
)
...
...
This diff is collapsed.
Click to expand it.
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