cirandas.net

ref: master

plugins/html5_video/lib/html5_video_plugin/video_channel.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class Html5VideoPlugin::VideoChannel < Folder

  def self.short_description
    _('Video Channel')
  end

  def self.description
    _('A video channel, where you can make your own web TV.')
  end

  include ActionView::Helpers::TagHelper
  def to_html(options={})
    article = self
    lambda do
      render :file => 'content_viewer/video_channel', :locals => {:article => article}
    end
  end

  def video_channel?
    true
  end

  def self.icon_name(article = nil)
    'videochannel'
  end

  def accept_article?
    false
  end
end