Commit b46d4cc6577b8ea2ced8c4ae3bdcb1346075d1ec

Authored by Francisco Júnior
1 parent afc8e318

change returned content format

Showing 1 changed file with 2 additions and 8 deletions   Show diff stats
plugins/video/lib/video_plugin.rb
@@ -34,14 +34,8 @@ class VideoPlugin < Noosfero::Plugin @@ -34,14 +34,8 @@ class VideoPlugin < Noosfero::Plugin
34 34
35 def article_extra_toolbar_buttons(content) 35 def article_extra_toolbar_buttons(content)
36 if content.kind_of?(VideoPlugin::VideoGallery) 36 if content.kind_of?(VideoPlugin::VideoGallery)
37 - proc do  
38 - content_tag('a', _("New Video"),  
39 - { :id=>"new-video-btn",  
40 - :class=>"button with-text icon-new",  
41 - :href=>url_for(:action => 'new', :type=>'VideoPlugin::Video', :controller=>'cms', :parent_id => content.id),  
42 - :title=>_("New Video")  
43 - })  
44 - end 37 + url = url_for(:action => 'new', :type=>'VideoPlugin::Video', :controller=>'cms', :parent_id => content.id)
  38 + {:title => _('New Video'), :url => url, :icon => 'button with-text icon-new'}
45 end 39 end
46 end 40 end
47 41