This repository has been archived by the owner on Nov 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use new ember-tooltips method for creating tooltips
Events needed to get a top level element otherwise the tip wasn't hovering over the event. Probably because the location gets bounced around by the style too much.
- Loading branch information
Showing
3 changed files
with
53 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,55 @@ | ||
{{#if event}} | ||
{{#if recentlyUpdated}} | ||
{{fa-icon 'exclamation-circle' class="recently-updated-icon"}} | ||
{{/if}} | ||
|
||
{{#unless isMonth}} | ||
{{#if event.isScheduled}} | ||
{{fa-icon 'files-o'}} | ||
{{/if}} | ||
{{/unless}} | ||
|
||
<span class='ilios-calendar-event-time'> | ||
{{#if isIlm}} | ||
<span class='ilios-calendar-event-start'> | ||
ILM - Due: {{moment-format event.startDate 'h:mma'}} | ||
</span> | ||
{{else}} | ||
<span class='ilios-calendar-event-start'> | ||
{{moment-format event.startDate 'h:mma'}} | ||
</span> | ||
<span class='ilios-calendar-event-end'> | ||
- {{moment-format event.endDate 'h:mma'}} | ||
</span> | ||
<div> | ||
{{#tooltip-on-element}} | ||
{{{tooltipContent}}} | ||
{{/tooltip-on-element}} | ||
{{#if recentlyUpdated}} | ||
{{fa-icon 'exclamation-circle' class="recently-updated-icon"}} | ||
{{/if}} | ||
</span> | ||
|
||
{{#unless event.isMulti}} | ||
<span class='ilios-calendar-event-location'> | ||
{{#if event.location.length}} | ||
{{event.location}}: | ||
{{#unless isMonth}} | ||
{{#if event.isScheduled}} | ||
{{fa-icon 'files-o'}} | ||
{{/if}} | ||
{{/unless}} | ||
|
||
<span class='ilios-calendar-event-time'> | ||
{{#if isIlm}} | ||
<span class='ilios-calendar-event-start'> | ||
ILM - Due: {{moment-format event.startDate 'h:mma'}} | ||
</span> | ||
{{else}} | ||
<span class='ilios-calendar-event-start'> | ||
{{moment-format event.startDate 'h:mma'}} | ||
</span> | ||
<span class='ilios-calendar-event-end'> | ||
- {{moment-format event.endDate 'h:mma'}} | ||
</span> | ||
{{/if}} | ||
</span> | ||
{{/unless}} | ||
|
||
<span class='ilios-calendar-event-name'> | ||
{{event.name}}{{#if event.isMulti}}, <em>{{multiplePhrase}}</em>{{/if}} | ||
</span> | ||
{{! list instructors in day view, if available }} | ||
{{#if isDay}} | ||
{{#if event.instructors}} | ||
<span class="ilios-calendar-event-instructors"> | ||
{{taughtByPhrase}} | ||
{{formattedInstructors}} | ||
{{#unless event.isMulti}} | ||
<span class='ilios-calendar-event-location'> | ||
{{#if event.location.length}} | ||
{{event.location}}: | ||
{{/if}} | ||
</span> | ||
{{/unless}} | ||
|
||
<span class='ilios-calendar-event-name'> | ||
{{event.name}}{{#if event.isMulti}}, <em>{{multiplePhrase}}</em>{{/if}} | ||
</span> | ||
{{! list instructors in day view, if available }} | ||
{{#if isDay}} | ||
{{#if event.instructors}} | ||
<span class="ilios-calendar-event-instructors"> | ||
{{taughtByPhrase}} | ||
{{formattedInstructors}} | ||
</span> | ||
{{/if}} | ||
{{#if event.courseTitle}} | ||
<span class="ilios-calendar-event-coursetitle">{{event.courseTitle}}</span> | ||
{{/if}} | ||
{{/if}} | ||
{{#if event.courseTitle}} | ||
<span class="ilios-calendar-event-coursetitle">{{event.courseTitle}}</span> | ||
{{/if}} | ||
{{/if}} | ||
</div> | ||
{{/if}} |
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