PageRenderTime 76ms CodeModel.GetById 24ms RepoModel.GetById 1ms app.codeStats 0ms

/app/views/authentications/_card.html.haml

https://github.com/keown/rails4-starterkit
HAML | 11 lines | 10 code | 1 blank | 0 comment | 0 complexity | dfa137b9bc1208ee5d5c0c89bb9f10c4 MD5 | raw file
  1. - username = authentication.username_for_display or authentication.provider_name
  2. - return_to ||= nil
  3. = render layout: 'users/card', locals: {user: authentication, size: size, username: username, profile_url: authentication.profile_url, target: '_blank'} do
  4. .card__actions
  5. = link_to [current_user, authentication], data: {confirm: I18n.t('auth.destroy.prompt'), confirm_modal: disconnect_modal}, method: :delete, rel: 'tooltip', title: I18n.t('auth.destroy.tooltip') do
  6. %i.glyphicon.glyphicon-remove-circle
  7. = I18n.t('auth.destroy.link')
  8. = link_to provider_auth_path(authentication.provider, origin: return_to), data: {flow: 'connect'}, rel: 'tooltip', title: I18n.t('auth.reconnect.tooltip') do
  9. %i.glyphicon.glyphicon-repeat
  10. = I18n.t('auth.reconnect.link')