You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
375 B
15 lines
375 B
11 years ago
|
module Users::AuthenticationsHelper
|
||
|
def authentication_provider_column(record, column)
|
||
|
case record.provider
|
||
|
when 'google_apps'
|
||
|
ret = <<-DOC
|
||
|
<span class="btn btn-block btn-social btn-google-plus">
|
||
|
<i class="fa fa-google-plus"></i> Google
|
||
|
</span>
|
||
|
DOC
|
||
|
ret.html_safe
|
||
|
else
|
||
|
record.provider.camelcase
|
||
|
end
|
||
|
end
|
||
|
end
|