diff --git a/plugins/video/views/box_organizer/_html5_video_block.html.erb b/plugins/video/views/box_organizer/_html5_video_block.html.erb
deleted file mode 100644
index a120a21..0000000
--- a/plugins/video/views/box_organizer/_html5_video_block.html.erb
+++ /dev/null
@@ -1,3 +0,0 @@
-
- >
-
diff --git a/plugins/video/views/box_organizer/_iframe_video_block.html.erb b/plugins/video/views/box_organizer/_iframe_video_block.html.erb
deleted file mode 100644
index efd2994..0000000
--- a/plugins/video/views/box_organizer/_iframe_video_block.html.erb
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/plugins/video/views/box_organizer/_video_block.html.erb b/plugins/video/views/box_organizer/_video_block.html.erb
deleted file mode 100644
index c19d4b6..0000000
--- a/plugins/video/views/box_organizer/_video_block.html.erb
+++ /dev/null
@@ -1,11 +0,0 @@
- Video URL:
-
-
- <%= text_field_tag 'block[url]', @block.url, :class => 'video-url', :maxlength => 255 %>
-
-
- Width:
- <%= text_field_tag 'block[width]', @block.width, :size => 7, :class => 'video-width', :maxlength => 5 %>
- Height:
- <%= text_field_tag 'block[height]', @block.height, :size => 7, :class => 'video-height', :maxlength => 5 %>
-
diff --git a/plugins/video/views/box_organizer/video_plugin/_html5_video_block.html.erb b/plugins/video/views/box_organizer/video_plugin/_html5_video_block.html.erb
new file mode 100644
index 0000000..a120a21
--- /dev/null
+++ b/plugins/video/views/box_organizer/video_plugin/_html5_video_block.html.erb
@@ -0,0 +1,3 @@
+
+ >
+
diff --git a/plugins/video/views/box_organizer/video_plugin/_iframe_video_block.html.erb b/plugins/video/views/box_organizer/video_plugin/_iframe_video_block.html.erb
new file mode 100644
index 0000000..efd2994
--- /dev/null
+++ b/plugins/video/views/box_organizer/video_plugin/_iframe_video_block.html.erb
@@ -0,0 +1 @@
+
diff --git a/plugins/video/views/box_organizer/video_plugin/_video_block.html.erb b/plugins/video/views/box_organizer/video_plugin/_video_block.html.erb
new file mode 100644
index 0000000..c19d4b6
--- /dev/null
+++ b/plugins/video/views/box_organizer/video_plugin/_video_block.html.erb
@@ -0,0 +1,11 @@
+ Video URL:
+
+
+ <%= text_field_tag 'block[url]', @block.url, :class => 'video-url', :maxlength => 255 %>
+
+
+ Width:
+ <%= text_field_tag 'block[width]', @block.width, :size => 7, :class => 'video-width', :maxlength => 5 %>
+ Height:
+ <%= text_field_tag 'block[height]', @block.height, :size => 7, :class => 'video-height', :maxlength => 5 %>
+
diff --git a/plugins/video/views/cms/video.html.erb b/plugins/video/views/cms/video.html.erb
deleted file mode 100644
index 7b3ccbb..0000000
--- a/plugins/video/views/cms/video.html.erb
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-sdsd
\ No newline at end of file
diff --git a/plugins/video/views/cms/video_plugin/_video_video.html.erb b/plugins/video/views/cms/video_plugin/_video_video.html.erb
new file mode 100644
index 0000000..c7fe2f6
--- /dev/null
+++ b/plugins/video/views/cms/video_plugin/_video_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_video_gallery.html.erb b/plugins/video/views/cms/video_plugin/_video_video_gallery.html.erb
new file mode 100644
index 0000000..ce95bd1
--- /dev/null
+++ b/plugins/video/views/cms/video_plugin/_video_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
new file mode 100644
index 0000000..6bbda38
--- /dev/null
+++ b/plugins/video/views/content_viewer/_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 %>
\ No newline at end of file
diff --git a/plugins/video/views/content_viewer/_video_gallery.html.erb b/plugins/video/views/content_viewer/_video_gallery.html.erb
new file mode 100644
index 0000000..5cdf88f
--- /dev/null
+++ b/plugins/video/views/content_viewer/_video_gallery.html.erb
@@ -0,0 +1,28 @@
+<%
+def self.list_videos(configure={})
+ configure[:recursive] ||= false
+ configure[:list_type] ||= :folder
+ if !configure[:contents].blank?
+ configure[:contents] = configure[:contents].paginate(
+ :order => "updated_at DESC",
+ :per_page => 16,
+ :page => params[:npage]
+ )
+ render :file => 'shared/video_list', :locals => configure
+ else
+ content_tag('em', _('(empty folder)'))
+ end
+ end
+%>
+<% 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.html.erb b/plugins/video/views/content_viewer/video.html.erb
deleted file mode 100644
index 6bbda38..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 %>
\ No newline at end of file
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 5cdf88f..0000000
--- a/plugins/video/views/content_viewer/video_gallery.html.erb
+++ /dev/null
@@ -1,28 +0,0 @@
-<%
-def self.list_videos(configure={})
- configure[:recursive] ||= false
- configure[:list_type] ||= :folder
- if !configure[:contents].blank?
- configure[:contents] = configure[:contents].paginate(
- :order => "updated_at DESC",
- :per_page => 16,
- :page => params[:npage]
- )
- render :file => 'shared/video_list', :locals => configure
- else
- content_tag('em', _('(empty folder)'))
- end
- end
-%>
-<% 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_video.html.erb b/plugins/video/views/content_viewer/video_plugin/video_video.html.erb
new file mode 100644
index 0000000..6bbda38
--- /dev/null
+++ b/plugins/video/views/content_viewer/video_plugin/video_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 %>
\ No newline at end of file
diff --git a/plugins/video/views/content_viewer/video_plugin/video_video_gallery.html.erb b/plugins/video/views/content_viewer/video_plugin/video_video_gallery.html.erb
new file mode 100644
index 0000000..5cdf88f
--- /dev/null
+++ b/plugins/video/views/content_viewer/video_plugin/video_video_gallery.html.erb
@@ -0,0 +1,28 @@
+<%
+def self.list_videos(configure={})
+ configure[:recursive] ||= false
+ configure[:list_type] ||= :folder
+ if !configure[:contents].blank?
+ configure[:contents] = configure[:contents].paginate(
+ :order => "updated_at DESC",
+ :per_page => 16,
+ :page => params[:npage]
+ )
+ render :file => 'shared/video_list', :locals => configure
+ else
+ content_tag('em', _('(empty folder)'))
+ end
+ end
+%>
+<% 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