To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / projects / settings / _repositories.html.erb @ 1298:4f746d8966dd
History | View | Annotate | Download (1.47 KB)
| 1 |
<% if @project.repositories.any? %>
|
|---|---|
| 2 |
<table class="list"> |
| 3 |
<thead>
|
| 4 |
<tr>
|
| 5 |
<th><%= l(:field_identifier) %></th> |
| 6 |
<th><%= l(:field_repository_is_default) %></th> |
| 7 |
<th><%= l(:label_scm) %></th> |
| 8 |
<th><%= l(:label_repository) %></th> |
| 9 |
<th></th> |
| 10 |
</tr>
|
| 11 |
</thead>
|
| 12 |
<tbody>
|
| 13 |
<% @project.repositories.sort.each do |repository| %>
|
| 14 |
<tr class="<%= cycle 'odd', 'even' %>"> |
| 15 |
<td>
|
| 16 |
<%= link_to repository.identifier,
|
| 17 |
{:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier.present? %>
|
| 18 |
</td>
|
| 19 |
<td align="center"><%= checked_image repository.is_default? %></td> |
| 20 |
<td><%=h repository.scm_name %></td> |
| 21 |
<td><%=h repository.url %></td> |
| 22 |
<td class="buttons"> |
| 23 |
<% if User.current.allowed_to?(:manage_repository, @project) %>
|
| 24 |
<%= link_to(l(:label_user_plural), committers_repository_path(repository),
|
| 25 |
:class => 'icon icon-user') %>
|
| 26 |
<%= link_to(l(:button_edit), edit_repository_path(repository),
|
| 27 |
:class => 'icon icon-edit') %>
|
| 28 |
<%= delete_link repository_path(repository) %>
|
| 29 |
<% end %>
|
| 30 |
</td>
|
| 31 |
</tr>
|
| 32 |
<% end %>
|
| 33 |
</tbody>
|
| 34 |
</table>
|
| 35 |
<% else %>
|
| 36 |
<p class="nodata"><%= l(:label_no_data) %></p> |
| 37 |
<% end %>
|
| 38 |
|
| 39 |
<% if User.current.allowed_to?(:manage_repository, @project) %>
|
| 40 |
<p><%= link_to l(:label_repository_new), new_project_repository_path(@project), :class => 'icon icon-add' %></p> |
| 41 |
<% end %>
|