summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-09 12:10:40 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-09 12:10:40 +0200
commite9ab09c6b59421c32913e4b92ee061b91de30231 (patch)
tree6f99a4344cc56e5b1359c3909ec440018763b49d /app/helpers
parent11e43cddbc22e9402e1f3f0f79172cebd741983f (diff)
parentf0e1da04f061843dd6c6a45d51090c18bade3f1f (diff)
downloadgitlab-ce-e9ab09c6b59421c32913e4b92ee061b91de30231.tar.gz
Merge branch 'project-home-page'
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/projects_helper.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb
index 1bcd9a49527..df1d630c89d 100644
--- a/app/helpers/projects_helper.rb
+++ b/app/helpers/projects_helper.rb
@@ -266,4 +266,10 @@ module ProjectsHelper
namespace_project_new_blob_path(@project.namespace, @project, tree_join(ref), file_name: 'README.md')
end
+
+ def last_push_event
+ if current_user
+ current_user.recent_push(@project.id)
+ end
+ end
end