-
-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2005 from zarvox/new-admin-breadcrumbs
New admin reorganization
- Loading branch information
Showing
28 changed files
with
310 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,109 @@ | ||
<template name="adminNavPill"> | ||
<template name="adminNavItem"> | ||
{{!-- | ||
Takes as arguments: | ||
|
||
routeName: String | ||
data: String | ||
class: String | ||
--}} | ||
<li class="nav-pill {{#if currentRouteNameIs routeName}}active{{/if}}"> | ||
{{#linkTo route=routeName data=data}}{{> Template.contentBlock}}{{/linkTo}} | ||
<li class="nav-item"> | ||
{{#linkTo route=routeName class=class data=data}} | ||
{{> Template.contentBlock}} | ||
{{/linkTo}} | ||
</li> | ||
</template> | ||
|
||
<template name="newAdmin"> | ||
{{>title "(new) Admin Settings"}} | ||
{{>title "Admin panel"}} | ||
|
||
{{#if wildcardHostSeemsBroken}} | ||
<div class="wildcard-host-warning"> | ||
<div class="flash-message warning-message"> | ||
WARNING: This server seems to have its WILDCARD_HOST misconfigured. Until you fix it, you will | ||
not be able to use any apps. | ||
<a target="_blank" | ||
href="https://docs.sandstorm.io/en/latest/administering/faq/#why-do-i-see-an-error-when-i-try-to-launch-an-app-even-when-the-sandstorm-interface-works-fine"> | ||
Learn more.</a> You'll need to adjust DNS, SSL/TLS certificates, or edit the sandstorm.conf | ||
file. Once you have addressed the issue, reload this page. If you're still having problems, | ||
email us at support@sandstorm.io. | ||
email us at <a href="mailto:support@sandstorm.io">support@sandstorm.io</a>. | ||
</div> | ||
{{/if}} | ||
|
||
{{> _adminConfigureLoginServiceDialog}} | ||
<div class="admin-settings"> | ||
{{#if isUserPermitted}} | ||
<ul class="nav-pills"> | ||
{{#adminNavPill routeName="newAdminIdentity"}}Identity Providers{{/adminNavPill}} | ||
{{#adminNavPill routeName="newAdminOrganization"}}Organization Settings{{/adminNavPill}} | ||
{{#adminNavPill routeName="newAdminEmailConfig"}}Email Configuration{{/adminNavPill}} | ||
{{#adminNavPill routeName="newAdminUsers"}}Users{{/adminNavPill}} | ||
{{#adminNavPill routeName="newAdminAppSources"}}App Sources{{/adminNavPill}} | ||
{{#adminNavPill routeName="newAdminMaintenance"}}Maintenance Message{{/adminNavPill}} | ||
{{#adminNavPill routeName="newAdminStatus"}}System Status{{/adminNavPill}} | ||
{{#adminNavPill routeName="newAdminPersonalization"}}Personalization{{/adminNavPill}} | ||
{{#adminNavPill routeName="newAdminNetworkCapabilities"}}Network Capabilities{{/adminNavPill}} | ||
{{#adminNavPill routeName="newAdminStats"}}Stats{{/adminNavPill}} | ||
{{#adminNavPill routeName="newAdminFeatureKey"}}For Work{{/adminNavPill}} | ||
</ul> | ||
{{> Template.dynamic template=adminTab}} | ||
{{else}} | ||
<p> | ||
You are not logged in as admin and there isn't a valid token specified. You should | ||
either log in as an admin user or generate a token from the command line by doing | ||
`sandstorm admin-token` in order to access the admin settings page. | ||
You are not logged in as an admin. To access the admin panel, log in as an admin user or | ||
generate a token from the command line by running `sandstorm admin-token`. | ||
</p> | ||
{{/if}} | ||
</div> | ||
</template> | ||
|
||
<template name="newAdminRoot"> | ||
<h1> | ||
<ul class="admin-breadcrumbs"> | ||
<li>Admin</li> | ||
</ul> | ||
</h1> | ||
|
||
<nav> | ||
<ul class="nav-sections"> | ||
<li> | ||
<h2>Configuration</h2> | ||
<ul class="nav-items"> | ||
{{#adminNavItem routeName="newAdminIdentity"}} | ||
<div class="item-name">Identity providers</div> | ||
<div class="item-subtext">How users log in.</div> | ||
{{/adminNavItem}} | ||
{{#adminNavItem routeName="newAdminOrganization"}} | ||
<div class="item-name">Organization settings</div> | ||
<div class="item-subtext">Smoother onboarding and collaboration for larger teams.</div> | ||
{{/adminNavItem}} | ||
{{#adminNavItem routeName="newAdminEmailConfig"}} | ||
<div class="item-name">Email configuration</div> | ||
<div class="item-subtext">How email gets sent to users.</div> | ||
{{/adminNavItem}} | ||
{{#adminNavItem routeName="newAdminFeatureKey"}} | ||
<div class="item-name">Sandstorm for Work</div> | ||
<div class="item-subtext">Get a feature key and unlock advanced features.</div> | ||
{{/adminNavItem}} | ||
{{#adminNavItem routeName="newAdminPersonalization"}} | ||
<div class="item-name">Personalization</div> | ||
<div class="item-subtext">Customize a splash page, terms of service, privacy policy, | ||
etc.</div> | ||
{{/adminNavItem}} | ||
{{#adminNavItem routeName="newAdminAppSources"}} | ||
<div class="item-name">App sources</div> | ||
<div class="item-subtext">Where to look for apps and app updates.</div> | ||
{{/adminNavItem}} | ||
</ul> | ||
</li> | ||
<li> | ||
<h2>Management</h2> | ||
<ul class="nav-items"> | ||
{{#adminNavItem routeName="newAdminUsers"}} | ||
<div class="item-name">Users</div> | ||
<div class="item-subtext">Manage all users on this Sandstorm installation.</div> | ||
{{/adminNavItem}} | ||
{{#adminNavItem routeName="newAdminStatus"}} | ||
<div class="item-name">System log</div> | ||
<div class="item-subtext">View Sandstorm's debug log.</div> | ||
{{/adminNavItem}} | ||
{{#adminNavItem routeName="newAdminStats"}} | ||
<div class="item-name">Statistics</div> | ||
<div class="item-subtext">View usage statistics for this server.</div> | ||
{{/adminNavItem}} | ||
{{#adminNavItem routeName="newAdminMaintenance"}} | ||
<div class="item-name">Maintenance message</div> | ||
<div class="item-subtext">Communicate potential downtime to users</div> | ||
{{/adminNavItem}} | ||
{{#adminNavItem routeName="newAdminNetworkCapabilities"}} | ||
<div class="item-name">Network capabilities</div> | ||
<div class="item-subtext">Manage direct network access for grains.</div> | ||
{{/adminNavItem}} | ||
</ul> | ||
</li> | ||
</ul> | ||
</nav> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.