A Discourse theme component that adds a vote count column to the topic list.
| javascripts/discourse | ||
| .gitignore | ||
| about.json | ||
| LICENSE | ||
| plugin.rb | ||
| README.md | ||
| settings.yml | ||
Discourse Vote Column
A Discourse theme component that adds a vote count column to the topic list for topics using post voting.
About
This theme component adds a "Votes" column to your Discourse topic lists, displaying vote counts from the discourse-post-voting plugin.
Important: This component works with Post Voting (where individual posts within a topic can be voted on), not Topic Voting (where entire topics are voted on). The column displays votes on posts, not topics themselves.
Installation
- Navigate to your Discourse admin panel
- Go to Customize → Themes
- Click "Install" and then "From a git repository"
- Enter the repository URL:
https://code.squarecows.com/ric/discourse-vote-column - Click "Install"
- Add the component to your active theme
- Restart your Discourse server to load the backend functionality
Requirements
- Discourse with the discourse-post-voting plugin enabled
- Topics must have post voting enabled in their category settings
Features
- Displays vote count for each topic in the topic list
- Two display modes:
- First Post (default): Shows votes on the original post only
- Total: Shows sum of all post votes across the entire topic
- Sortable column (click to sort by vote count)
- Clean, minimal design that matches Discourse's interface
- Shows "-" for topics without post voting enabled
Configuration
After installation, go to Customize → Themes → [Your Theme] → Settings and configure:
- vote_count_mode: Choose between
first_post(default) ortotalfirst_post: Display only the vote count from the topic's first posttotal: Display the sum of all post votes in the topic
The column will automatically appear after the Replies column once installed.
License
MIT License - see LICENSE file for details
Credits
Based on the discourse-like-column theme component structure.