Sha256: 5313b775f2cea7960ef802c1bb82be18907ab81aecf0162e501e48b114fcbea9

Contents?: true

Size: 591 Bytes

Versions: 6

Compression:

Stored size: 591 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 'shared/twitter_publish_modal', resource: resource %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

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