summaryrefslogtreecommitdiff
path: root/views/event.handlebars
diff options
context:
space:
mode:
authorDarius Kazemi <darius.kazemi@gmail.com>2019-12-15 13:07:50 -0800
committerDarius Kazemi <darius.kazemi@gmail.com>2019-12-15 13:07:50 -0800
commitf1e62ef6fa94c3cfb6afadd0dc865f5c502a6a60 (patch)
tree11cd3ace4b401c01cc5d779b938e6285bdb05f8d /views/event.handlebars
parentb8d8d5fcd29f3c5492491e3482319e0efc838030 (diff)
Big refactor and new features
Diffstat (limited to 'views/event.handlebars')
-rwxr-xr-xviews/event.handlebars23
1 files changed, 21 insertions, 2 deletions
diff --git a/views/event.handlebars b/views/event.handlebars
index e2529b8..a57f62a 100755
--- a/views/event.handlebars
+++ b/views/event.handlebars
@@ -81,6 +81,15 @@
<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>
@@ -125,7 +134,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}}><a href="{{this.id}}"><span class="attendee-name">{{this.name}}</span></a>{{#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}}
@@ -246,7 +255,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>
@@ -398,6 +411,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");