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