* This PR changes the user activity bookmarks stream to show a new list of bookmarks based on the Bookmark record. * If a bookmark has a name or reminder it will be shown as metadata above the topic title in the list * The categories, tags, topic status, and assigned show for each bookmarked post based on the post topic * Bookmarks can be deleted from the [...] menu in the list * As well as this, the list of bookmarks from the quick access panel is now drawn from the Bookmarks table for a user: * All of this new functionality is gated behind the enable_bookmarks_with_reminders site setting The /bookmarks/ route now redirects directly to /user/:username/activity/bookmarks-with-reminders * The structure of the Ember for the list of bookmarks is not ideal, this is an MVP PR so we can start testing this functionality internally. There is a little repeated code from topic.js.es6. There is an ongoing effort to start standardizing these lists that will be addressed in future PRs. * This PR also fixes issues with feature detection for at_desktop bookmark reminders
45 lines
1.5 KiB
Handlebars
45 lines
1.5 KiB
Handlebars
{{#d-section pageClass="user-activity" class="user-secondary-navigation" scrollTop="false"}}
|
|
{{#mobile-nav class='activity-nav' desktopClass='action-list activity-list nav-stacked' currentPath=router._router.currentPath}}
|
|
<li>
|
|
{{#link-to 'userActivity.index'}}{{i18n 'user.filters.all'}}{{/link-to}}
|
|
</li>
|
|
<li>
|
|
{{#link-to 'userActivity.topics'}}{{i18n 'user_action_groups.4'}}{{/link-to}}
|
|
</li>
|
|
<li>
|
|
{{#link-to 'userActivity.replies'}}{{i18n 'user_action_groups.5'}}{{/link-to}}
|
|
</li>
|
|
{{#if user.showDrafts}}
|
|
<li>
|
|
{{#link-to 'userActivity.drafts'}}{{i18n 'user_action_groups.15'}}{{/link-to}}
|
|
</li>
|
|
{{/if}}
|
|
<li>
|
|
{{#link-to 'userActivity.likesGiven'}}{{i18n 'user_action_groups.1'}}{{/link-to}}
|
|
</li>
|
|
{{#if user.showBookmarks}}
|
|
{{#if bookmarksWithRemindersEnabled}}
|
|
<li>
|
|
{{#link-to 'userActivity.bookmarksWithReminders'}}{{i18n 'user_action_groups.3'}}{{/link-to}}
|
|
</li>
|
|
{{else}}
|
|
<li>
|
|
{{#link-to 'userActivity.bookmarks'}}{{i18n 'user_action_groups.3'}}{{/link-to}}
|
|
</li>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{plugin-outlet name="user-activity-bottom"
|
|
connectorTagName='li'
|
|
args=(hash model=model)}}
|
|
{{/mobile-nav}}
|
|
|
|
{{/d-section}}
|
|
{{#if canDownloadPosts}}
|
|
<section class='user-additional-controls'>
|
|
{{d-button action=(action "exportUserArchive") class="btn-default" label="user.download_archive.button_text" icon="download"}}
|
|
</section>
|
|
{{/if}}
|
|
<section class='user-content'>
|
|
{{outlet}}
|
|
</section>
|