-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #289 - implement popover menu in navbar with starred courses
- Loading branch information
1 parent
ab6eeea
commit 4c0832b
Showing
10 changed files
with
193 additions
and
1 deletion.
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
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
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{{< core/popover_region }} | ||
{{$classes}}popover-region-favourites{{/classes}} | ||
{{$attributes}}id="nav-favourites-popover-container" {{/attributes}} | ||
|
||
{{$togglelabel}}{{#str}} favourites {{/str}}{{/togglelabel}} | ||
{{$togglecontent}} | ||
<i class="fa fa-star icon" title="{{#str}}favourites{{/str}}"></i> | ||
{{/togglecontent}} | ||
|
||
{{$containerlabel}}{{#str}} favourites {{/str}}{{/containerlabel}} | ||
|
||
|
||
{{$content}} | ||
<div class=""> | ||
{{#favourites}} | ||
<a class="dropdown-item {{^visible}}dimmed{{/visible}}" href="{{{url}}}" title="{{{fullname}}}">{{{fullname}}}</a> | ||
{{/favourites}} | ||
</div> | ||
{{/content}} | ||
{{/ core/popover_region }} | ||
|
||
{{#js}} | ||
require(['jquery', 'core/popover_region_controller'], function($, Controller) { | ||
var container = $('#nav-favourites-popover-container'); | ||
var controller = new Controller(container); | ||
}); | ||
{{/js}} |
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