% content_for :title, "Services" -%>
Before you can authenticate with a service, you need to set it up. Have a look at the Huginn <%= link_to 'wiki', 'https://github.com/huginn/huginn/wiki/Configuring-OAuth-applications', target: :_blank %> for guidance.
<%- Devise.omniauth_providers.each { |provider| -%><%= omniauth_button(provider) %>
<%- } -%><%= sortable_column 'provider', 'asc' %> | <%= sortable_column 'name', 'asc' %> | <%= sortable_column 'global', name: 'Global?' %> | |
---|---|---|---|
<%= omniauth_provider_name(service.provider) %> | <%= service.name %> | <%= yes_no(service.global) %> |
<% if service.global %>
<%= link_to 'Make private', toggle_availability_service_path(service), method: :post, data: { confirm: 'Are you sure you want to remove access to your data on this service for other users?'}, class: "btn btn-default" %>
<% else %>
<%= link_to 'Make global', toggle_availability_service_path(service), method: :post, data: { confirm: 'Are you sure you want to grant every user on this system access to your data on this service?'}, class: "btn btn-default" %>
<% end %>
<%= link_to 'Delete', service_path(service), method: :delete, data: { confirm: 'Are you sure?' }, class: "btn btn-default btn-danger" %>
|