- <p><i>This collection was the output of:</i><br />
- <% pipelines = PipelineInstance.filter([["components", "like", "%#{@object.uuid}%"]]).each do |pipeline| %>
+ <% pipelines = PipelineInstance.limit(5).filter([["components", "like", "%#{@object.uuid}%"]]) %>
+ <%
+ message = "This collection was the output of the following:"
+ if pipelines.items_available > pipelines.results.size
+ message += ' (' + (pipelines.items_available - pipelines.results.size).to_s + ' more results are not shown)'
+ end
+ %>
+ <p><i><%= message %></i><br />
+ <% pipelines.each do |pipeline| %>