Sha256: fc29b1d212ae67557ec8e9c2f27ebd3734020ddc040441933e9b79a70be1ff55

Contents?: true

Size: 648 Bytes

Versions: 51

Compression:

Stored size: 648 Bytes

Contents

<% author = post.post_activity.sender_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

51 entries across 51 versions & 2 rubygems

Version Path
social_stream-0.14.1 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.5 app/views/posts/_post_global_search.html.erb
social_stream-0.14.0 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.4 app/views/posts/_post_global_search.html.erb
social_stream-0.13.3 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.3 app/views/posts/_post_global_search.html.erb
social_stream-0.13.2 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.2 app/views/posts/_post_global_search.html.erb
social_stream-0.13.1 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.1 app/views/posts/_post_global_search.html.erb
social_stream-0.13.0 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.10.0 app/views/posts/_post_global_search.html.erb
social_stream-0.12.14 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.9.36 app/views/posts/_post_global_search.html.erb
social_stream-0.12.13 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.9.35 app/views/posts/_post_global_search.html.erb
social_stream-0.12.12 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.9.34 app/views/posts/_post_global_search.html.erb
social_stream-0.12.11 base/app/views/posts/_post_global_search.html.erb
social_stream-base-0.9.33 app/views/posts/_post_global_search.html.erb