mirror of
https://ghfast.top/https://github.com/discourse/discourse-follow.git
synced 2026-07-15 11:36:38 +08:00
* 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
23 lines
759 B
Handlebars
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>
|