Ghost/ghost/admin/public/assets/icons/add-view.svg
Kevin Ansfield 2a77c0fe51 Added default and custom post views (filters) to the admin sidebar (#1474)
no issue

- list custom post views in collapsable sidebar navigation
  - default views: Draft, Scheduled, Published (except for contributors)
  - record expanded/collapsed state of the navigation menus in user settings via new `navigation` service
- adds `customViews` service that manages custom views
  - provides list of default views
  - gives access to "active" custom view based on current route and query params
  - manages loading/saving of custom views to user settings
- show "Add view" button in the content filter when the posts list has been filtered
- show "Edit view" button in the content filter when the posts list filter matches a saved view

Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
2020-01-30 15:35:36 +00:00

1 line
973 B
XML

<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>add view</title><g fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"><path d="M8.25 17.25h-6c-1 0-1.5-.5-1.5-1.5V2.55c0-.414.146-.768.44-1.06.292-.294.646-.44 1.06-.44h13.5c1 0 1.5.5 1.5 1.5v5.7" stroke="#000" stroke-width="1.5"/><path d="M4.2 11.8c.001-1.2.601-1.8 1.8-1.8 1.2 0 1.8.6 1.8 1.8.001 1.2-.599 1.8-1.798 1.8-1.2 0-1.8-.6-1.801-1.8zM8.5 6c0 1.2.6 1.8 1.8 1.8 1.2 0 1.8-.6 1.8-1.8 0-1.2-.6-1.8-1.8-1.8-.496 0-.92.175-1.273.527C8.676 5.078 8.5 5.503 8.5 6zM23.25 17.25c0 1.657-.586 3.071-1.757 4.243-1.172 1.171-2.586 1.757-4.243 1.757-1.657 0-3.071-.586-4.243-1.757-1.171-1.172-1.757-2.586-1.757-4.243 0-1.657.586-3.071 1.757-4.243 1.172-1.171 2.586-1.757 4.243-1.757 1.657 0 3.071.586 4.243 1.757 1.171 1.172 1.757 2.586 1.757 4.243zM17.25 14.25v6M14.25 17.25h6M7.8 11.7h2.4M8.5 6H4.2M13.8 6h-1.2" stroke="#000" stroke-width="1.5"/></g></svg>