Skip to content

Commit

Permalink
STYLE: cleaner targetting in components
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Jan 20, 2014
1 parent 12b7276 commit c7c1c93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Discourse.PrivateMessageMapComponent = Ember.Component.extend({
templateName: 'components/private-message-map',
tagName: 'section',
classNames: ['information'],
details: Em.computed.alias('topic.details'),

actions: {
removeAllowedUser: function(user) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<h3><i class='fa fa-envelope'></i> {{i18n private_message_info.title}}</h3>
<div class='participants clearfix'>
{{#groupedEach topic.details.allowed_groups}}
{{#groupedEach view.details.allowed_groups}}
<div class='user group'>
#{{unbound name}}
</div>
{{/groupedEach}}
{{#groupedEach topic.details.allowed_users}}
{{#groupedEach view.details.allowed_users}}
<div class='user'>
{{#link-to 'user' this}}
{{avatar this imageSize="small"}}
{{/link-to}}
{{#link-to 'user' this}}
{{unbound username}}
{{/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>
{{/if}}
</div>
{{/groupedEach}}
</div>
{{#if topic.details.can_invite_to}}
{{#if view.details.can_invite_to}}
<div class='controls'>
<button class='btn' {{action showPrivateInvite}}>{{i18n private_message_info.invite}}</button>
</div>
Expand Down

0 comments on commit c7c1c93

Please sign in to comment.