Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Merge pull request #49 from jrjohnson/update-tooltips
Browse files Browse the repository at this point in the history
Use new ember-tooltips method for creating tooltips
  • Loading branch information
stopfstedt authored Jun 20, 2016
2 parents 1f969f0 + 0f508d3 commit 2d0a9bf
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 44 deletions.
3 changes: 3 additions & 0 deletions addon/templates/components/ilios-calendar-event-month.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{{#if event}}
{{#tooltip-on-component}}
{{{tooltipContent}}}
{{/tooltip-on-component}}
{{#if recentlyUpdated}}
{{fa-icon 'exclamation' class="recently-updated-icon"}}
{{/if}}
Expand Down
87 changes: 46 additions & 41 deletions addon/templates/components/ilios-calendar-event.hbs
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}}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"ember-cli-clipboard": "0.3.2",
"ember-cli-content-security-policy": "0.5.0",
"ember-cli-dependency-checker": "^1.2.0",
"ember-font-awesome": "2.1.1",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.4.0",
"ember-cli-moment-shim": "1.3.0",
Expand All @@ -39,11 +38,14 @@
"ember-disable-prototype-extensions": "^1.1.0",
"ember-disable-proxy-controllers": "^1.0.1",
"ember-export-application-global": "^1.0.5",
"ember-font-awesome": "2.1.1",
"ember-load-initializers": "^0.5.1",
"ember-moment": "6.1.0",
"ember-resolver": "^2.0.3",
"ember-tooltips": "^0.7.0",
"loader.js": "^4.0.1"
"ember-tether": "0.3.1",
"ember-tooltips": "1.0.0",
"ember-try": "0.2.2",
"loader.js": "^4.0.0"
},
"keywords": [
"ember-addon"
Expand Down

0 comments on commit 2d0a9bf

Please sign in to comment.