修改项目配置--版本库--用户列表 404问题
This commit is contained in:
parent
5b98dd83b2
commit
0a7a834ebe
|
@ -227,7 +227,7 @@ update
|
|||
elsif request.get?
|
||||
respond_to do |format|
|
||||
format.html{
|
||||
render :layout => "project_base"
|
||||
render :layout => "base_projects"
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -33,8 +33,7 @@
|
|||
<td><a href="javascript:viod(0)" class="c_blue" >
|
||||
<% if repository.scm_name=="Git"%>
|
||||
<%if User.current.allowed_to?(:manage_repository, @project) %>
|
||||
<%= link_to(l(:label_user_plural), committers_repository_path(repository)
|
||||
) %>
|
||||
<%= link_to(l(:label_user_plural), committers_repository_path(repository)) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</a></td>
|
||||
|
|
|
@ -27,25 +27,15 @@
|
|||
<% end %>
|
||||
|
||||
<td class="buttons" style="text-align:left">
|
||||
<% if repository.scm_name=="Subversion"%>
|
||||
<%if User.current.allowed_to?(:manage_repository, @project) %>
|
||||
<%= link_to(l(:label_user_plural), committers_repository_path(repository),
|
||||
:class => 'icon icon-user') %>
|
||||
<%= link_to(l(:button_edit), edit_repository_path(repository),
|
||||
:class => 'icon icon-edit') %>
|
||||
<%= delete_link repository_path(repository) %>
|
||||
<% end %>
|
||||
<% elsif repository.scm_name=="Git"%>
|
||||
<%if User.current.allowed_to?(:manage_repository, @project) %>
|
||||
<!-- <%#= link_to(l(:button_edit), edit_repository_path(repository),
|
||||
|
||||
<%if User.current.allowed_to?(:manage_repository, @project) %>
|
||||
<!-- <%#= link_to(l(:button_edit), edit_repository_path(repository),
|
||||
:class => 'icon icon-edit') %> -->
|
||||
<%= link_to(l(:label_user_plural), committers_repository_path(repository),
|
||||
:class => 'icon icon-user') %>
|
||||
<% if repository.login.to_s==User.current.login.to_s %>
|
||||
<%= delete_link repository_path(repository) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= link_to(l(:label_user_plural), committers_repository_path(repository), :class => 'icon icon-user') %>
|
||||
<% if repository.login.to_s==User.current.login.to_s %>
|
||||
<%= delete_link repository_path(repository) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue