render :action => "projects", :layout => false if request.xhr?
end
+ def plugins
+ @plugins = Redmine::Plugin.registered_plugins
+ end
+
# Loads the default configuration
# (roles, trackers, statuses, workflow, enumerations)
def default_configuration
:file_repository_writable => File.writable?(Attachment.storage_path),
:rmagick_available => Object.const_defined?(:Magick)
}
- @plugins = Redmine::Plugin.registered_plugins
end
end
:class => ["icon22", "icon22-#{item.name}"].join(' ') %>
<% end -%>
+<p class="icon22 icon22-plugin">
+<%= link_to l(:label_plugins), :controller => 'admin', :action => 'plugins' %>
+</p>
+
<p class="icon22 icon22-info">
<%= link_to l(:label_information_plural), :controller => 'admin', :action => 'info' %>
</p>
<tr class="odd"><td><%= l(:text_rmagick_available) %></td><td><%= image_tag (@flags[:rmagick_available] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr>
</table>
-<% if @plugins.any? %>
-
-<h3 class="icon22 icon22-plugin"><%= l(:label_plugins) %></h3>
-<table class="list">
- <% @plugins.keys.sort {|x,y| x.to_s <=> y.to_s}.each do |plugin| %>
- <tr class="<%= cycle('odd', 'even') %>">
- <td><%=h @plugins[plugin].name %></td>
- <td><%=h @plugins[plugin].description %></td>
- <td><%=h @plugins[plugin].author %></td>
- <td><%=h @plugins[plugin].version %></td>
- <td><%= link_to(l(:button_configure), :controller => 'settings', :action => 'plugin', :id => plugin.to_s) if @plugins[plugin].configurable? %></td>
- </tr>
- <% end %>
-</table>
-<% end %>
-
<% html_title(l(:label_information_plural)) -%>
--- /dev/null
+<h2><%= l(:label_plugins) %></h2>
+
+<% if @plugins.any? %>
+<table class="list">
+ <% @plugins.keys.sort {|x,y| x.to_s <=> y.to_s}.each do |plugin| %>
+ <tr class="<%= cycle('odd', 'even') %>">
+ <td><%=h @plugins[plugin].name %></td>
+ <td><%=h @plugins[plugin].description %></td>
+ <td><%=h @plugins[plugin].author %></td>
+ <td><%=h @plugins[plugin].version %></td>
+ <td><%= link_to(l(:button_configure), :controller => 'settings', :action => 'plugin', :id => plugin.to_s) if @plugins[plugin].configurable? %></td>
+ </tr>
+ <% end %>
+</table>
+<% else %>
+<p class="nodata"><%= l(:label_no_data) %></p>
+<% end %>
user = User.find(1)
assert_equal [user.mail], mail.bcc
end
+
+ def test_plugins
+ get :plugins
+ assert_response :success
+ assert_template 'plugins'
+ end
def test_info
get :info
assert_template 'info'
end
+ private
+
def delete_configuration_data
Role.delete_all('builtin = 0')
Tracker.delete_all