A Discourse theme component that adds a vote count column to the topic list.
Find a file
2025-11-14 13:42:17 +00:00
javascripts/discourse move to post vote 2025-11-14 11:00:20 +00:00
.gitignore first commit 2025-11-14 10:01:53 +00:00
about.json fix URL in about.json 2025-11-14 13:42:17 +00:00
LICENSE first commit 2025-11-14 10:01:53 +00:00
plugin.rb fix url in plugin details 2025-11-14 13:40:38 +00:00
README.md update readme.md 2025-11-14 13:37:35 +00:00
settings.yml adding the backend plugin ruby 2025-11-14 13:34:34 +00:00

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

  1. Navigate to your Discourse admin panel
  2. Go to Customize → Themes
  3. Click "Install" and then "From a git repository"
  4. Enter the repository URL: https://code.squarecows.com/ric/discourse-vote-column
  5. Click "Install"
  6. Add the component to your active theme
  7. 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) or total
    • first_post: Display only the vote count from the topic's first post
    • total: 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.