Commit d9a979c8 authored by Kamil Trzcinski's avatar Kamil Trzcinski Committed by Grzegorz Bizon

Add action_class/action_title

parent d1dd8935
......@@ -10,7 +10,7 @@ module Gitlab
end
def action_icon
'remove'
'ban'
end
def action_path
......@@ -23,6 +23,10 @@ module Gitlab
:post
end
def action_title
'Cancel'
end
def self.matches?(build, user)
build.cancelable?
end
......
......@@ -17,10 +17,18 @@ module Gitlab
can?(user, :update_build, subject)
end
def action_title
'Play'
end
def action_icon
'play'
end
def action_class
'ci-play-icon'
end
def action_path
play_namespace_project_build_path(subject.project.namespace,
subject.project,
......
......@@ -10,7 +10,11 @@ module Gitlab
end
def action_icon
'repeat'
'refresh'
end
def action_title
'Retry'
end
def action_path
......
......@@ -26,7 +26,11 @@ module Gitlab
end
def action_icon
:play
'stop'
end
def action_title
'Stop'
end
def action_path
......
......@@ -49,6 +49,9 @@ module Gitlab
raise NotImplementedError
end
def action_class
end
def action_path
raise NotImplementedError
end
......@@ -56,6 +59,10 @@ module Gitlab
def action_method
raise NotImplementedError
end
def action_title
raise NotImplementedError
end
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment