mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 11:13:22 +08:00
UX: Add info when poll is public.
This commit is contained in:
parent
ff577405ae
commit
5a03eca74a
|
@ -5,6 +5,7 @@ export default Ember.Controller.extend({
|
|||
isNumber: Ember.computed.equal("poll.type", "number"),
|
||||
isRandom : Ember.computed.equal("poll.order", "random"),
|
||||
isClosed: Ember.computed.equal("poll.status", "closed"),
|
||||
isPublic: Ember.computed.equal("poll.public", "true"),
|
||||
pollsVoters: Ember.computed.alias("post.polls_voters"),
|
||||
|
||||
// shows the results when
|
||||
|
|
|
@ -29,6 +29,12 @@
|
|||
<p>{{{multipleHelpText}}}</p>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if isPublic}}
|
||||
{{#unless showingResults}}
|
||||
<p>{{i18n "poll.public.title"}}</p>
|
||||
{{/unless}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -138,6 +138,10 @@
|
|||
if (help) { info.push(["p", help]); }
|
||||
}
|
||||
|
||||
if (attributes[DATA_PREFIX + "public"] === "true") {
|
||||
info.push(["p", I18n.t("poll.public.title")]);
|
||||
}
|
||||
|
||||
poll.push(info);
|
||||
|
||||
// 3 - BUTTONS
|
||||
|
|
|
@ -27,6 +27,9 @@ en:
|
|||
|
||||
average_rating: "Average rating: <strong>%{average}</strong>."
|
||||
|
||||
public:
|
||||
title: "Votes submitted to this poll will be made public."
|
||||
|
||||
multiple:
|
||||
help:
|
||||
at_least_min_options:
|
||||
|
|
Loading…
Reference in New Issue
Block a user