diff --git a/plugins/video/lib/video_block.rb b/plugins/video/lib/video_block.rb
index 486741e..fb7615d 100644
--- a/plugins/video/lib/video_block.rb
+++ b/plugins/video/lib/video_block.rb
@@ -35,7 +35,7 @@ class VideoBlock < Block
def content(args={})
block = self
- lambda do
+ proc do
render :file => 'video_block', :locals => { :block => block }
end
end
diff --git a/plugins/video/views/box_organizer/_html5_video_block.html.erb b/plugins/video/views/box_organizer/_html5_video_block.html.erb
new file mode 100644
index 0000000..a120a21
--- /dev/null
+++ b/plugins/video/views/box_organizer/_html5_video_block.html.erb
@@ -0,0 +1,3 @@
+
diff --git a/plugins/video/views/box_organizer/_html5_video_block.rhtml b/plugins/video/views/box_organizer/_html5_video_block.rhtml
deleted file mode 100644
index a120a21..0000000
--- a/plugins/video/views/box_organizer/_html5_video_block.rhtml
+++ /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
new file mode 100644
index 0000000..efd2994
--- /dev/null
+++ b/plugins/video/views/box_organizer/_iframe_video_block.html.erb
@@ -0,0 +1 @@
+
diff --git a/plugins/video/views/box_organizer/_iframe_video_block.rhtml b/plugins/video/views/box_organizer/_iframe_video_block.rhtml
deleted file mode 100644
index efd2994..0000000
--- a/plugins/video/views/box_organizer/_iframe_video_block.rhtml
+++ /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
new file mode 100644
index 0000000..c19d4b6
--- /dev/null
+++ b/plugins/video/views/box_organizer/_video_block.html.erb
@@ -0,0 +1,11 @@
+
+
+
+ <%= text_field_tag 'block[url]', @block.url, :class => 'video-url', :maxlength => 255 %>
+
+
+
+ <%= text_field_tag 'block[width]', @block.width, :size => 7, :class => 'video-width', :maxlength => 5 %>
+
+ <%= text_field_tag 'block[height]', @block.height, :size => 7, :class => 'video-height', :maxlength => 5 %>
+
diff --git a/plugins/video/views/box_organizer/_video_block.rhtml b/plugins/video/views/box_organizer/_video_block.rhtml
deleted file mode 100644
index c19d4b6..0000000
--- a/plugins/video/views/box_organizer/_video_block.rhtml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
- <%= text_field_tag 'block[url]', @block.url, :class => 'video-url', :maxlength => 255 %>
-
-
-
- <%= text_field_tag 'block[width]', @block.width, :size => 7, :class => 'video-width', :maxlength => 5 %>
-
- <%= text_field_tag 'block[height]', @block.height, :size => 7, :class => 'video-height', :maxlength => 5 %>
-
diff --git a/plugins/video/views/video_block.html.erb b/plugins/video/views/video_block.html.erb
new file mode 100644
index 0000000..0bfbf68
--- /dev/null
+++ b/plugins/video/views/video_block.html.erb
@@ -0,0 +1,21 @@
+
+ <%=block.title%>
+
+
+ <% if block.is_youtube? %>
+
+ <%= render :partial => 'box_organizer/iframe_video_block', :locals => { :url => block.format_embed_video_url_for_youtube, :width => block.width, :height => block.height }%>
+
+ <% elsif block.is_vimeo? %>
+
+ <%= render :partial => 'box_organizer/iframe_video_block', :locals => { :url => block.format_embed_video_url_for_vimeo, :width => block.width, :height => block.height }%>
+
+ <% elsif block.is_video_file? %>
+
+ <%= render :partial => 'box_organizer/html5_video_block', :locals => { :url => block.url, :width => block.width, :height => block.height }%>
+
+ <% else %>
+
<%= _("Register a valid url (Vimeo, Youtube, video files)") %>
+ <% end %>
+
+
diff --git a/plugins/video/views/video_block.rhtml b/plugins/video/views/video_block.rhtml
deleted file mode 100644
index 0bfbf68..0000000
--- a/plugins/video/views/video_block.rhtml
+++ /dev/null
@@ -1,21 +0,0 @@
-
- <%=block.title%>
-
-
- <% if block.is_youtube? %>
-
- <%= render :partial => 'box_organizer/iframe_video_block', :locals => { :url => block.format_embed_video_url_for_youtube, :width => block.width, :height => block.height }%>
-
- <% elsif block.is_vimeo? %>
-
- <%= render :partial => 'box_organizer/iframe_video_block', :locals => { :url => block.format_embed_video_url_for_vimeo, :width => block.width, :height => block.height }%>
-
- <% elsif block.is_video_file? %>
-
- <%= render :partial => 'box_organizer/html5_video_block', :locals => { :url => block.url, :width => block.width, :height => block.height }%>
-
- <% else %>
-
<%= _("Register a valid url (Vimeo, Youtube, video files)") %>
- <% end %>
-
-
--
libgit2 0.21.2