Project

General

Profile

Patch #232 ยป scm_info.patch

Brian DeGregorio, 2008-02-03 11:01

View differences:

app/views/repositories/show.rhtml.new 2007-10-04 19:16:15.000000000 +0000
4 4

  
5 5
<h2><%= l(:label_repository) %> (<%= @repository.scm_name %>)</h2>
6 6

  
7
<h3><%= l(:label_information) %></h3>
8
<table class="list">
9
  <tr>
10
    <th align="right">Type</th>
11
    <td><%= @repository.scm_name %></td>
12
  </tr>
13
<% if @repository.scm_name == "Subversion" %>
14
  <tr>
15
    <th align="right">URL</th>
16
    <td><%= @repository.url %></td>
17
  </tr>
18
<%  if @repository.login != "" %>
19
  <tr>
20
    <th align="right">Username</th>
21
    <td><%= @repository.login %></td>
22
  </tr>
23
<%  end %>
24
<% elsif @repository.scm_name == "CVS" %>
25
  <tr>
26
    <th align="right">CVSROOT</th>
27
    <td><%= @repository.root_url %></td>
28
  </tr>
29
  <tr>
30
    <th align="right">Module</th>
31
    <td><%= @repository.url %></td>
32
  </tr>
33
<% else %>
34
  <tr>
35
    <th align="right">Root Directory</th>
36
    <td><%= @repository.url %></td>
37
  </tr>
38
<% end %>
39
</table>
40

  
7 41
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
8 42
<h3><%= l(:label_browse) %></h3>
9 43
<%= render :partial => 'dir_list' %>
    (1-1/1)