mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Add raw output to web UI
This commit is contained in:
parent
113c4abf4f
commit
0f3e4aab99
@ -75,9 +75,18 @@ class AdminController < ApplicationController
|
||||
end
|
||||
|
||||
def info
|
||||
environment = Redmine::About.environment
|
||||
environment.each_pair do |key, value|
|
||||
instance_variable_set("@env_#{key.to_s}", value)
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
environment = Redmine::About.environment %w(checklist rails)
|
||||
environment[:plugins] = Redmine::Plugin.all
|
||||
environment.each_pair do |key, value|
|
||||
instance_variable_set("@env_#{key.to_s}", value)
|
||||
end
|
||||
render :action => 'info'
|
||||
end
|
||||
format.txt do
|
||||
render :text => Redmine::About, :layout => false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
<%- reset_cycle %>
|
||||
<table class="list plugins">
|
||||
<% plugins.each do |plugin| %>
|
||||
<tr class="<%= cycle('odd', 'even') %>">
|
||||
|
||||
@ -1,8 +1,16 @@
|
||||
<div class="contextual">
|
||||
<%= link_to l(:label_information__plural_raw),
|
||||
{:controller => 'admin', :action => 'info', :format => "txt"},
|
||||
:class => 'icon icon-copy' %>
|
||||
</div>
|
||||
|
||||
|
||||
<h2><%=l(:label_information_plural)%></h2>
|
||||
|
||||
<p><strong><%= Redmine::Info.versioned_name %></strong></p>
|
||||
|
||||
<table class="list">
|
||||
<%- reset_cycle %>
|
||||
<% @env_checklist.each do |label, result| %>
|
||||
<tr class="<%= cycle 'odd', 'even' %>">
|
||||
<td><%= l(label) %></td>
|
||||
@ -12,6 +20,7 @@
|
||||
</table>
|
||||
|
||||
<h3><%=l(:label_environment)%></h3>
|
||||
<%- reset_cycle %>
|
||||
<table class="list">
|
||||
<% @env_rails.each do |label, info| %>
|
||||
<tr class="<%= cycle 'odd', 'even' %>">
|
||||
|
||||
@ -3,3 +3,4 @@
|
||||
Mime::SET << Mime::CSV unless Mime::SET.include?(Mime::CSV)
|
||||
Mime::Type.register 'application/pdf', :pdf
|
||||
Mime::Type.register 'image/png', :png
|
||||
Mime::Type.register 'text/plain', :txt
|
||||
|
||||
@ -465,6 +465,7 @@ en:
|
||||
label_enumeration_new: New value
|
||||
label_information: Information
|
||||
label_information_plural: Information
|
||||
label_information__plural_raw: Raw information
|
||||
label_please_login: Please log in
|
||||
label_register: Register
|
||||
label_login_with_open_id_option: or login with OpenID
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user