Fix project.code-related functionality
This commit is contained in:
parent
c50ec72b52
commit
470aa7675e
8 changed files with 9 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
|||
:javascript
|
||||
$(function() {
|
||||
GitLab.GfmAutoComplete.Members.url = "#{ "/api/v2/projects/#{@project.code}/members" if @project }";
|
||||
GitLab.GfmAutoComplete.Members.url = "#{ "/api/v2/projects/#{@project.path}/members" if @project }";
|
||||
GitLab.GfmAutoComplete.Members.params.private_token = "#{current_user.private_token}";
|
||||
|
||||
GitLab.GfmAutoComplete.Emoji.data = #{raw emoji_autocomplete_source};
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
.container
|
||||
%ul.main_menu
|
||||
= nav_link(html_options: {class: "home #{project_tab_class}"}) do
|
||||
= link_to @project.code, project_path(@project), title: "Project"
|
||||
= link_to @project.path, project_path(@project), title: "Project"
|
||||
|
||||
- if @project.repo_exists?
|
||||
- if can? current_user, :download_code, @project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue