Pushed widget improved
This commit is contained in:
parent
ed247b3893
commit
77cf662034
7 changed files with 22 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue