Created
April 9, 2014 16:03
-
-
Save pgdaniel/10286623 to your computer and use it in GitHub Desktop.
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
class Publisher::CommunityUsersTable < TableCloth::Base | |
presenter SortableTablePresenter | |
column :username_in_table, label: "Username" | |
column :auth_provider_decorated, label: "Auth", sort_by: :provider | |
column :email_decorated, label: "Email", sort_by: :email | |
column :user_since, label: "User Since", sort_by: :created_at | |
column :latest_activity, label: "Latest Activity", sort_by: :last_sign_in_at | |
column :karma, label: "Rank", sort_by: :karma | |
column :number_of_submissions, label: "Submissions" | |
column :vote_count_up, label: "Votes Up" | |
column :vote_count_down, label: "Votes Down" | |
column :comments_left_count, label: "Comments Made" | |
column :comments_on_video_count, label: "Comments Recieved" | |
column :share_count, label: "Shares", sort_by: "shares" | |
config.table.class = 'dTable responsive dataTable padded' | |
18 end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment