Topic List Voting Column

:information_source: Summary This TC adds a column to display the voting count.
:eyeglasses: Preview PREVIEW_LINK
:hammer_and_wrench: Repository GitHub - chapoi/topic-list-voting-column
:question: Install Guide How to install a theme or theme component
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Short description

A very simple and unofficial alternative to the more fleshed out older sibling: Alternative Voting Category Style

Made to address this old feature request, and because the other TC hides the standard columns.

Detailed description

By default:

  • it only shows the vote number
  • no styling
  • only shows when viewing a category that has voting enabled

Setting: show everywhere

By ticking this box, the vote column will appear on all topic-list views, which may or may not look empty depending on your forum

Setting: Hide “Vote” tab

Because the vote column can also be sorted, the extra “Vote” tab is superfluous. Check this setting to hide the tab.

Setting: Bells & Whistles styling

For fun

Will add mildly funky styling to the column:

  • greyed out for topics with no votes
  • blue for topics with votes
  • red for topics that are “hot” (see next setting)
  • A “stamp” to mark you have voted

The colours are determined by tertiary and danger-hover.

Setting: Minimum votes to be :fire:

Determines when the hot-styling gets applied. Only has an effect if the Bells&Whistles mode is on. Set to zero to not apply the effect.


Notes

  • only works on desktop
  • only tested in chromium for now and very happy path

Todo

add specs

2 likes