diff --git a/plugins/video/README.md b/plugins/video/README.md deleted file mode 100644 index 244f1bf..0000000 --- a/plugins/video/README.md +++ /dev/null @@ -1,57 +0,0 @@ -README - Video (Video Plugin) -================================ - -Video is a plugin that allow users to add a block where you can choose -any url from youtube, vimeo and url's of the following file formats: -mp4, ogg, ogv and webm. - -The Video block will be available for all layout columns of communities, -people, enterprises and environments. - -INSTALL -======= - -Enable Plugin -------------- - -Also, you need to enable Video Plugin on your Noosfero: - -cd -./script/noosfero-plugins enable video - -Active Plugin -------------- - -As a Noosfero administrator user, go to administrator panel: - -- Click on "Enable/disable plugins" option -- Click on "Display Content Plugin" check-box - -Running Video tests --------------------- - -$ rake test:noosfero_plugins:video - - -Get Involved -============ - -If you find any bug and/or want to collaborate, please send an e-mail to leandronunes@gmail.com - -LICENSE -======= - -Copyright (c) The Author developers. - -See Noosfero license. - - -AUTHORS -======= - - Leandro Nunes dos Santos (leandronunes at gmail.com) - -ACKNOWLEDGMENTS -=============== - -The author have been supported by Serpro diff --git a/plugins/video/lib/video_block.rb b/plugins/video/lib/video_block.rb deleted file mode 100644 index cbe729a..0000000 --- a/plugins/video/lib/video_block.rb +++ /dev/null @@ -1,62 +0,0 @@ -class VideoBlock < Block - - attr_accessible :url, :width, :height - - settings_items :url, :type => :string, :default => "" - settings_items :width, :type => :integer, :default => 400 - settings_items :height, :type => :integer, :default => 315 - - YOUTUBE_ID_FORMAT = '\w-' - - def is_youtube? - url.match(/.*(youtube.com.*v=[#{YOUTUBE_ID_FORMAT}]+|youtu.be\/[#{YOUTUBE_ID_FORMAT}]+).*/) ? true : false - end - - def is_vimeo? - url.match(/^(http[s]?:\/\/)?(www.)?(vimeo.com|player.vimeo.com\/video)\/[[:digit:]]+/) ? true : false - end - - def is_video_file? - url.match(/.*(mp4|ogg|ogv|webm)$/) ? true : false - end - - def format_embed_video_url_for_youtube - "//www.youtube-nocookie.com/embed/#{extract_youtube_id}?rel=0&wmode=transparent" if is_youtube? - end - - def format_embed_video_url_for_vimeo - "//player.vimeo.com/video/#{extract_vimeo_id}" if is_vimeo? - end - - def self.description - _('Display a Video') - end - - def help - _('This block presents a video from youtube, vimeo and some video formats (mp4, ogg, ogv and webm)') - end - - def content(args={}) - block = self - - proc do - render :file => 'video_block', :locals => { :block => block } - end - end - - private - - def extract_youtube_id - return nil unless is_youtube? - youtube_match = url.match("v=([#{YOUTUBE_ID_FORMAT}]*)") - youtube_match ||= url.match("youtu.be\/([#{YOUTUBE_ID_FORMAT}]*)") - youtube_match[1] unless youtube_match.nil? - end - - def extract_vimeo_id - return nil unless is_vimeo? - vimeo_match = url.match('([[:digit:]]*)$') - vimeo_match[1] unless vimeo_match.nil? - end - -end diff --git a/plugins/video/lib/video_plugin.rb b/plugins/video/lib/video_plugin.rb deleted file mode 100644 index e3b0a4d..0000000 --- a/plugins/video/lib/video_plugin.rb +++ /dev/null @@ -1,19 +0,0 @@ -require_dependency File.dirname(__FILE__) + '/video_block' - -class VideoPlugin < Noosfero::Plugin - - def self.plugin_name - "Video Block Plugin" - end - - def self.plugin_description - _("A plugin that adds a block where you can add videos from youtube, vimeo and html5.") - end - - def self.extra_blocks - { - VideoBlock => {} - } - end - -end diff --git a/plugins/video/po/pt/video.po b/plugins/video/po/pt/video.po deleted file mode 100644 index c8ec721..0000000 --- a/plugins/video/po/pt/video.po +++ /dev/null @@ -1,49 +0,0 @@ -# translation of noosfero.po to -# Krishnamurti Lelis Lima Vieira Nunes , 2007. -# noosfero - Brazilian Portuguese translation -# Copyright (C) 2007, -# Forum Brasileiro de Economia Solidaria -# Copyright (C) 2007, -# Ynternet.org Foundation -# This file is distributed under the same license as noosfero itself. -# Joenio Costa , 2008. -# -# -msgid "" -msgstr "" -"Project-Id-Version: 1.3~rc2-1-ga15645d\n" -"POT-Creation-Date: 2015-10-30 16:35-0300\n" -"PO-Revision-Date: 2014-12-18 18:40-0200\n" -"Last-Translator: Luciano Prestes Cavalcanti \n" -"Language-Team: Portuguese \n" -"Language: pt\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 2.0\n" - -#: plugins/video/lib/video_block.rb:32 -msgid "Display a Video" -msgstr "Mostrar um Vídeo" - -#: plugins/video/lib/video_block.rb:36 -msgid "" -"This block presents a video from youtube, vimeo and some video formats (mp4, " -"ogg, ogv and webm)" -msgstr "" -"Esse bloco apresenta um vídeo do youtube, vimeo e alguns formatos de video " -"(mp4, ogg, ogv e webm)" - -#: plugins/video/lib/video_plugin.rb:10 -msgid "" -"A plugin that adds a block where you can add videos from youtube, vimeo and " -"html5." -msgstr "" -"Um plugin que adiciona um bloco onde você pode adicionar vídeos do youtube, " -"vimeo e html5." - -#: plugins/video/views/video_block.html.erb:18 -msgid "Register a valid url (Vimeo, Youtube, video files)" -msgstr "Registre uma url válida (Vimeo, Youtube, arquivo de vídeo)" diff --git a/plugins/video/po/video.pot b/plugins/video/po/video.pot deleted file mode 100644 index edc4c3e..0000000 --- a/plugins/video/po/video.pot +++ /dev/null @@ -1,38 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: 1.3~rc2-1-ga15645d\n" -"POT-Creation-Date: 2015-10-30 16:35-0300\n" -"PO-Revision-Date: 2015-08-06 17:21-0300\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" - -#: plugins/video/lib/video_block.rb:32 -msgid "Display a Video" -msgstr "" - -#: plugins/video/lib/video_block.rb:36 -msgid "" -"This block presents a video from youtube, vimeo and some video formats (mp4, " -"ogg, ogv and webm)" -msgstr "" - -#: plugins/video/lib/video_plugin.rb:10 -msgid "" -"A plugin that adds a block where you can add videos from youtube, vimeo and " -"html5." -msgstr "" - -#: plugins/video/views/video_block.html.erb:18 -msgid "Register a valid url (Vimeo, Youtube, video files)" -msgstr "" diff --git a/plugins/video/test/functional/video_plugin_environment_design_controller_test.rb b/plugins/video/test/functional/video_plugin_environment_design_controller_test.rb deleted file mode 100644 index cfd42dc..0000000 --- a/plugins/video/test/functional/video_plugin_environment_design_controller_test.rb +++ /dev/null @@ -1,127 +0,0 @@ -require_relative '../test_helper' - -class EnvironmentDesignControllerTest < ActionController::TestCase - - def setup - @controller = EnvironmentDesignController.new - @request = ActionController::TestRequest.new - @response = ActionController::TestResponse.new - - Environment.delete_all - User.delete_all - @environment = Environment.create!(defaults_for_environment.merge(:is_default => true)) - user = create_user('testinguser') - login_as(user.person.identifier) - @environment.add_admin(user.person) - @environment.save! - - @environment.enabled_plugins = ['VideoPlugin'] - @environment.save! - - VideoBlock.delete_all - - @block = VideoBlock.new - @block.box = @environment.boxes.first - @block.save! - end - - attr_accessor :environment, :block - - should 'display video-block-data class in profile block edition' do - block.url='youtube.com/?v=XXXXX' - block.save! - get :index - - assert_tag :div, :attributes => {:class => 'video-block-data'} - end - - should "display iframe tag in profile block edition on youtube url's" do - block.url='youtube.com/?v=XXXXX' - block.save - get :index - - assert_tag :tag => 'iframe' - end - - should "the width in iframe tag be defined on youtube url's" do - block.url='youtube.com/?v=XXXXX' - block.save - get :index - - assert_tag :tag => 'iframe', :attributes => {:width => '400px'} - end - - should "display iframe tag in profile block edition on vimeo url's" do - block.url='http://vimeo.com/98979' - block.save - get :index - - assert_tag :tag => 'iframe' - end - - should "the width in iframe tag be defined on vimeo url's" do - block.url='http://vimeo.com/98979' - block.save - get :index - - assert_tag :tag => 'iframe', :attributes => {:width => '400px'} - end - - should "display video tag in profile block edition for any video url" do - block.url='http://www.vmsd.com/98979.mp4' - block.save - get :index - - assert_tag :tag => 'video' - end - - should "the width in video tag be defined for any video url" do - block.url='http://www.vmsd.com/98979.mp4' - block.save - get :index - - assert_tag :tag => 'video', :attributes => {:width => '400px'} - end - - should 'the heigth in iframe tag be defined' do - block.url='youtube.com/?v=XXXXX' - block.save - get :index - - assert_tag :tag => 'iframe', :attributes => {:height => '315px'} - end - - should 'display youtube videos' do - block.url='youtube.com/?v=XXXXX' - block.save - get :index - - assert_tag :tag => 'div', :attributes => {:class => 'video-block-data'}, :descendant => { :tag => 'div', :attributes => {:class => 'youtube'} } - end - - should 'display vimeo videos' do - block.url='http://vimeo.com/98979' - block.save - get :index - - assert_tag :tag => 'div', :attributes => {:class => 'video-block-data'}, :descendant => { :tag => 'div', :attributes => {:class => 'vimeo'} } - end - - should 'display other videos' do - block.url='http://www.vmsd.com/98979.mp4' - block.save - get :index - - assert_tag :tag => 'div', :attributes => {:class => 'video-block-data'}, :descendant => { :tag => 'div', :attributes => {:class => 'video'} } - end - - should 'display a message to register a new url' do - block.url='http://www.vmsd.com/test.pdf' - block.save - get :index - - assert_tag :tag => 'div', :attributes => {:class => 'video-block-data'}, :descendant => { :tag => 'span', :attributes => {:class => 'alert-block'} } - end - - -end diff --git a/plugins/video/test/functional/video_plugin_profile_design_controller_test.rb b/plugins/video/test/functional/video_plugin_profile_design_controller_test.rb deleted file mode 100644 index b335c61..0000000 --- a/plugins/video/test/functional/video_plugin_profile_design_controller_test.rb +++ /dev/null @@ -1,129 +0,0 @@ -require_relative '../test_helper' - -class ProfileDesignControllerTest < ActionController::TestCase - - def setup - @controller = ProfileDesignController.new - @request = ActionController::TestRequest.new - @response = ActionController::TestResponse.new - - user = create_user('testinguser') - login_as(user.login) - @profile = user.person - @environment = @profile.environment - - @environment.enabled_plugins = ['VideoPlugin'] - @environment.save! - - VideoBlock.delete_all - @box1 = Box.create!(:owner => @profile) - @profile.boxes = [@box1] - - @block = VideoBlock.new - @block.box = @box1 - @block.save! - - @profile.blocks<<@block - @profile.save! - end - - attr_accessor :profile, :block - - should 'display video-block-data class in profile block edition' do - block.url='youtube.com/?v=XXXXX' - block.save - get :index, :profile => profile.identifier - - assert_tag :div, :attributes => {:class => 'video-block-data'} - end - - should "display iframe tag in profile block edition on youtube url's" do - block.url='youtube.com/?v=XXXXX' - block.save - get :index, :profile => profile.identifier - - assert_tag :tag => 'iframe' - end - - should "the width in iframe tag be defined on youtube url's" do - block.url='youtube.com/?v=XXXXX' - block.save - get :index, :profile => profile.identifier - - assert_tag :tag => 'iframe', :attributes => {:width => '400px'} - end - - should "display iframe tag in profile block edition on vimeo url's" do - block.url='http://vimeo.com/98979' - block.save - get :index, :profile => profile.identifier - - assert_tag :tag => 'iframe' - end - - should "the width in iframe tag be defined on vimeo url's" do - block.url='http://vimeo.com/98979' - block.save - get :index, :profile => profile.identifier - - assert_tag :tag => 'iframe', :attributes => {:width => '400px'} - end - - should "display video tag in profile block edition for any video url" do - block.url='http://www.vmsd.com/98979.mp4' - block.save - get :index, :profile => profile.identifier - - assert_tag :tag => 'video' - end - - should "the width in video tag be defined for any video url" do - block.url='http://www.vmsd.com/98979.mp4' - block.save - get :index, :profile => profile.identifier - - assert_tag :tag => 'video', :attributes => {:width => '400px'} - end - - should 'the heigth in iframe tag be defined' do - block.url='youtube.com/?v=XXXXX' - block.save - get :index, :profile => profile.identifier - - assert_tag :tag => 'iframe', :attributes => {:height => '315px'} - end - - should 'display youtube videos' do - block.url='youtube.com/?v=XXXXX' - block.save - get :index, :profile => profile.identifier - - assert_tag :tag => 'div', :attributes => {:class => 'video-block-data'}, :descendant => { :tag => 'div', :attributes => {:class => 'youtube'} } - end - - should 'display vimeo videos' do - block.url='http://vimeo.com/98979' - block.save - get :index, :profile => profile.identifier - - assert_tag :tag => 'div', :attributes => {:class => 'video-block-data'}, :descendant => { :tag => 'div', :attributes => {:class => 'vimeo'} } - end - - should 'display other videos' do - block.url='http://www.vmsd.com/98979.mp4' - block.save - get :index, :profile => profile.identifier - - assert_tag :tag => 'div', :attributes => {:class => 'video-block-data'}, :descendant => { :tag => 'div', :attributes => {:class => 'video'} } - end - - should 'display a messagem to register a new url' do - block.url='http://www.vmsd.com/test.pdf' - block.save - get :index, :profile => profile.identifier - - assert_tag :tag => 'div', :attributes => {:class => 'video-block-data'}, :descendant => { :tag => 'span', :attributes => {:class => 'alert-block'} } - end - - -end diff --git a/plugins/video/test/test_helper.rb b/plugins/video/test/test_helper.rb deleted file mode 100644 index 1d8d247..0000000 --- a/plugins/video/test/test_helper.rb +++ /dev/null @@ -1 +0,0 @@ -require 'test_helper' diff --git a/plugins/video/test/unit/video_block_test.rb b/plugins/video/test/unit/video_block_test.rb deleted file mode 100644 index 9b67146..0000000 --- a/plugins/video/test/unit/video_block_test.rb +++ /dev/null @@ -1,225 +0,0 @@ -require_relative '../test_helper' -class VideoBlockTest < ActiveSupport::TestCase - - ### Tests for YouTube - - should "is_youtube return true when the url contains http://youtube.com" do - block = VideoBlock.new - block.url = "http://youtube.com/?v=XXXXX" - assert block.is_youtube? - end - - should "is_youtube return true when the url contains https://youtube.com" do - block = VideoBlock.new - block.url = "https://youtube.com/?v=XXXXX" - assert block.is_youtube? - end - - should "is_youtube return true when the url contains https://www.youtube.com" do - block = VideoBlock.new - block.url = "https://www.youtube.com/?v=XXXXX" - assert block.is_youtube? - end - - should "is_youtube return true when the url contains www.youtube.com" do - block = VideoBlock.new - block.url = "www.youtube.com/?v=XXXXX" - assert block.is_youtube? - end - - should "is_youtube return true when the url contains youtube.com" do - block = VideoBlock.new - block.url = "youtube.com/?v=XXXXX" - assert block.is_youtube? - end - - should "is_youtube return false when the url not contains youtube video ID" do - block = VideoBlock.new - block.url = "youtube.com/" - refute block.is_youtube? - end - - should "is_youtube return false when the url contains empty youtube video ID" do - block = VideoBlock.new - block.url = "youtube.com/?v=" - refute block.is_youtube? - end - - should "is_youtube return false when the url contains an invalid youtube link" do - block = VideoBlock.new - block.url = "http://www.yt.com/?v=XXXXX" - refute block.is_youtube? - end - - should "format embed video for youtube videos" do - block = VideoBlock.new - block.url = "youtube.com/?v=XXXXX" - assert_match /\/\/www.youtube-nocookie.com\/embed/, block.format_embed_video_url_for_youtube - end - - should "format embed video return nil if is not a youtube url" do - block = VideoBlock.new - block.url = "http://www.yt.com/?v=XXXXX" - assert_nil block.format_embed_video_url_for_youtube - end - - should "extract youtube id from youtube video url's if it's a valid youtube full url" do - block = VideoBlock.new - id = 'oi43jre2d2' - block.url = "youtube.com/?v=#{id}" - assert_equal id, block.send('extract_youtube_id') - end - - should "extract youtube id from youtube video url's if it has underline and hyphen" do - block = VideoBlock.new - id = 'oi43_re-d2' - block.url = "youtube.com/?v=#{id}" - assert_equal id, block.send('extract_youtube_id') - end - - should "extract youtube id from youtube video url's if it's a valid youtube short url" do - block = VideoBlock.new - id = 'oi43jre2d2' - block.url = "youtu.be/#{id}" - assert_equal id, block.send('extract_youtube_id') - end - - should "extract_youtube_id return nil if the url it's not a valid youtube url" do - block = VideoBlock.new - block.url = "http://www.yt.com/?v=XXXXX" - assert_nil block.send('extract_youtube_id') - end - - should "extract_youtube_id return nil if youtue url there is no id" do - block = VideoBlock.new - block.url = "youtube.com/" - assert_nil block.send('extract_youtube_id') - end - - #### Tests for Vimeo Videos - - should "is_vimeo return true when the url contains http://vimeo.com" do - block = VideoBlock.new - block.url = "http://vimeo.com/98979" - assert block.is_vimeo? - end - - should "is_vimeo return true when the url contains https://vimeo.com" do - block = VideoBlock.new - block.url = "https://vimeo.com/989798" - assert block.is_vimeo? - end - - should "is_vimeo return true when the url contains https://www.vimeo.com" do - block = VideoBlock.new - block.url = "https://www.vimeo.com/98987" - assert block.is_vimeo? - end - - should "is_vimeo return true when the url contains www.vimeo.com" do - block = VideoBlock.new - block.url = "www.vimeo.com/989798" - assert block.is_vimeo? - end - - should "is_vimeo return true when the url contains vimeo.com" do - block = VideoBlock.new - block.url = "vimeo.com/09898" - assert block.is_vimeo? - end - - should "is_vimeo return false when the url not contains vimeo video ID" do - block = VideoBlock.new - block.url = "vimeo.com/home" - refute block.is_vimeo? - end - - should "is_vimeo return false when the url contains empty vimeo video ID" do - block = VideoBlock.new - block.url = "vimeo.com/" - refute block.is_vimeo? - end - - should "is_vimeo return false when the url contains an invalid vimeo link" do - block = VideoBlock.new - block.url = "http://www.vmsd.com/98979" - refute block.is_vimeo? - end - - should "format embed video for vimeo videos" do - block = VideoBlock.new - block.url = "vimeo.com/09898" - assert_match /\/\/player.vimeo.com\/video\/[[:digit:]]+/, block.format_embed_video_url_for_vimeo - end - - should "format embed video return nil if is not a vimeo url" do - block = VideoBlock.new - block.url = "http://www.yt.com/?v=XXXXX" - assert_nil block.format_embed_video_url_for_vimeo - end - - should "extract vimeo id from vimeo video url's if it's a valid vimeo url" do - block = VideoBlock.new - id = '23048239432' - block.url = "vimeo.com/#{id}" - assert_equal id, block.send('extract_vimeo_id') - end - - should "extract_vimeo_id return nil if the url it's not a valid vimeo url" do - block = VideoBlock.new - block.url = "http://www.yt.com/XXXXX" - assert_nil block.send('extract_vimeo_id') - end - - should "extract_vimeo_id return nil if vimeo url there is no id" do - block = VideoBlock.new - block.url = "vimeo.com/" - assert_nil block.send('extract_youtube_id') - end - - # Other video formats - should "is_video return true if url ends with mp4" do - block = VideoBlock.new - block.url = "http://www.vmsd.com/98979.mp4" - assert block.is_video_file? - end - - should "is_video return true if url ends with ogg" do - block = VideoBlock.new - block.url = "http://www.vmsd.com/98979.ogg" - assert block.is_video_file? - end - - should "is_video return true if url ends with ogv" do - block = VideoBlock.new - block.url = "http://www.vmsd.com/98979.ogv" - assert block.is_video_file? - end - - should "is_video return true if url ends with webm" do - block = VideoBlock.new - block.url = "http://www.vmsd.com/98979.webm" - assert block.is_video_file? - end - - should "is_video return false if url ends without mp4, ogg, ogv, webm" do - block = VideoBlock.new - block.url = "http://www.vmsd.com/98979.mp4r" - refute block.is_video_file? - block.url = "http://www.vmsd.com/98979.oggr" - refute block.is_video_file? - block.url = "http://www.vmsd.com/98979.ogvr" - refute block.is_video_file? - block.url = "http://www.vmsd.com/98979.webmr" - refute block.is_video_file? - end - - should 'display video block partial' do - block = VideoBlock.new - self.expects(:render).with(:file => 'video_block', :locals => { - :block => block - }) - instance_eval(& block.content) - end - -end diff --git a/plugins/video/test/unit/video_plugin_test.rb b/plugins/video/test/unit/video_plugin_test.rb deleted file mode 100644 index b4fa8c9..0000000 --- a/plugins/video/test/unit/video_plugin_test.rb +++ /dev/null @@ -1,8 +0,0 @@ -require_relative '../test_helper' -class VideoPluginTest < ActiveSupport::TestCase - - should "return VideoBlock in extra_blocks class method" do - assert VideoPlugin.extra_blocks.keys.include?(VideoBlock) - 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 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/environment_design b/plugins/video/views/environment_design deleted file mode 120000 index a75d184..0000000 --- a/plugins/video/views/environment_design +++ /dev/null @@ -1 +0,0 @@ -box_organizer \ No newline at end of file diff --git a/plugins/video/views/profile_design b/plugins/video/views/profile_design deleted file mode 120000 index a75d184..0000000 --- a/plugins/video/views/profile_design +++ /dev/null @@ -1 +0,0 @@ -box_organizer \ No newline at end of file diff --git a/plugins/video/views/video_block.html.erb b/plugins/video/views/video_block.html.erb deleted file mode 100644 index 0bfbf68..0000000 --- a/plugins/video/views/video_block.html.erb +++ /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