Commit 9624e79cbb53ca2c2defa85b4e24e9c9188d0e24

Authored by Victor Costa
1 parent f9e55386

rails3: fix stylesheet tag on old application layout

app/helpers/users_helper.rb
@@ -18,7 +18,7 @@ module UsersHelper @@ -18,7 +18,7 @@ module UsersHelper
18 ) 18 )
19 end 19 end
20 20
21 - def filter_title(filter) 21 + def users_filter_title(filter)
22 FILTER_TRANSLATION[filter] 22 FILTER_TRANSLATION[filter]
23 end 23 end
24 24
app/models/change_password.rb
@@ -2,7 +2,7 @@ class ChangePassword < Task @@ -2,7 +2,7 @@ class ChangePassword < Task
2 2
3 attr_accessor :password, :password_confirmation 3 attr_accessor :password, :password_confirmation
4 4
5 - def self.human_attribute_name(attrib) 5 + def self.human_attribute_name(attrib, options = {})
6 case attrib.to_sym 6 case attrib.to_sym
7 when :password 7 when :password
8 _('Password') 8 _('Password')
app/models/feed_reader_block.rb
@@ -2,7 +2,7 @@ class FeedReaderBlock < Block @@ -2,7 +2,7 @@ class FeedReaderBlock < Block
2 2
3 attr_accessible :address, :update_errors 3 attr_accessible :address, :update_errors
4 4
5 - def initialize(attributes = nil) 5 + def initialize(attributes = nil, options = {})
6 data = attributes || {} 6 data = attributes || {}
7 super(data) 7 super(data)
8 self.enabled= !data[:address].blank? 8 self.enabled= !data[:address].blank?
app/views/layouts/application.html.erb
@@ -10,10 +10,10 @@ @@ -10,10 +10,10 @@
10 10
11 <%= noosfero_javascript %> 11 <%= noosfero_javascript %>
12 <%= theme_javascript %> 12 <%= theme_javascript %>
  13 + <%= noosfero_stylesheets %>
13 14
14 <%= 15 <%=
15 # Load the principal css files: 16 # Load the principal css files:
16 - stylesheet_link_tag(noosfero_stylesheets, :cache => 'cache') +  
17 stylesheet_import( %w( common help menu article button search blocks forms login-box ), 17 stylesheet_import( %w( common help menu article button search blocks forms login-box ),
18 :themed_source => true ) + "\n" + 18 :themed_source => true ) + "\n" +
19 import_blocks_stylesheets(:themed_source => true) + "\n" + 19 import_blocks_stylesheets(:themed_source => true) + "\n" +
app/views/users/_users_list.html.erb
1 <div class="environment-users-results-header"> 1 <div class="environment-users-results-header">
2 - <div id='environment-users-filter-title'><%= filter_title(@filter) %></div> 2 + <div id='environment-users-filter-title'><%= users_filter_title(@filter) %></div>
3 <%= filter_selector(@filter) %> 3 <%= filter_selector(@filter) %>
4 <div style="clear: both"></div> 4 <div style="clear: both"></div>
5 </div> 5 </div>