-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aecec11
commit 568988f
Showing
7 changed files
with
64 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
assets/javascripts/discourse/components/modal/event-rsvp.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<DModal | ||
class="event-rsvp-modal" | ||
@title={{this.title}} | ||
@closeModal={{@closeModal}} | ||
@flash={{this.flash}} | ||
> | ||
<:body> | ||
<div class="header"> | ||
<ul class="types nav nav-pills"> | ||
<li> | ||
<a href {{on "click" (fn this.setType 'going')}} class={{this.goingNavClass}}> | ||
{{i18n 'event_rsvp.going.label'}} | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="list"> | ||
{{#if this.loadingList}} | ||
{{loading-spinner size='small'}} | ||
{{else}} | ||
<ul> | ||
{{#each this.filteredList as |user|}} | ||
<li> | ||
<UserInfo @user={{user}}> | ||
{{#if this.currentUser.staff}} | ||
<DButton | ||
class='btn compose-pm' | ||
@action={{fn this.composePrivateMessage user}} | ||
@icon="envelope" | ||
@label='user.private_message' /> | ||
{{/if}} | ||
</UserInfo> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
{{/if}} | ||
</div> | ||
</:body> | ||
</DModal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
assets/javascripts/discourse/templates/modal/event-rsvp.hbs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
# name: discourse-events | ||
# about: Allows you to manage events in Discourse | ||
# version: 0.3.0 | ||
# version: 0.3.1 | ||
# authors: Angus McLeod | ||
# contact_emails: [email protected] | ||
# url: https://github.com/paviliondev/discourse-events | ||
|