Pushed widget improved

This commit is contained in:
randx 2012-06-21 18:41:22 +03:00
parent ed247b3893
commit 77cf662034
7 changed files with 22 additions and 16 deletions

View file

@ -88,4 +88,9 @@ module ApplicationHelper
def app_theme
Gitlab::Theme.css_class_by_id(current_user.try(:theme_id))
end
def show_last_push_widget?(event)
event && event.last_push_to_non_root? &&
event.project && event.project.merge_requests_enabled
end
end