This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/templates/group/messages.hbs
Joffrey JAFFEUX 8dfd0e0374 DEV: uses private API for currentPath (#7911)
* DEV: uses with private API for currentPath

router.currentRouteName as a slightly different API and application.currentPath is deprecated

* another fix
2019-07-18 17:00:39 -04:00

19 lines
514 B
Handlebars

<section class="user-secondary-navigation">
{{#mobile-nav class='messages-nav' desktopClass='nav-stacked action-list' currentPath=router._router.currentPath}}
<li>
{{#link-to 'group.messages.inbox' model.name}}
{{i18n 'user.messages.inbox'}}
{{/link-to}}
</li>
<li>
{{#link-to 'group.messages.archive' model.name}}
{{i18n 'user.messages.archive'}}
{{/link-to}}
</li>
{{/mobile-nav}}
</section>
<section class="user-content">
{{outlet}}
</section>