Sha256: 5efa63e6f6c08a5c1c8033d1b10f718156efa17f9658c6e0c959d33d1ab24ebf

Contents?: true

Size: 1.07 KB

Versions: 32

Compression:

Stored size: 1.07 KB

Contents

<%
   cited_by = get_service_type('cited_by')   
   similar = get_service_type('similar')
%>


  <%= list_with_limit('umlaut_cited_by', 
          cited_by, 
          :ul_class => "related_items response_list") do |item, index |  %>           
        <%= render(:partial => "standard_response_item", :object=> item, :locals => { :show_source => true, :li_class => "related_item"}) %>
  <%    end %> 
    
  <%
  if (cited_by.length > 0) && (similar.length > 0) %>
    <!-- a little seperation for readability -->
    <br class="seperator"/>
  <% end %>

  <%=  list_with_limit('umlaut_similar_items', 
          similar, 
          :ul_class =>"related_items response_list") do |item, index |  %>           
        <%= render(:partial => "standard_response_item", :object=> item, :locals => { :show_source => true}) %>
  <%    end %>
  


  <% if (!service_types_in_progress?([ServiceTypeValue['cited_by'], ServiceTypeValue['similar']])) && similar.empty? && cited_by.empty? %>
    <ul class="related_items response_list">
      <li><i>No related items found.</i></li>
    </ul>
  <% end %>




Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
umlaut-3.0.5 app/views/resolve/_related_items.html.erb
umlaut-3.0.4 app/views/resolve/_related_items.html.erb
umlaut-3.0.3 app/views/resolve/_related_items.html.erb
umlaut-3.0.2 app/views/resolve/_related_items.html.erb
umlaut-3.0.1 app/views/resolve/_related_items.html.erb
umlaut-3.0.0 app/views/resolve/_related_items.html.erb
umlaut-3.0.0rc1 app/views/resolve/_related_items.html.erb
umlaut-3.0.0beta10 app/views/resolve/_related_items.html.erb
umlaut-3.0.0beta9 app/views/resolve/_related_items.html.erb
umlaut-3.0.0beta8 app/views/resolve/_related_items.html.erb
umlaut-3.0.0beta7 app/views/resolve/_related_items.html.erb
umlaut-3.0.0beta6 app/views/resolve/_related_items.html.erb
umlaut-3.0.0beta5 app/views/resolve/_related_items.html.erb
umlaut-3.0.0beta4 app/views/resolve/_related_items.html.erb
umlaut-3.0.0beta3 app/views/resolve/_related_items.html.erb
umlaut-3.0.0beta2 app/views/resolve/_related_items.html.erb
umlaut-3.0.0beta1 app/views/resolve/_related_items.html.erb
umlaut-3.0.0alpha15 app/views/resolve/_related_items.html.erb
umlaut-3.0.0alpha14 app/views/resolve/_related_items.html.erb
umlaut-3.0.0alpha13 app/views/resolve/_related_items.html.erb