mirror of
https://ghfast.top/https://github.com/discourse/discourse-topic-voting.git
synced 2026-07-18 11:39:58 +08:00
This aims to be a 1:1 port of functionality and HTML structure. In future, this plugin may benefit from a refactor to use float-kit. Also unskips the system spec and makes improvements to prevent flakiness.
21 lines
600 B
Text
21 lines
600 B
Text
import Component from "@glimmer/component";
|
|
import { LinkTo } from "@ember/routing";
|
|
import { service } from "@ember/service";
|
|
import icon from "discourse/helpers/d-icon";
|
|
import { i18n } from "discourse-i18n";
|
|
|
|
export default class UserVotedTopics extends Component {
|
|
@service siteSettings;
|
|
|
|
<template>
|
|
{{#if this.siteSettings.topic_voting_show_votes_on_profile}}
|
|
<li class="user-nav__activity-votes">
|
|
|
|
<LinkTo @route="userActivity.votes">
|
|
{{icon "heart"}}
|
|
{{i18n "topic_voting.vote_title_plural"}}
|
|
</LinkTo>
|
|
</li>
|
|
{{/if}}
|
|
</template>
|
|
}
|