Sha256: b6ab585148676461ba83451fbcc9d8ac7e0c43153c11a65ced11e8dc80f4180a

Contents?: true

Size: 985 Bytes

Versions: 27

Compression:

Stored size: 985 Bytes

Contents

<%-
# Get cited by and similar services
cited_by = get_service_type('cited_by')   
similar = get_service_type('similar')
# Render cited by services
%><%= 
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 
# Render similar services (Related items)
%><%= 
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 there are no related or cited by services, tell the user.
if (!service_types_in_progress?([ServiceTypeValue['cited_by'], ServiceTypeValue['similar']])) && similar.empty? && cited_by.empty? -%>
  <ul class="related_items response_list">
    <li><em>No related items found.</em></li>
  </ul><% 
end %>

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
umlaut-4.1.7 app/views/resolve/_related_items.html.erb
umlaut-4.1.6 app/views/resolve/_related_items.html.erb
umlaut-4.1.5 app/views/resolve/_related_items.html.erb
umlaut-4.1.4 app/views/resolve/_related_items.html.erb
umlaut-4.1.3 app/views/resolve/_related_items.html.erb
umlaut-4.1.2 app/views/resolve/_related_items.html.erb
umlaut-4.1.1 app/views/resolve/_related_items.html.erb
umlaut-4.1.0 app/views/resolve/_related_items.html.erb
umlaut-4.1.0.pre3 app/views/resolve/_related_items.html.erb
umlaut-4.1.0.pre.2 app/views/resolve/_related_items.html.erb
umlaut-4.1.0.pre.alpha.1 app/views/resolve/_related_items.html.erb
umlaut-4.0.3 app/views/resolve/_related_items.html.erb
umlaut-4.0.2 app/views/resolve/_related_items.html.erb
umlaut-4.0.1 app/views/resolve/_related_items.html.erb
umlaut-4.0.0 app/views/resolve/_related_items.html.erb
umlaut-4.0.0.beta5 app/views/resolve/_related_items.html.erb
umlaut-4.0.0.beta4 app/views/resolve/_related_items.html.erb
umlaut-4.0.0.beta3 app/views/resolve/_related_items.html.erb
umlaut-4.0.0.beta2 app/views/resolve/_related_items.html.erb
umlaut-4.0.0.beta1 app/views/resolve/_related_items.html.erb