diff options
| author | lowercasename <raphaelkabo@gmail.com> | 2019-08-24 11:48:55 +0100 | 
|---|---|---|
| committer | lowercasename <raphaelkabo@gmail.com> | 2019-08-24 11:48:55 +0100 | 
| commit | fd018d54b38c89426bd7ff9b42203b8475c16db8 (patch) | |
| tree | d4864c92c9a727234c9d6d2dba7961891441671d /views | |
| parent | 5c16bf37dca9f9ce1acaf2a9cf65290f40a9d142 (diff) | |
Some tweaks to event page display
Diffstat (limited to 'views')
| -rwxr-xr-x | views/event.handlebars | 25 | ||||
| -rwxr-xr-x | views/layouts/main.handlebars | 5 | 
2 files changed, 19 insertions, 11 deletions
diff --git a/views/event.handlebars b/views/event.handlebars index 9314c09..1b25f20 100755 --- a/views/event.handlebars +++ b/views/event.handlebars @@ -23,9 +23,13 @@  				<span class="fa-li">  					<i class="fas fa-map-marker-alt"></i>  				</span> -				{{eventData.location}} -				<a href="http://maps.google.com/?q={{parsedLocation}}" class="eventInformationAction btn btn-outline-secondary btn-sm"> -					<i class="fas fa-map-marker-alt"></i> Find on Google Maps +				{{eventData.location}}<br /> +				<a target="_blank" href="http://maps.google.com/?q={{parsedLocation}}" class="eventInformationAction btn btn-outline-secondary btn-sm"> +					<i class="fas fa-map-marked"></i> Show on Google Maps +				</a> +				  +				<a target="_blank" href="https://www.openstreetmap.org/search?query={{parsedLocation}}" class="eventInformationAction btn btn-outline-secondary btn-sm"> +					<i class="fas fa-map-marked"></i> Show on OpenStreetMap  				</a>  			</li>  			{{#if eventHasHost}} @@ -41,13 +45,14 @@  					<i class="far fa-fw fa-calendar-alt"></i>  				</span>  				{{{displayDate}}} -				<a href="http://www.google.com/calendar/event?action=TEMPLATE&dates={{parsedStart}}%2F{{parsedEnd}}&text={{escapedName}}&location={{parsedLocation}}&ctz={{timezone}}" class="eventInformationAction btn btn-outline-secondary btn-sm"> -					<i class="far fa-calendar-plus"></i> Add to Google Calendar -				</a>  				<br>  				<span class="text-muted">  					{{#if eventHasBegun}}{{#unless eventHasConcluded}}Started {{else}}Ended {{/unless}}{{/if}}{{fromNow}}  				</span> +				<br /> +				<a href="http://www.google.com/calendar/event?action=TEMPLATE&dates={{parsedStart}}%2F{{parsedEnd}}&text={{escapedName}}&location={{parsedLocation}}&ctz={{timezone}}" class="eventInformationAction btn btn-outline-secondary btn-sm"> +					<i class="far fa-calendar-plus"></i> Add to Google Calendar +				</a>  			</li>  			{{#if eventData.url}}  				<li> @@ -95,17 +100,17 @@  {{#if eventData.usersCanAttend}}  <div class="card mb-4" id="eventAttendees"> -	<h5 class="card-header">Attendees {{#if eventData.attendees}}({{eventData.attendees.length}}){{/if}} +	<h5 class="card-header">Attendees {{#if eventAttendees}}({{eventAttendees.length}}){{/if}}  		<div class="btn-group" role="group" aria-label="Attendance controls">  			<button type="button" id="attendEvent" class="btn btn-success" data-toggle="modal" data-target="#attendModal"><i class="fas fa-user-plus"></i> Add me</button>  			<button type="button" id="unattendEvent" class="btn btn-secondary" data-toggle="modal" data-target="#unattendModal"><i class="fas fa-user-times"></i> Remove me</button>  		</div>  	</h5>  	<div class="card-body"> -		{{#if eventData.attendees}} +		{{#if eventAttendees}}  			<ul class="attendeesList"> -				{{#each eventData.attendees}} -					<li{{#if ../editingEnabled}} data-attendee-name="{{this.name}}" data-attendee-id="{{this._id}}"{{/if}}>{{this.name}}{{#if ../editingEnabled}}<a href="#" id="removeAttendee" data-toggle="modal" data-target="#removeAttendeeModal"><i class="fas fa-user-times"></i></a>{{/if}}</li> +				{{#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"><i class="fas fa-user-times"></i></a>{{/if}}</li>  				{{/each}}  			</ul>  		{{else}} diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars index a7c4321..06bb146 100755 --- a/views/layouts/main.handlebars +++ b/views/layouts/main.handlebars @@ -74,7 +74,10 @@  						{{{body}}}  					</div>  					<div id="footerContainer"> -						<small class="text-muted"><a href="https://github.com/lowercasename/gathio">GitHub</a> · Made with <i class="far fa-heart"></i> by <a href="http://raphaelkabo.com">Raphael</a> · Need help? <a href="mailto:support@gath.io">Email us</a>.</small> +						<small class="text-muted"> +							<a href="https://github.com/lowercasename/gathio">GitHub</a> · Made with <i class="far fa-heart"></i> by <a href="http://raphaelkabo.com">Raphael</a> · Need help? <a href="mailto:support@gath.io">Email us</a>.<br /> +							If you like gathio, you might like <strong><a href="http://sweet.sh/" style="color:#ed5e5e;">sweet</a></strong>, my utopian social network. +						</small>  					</div>  				</div>  			</div>  | 
