]> source.dussan.org Git - redmine.git/commitdiff
Add links to repositories on repository list.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jul 2012 11:51:09 +0000 (11:51 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Jul 2012 11:51:09 +0000 (11:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10123 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/settings/_repositories.html.erb

index d72c9edad06310096ceaf25c55a06519ce576968..37e008bd2e54dda31f4c9784652c47ca6127cc41 100644 (file)
@@ -2,9 +2,9 @@
 <table class="list">
   <thead>
     <tr>
-      <th><%= l(:label_scm) %></th>
       <th><%= l(:field_identifier) %></th>
       <th><%= l(:field_repository_is_default) %></th>
+      <th><%= l(:label_scm) %></th>
       <th><%= l(:label_repository) %></th>
       <th></th>
     </tr>
   <tbody>
   <% @project.repositories.sort.each do |repository| %>
     <tr class="<%= cycle 'odd', 'even' %>">
-      <td><%=h repository.scm_name %></td>
-      <td><%=h repository.identifier %></td>
+      <td>
+      <%= link_to repository.identifier, 
+            {:controller => 'repositories', :action => 'show',:id => @project, :repository_id => repository.identifier_param} if repository.identifier_param.present? %>
+      </td>
       <td align="center"><%= checked_image repository.is_default? %></td>
+      <td><%=h repository.scm_name %></td>
       <td><%=h repository.url %></td>
       <td class="buttons">
       <% if User.current.allowed_to?(:manage_repository, @project) %>