|
|
|
@ -26,22 +26,24 @@
|
|
|
|
|
<td><%=h repository.url %></td>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
<td class="buttons">
|
|
|
|
|
<td class="buttons" style="text-align:left">
|
|
|
|
|
<% if repository.scm_name=="Subversion"%>
|
|
|
|
|
<%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') %>
|
|
|
|
|
<%= delete_link repository_path(repository) %>
|
|
|
|
|
<%= 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),
|
|
|
|
|
:class => 'icon icon-edit') %> -->
|
|
|
|
|
<%= link_to(l(:label_user_plural), committers_repository_path(repository),
|
|
|
|
|
<%= link_to(l(:label_user_plural), committers_repository_path(repository),
|
|
|
|
|
:class => 'icon icon-user') %>
|
|
|
|
|
<%= delete_link repository_path(repository) %>
|
|
|
|
|
<% if repository.login.to_s==User.current.login.to_s %>
|
|
|
|
|
<%= delete_link repository_path(repository) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|