From f64ac63628e005189c839e0388ffc846b2b0d437 Mon Sep 17 00:00:00 2001 From: Evandro Jr Date: Thu, 2 Oct 2014 13:53:25 -0300 Subject: [PATCH] renamed folders for plugin --- plugins/video/views/box_organizer/_html5_video_block.html.erb | 3 --- plugins/video/views/box_organizer/_iframe_video_block.html.erb | 1 - plugins/video/views/box_organizer/_video_block.html.erb | 11 ----------- plugins/video/views/box_organizer/video_plugin/_html5_video_block.html.erb | 3 +++ plugins/video/views/box_organizer/video_plugin/_iframe_video_block.html.erb | 1 + plugins/video/views/box_organizer/video_plugin/_video_block.html.erb | 11 +++++++++++ plugins/video/views/cms/video.html.erb | 8 -------- plugins/video/views/cms/video_plugin/_video_video.html.erb | 12 ++++++++++++ plugins/video/views/cms/video_plugin/_video_video_gallery.html.erb | 6 ++++++ plugins/video/views/content_viewer/_video.html.erb | 34 ++++++++++++++++++++++++++++++++++ plugins/video/views/content_viewer/_video_gallery.html.erb | 28 ++++++++++++++++++++++++++++ plugins/video/views/content_viewer/video.html.erb | 34 ---------------------------------- plugins/video/views/content_viewer/video_gallery.html.erb | 28 ---------------------------- plugins/video/views/content_viewer/video_plugin/video_video.html.erb | 34 ++++++++++++++++++++++++++++++++++ plugins/video/views/content_viewer/video_plugin/video_video_gallery.html.erb | 28 ++++++++++++++++++++++++++++ 15 files changed, 157 insertions(+), 85 deletions(-) delete mode 100644 plugins/video/views/box_organizer/_html5_video_block.html.erb delete mode 100644 plugins/video/views/box_organizer/_iframe_video_block.html.erb delete mode 100644 plugins/video/views/box_organizer/_video_block.html.erb create mode 100644 plugins/video/views/box_organizer/video_plugin/_html5_video_block.html.erb create mode 100644 plugins/video/views/box_organizer/video_plugin/_iframe_video_block.html.erb create mode 100644 plugins/video/views/box_organizer/video_plugin/_video_block.html.erb delete mode 100644 plugins/video/views/cms/video.html.erb create mode 100644 plugins/video/views/cms/video_plugin/_video_video.html.erb create mode 100644 plugins/video/views/cms/video_plugin/_video_video_gallery.html.erb create mode 100644 plugins/video/views/content_viewer/_video.html.erb create mode 100644 plugins/video/views/content_viewer/_video_gallery.html.erb delete mode 100644 plugins/video/views/content_viewer/video.html.erb delete mode 100644 plugins/video/views/content_viewer/video_gallery.html.erb create mode 100644 plugins/video/views/content_viewer/video_plugin/video_video.html.erb create mode 100644 plugins/video/views/content_viewer/video_plugin/video_video_gallery.html.erb 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 @@ - - -
- <%= 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_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 @@ + + +
+ <%= 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/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' %> + + + + + <% elsif @page.video_provider=='vimeo' %> + + + + +<% elsif @page.video_provider=='file' %> + + + +<% 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' %> - - - - - <% elsif @page.video_provider=='vimeo' %> - - - - -<% elsif @page.video_provider=='file' %> - - - -<% 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' %> + + + + + <% elsif @page.video_provider=='vimeo' %> + + + + +<% elsif @page.video_provider=='file' %> + + + +<% 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