-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/jdabtieu/CTFOJ into master
- Loading branch information
Showing
6 changed files
with
59 additions
and
17 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block title %}Admin Console{% endblock %} | ||
|
||
{% block main %} | ||
<h1>Admin Console</h1> | ||
<a class="btn btn-primary" href="/admin/submissions" role="button">Submissions</a> | ||
<br> | ||
<br> | ||
<a class="btn btn-primary" href="/admin/users" role="button">Users</a> | ||
<br> | ||
<br> | ||
<a class="btn btn-primary" href="/admin/createannouncement" role="button">Create Announcement</a> | ||
<br> | ||
<br> | ||
<a class="btn btn-primary" href="/admin/createcontest" role="button">Create Contest</a> | ||
<br> | ||
<br> | ||
<a class="btn btn-primary" href="/admin/createproblem" role="button">Create Problem</a> | ||
<br> | ||
<br> | ||
<a class="btn btn-primary" href="/problems/draft" role="button">Draft Problems</a> | ||
<hr> | ||
<p>The only thing maintenance mode should be used for is to make significant changes to the database that requires nobody writes to it during that time, as well as 5 minutes before a reboot to let users know that the site will be down momentarily. If the application is rebooted, maintenance mode will turn itself off.</p> | ||
{% if maintenance_mode %} | ||
<a class="btn btn-primary" href="/admin/maintenance" role="button">Disable Maintenance Mode</a> | ||
{% else %} | ||
<a class="btn btn-primary" href="/admin/maintenance" role="button">Enable Maintenance Mode</a> | ||
{% endif %} | ||
{% endblock %} |
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