<%= render partial: 'toolbar/home' %>

<%= resource.name %> <% if can?(:update, resource) %> <%= link_to t('site.client.button.edit'), polymorphic_path(resource, action: 'edit'), class: "edit" %> <% end %>

<%= image_tag(resource.logo.url(:medium), class: "logo-app pull-right") %>

<%= Site::Client.human_attribute_name :description %>

<%= resource.description%>

<%= Site::Client.human_attribute_name :url %>

<%= link_to resource.url, resource.url%>
<% if can? :update, resource %>

<%= Site::Client.human_attribute_name :callback_url %>

<%= resource.callback_url %>
<% end %>
<% if can? :update_secret, resource %>
<%= Site::Client.human_attribute_name :id %>

<%= resource.id %>

<%= Site::Client.human_attribute_name :secret %> <%= form_tag update_secret_site_client_path(resource, format: :json), class: "site-client-secret" do %> <%= submit_tag t('site.client.oauth.secret.refresh'), class: 'pull-right' %> <% end %>

<%= resource.secret %>

<% end %>
<%= render partial: 'contacts/add_button', locals: { sender: resource, type: [ :user, :group ] } %> <%= render partial: 'contacts/contact', collection: resource.sent_contacts.first(12) %>
<%= javascript_tag do %> SocialStream.SiteClient.show(); <% end %>