Repository navigation
Add a System nav item for the system admin and move All organizations there #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+386
−84
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <title>hototel - system</title> | ||
| <link rel="stylesheet" href="/static/app.css"> | ||
| <link rel="icon" href="/static/icon.svg"> | ||
| <link rel="stylesheet" href="/static/admin.css"> | ||
| </head> | ||
| <body data-page="system"> | ||
| <header class="top"></header> | ||
| <div class="wrap"> | ||
| <div class="modal-err" id="err" hidden></div> | ||
|
|
||
| <!-- Platform-level views: what the whole server holds, across every | ||
| organization. Only the system admin reaches this page; the server | ||
| sends everyone else to their dashboard. The Organization page stays | ||
| about one team. --> | ||
| <div class="card"> | ||
| <div class="card-head"> | ||
| <h2>Platform</h2> | ||
| <span class="spacer"></span> | ||
| <span class="flabel">System admin</span> | ||
| </div> | ||
| <div class="totals" id="totals"> | ||
| <div class="total"><span class="num" id="totOrgs"> </span><span class="lbl">organizations</span></div> | ||
| <div class="total"><span class="num" id="totMembers"> </span><span class="lbl">members</span></div> | ||
| <div class="total"><span class="num" id="totEmpty"> </span><span class="lbl">empty organizations</span></div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="card"> | ||
| <div class="card-head"> | ||
| <h2>All organizations</h2> | ||
| <span class="spacer"></span> | ||
| <span class="flabel" id="orgCount"></span> | ||
| </div> | ||
| <div class="scroller"> | ||
| <table class="admintable" id="orgs"> | ||
| <thead> | ||
| <tr class="head"><th>Organization</th><th>Slug</th><th>Members</th><th>Created</th><th></th></tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr class="placeholder"><td><div class="skel skel-cell"></div></td><td><div class="skel skel-cell"></div></td><td><div class="skel skel-cell"></div></td><td><div class="skel skel-cell"></div></td><td></td></tr> | ||
| <tr class="placeholder"><td><div class="skel skel-cell"></div></td><td><div class="skel skel-cell"></div></td><td><div class="skel skel-cell"></div></td><td><div class="skel skel-cell"></div></td><td></td></tr> | ||
| <tr class="placeholder"><td><div class="skel skel-cell"></div></td><td><div class="skel skel-cell"></div></td><td><div class="skel skel-cell"></div></td><td><div class="skel skel-cell"></div></td><td></td></tr> | ||
| </tbody> | ||
| </table> | ||
| </div> | ||
| <div class="cardfoot"> | ||
| <input id="newOrgName" type="text" placeholder="Organization name" | ||
| aria-label="Organization name"> | ||
| <input id="newOrgOwner" type="email" placeholder="Owner email (optional)" | ||
| aria-label="Owner email (optional)"> | ||
| <button class="refresh primary" id="orgCreate" type="button">Create organization</button> | ||
| </div> | ||
| <div class="modal-err" id="orgErr" hidden></div> | ||
| <div class="linkout" id="orgLinkOut" hidden> | ||
| <input id="orgLinkValue" readonly aria-label="Invite link for the new organization's owner"> | ||
| <button class="refresh" id="orgLinkCopy" type="button">Copy</button> | ||
| </div> | ||
| </div> | ||
|
|
||
| <footer class="foot"> | ||
| Creating an organization provisions a database; deleting one keeps it. | ||
| Only empty organizations can be deleted, and never your own. | ||
| </footer> | ||
| </div> | ||
| <script src="/static/nav.js"></script> | ||
| <script src="/static/system.js"></script> | ||
| </body> | ||
| </html> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Add the
org_slugcheck that/adminhas at line 2947, before the system admin check. (not blocking)A system admin with no organization gets
system.htmlfrom this route./api/system/statethen answers 409 from the sharedorg_sluggate at line 3035, so the page shows only an error banner. The fix is to redirect to/setup?next=...here, the same way/admindoes.