Merge branch 'zj-rename-issuable-issue-base' into 'master'

Rename issuable to IssueBase

See merge request !9127
This commit is contained in:
Rémy Coutable 2017-02-10 10:16:25 +00:00
commit f60cb12f69
4 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
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

View file

@ -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)

View file

@ -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

View file

@ -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?