diff --git a/README b/README new file mode 100644 index 0000000..536e64e --- /dev/null +++ b/README @@ -0,0 +1,7 @@ +Fork of Embedded plugin (http://www.redmine.org/wiki/redmine/PluginEmbedded). +Correct style and search for all Doxygen versions. +Setup: +Index files: index.html +Valid extensions: html png gif js css +Default template: doxygen. +Menu caption: Doxygen diff --git a/app/controllers/redmine_embedded_controller.rb b/app/controllers/redmine_embedded_controller.rb index 2581af4..737c442 100644 --- a/app/controllers/redmine_embedded_controller.rb +++ b/app/controllers/redmine_embedded_controller.rb @@ -47,6 +47,15 @@ class RedmineEmbeddedController < ApplicationController if Redmine::MimeType.is_type?('image', path) send_file path, :disposition => 'inline', :type => Redmine::MimeType.of(path) + elsif path.match('/search/.*\.html$') + raw=File.read(path) + send_data raw, :disposition => 'inline', :type => "text/html", :streaming => "true" + elsif path.match('\.css$') + raw=File.read(path) + send_data raw, :disposition => 'inline', :type => "text/css", :streaming => "true" + elsif path.match('\.js$') + raw=File.read(path) + send_data raw, :disposition => 'inline', :type => "text/javascript", :streaming => "true" else embed_file path end