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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
7175519d
Commit
7175519d
authored
Jul 17, 2020
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dead code and update translations
Code not used since integration_form_refactor is removed.
parent
da93e7c5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
21 deletions
+0
-21
app/helpers/services_helper.rb
app/helpers/services_helper.rb
+0
-13
locale/gitlab.pot
locale/gitlab.pot
+0
-3
spec/helpers/services_helper_spec.rb
spec/helpers/services_helper_spec.rb
+0
-5
No files found.
app/helpers/services_helper.rb
View file @
7175519d
...
...
@@ -35,19 +35,6 @@ module ServicesHelper
"
#{
event
}
_events"
end
def
service_event_action_field_name
(
action
)
"
#{
action
}
_on_event_enabled"
end
def
event_action_title
(
action
)
case
action
when
"comment"
s_
(
"ProjectService|Comment"
)
else
action
.
humanize
end
end
def
service_save_button
(
disabled:
false
)
button_tag
(
class:
'btn btn-success'
,
type:
'submit'
,
disabled:
disabled
,
data:
{
qa_selector:
'save_changes_button'
})
do
icon
(
'spinner spin'
,
class:
'hidden js-btn-spinner'
)
+
...
...
locale/gitlab.pot
View file @
7175519d
...
...
@@ -18292,9 +18292,6 @@ msgstr ""
msgid "ProjectService|%{service_title}: status on"
msgstr ""
msgid "ProjectService|Comment"
msgstr ""
msgid "ProjectService|Event will be triggered by a push to the repository"
msgstr ""
...
...
spec/helpers/services_helper_spec.rb
View file @
7175519d
...
...
@@ -3,11 +3,6 @@
require
'spec_helper'
RSpec
.
describe
ServicesHelper
do
describe
'event_action_title'
do
it
{
expect
(
event_action_title
(
'comment'
)).
to
eq
'Comment'
}
it
{
expect
(
event_action_title
(
'something'
)).
to
eq
'Something'
}
end
describe
'#integration_form_data'
do
subject
{
helper
.
integration_form_data
(
integration
)
}
...
...
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