myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2215] trunk/app/views/blobs/index.rhtml: breakdo


From: noreply
Subject: [myexperiment-hackers] [2215] trunk/app/views/blobs/index.rhtml: breakdown of file types in files tab
Date: Tue, 9 Jun 2009 10:49:01 -0400 (EDT)

Revision
2215
Author
dgc
Date
2009-06-09 10:49:01 -0400 (Tue, 09 Jun 2009)

Log Message

breakdown of file types in files tab

Modified Paths

Diff

Modified: trunk/app/views/blobs/index.rhtml (2214 => 2215)


--- trunk/app/views/blobs/index.rhtml	2009-06-09 14:46:51 UTC (rev 2214)
+++ trunk/app/views/blobs/index.rhtml	2009-06-09 14:49:01 UTC (rev 2215)
@@ -1,3 +1,10 @@
+<div class="box_standout" style="text-align: center; margin-bottom: 1em; font-weight: bold; line-height: 1.5em;">
+	<% Blob.count(:all, :group => 'content_type_id').sort{|x,y| y[1] <=> x[1]}.each do |arr| %>
+		  <span class="nowrap"><%= link_to((h(ContentType.find_by_id(arr[0]).title)),
+        search_files_path + "?query=kind:(#{ContentType.find_by_id(arr[0]).title})") %> (<%= arr[1] %>)</span>
+	<% end %>
+</div>
+
 <ul class="sectionIcons">
 	<li><%= icon "blob", new_file_path, nil, nil, "Upload New File" %></li>
 	<li><%= icon "view-all", all_files_path, nil, nil, "View All Files" %></li>

reply via email to

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