Commit 1efa8f2e authored by Z.J. van de Weg's avatar Z.J. van de Weg

Rename issuable to IssueBase

Given the the Issuable class will soon also have to support MRs this
signals that it can only be used by issues.
parent bbb7fbcd
module Gitlab module Gitlab
module ChatCommands module ChatCommands
module Presenters module Presenters
module Issuable module IssueBase
def color(issuable) def color(issuable)
issuable.open? ? '#38ae67' : '#d22852' issuable.open? ? '#38ae67' : '#d22852'
end end
......
...@@ -2,7 +2,7 @@ module Gitlab ...@@ -2,7 +2,7 @@ module Gitlab
module ChatCommands module ChatCommands
module Presenters module Presenters
class IssueNew < Presenters::Base class IssueNew < Presenters::Base
include Presenters::Issuable include Presenters::IssueBase
def present def present
in_channel_response(new_issue) in_channel_response(new_issue)
......
...@@ -2,7 +2,7 @@ module Gitlab ...@@ -2,7 +2,7 @@ module Gitlab
module ChatCommands module ChatCommands
module Presenters module Presenters
class IssueSearch < Presenters::Base class IssueSearch < Presenters::Base
include Presenters::Issuable include Presenters::IssueBase
def present def present
text = if @resource.count >= 5 text = if @resource.count >= 5
......
...@@ -2,7 +2,7 @@ module Gitlab ...@@ -2,7 +2,7 @@ module Gitlab
module ChatCommands module ChatCommands
module Presenters module Presenters
class IssueShow < Presenters::Base class IssueShow < Presenters::Base
include Presenters::Issuable include Presenters::IssueBase
def present def present
if @resource.confidential? if @resource.confidential?
......
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