Sha256: 4b6b4d8de8058c0fe30415e1160110bc36a9a5553673011b95075f446ac751d8

Contents?: true

Size: 597 Bytes

Versions: 16

Compression:

Stored size: 597 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
%>
  <%=
    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

16 entries across 16 versions & 1 rubygems

Version Path
adminpanel-3.1.0 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-3.0.0 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.6.1 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.6.0 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.5.5 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.5.4 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.5.3 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.5.2 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.5.1 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.5.0 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.4.3 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.4.2 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.4.1 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.4.0 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.3.1 app/views/adminpanel/icons/_facebook.html.erb
adminpanel-2.3.0 app/views/adminpanel/icons/_facebook.html.erb