diff options
author | Darius Kazemi <darius.kazemi@gmail.com> | 2020-01-06 22:42:43 -0800 |
---|---|---|
committer | Darius Kazemi <darius.kazemi@gmail.com> | 2020-01-06 22:42:43 -0800 |
commit | 8138b5757bed1beb9c21f1e32a3fc9920e989f49 (patch) | |
tree | 729c9c358a06853418be5b00458ee9b0f36ffa49 /views/event.handlebars | |
parent | c5835cbdbcfe3abda637e298a89b36ebb058c22a (diff) | |
parent | 783a5fbc270452148a6bcc92cb37469e6da349d7 (diff) |
Merge branch 'master' of github.com:dariusk/gathio into newmaster
Diffstat (limited to 'views/event.handlebars')
-rwxr-xr-x | views/event.handlebars | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/views/event.handlebars b/views/event.handlebars index 842239f..0b49808 100755 --- a/views/event.handlebars +++ b/views/event.handlebars @@ -67,11 +67,20 @@ <span class="fa-li"> <i class="fas fa-fw fa-share-square"></i> </span> - <a href="https://gath.io/{{eventData.id}}">gath.io/{{eventData.id}}</a> - <button type="button" id="copyEventLink" class="eventInformationAction btn btn-outline-secondary btn-sm" data-clipboard-text="https://gath.io/{{eventData.id}}"> + <a href="https://{{domain}}/{{eventData.id}}">{{domain}}/{{eventData.id}}</a> + <button type="button" id="copyEventLink" class="eventInformationAction btn btn-outline-secondary btn-sm" data-clipboard-text="https://{{domain}}/{{eventData.id}}"> <i class="fas fa-copy"></i> Copy </button> </li> + <li> + <span class="fa-li"> + <i class="fas fa-fw fa-share-square"></i> + </span> + @{{eventData.id}}@{{domain}} + <button type="button" id="copyAPLink" class="eventInformationAction btn btn-outline-secondary btn-sm" data-clipboard-text="@{{eventData.id}}@{{domain}}"> + <i class="fas fa-copy"></i> Copy + </button> + </li> </ul> </div> </div> @@ -135,7 +144,7 @@ {{#if eventAttendees}} <ul class="attendeesList"> {{#each eventAttendees}} - <li{{#if ../editingEnabled}} data-attendee-name="{{this.name}}" data-attendee-id="{{this._id}}"{{/if}}><span class="attendee-name">{{this.name}}</span>{{#if ../editingEnabled}} <a href="#" class="remove-attendee" data-toggle="modal" data-target="#removeAttendeeModal" title="Remove user from event"><i class="fas fa-user-times"></i></a>{{/if}}</li> + <li{{#if ../editingEnabled}} data-attendee-name="{{this.name}}" data-attendee-id="{{this._id}}"{{/if}}>{{#if this.email}}<span class="attendee-name">{{this.name}}</span>{{else}}<a href="{{this.id}}"><span class="attendee-name">{{this.name}}</span></a>{{/if}}{{#if ../editingEnabled}} <a href="#" class="remove-attendee" data-toggle="modal" data-target="#removeAttendeeModal" title="Remove user from event"><i class="fas fa-user-times"></i></a>{{/if}}</li> {{/each}} </ul> {{else}} @@ -259,7 +268,11 @@ <div class="comment"> <div class="row commentContainer"> <div class="col-lg commentText"> - <p class="mb-0"><strong>{{this.author}}</strong> <small class="commentTimestamp text-muted">{{this.timestamp}}</small></p> + {{#if this.actorId}} + <p class="mb-0"><a href="{{this.actorId}}"><strong>{{this.author}}</strong></a> <a href="{{this.activityId}}"><small class="commentTimestamp text-muted">{{this.timestamp}}</small></a></p> + {{else}} + <p class="mb-0"><strong>{{this.author}}</strong> <small class="commentTimestamp text-muted">{{this.timestamp}}</small></p> + {{/if}} <p>{{this.content}}</p> {{#if this.replies}} <hr> @@ -440,6 +453,12 @@ $(this).html('<i class="fas fa-copy"></i> Copied!'); setTimeout(function(){ $("#copyEventLink").html('<i class="fas fa-copy"></i> Copy');}, 5000); }) + new ClipboardJS('#copyAPLink'); + $("#copyAPLink").click(function(){ + console.log('hhhhh') + $(this).html('<i class="fas fa-copy"></i> Copied!'); + setTimeout(function(){ $("#copyAPLink").html('<i class="fas fa-copy"></i> Copy');}, 5000); + }) $(".daysToDeletion").html(moment("{{eventEndISO}}").add(7, 'days').fromNow()); if ($("#joinCheckbox").is(':checked')){ $("#maxAttendeesCheckboxContainer").css("display","flex"); |