This repository was archived by the owner on Apr 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added twitter census data to twitter#index
- Loading branch information
Showing
4 changed files
with
48 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
<%= content_for :column2 do %> | ||
<h1 class="title">Wassup</h1> | ||
<table> | ||
<tr> | ||
<th><%= sortable 'screen_name', 'Twitter Handle' %></th> | ||
<th><%= sortable 'org_name', 'Organization Name' %></th> | ||
<th><%= sortable 'followers_count', 'Followers Count' %></th> | ||
<th><%= sortable 'following_count', 'Following Count' %></th> | ||
<th><%= sortable 'statuses_count', 'Number of Posts' %></th> | ||
</tr> | ||
<% @stats.each do |stat| %> | ||
<tr> | ||
<td><%= twitter_link stat.twitter_stat.screen_name %></td> | ||
<td><%= link_to stat.organization.name, stat.organization %></td> | ||
<td><%= stat.followers_count %></td> | ||
<td><%= stat.following_count %></td> | ||
<td><%= stat.statuses_count %></td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
<h1 class="title">Twitter Summary</h1> | ||
<table> | ||
<tr> | ||
<th><%= sortable 'screen_name', 'Twitter Handle' %></th> | ||
<th><%= sortable 'org_name', 'Organization Name' %></th> | ||
<th><%= sortable 'followers_count', 'Followers Count' %></th> | ||
<th><%= sortable 'following_count', 'Following Count' %></th> | ||
<th><%= sortable 'statuses_count', 'Number of Posts' %></th> | ||
<th><%= sortable 'interesting', 'Interestingness' %></th> | ||
<th><%= sortable 'sway', 'Sway' %></th> | ||
<th><%= sortable 'outflux', 'Outflux' %></th> | ||
<th><%= sortable 'feedness', 'Feedness' %></th> | ||
<th><%= sortable 'chattiness', 'Chattiness' %></th> | ||
</tr> | ||
<% @stats.each do |stat| %> | ||
<tr> | ||
<td><%= twitter_link stat.twitter_stat.screen_name %></td> | ||
<td><%= link_to stat.organization.name, stat.organization %></td> | ||
<td><%= stat.followers_count %></td> | ||
<td><%= stat.following_count %></td> | ||
<td><%= stat.statuses_count %></td> | ||
<td><%= stat.interesting %></td> | ||
<td><%= stat.sway %></td> | ||
<td><%= stat.outflux %></td> | ||
<td><%= stat.feedness %></td> | ||
<td><%= stat.chattiness %></td> | ||
</tr> | ||
<% end %> | ||
</table> | ||
<%= will_paginate @stats %> |
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