Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Basic statistics support - no graphing
- Loading branch information
Michael Pearson
committed
May 16, 2009
1 parent
0c5953a
commit a10cefb
Showing
5 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<% setup(:title=>"Statistics", :body_id=>"replies", :body_classes=>"status replyable", :css=>['timeline']) %> | ||
|
||
<h2 class="timeline-header">Statistics and Graphs</h2> | ||
<h3 class="timeline-subheader">Top Ten Twats</h3> | ||
<ol> | ||
<% @top_ten_twats.each do |twat|%> | ||
<li><%= twat[:name] %>: <%= twat[:updates] %> updates | ||
<% end %> | ||
</ol> | ||
<h3 class="timeline-subheader">Twats Per Hour</h3> | ||
<ol> | ||
<% @twats_per_hour.keys.sort.each do |hour|%> | ||
<li><%= hour %>: <%= @twats_per_hour[hour] %> updates | ||
<% end %> | ||
</ol> | ||
|
||
<%= render :partial => "statuses/sidebar" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters