diff --git a/plugins/video/lib/video_plugin/video.rb b/plugins/video/lib/video_plugin/video.rb
index 446a8d0..ba51d36 100644
--- a/plugins/video/lib/video_plugin/video.rb
+++ b/plugins/video/lib/video_plugin/video.rb
@@ -40,7 +40,7 @@ class VideoPlugin::Video < Article
def to_html(options={})
article = self
proc do
- render :partial => 'content_viewer/video', :locals => {:article => article}
+ render :partial => 'content_viewer/video_plugin/video', :locals => {:article => article}
end
end
diff --git a/plugins/video/lib/video_plugin/video_gallery.rb b/plugins/video/lib/video_plugin/video_gallery.rb
index 49a20c9..2159550 100644
--- a/plugins/video/lib/video_plugin/video_gallery.rb
+++ b/plugins/video/lib/video_plugin/video_gallery.rb
@@ -36,7 +36,7 @@ class VideoPlugin::VideoGallery < Folder
def to_html(options = {})
video_gallery = self
proc do
- render :partial => 'content_viewer/video_gallery', :locals => {:video_gallery => video_gallery}
+ render :partial => 'content_viewer/video_plugin/video_gallery', :locals => {:video_gallery => video_gallery}
end
end
diff --git a/plugins/video/views/cms/_video.html.erb b/plugins/video/views/cms/_video.html.erb
deleted file mode 100644
index 0baa15d..0000000
--- a/plugins/video/views/cms/_video.html.erb
+++ /dev/null
@@ -1,12 +0,0 @@
-<%= required_fields_message %>
-
-
-<%= required f.text_field('name', :size => '64', :maxlength => 150) %>
-<%= required labelled_form_field _('URL of the video'), text_field(:article, :video_url, :size => 300) %>
-<%= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 3, :cols => 64)) %>
-<%= render :partial => 'general_fields' %>
-<%= render :partial => 'translatable' %>
-
-
-
-
diff --git a/plugins/video/views/cms/_video_gallery.html.erb b/plugins/video/views/cms/_video_gallery.html.erb
deleted file mode 100644
index ce95bd1..0000000
--- a/plugins/video/views/cms/_video_gallery.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-<%= required_fields_message %>
-
-<%= required f.text_field('name', :size => '64', :maxlength => 150) %>
-<%= render :partial => 'general_fields' %>
-
-<%= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 3, :cols => 64)) %>
diff --git a/plugins/video/views/cms/video_plugin/_video.html.erb b/plugins/video/views/cms/video_plugin/_video.html.erb
new file mode 100644
index 0000000..0baa15d
--- /dev/null
+++ b/plugins/video/views/cms/video_plugin/_video.html.erb
@@ -0,0 +1,12 @@
+<%= required_fields_message %>
+
+
+<%= required f.text_field('name', :size => '64', :maxlength => 150) %>
+<%= required labelled_form_field _('URL of the video'), text_field(:article, :video_url, :size => 300) %>
+<%= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 3, :cols => 64)) %>
+<%= render :partial => 'general_fields' %>
+<%= render :partial => 'translatable' %>
+
+
+
+
diff --git a/plugins/video/views/cms/video_plugin/_video_gallery.html.erb b/plugins/video/views/cms/video_plugin/_video_gallery.html.erb
new file mode 100644
index 0000000..ce95bd1
--- /dev/null
+++ b/plugins/video/views/cms/video_plugin/_video_gallery.html.erb
@@ -0,0 +1,6 @@
+<%= required_fields_message %>
+
+<%= required f.text_field('name', :size => '64', :maxlength => 150) %>
+<%= render :partial => 'general_fields' %>
+
+<%= labelled_form_field(_('Description:'), text_area(:article, :body, :rows => 3, :cols => 64)) %>
diff --git a/plugins/video/views/content_viewer/_video.html.erb b/plugins/video/views/content_viewer/_video.html.erb
deleted file mode 100644
index a2bf68b..0000000
--- a/plugins/video/views/content_viewer/_video.html.erb
+++ /dev/null
@@ -1,34 +0,0 @@
-
-<%if @page.video_provider=='youtube' %>
-
-
- <%= @page.no_browser_support_message %>
-
-
-
- <% elsif @page.video_provider=='vimeo' %>
-
-
- <%= @page.no_browser_support_message %>
-
-
-
-<% elsif @page.video_provider=='file' %>
-
-
-
-
- <%= @page.no_browser_support_message %>
-
-<% end %>
-
-
-<% _("Description:") %>
-<%= @page.body %>
diff --git a/plugins/video/views/content_viewer/_video_gallery.html.erb b/plugins/video/views/content_viewer/_video_gallery.html.erb
deleted file mode 100644
index 26da37e..0000000
--- a/plugins/video/views/content_viewer/_video_gallery.html.erb
+++ /dev/null
@@ -1,14 +0,0 @@
-<% extend VideoPlugin::VideoGalleryHelper %>
-
-<% unless video_gallery.body.blank? %>
-
- <%= video_gallery.body %>
-
-
-<% end %>
-
-<% if video_gallery.children.empty? %>
- <%= _('(empty video gallery)') %>
-<% else %>
- <%= list_videos(:contents=>video_gallery.children) %>
-<% end %>
\ No newline at end of file
diff --git a/plugins/video/views/content_viewer/video_plugin/_video.html.erb b/plugins/video/views/content_viewer/video_plugin/_video.html.erb
new file mode 100644
index 0000000..a2bf68b
--- /dev/null
+++ b/plugins/video/views/content_viewer/video_plugin/_video.html.erb
@@ -0,0 +1,34 @@
+
+<%if @page.video_provider=='youtube' %>
+
+
+ <%= @page.no_browser_support_message %>
+
+
+
+ <% elsif @page.video_provider=='vimeo' %>
+
+
+ <%= @page.no_browser_support_message %>
+
+
+
+<% elsif @page.video_provider=='file' %>
+
+
+
+
+ <%= @page.no_browser_support_message %>
+
+<% end %>
+
+
+<% _("Description:") %>
+<%= @page.body %>
diff --git a/plugins/video/views/content_viewer/video_plugin/_video_gallery.html.erb b/plugins/video/views/content_viewer/video_plugin/_video_gallery.html.erb
new file mode 100644
index 0000000..26da37e
--- /dev/null
+++ b/plugins/video/views/content_viewer/video_plugin/_video_gallery.html.erb
@@ -0,0 +1,14 @@
+<% extend VideoPlugin::VideoGalleryHelper %>
+
+<% unless video_gallery.body.blank? %>
+
+ <%= video_gallery.body %>
+
+
+<% end %>
+
+<% if video_gallery.children.empty? %>
+ <%= _('(empty video gallery)') %>
+<% else %>
+ <%= list_videos(:contents=>video_gallery.children) %>
+<% end %>
\ No newline at end of file
--
libgit2 0.21.2