myexperiment-hackers
[Top][All Lists]
Advanced

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

[myexperiment-hackers] [2462] trunk/app/views/comments: added missing fi


From: noreply
Subject: [myexperiment-hackers] [2462] trunk/app/views/comments: added missing file and reinstated comment timelines
Date: Wed, 7 Jul 2010 19:24:35 -0400 (EDT)

Revision
2462
Author
dgc
Date
2010-07-07 19:24:35 -0400 (Wed, 07 Jul 2010)

Log Message

added missing file and reinstated comment timelines

Modified Paths

Added Paths

Diff

Modified: trunk/app/views/comments/_comments.rhtml (2461 => 2462)


--- trunk/app/views/comments/_comments.rhtml	2010-07-06 14:40:50 UTC (rev 2461)
+++ trunk/app/views/comments/_comments.rhtml	2010-07-07 23:24:35 UTC (rev 2462)
@@ -6,6 +6,10 @@
 	<span class="count_text" style="vertical-align: middle;">(<%= commentable.comments.length %>)</span>
 </h2>
 
+<ul class="sectionIcons">
+  <li><%= icon('timeline', rest_resource_uri(commentable) + "/comments/timeline", nil, nil, 'View Timeline')%></li>
+</ul>
+
 <div class="commentsBox">
 	
 	<% unless commentable.comments.empty? %>

Added: trunk/app/views/comments/timeline.rhtml (0 => 2462)


--- trunk/app/views/comments/timeline.rhtml	                        (rev 0)
+++ trunk/app/views/comments/timeline.rhtml	2010-07-07 23:24:35 UTC (rev 2462)
@@ -0,0 +1,37 @@
+<%
+  comments_timeline = ::Simile::Timeline::Timeline.new(
+    :name        => "Comments",
+    :event_source => rest_resource_uri(@context) + "/comments.json",
+    :event_band   => :days,
+    :bands       => {
+      :months => {
+        :trackGap       => '0.1',
+        :showEventText  => 'false',
+        :width          => '"25%"',
+        :intervalUnit   => 'Timeline.DateTime.MONTH',
+        :intervalPixels => '200'
+      },
+      :days => {
+        :trackGap       => '0.1',
+        :showEventText  => 'false',
+        :width          => '"25%"',
+        :intervalUnit   => 'Timeline.DateTime.DAY',
+        :intervalPixels => '100'
+      },
+      :hours => {
+        :width          => '"50%"',
+        :intervalUnit   => 'Timeline.DateTime.HOUR',
+        :intervalPixels => '20'
+      }
+    },
+    :bands_order => [ :months, :days, :hours ],
+    :synchronize => {
+      :months => :hours,
+      :days   => :hours
+    },
+    :highlight => [ :months, :days ]
+  )
+
+%>
+
+<%= simile_timeline(comments_timeline, { :class => 'default_timeline' } ) %>

reply via email to

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