Commit 60ef242c authored by David Haynes's avatar David Haynes 🙆
Browse files

New directories for non-app templates

- improved organization by seperating out non-app templates from app templates
parent 0be4e426
{% extends 'layouts/base.html' %}
{% block title %}
Go - Administration Panel
{% endblock %}
{% block content %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-md-12">
<h1><strong>Moderation Panel</strong></h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h2>Users awaiting moderation</h2>
<form method="post" action="useradmin">{% csrf_token %}
<table class="table table-striped table-hover ">
<thead>
<tr>
<th>Selected</th>
<th>Username</th>
<th>Full Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for unapproved in need_approval %}
<tr>
<td><input type="checkbox" name="username" value={{ unapproved.username }}></td>
<td>{{ unapproved.username }}</td>
<td>{{ unapproved.full_name }}</td>
<td>{{ unapproved.description|default:"No description provided" }}</td>
</tr>
{% empty %}
<tr>
<td>none</td>
<td>none</td>
<td>none</td>
<td>none</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="form-group">
<input type="submit" name="_approve" value="Approve" class="btn btn-primary">
<input type="submit" name="_deny" value="Deny" class="btn btn-default">
</div>
</form>
</div>
</div>
{% endblock %}
{% extends 'layouts/base.html' %}
{% block title %}
404 Error - Page Not Found
{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-10 col-md-offset-1 text-center">
<h1>404 Error - Page Not Found</h1>
<img id="squirrels" src="/static/img/squirrels.png">
<a href="/"><img src="/static/img/acorn.png" style="width:10vw;"></a>
</div>
</div>
{% endblock %}
{% extends 'layouts/base.html' %}
{% block title %}
500 Error - Internal Server Error
{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-10 col-md-offset-1 text-center">
<h1>500 Error - Internal Server Error</h1>
<img id="squirrels" src="/static/img/squirrels.png">
<a href="/"><img src="/static/img/acorn.png" style="width:10vw;"></a>
</div>
</div>
{% endblock %}
{% extends 'layouts/base.html' %}
{% block title %}
Go - About
{% endblock %}
{% block content %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-md-12">
<h1><strong>About</strong></h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<p>
Mason Go is a product of the George Mason University
<a href="http://srct.gmu.edu">Student-Run Computing and Technology</a>
organization. Go provides Mason-branded URL shortening for administration,
ULife groups, and student organizations. Access is moderated by SRCT
administrators.
</p>
<p>
{% if user.is_authenticated %}
You can <a href="{% url 'signup' %}">sign up</a> for use.
{% else %}
Please <a href="{% url 'go_login' %}">log in</a> in order to submit an access
request.
{% endif %}
</p>
</div>
</div>
{% endblock %}
{% extends 'layouts/base.html' %}
{% block title %}
Go - A URL Shortener
{% endblock %}
{% block content %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-md-12">
<h1><strong>Shorten URL</strong></h1>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="well">
<form class="form-horizontal" method="post" action="{%url 'index'%}">
{% csrf_token %}
<fieldset>
{% if form.non_field_errors %}
<div class="form-group has-error">
<div class="col-md-12">
{% for error in form.non_field_errors %}
<span class="help-block">{{ error }}</p>
{% endfor %}
</div>
</div>
{% endif %}
{% if form.target.errors %}
<div class="form-group has-error">
{% else %}
<div class="form-group">
{% endif %}
<div class="col-md-4">
<label class="control-label" for="{{ form.target.id_for_label }}">
{{ form.target.label }}</label>
</div>
<div class="col-md-8">
{{ form.target }}
{% for error in form.target.errors %}
<span class="help-block">{{error}}</span>
{% endfor %}
</div>
</div>
{% if form.short.errors %}
<div class="form-group has-error">
{% else %}
<div class="form-group">
{% endif %}
<div class="col-md-4">
<label class="control-label" for="{{ form.short.id_for_label }}">
{{ form.short.label }}</label>
</div>
<div class="col-md-8">
{{ form.short }}
{% for error in form.short.errors %}
<span class="help-block">{{error}}</span>
{% endfor %}
</div>
</div>
{% if form.expires.errors %}
<div class="form-group has-error">
{% else %}
<div class="form-group">
{% endif %}
<div class="col-md-4">
<label class="control-label" for="{{ form.expires.id_for_label }}">
{{ form.expires.label }}</label>
</div>
<div class="col-md-8">
{% for option in form.expires %}
<p>
{{ option }}
</p>
{% endfor %}
{% for error in form.expires.errors %}
<span class="help-block">{{error}}</span>
{% endfor %}
</div>
</div>
<div class="form-group">
<div class="col-md-12">
<input type="submit" value="Shorten"
class="btn btn-primary btn-lg btn-block" />
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
{% endblock %}
{% load piwik_tags %}
{% load staticfiles %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
{% block title %}
{% endblock %}
</title>
<meta charset="UTF-8">
<meta name="keywords" content="George Mason, URL shortener, URL">
<meta name="description" content="University branded URL shortener.">
<meta name="author" content="Jean Michel Rouly">
<meta name="robots" content="all">
<link href="http://fonts.googleapis.com/css?family=Carrois+Gothic" rel="stylesheet" type="text/css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="{% static "css/normalize.css" %}" />
<link rel="stylesheet" href="{% static "css/bootswatch.min.css" %}" />
<link rel="icon" type="image/jpg" href="{% static "img/favicon.ico"%}" />
<script src="{% static "js/jquery.min.js" %}"></script>
<script src="{% static "js/bootstrap.min.js" %}"></script>
</head>
<body>
{% include 'layouts/navigation.html' %}
<div class="container">
{% block content %}
{% endblock %}
{% include 'layouts/footer.html' %}
</div>
{% tracking_code %}
</body>
</html>
<footer>
<div class="row">
<div class="col-lg-12 text-center">
A project of
<a href="http://srct.gmu.edu/">GMU SRCT</a>.
<a href="http://www.apache.org/licenses/LICENSE-2.0">Some rights reserved</a>.
</div>
</div>
</footer>
{% load go_extras %}
<div class="navbar navbar-default">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{% url 'index' %}">Go</a>
</div>
<div class="navbar-collapse collapse navbar-responsive-collapse">
<ul class="nav navbar-nav">
<li><a href="{% url 'about' %}">About</a></li>
{% if user.is_authenticated %}
<li><a href="{% url 'my_links' %}">My Links</a></li>
{% if not user|is_registered %}
<li><a href="{% url 'signup' %}">Register</a></li>
{% endif %}
<li><a href="{% url 'go_logout' %}">Log Out</a></li>
{% else %}
<li><a href="{% url 'go_login' %}">Log In</a></li>
{% endif %}
</ul>
<ul class="nav navbar-nav navbar-right">
{% if user.is_staff and user|is_approved %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Administration<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="{% url 'useradmin' %}">User Moderation</a></li>
<li><a href="{% url 'signup' %}">Signup</a></li>
</ul>
</li>
{% endif %}
</ul>
</div>
</div>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment