Sha256: fc60c8ebff242c039989c20d2d3040caf8cb1b4d29e3715850e7aa03b70c0abc

Contents?: true

Size: 699 Bytes

Versions: 17

Compression:

Stored size: 699 Bytes

Contents

<%
if @model.fb_share? && can?(:publish, @model)
  if @fb_auths_count.nil?
    link = get_oauth_link(resource)
    options = {}
  else
    link = '#'
    options = { target: "#fb-#{resource.id}", toggle: 'modal' }
  end
  options[:toggle] ||= ''
  options[:toggle] << ' tooltip'
  options[:title] = 'Compartir en Facebook'
%>
  <%=
    link_to(
      content_tag(
        :i,
        nil,
        class: 'fa fa-facebook'
      ),
      link,
      title: 'Compartir en Facebook',
      id: 'resource-publish',
      data: options
    )
  %>
  <!-- the modal that it's going to toggle if exist the fb acces token -->
  <%= render 'adminpanel/shared/fb_publish_modal', resource: resource %>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
adminpanel-3.6.1 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.6.0 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.5.1 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.5.0 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.4.7 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.4.6 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.4.5 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.4.4 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.4.3 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.4.2 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.4.1 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.4.0 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.3.4 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.3.3 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.3.0 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.2.1 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.2.0 app/views/adminpanel/icons/_facebook.html.erb