summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index be0e0c9eedf..8e151ef75df 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -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