Sha256: fd44cbba4a657aa6deb144b84bdc56b64bfd92870254285bb2b8283b4b44f903

Contents?: true

Size: 602 Bytes

Versions: 16

Compression:

Stored size: 602 Bytes

Contents

<%
if @model.twitter_share?
  if @twitter_token.nil? || @twitter_secret.nil?
    link = '/auth/twitter'
    options = {}
  else
    link = '#'
    options = { target: "#twitter-#{resource.id}", toggle: 'modal' }
  end
%>
  <%=
    link_to(
      content_tag(
        :i,
        nil,
        class: 'fa fa-twitter'
      ),
      link,
      title: 'Compartir en Twitter',
      id: 'resource-tweet',
      data: options
    )
  %>
  <!-- the modal that it's going to toggle if exist there's a twitter account -->
  <%= render 'adminpanel/shared/twitter_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/_twitter.html.erb
adminpanel-3.0.0 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.6.1 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.6.0 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.5.5 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.5.4 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.5.3 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.5.2 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.5.1 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.5.0 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.4.3 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.4.2 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.4.1 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.4.0 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.3.1 app/views/adminpanel/icons/_twitter.html.erb
adminpanel-2.3.0 app/views/adminpanel/icons/_twitter.html.erb