Sha256: 16ff2b13a33888e7a83880536558668fa96e4651f352abfded53bb474d2fc7f2

Contents?: true

Size: 635 Bytes

Versions: 13

Compression:

Stored size: 635 Bytes

Contents

<% author = post.author_subject %>
<div class="model_with_details">
  <div class="logo">
    <%= link_to (image_tag(author.logo.url , :size => "50x50", :alt => author.name )), author  %>
  </div>
  <div class="sub-block">
    <div class="brief">
    <%= link_to post do%>
      <% text = excerpt(strip_tags(post.text),get_search_query_words.first,:radius => 25) %>
      <% if text.length < 60 %>
        <% text = excerpt(strip_tags(post.text),get_search_query_words.first,:radius => 30 + (60 - text.length)) %>
      <% end %>
      <%= highlight(text,get_search_query_words) %>
      <% end %>
      <br>
    </div>
  </div>
</div>

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
social_stream-0.15.8 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.11 app/views/posts/_post_global_search.html.erb
social_stream-0.15.7 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.10 app/views/posts/_post_global_search.html.erb
social_stream-0.15.6 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.9 app/views/posts/_post_global_search.html.erb
social_stream-0.15.5 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.8 app/views/posts/_post_global_search.html.erb
social_stream-0.15.4 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.7 app/views/posts/_post_global_search.html.erb
social_stream-0.15.1 base/app/views/posts/_post_global_search.html.erb
social_stream-0.15.0 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.6 app/views/posts/_post_global_search.html.erb