myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2393] branches/biocat/app/views/services/_table.


From: noreply
Subject: [myexperiment-hackers] [2393] branches/biocat/app/views/services/_table.rhtml: Added categories to the service table partial.
Date: Tue, 27 Apr 2010 11:41:01 -0400 (EDT)

Revision
2393
Author
jits
Date
2010-04-27 11:41:01 -0400 (Tue, 27 Apr 2010)

Log Message

Added categories to the service table partial.

Modified Paths

Diff

Modified: branches/biocat/app/views/services/_table.rhtml (2392 => 2393)


--- branches/biocat/app/views/services/_table.rhtml	2010-04-27 15:20:55 UTC (rev 2392)
+++ branches/biocat/app/views/services/_table.rhtml	2010-04-27 15:41:01 UTC (rev 2393)
@@ -43,6 +43,26 @@
 						<% end %>
           </p>
 					
+					<% unless (categories = service.service_categories).empty? %>
+            <p style="font-size: 85%;">
+              <b>Categories</b> (<%=categories.length-%>):
+            </p>
+            <div style="display:inline;" class="tags_onesize" style="font-size: 85%;">
+              <div class="hTagcloud">
+                <ul class="popularity">
+                  <% categories.each do |category| %>
+                    <li>
+                      <%= link_to h(category.label), category.uri, :title => tooltip_title_attrib("Click to see category on BioCatalogue") -%>
+                      <%= "<li>|</li>" unless category == categories[categories.length-1] -%>
+                    </li>
+                  <% end %>                 
+                </ul>
+              </div>
+            </div>
+          <% else %>
+            <p style="font-size: 85%;"><i>This Service has no categories!</i></p>
+          <% end %>
+					
 					<p style="font-size: 85%;">
 					 <b>Provider:</b> <%= link_to h(service.provider_label), service.provider_uri -%> 
 					</p>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]