Sha256: 6d9b399a3e2c54342d159115cfcdb8a8798e2ba76abf215170ad62b71d621ef4
Contents?: true
Size: 705 Bytes
Versions: 3
Compression:
Stored size: 705 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 options[:toggle] ||= '' options[:toggle] << ' tooltip' options[:title] = 'Compartir en Facebook' %> <%= 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adminpanel-3.3.0 | app/views/adminpanel/icons/_twitter.html.erb |
adminpanel-3.2.1 | app/views/adminpanel/icons/_twitter.html.erb |
adminpanel-3.2.0 | app/views/adminpanel/icons/_twitter.html.erb |