Project

General

Profile

Feature #4273 » scm-info-view.diff

Toshi MARUYAMA, 2011-02-18 14:03

View differences:

app/controllers/admin_controller.rb
[:text_plugin_assets_writable, File.writable?(Engines.public_directory)],
[:text_rmagick_available, Object.const_defined?(:Magick)]
]
end
@scm_info = []
Redmine::Scm::Base.all.each do |scm|
scm_class = "Repository::#{scm}".constantize
@scm_info << {:name => scm_class.scm_name,
:command => scm_class.scm_command,
:version_string => scm_class.scm_version_string,
:available => scm_class.scm_available}
end
end
end
app/views/admin/info.rhtml
<% end %>
</table>
<h3><%=l(:label_scm)%></h3>
<table class="list">
<thead>
<tr>
<th><%=l(:label_scm_name)%></th>
<th><%=l(:label_scm_command)%></th>
<th><%=l(:label_version)%></th>
<th></th>
</tr>
</thead>
<tbody>
<% @scm_info.each do |scm| %>
<tr class="<%= cycle 'odd', 'even' %>">
<td><%= scm[:name] %></td>
<td><%= scm[:command] %></td>
<td><%= scm[:version_string] %></td>
<td><%= image_tag((scm[:available] ? 'true.png' : 'exclamation.png'),
:style => "vertical-align:bottom;") %></td>
</tr>
<% end %>
</tbody>
</table>
<% html_title(l(:label_information_plural)) -%>
config/locales/en.yml
label_project_copy_notifications: Send email notifications during the project copy
label_principal_search: "Search for user or group:"
label_user_search: "Search for user:"
label_scm_name: Name
label_scm_command: Command
button_login: Login
button_submit: Submit
(4-4/9)