diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-11-15 11:25:26 +0400 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-11-15 11:25:26 +0400 |
commit | 7b36b8d130561aa3f953962614e1774fa2603a11 (patch) | |
tree | 29f6b16d54be127659f88b9891ff91afb3ee64cd /app/views/layouts/project.html.haml | |
parent | 003bf61258ea20128315076936f09ea198e56bcb (diff) | |
download | gitlab-ce-7b36b8d130561aa3f953962614e1774fa2603a11.tar.gz |
access project feeds via private token
Diffstat (limited to 'app/views/layouts/project.html.haml')
-rw-r--r-- | app/views/layouts/project.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/project.html.haml b/app/views/layouts/project.html.haml index b2d023d4a72..7c5a162f22f 100644 --- a/app/views/layouts/project.html.haml +++ b/app/views/layouts/project.html.haml @@ -6,9 +6,9 @@ = stylesheet_link_tag "application" = javascript_include_tag "application" - if current_page?(tree_project_path(@project)) || current_page?(project_commits_path(@project)) - = auto_discovery_link_tag(:atom, project_commits_url(@project, :atom, :ref => @ref), :title => "Recent commits to #{@project.name}:#{@ref}") + = auto_discovery_link_tag(:atom, project_commits_url(@project, :atom, :ref => @ref, :private_token => current_user.private_token), :title => "Recent commits to #{@project.name}:#{@ref}") - if request.path == project_issues_path(@project) - = auto_discovery_link_tag(:atom, project_issues_url(@project, :atom), :title => "#{@project.name} issues") + = auto_discovery_link_tag(:atom, project_issues_url(@project, :atom, :private_token => current_user.private_token), :title => "#{@project.name} issues") = csrf_meta_tags = javascript_tag do REQ_URI = "#{request.env["REQUEST_URI"]}"; |