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 ...@@ -10,7 +10,7 @@ module Gitlab
end end
def action_icon def action_icon
'remove' 'ban'
end end
def action_path def action_path
...@@ -23,6 +23,10 @@ module Gitlab ...@@ -23,6 +23,10 @@ module Gitlab
:post :post
end end
def action_title
'Cancel'
end
def self.matches?(build, user) def self.matches?(build, user)
build.cancelable? build.cancelable?
end end
......
...@@ -17,10 +17,18 @@ module Gitlab ...@@ -17,10 +17,18 @@ module Gitlab
can?(user, :update_build, subject) can?(user, :update_build, subject)
end end
def action_title
'Play'
end
def action_icon def action_icon
'play' 'play'
end end
def action_class
'ci-play-icon'
end
def action_path def action_path
play_namespace_project_build_path(subject.project.namespace, play_namespace_project_build_path(subject.project.namespace,
subject.project, subject.project,
......
...@@ -10,7 +10,11 @@ module Gitlab ...@@ -10,7 +10,11 @@ module Gitlab
end end
def action_icon def action_icon
'repeat' 'refresh'
end
def action_title
'Retry'
end end
def action_path def action_path
......
...@@ -26,7 +26,11 @@ module Gitlab ...@@ -26,7 +26,11 @@ module Gitlab
end end
def action_icon def action_icon
:play 'stop'
end
def action_title
'Stop'
end end
def action_path def action_path
......
...@@ -49,6 +49,9 @@ module Gitlab ...@@ -49,6 +49,9 @@ module Gitlab
raise NotImplementedError raise NotImplementedError
end end
def action_class
end
def action_path def action_path
raise NotImplementedError raise NotImplementedError
end end
...@@ -56,6 +59,10 @@ module Gitlab ...@@ -56,6 +59,10 @@ module Gitlab
def action_method def action_method
raise NotImplementedError raise NotImplementedError
end end
def action_title
raise NotImplementedError
end
end end
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