Sha256: 29757f283ad7c208ee2ac8036a93ab6427fd74943e541ed7c7e4e0bceff262b5

Contents?: true

Size: 558 Bytes

Versions: 7

Compression:

Stored size: 558 Bytes

Contents

<%
if @model.fb_share?
  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

7 entries across 7 versions & 1 rubygems

Version Path
adminpanel-2.1.7 app/views/shared/_fb_icon_button.html.erb
adminpanel-2.1.6 app/views/shared/_fb_icon_button.html.erb
adminpanel-2.1.5 app/views/shared/_fb_icon_button.html.erb
adminpanel-2.1.3 app/views/shared/_fb_icon_button.html.erb
adminpanel-2.1.2 app/views/shared/_fb_icon_button.html.erb
adminpanel-2.1.1 app/views/shared/_fb_icon_button.html.erb
adminpanel-2.1.0 app/views/shared/_fb_icon_button.html.erb