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