Sha256: b80676bb870c88b640fec6b9c3b215bd3021bf95cc1e60974ca0866f2d68410d

Contents?: true

Size: 603 Bytes

Versions: 15

Compression:

Stored size: 603 Bytes

Contents

<% if item.attribute_present?(:link) && item.link.present? %>
    <%
        # The gsub at the end is to replace a mdash with a hyphen. It was causing Android to barf.
        summary = truncate(strip_tags(item.contents.strip), :length => 90).gsub("—", "-")
    %>
    <div class="share_btn btn btn-secondary hhl"
         data-url="<%= item.link %>"
         data-title="<%= item.title %>"
         data-summary=" <%= summary %> "
         <% if get_article_img_url(item) %>
             data-fbimg="<%= get_article_img_url(item) %>"
         <% end %>
         >
         Share
    </div>
<% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sports_db-0.2.19 app/views/shared/_sharing.html.erb
sports_db-0.2.18 app/views/shared/_sharing.html.erb
sports_db-0.2.17 app/views/shared/_sharing.html.erb
sports_db-0.2.16 app/views/shared/_sharing.html.erb
sports_db-0.2.15 app/views/shared/_sharing.html.erb
sports_db-0.2.14 app/views/shared/_sharing.html.erb
sports_db-0.2.13 app/views/shared/_sharing.html.erb
sports_db-0.2.12 app/views/shared/_sharing.html.erb
sports_db-0.2.11 app/views/shared/_sharing.html.erb
sports_db-0.2.10 app/views/shared/_sharing.html.erb
sports_db-0.2.9 app/views/shared/_sharing.html.erb
sports_db-0.2.8 app/views/shared/_sharing.html.erb
sports_db-0.2.7 app/views/shared/_sharing.html.erb
sports_db-0.2.6 app/views/shared/_sharing.html.erb
sports_db-0.2.5 app/views/shared/_sharing.html.erb