mirror of
https://github.com/discourse/discourse.git
synced 2025-05-17 22:43:10 +08:00
STYLE: cleaner targetting in components
This commit is contained in:
parent
12b72762da
commit
c7c1c937af
@ -10,6 +10,7 @@ Discourse.PrivateMessageMapComponent = Ember.Component.extend({
|
|||||||
templateName: 'components/private-message-map',
|
templateName: 'components/private-message-map',
|
||||||
tagName: 'section',
|
tagName: 'section',
|
||||||
classNames: ['information'],
|
classNames: ['information'],
|
||||||
|
details: Em.computed.alias('topic.details'),
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
removeAllowedUser: function(user) {
|
removeAllowedUser: function(user) {
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<h3><i class='fa fa-envelope'></i> {{i18n private_message_info.title}}</h3>
|
<h3><i class='fa fa-envelope'></i> {{i18n private_message_info.title}}</h3>
|
||||||
<div class='participants clearfix'>
|
<div class='participants clearfix'>
|
||||||
{{#groupedEach topic.details.allowed_groups}}
|
{{#groupedEach view.details.allowed_groups}}
|
||||||
<div class='user group'>
|
<div class='user group'>
|
||||||
#{{unbound name}}
|
#{{unbound name}}
|
||||||
</div>
|
</div>
|
||||||
{{/groupedEach}}
|
{{/groupedEach}}
|
||||||
{{#groupedEach topic.details.allowed_users}}
|
{{#groupedEach view.details.allowed_users}}
|
||||||
<div class='user'>
|
<div class='user'>
|
||||||
{{#link-to 'user' this}}
|
{{#link-to 'user' this}}
|
||||||
{{avatar this imageSize="small"}}
|
{{avatar this imageSize="small"}}
|
||||||
@ -13,13 +13,13 @@
|
|||||||
{{#link-to 'user' this}}
|
{{#link-to 'user' this}}
|
||||||
{{unbound username}}
|
{{unbound username}}
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
{{#if topic.details.can_remove_allowed_users}}
|
{{#if view.details.can_remove_allowed_users}}
|
||||||
<a class='remove-invited' {{action removeAllowedUser this}}><i class="fa fa-times"></i></a>
|
<a class='remove-invited' {{action removeAllowedUser this}}><i class="fa fa-times"></i></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/groupedEach}}
|
{{/groupedEach}}
|
||||||
</div>
|
</div>
|
||||||
{{#if topic.details.can_invite_to}}
|
{{#if view.details.can_invite_to}}
|
||||||
<div class='controls'>
|
<div class='controls'>
|
||||||
<button class='btn' {{action showPrivateInvite}}>{{i18n private_message_info.invite}}</button>
|
<button class='btn' {{action showPrivateInvite}}>{{i18n private_message_info.invite}}</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user