Basic plugin support.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@752 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
a42a115b8f
commit
e4f0864e3a
12 files changed
+189
-3
No files matched your search
@@ -7,3 +7,19 @@
|
||||
<tr class="even"><td>File repository writable</td><td><%= image_tag (@flags[:file_repository_writable] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr>
|
||||
<tr class="odd"><td>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">Plugins</h3>
|
||||
<table class="list">
|
||||
<% @plugins.keys.sort.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('Configure', :controller => 'settings', :action => 'plugin', :id => plugin.to_s) if @plugins[plugin].configurable? %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
<% end %>
|
||||
@@ -0,0 +1,8 @@
|
||||
<h2><%= l(:label_settings) %>: <%=h @plugin.name %></h2>
|
||||
|
||||
<% form_tag({:action => 'plugin'}) do %>
|
||||
<div class="box tabular">
|
||||
<%= render :partial => @partial, :locals => {:settings => @settings}%>
|
||||
</div>
|
||||
<%= submit_tag l(:button_apply) %>
|
||||
<% end %>
|
||||
Reference in new issue
Block a user