mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
e48b5edbb4
Closes #4032 - Created "mobile" views: `parent-view`, `content-view` and `index-view` - `mobile/parent-view` has three callbacks for managing layout, and a mediaQuery listener to keep in sync with the user - content-view and index-view use their parent-views callbacks to bring themselves into and out of the viewport as appropriate - fixed media queries for post content list from 800px to 900px - Created `mobile-index-route` to intelligently transition to a new route on desktops (used by both PostsIndexRoute and SettingsIndexRoute) - Extract mobile interactions from settings views to new mobile utility views - `js-` prefixed settings view transitions - removed unused openEditor action from PostsRoute - removed unused mobile util "responsiveAction"
24 lines
878 B
Handlebars
24 lines
878 B
Handlebars
<header class="page-header">
|
|
<button class="menu-button js-menu-button" {{action "toggleGlobalMobileNav"}}><span class="sr-only">Menu</span></button>
|
|
<h2 class="page-title">Settings</h2>
|
|
</header>
|
|
|
|
<div class="page-content">
|
|
<nav class="settings-menu js-settings-menu">
|
|
<ul>
|
|
{{#unless session.user.isAuthor}}
|
|
{{#unless session.user.isEditor}}
|
|
{{gh-activating-list-item route="settings.general" title="General" classNames="settings-menu-general icon-settings"}}
|
|
{{/unless}}
|
|
|
|
{{gh-activating-list-item route="settings.users" title="Users" classNames="settings-menu-users icon-users"}}
|
|
|
|
{{/unless}}
|
|
|
|
{{gh-activating-list-item route="settings.about" title="About" classNames="settings-menu-about icon-ghost"}}
|
|
</ul>
|
|
</nav>
|
|
|
|
{{outlet}}
|
|
</div>
|