app/helpers/stacks_helper.rb in shipit-engine-0.4.10 vs app/helpers/stacks_helper.rb in shipit-engine-0.5.0

- old
+ new

@@ -64,22 +64,13 @@ def deploy_button_disabled?(commit) !commit.deployable? || !commit.stack.deployable? end def deploy_button_caption(commit) - state = commit.significant_status.state + state = commit.status.state state = 'locked' if commit.stack.locked? && !ignore_lock? if commit.deployable? state = commit.stack.deploying? ? 'deploying' : 'enabled' end t("deploy_button.caption.#{state}") - end - - def render_status(commit) - statuses = commit.visible_statuses - if statuses.size == 1 - render statuses.first - else - render StatusGroup.new(commit) - end end end