myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2047] trunk/app/views/workflows/index.rhtml: Add


From: noreply
Subject: [myexperiment-hackers] [2047] trunk/app/views/workflows/index.rhtml: Added a stats bar at the top of the workflows page to show the counts of the different types of workflows .
Date: Tue, 13 Jan 2009 13:28:22 -0500 (EST)

Revision
2047
Author
jits
Date
2009-01-13 13:28:22 -0500 (Tue, 13 Jan 2009)

Log Message

Added a stats bar at the top of the workflows page to show the counts of the different types of workflows.

Modified Paths

Diff

Modified: trunk/app/views/workflows/index.rhtml (2046 => 2047)


--- trunk/app/views/workflows/index.rhtml	2009-01-13 16:10:29 UTC (rev 2046)
+++ trunk/app/views/workflows/index.rhtml	2009-01-13 18:28:22 UTC (rev 2047)
@@ -1,3 +1,10 @@
+<div class="box_standout" style="text-align: center; margin-bottom: 1em; font-weight: bold;">
+	<% Workflow.count(:all, :group => 'content_type').sort{|x,y| x[0].downcase <=> y[0].downcase}.each do |arr| %>
+		| <%= pluralize(arr[1], (h(WorkflowTypesHandler.type_display_name_for_content_type(arr[0]) + " workflow"))) %>
+	<% end %>
+	|
+</div>
+
 <ul class="sectionIcons">
 	<li><%= icon "workflow", new_workflow_path, nil, nil, "Upload New Workflow" %></li>
 	<li><%= icon "view-all", all_workflows_path, nil, nil, "View All Workflows" %></li>

reply via email to

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