Module: UsersHelper

Defined in:
app/helpers/users_helper.rb

Instance Method Summary collapse

Instance Method Details

#auth_source_column(record) ⇒ Object


6
7
8
# File 'app/helpers/users_helper.rb', line 6

def auth_source_column record
  record.auth_source.to_label if record.auth_source
end

#contracted_host_list(user) ⇒ Object


10
11
12
13
14
# File 'app/helpers/users_helper.rb', line 10

def contracted_host_list user
  (:span, :id => "contracted_host_list", :style => "display:inline;") do
    (:span, user.hosts.to_sentence)
  end
end

#expanded_host_list(user) ⇒ Object


16
17
18
19
# File 'app/helpers/users_helper.rb', line 16

def expanded_host_list user
  (:span, :id => "expanded_host_list", :style => "display:none;") do
  end
end

#last_login_on_column(record) ⇒ Object


2
3
4
# File 'app/helpers/users_helper.rb', line 2

def  record
  _("%s ago") % time_ago_in_words(record..getlocal) if record.
end