discourse-follow/assets/javascripts/discourse/templates/follow.hbs
Osama Sayegh 9fcea5484e
DEV: Fix JS tests and deprecations (#50)
* Passing a boolean attribute as a string is deprecated
* `{{mobile-nav}}` no longer requires a `currentPath` attribute
* we need to import the `visit` helper before we can use it in tests
2022-01-27 12:02:50 +03:00

23 lines
759 B
Handlebars

{{#d-section pageClass="user-follow" class="user-secondary-navigation" scrollTop=false}}
{{#mobile-nav class="activity-nav" desktopClass="action-list follow-list nav-stacked"}}
{{#if (eq model.id currentUser.id)}}
<li>
{{#link-to "feed"}}{{i18n "user.feed.label"}}{{/link-to}}
</li>
{{/if}}
{{#if model.can_see_following}}
<li>
{{#link-to "following"}}{{i18n "user.following.label"}}{{/link-to}}
</li>
{{/if}}
{{#if (and model.can_see_followers model.allow_people_to_follow_me)}}
<li>
{{#link-to "followers"}}{{i18n "user.followers.label"}}{{/link-to}}
</li>
{{/if}}
{{/mobile-nav}}
{{/d-section}}
<section class="user-content user-follows-tab">
{{outlet}}
</section>