Commit 3e8cadeabaea0fe81d6da1de1457cb893f450b1b

Authored by Victor Costa
1 parent f9f8aa16

pairwise_plugin: remove duplicated inclusion of stylesheet

plugins/pairwise/lib/pairwise_plugin/helpers/viewer_helper.rb
1 module PairwisePlugin::Helpers::ViewerHelper 1 module PairwisePlugin::Helpers::ViewerHelper
2 2
3 - def pairwise_plugin_stylesheet  
4 - plugin_style_sheet_path = PairwisePlugin.public_path('style.css')  
5 - stylesheet_link_tag plugin_style_sheet_path, :cache => "cache/plugins-#{Digest::MD5.hexdigest plugin_style_sheet_path.to_s}"  
6 - end  
7 -  
8 def choose_link(direction, pairwise_content, question, prompt, embeded = false, source = nil, appearance_id = nil) 3 def choose_link(direction, pairwise_content, question, prompt, embeded = false, source = nil, appearance_id = nil)
9 link_target = { :controller => 'pairwise_plugin_profile', 4 link_target = { :controller => 'pairwise_plugin_profile',
10 :profile => pairwise_content.profile.identifier, 5 :profile => pairwise_content.profile.identifier,
plugins/pairwise/views/content_viewer/prompt.html.erb
1 <% extend PairwisePlugin::Helpers::ViewerHelper %> 1 <% extend PairwisePlugin::Helpers::ViewerHelper %>
2 2
3 -<%= pairwise_plugin_stylesheet %>  
4 -  
5 <% if embeded %> 3 <% if embeded %>
6 <%= javascript_include_tag :defaults, 'jquery-latest.js', 4 <%= javascript_include_tag :defaults, 'jquery-latest.js',
7 'jquery.noconflict.js', 'jquery.cycle.all.min.js', 'thickbox.js', 'lightbox', 'colorbox', 5 'jquery.noconflict.js', 'jquery.cycle.all.min.js', 'thickbox.js', 'lightbox', 'colorbox',
plugins/pairwise/views/pairwise_plugin_profile/result.html.erb
1 <% extend PairwisePlugin::Helpers::ViewerHelper %> 1 <% extend PairwisePlugin::Helpers::ViewerHelper %>
2 2
3 -<%= pairwise_plugin_stylesheet %>  
4 -  
5 <h1 class="title"><%= @page.name %></h1> 3 <h1 class="title"><%= @page.name %></h1>
6 4
7 <%= render :partial => "content_viewer/result", :locals => { 5 <%= render :partial => "content_viewer/result", :locals => {
plugins/pairwise/views/pairwise_plugin_suggestions/index.html.erb
1 <% extend PairwisePlugin::Helpers::ViewerHelper %> 1 <% extend PairwisePlugin::Helpers::ViewerHelper %>
2 <% extend PairwisePlugin::Helpers::SuggestionsHelper %> 2 <% extend PairwisePlugin::Helpers::SuggestionsHelper %>
3 3
4 -<%= pairwise_plugin_stylesheet %>  
5 -  
6 <h1><%= _("Pairwise Question") %></h1> 4 <h1><%= _("Pairwise Question") %></h1>
7 <h4><%= _("Question text" ) %>: </h4><span><%= @pairwise_content.name %></span> 5 <h4><%= _("Question text" ) %>: </h4><span><%= @pairwise_content.name %></span>
8 <div class="result_label"> 6 <div class="result_label">