Sha256: 4b9c92f380701eeb3cf42bf3771b7adfdcaac4a21575baac6ab33148969265a8
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
<h1><%= t '.title' %></h1> <% Raddar::User.omniauth_providers.each do |provider| %> <div class="external-account <%= provider %>"> <h1><%= provider.to_s.titleize %></h1> <% if account = @user.external_accounts.find_by(provider: provider) %> <%= link_to "@#{account.name}", account.url, target: '_blank' %> <%= link_to t('.destroy', provider: provider.to_s.titleize), [:user, account], method: :delete, class: 'btn btn-default' %> <% else %> <%= link_to t('.connect', provider: provider.to_s.titleize), user_omniauth_authorize_path(provider), class: 'btn btn-primary' %> <% end %> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
raddar-0.0.1.pre | app/views/raddar/users/external_accounts/index.html.erb |