Sha256: 9d0fd05e5bd7152107abdff4549911db1f35a712d3c49e0d41a7c892a082b077

Contents?: true

Size: 584 Bytes

Versions: 6

Compression:

Stored size: 584 Bytes

Contents

<%
if @model.fb_share? && can?(:publish, @model)
  if @fb_auths_count > 0
    link = '#'
    options = { target: "#fb-#{resource.id}", toggle: 'modal' }
  else
    link = get_oauth_link(resource)
    options = {}
  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 'shared/fb_publish_modal', resource: resource %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adminpanel-2.2.5 app/views/shared/_fb_icon_button.html.erb
adminpanel-2.2.4 app/views/shared/_fb_icon_button.html.erb
adminpanel-2.2.3 app/views/shared/_fb_icon_button.html.erb
adminpanel-2.2.2 app/views/shared/_fb_icon_button.html.erb
adminpanel-2.2.1 app/views/shared/_fb_icon_button.html.erb
adminpanel-2.2.0 app/views/shared/_fb_icon_button.html.erb