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
<h2><%= l(:label_repository) %> (<%= @repository.scm_name %>)</h2>
<h3><%= l(:label_information) %></h3>
<table class="list">
<tr>
<th align="right">Type</th>
<td><%= @repository.scm_name %></td>
</tr>
<% if @repository.scm_name == "Subversion" %>
<tr>
<th align="right">URL</th>
<td><%= @repository.url %></td>
</tr>
<% if @repository.login != "" %>
<tr>
<th align="right">Username</th>
<td><%= @repository.login %></td>
</tr>
<% end %>
<% elsif @repository.scm_name == "CVS" %>
<tr>
<th align="right">CVSROOT</th>
<td><%= @repository.root_url %></td>
</tr>
<tr>
<th align="right">Module</th>
<td><%= @repository.url %></td>
</tr>
<% else %>
<tr>
<th align="right">Root Directory</th>
<td><%= @repository.url %></td>
</tr>
<% end %>
</table>
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
<h3><%= l(:label_browse) %></h3>
<%= render :partial => 'dir_list' %>
    (1-1/1)