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' } ) %>