titles: fix all titles where needful

pull/2/head
justcool393 2022-11-19 16:20:38 -06:00
parent c9064fbedc
commit eafae40aca
30 changed files with 30 additions and 234 deletions

View File

@ -1,12 +1,6 @@
{% extends "default.html" %}
{% block title %}
<title>{{SITE_NAME}}</title>
{% endblock %}
{% block pagetitle %}{{SITE_NAME}}{% endblock %}
{% block customPadding %}px-3{% endblock %}
{% block content %}
<h3 class="pb-2 mt-2">Admin Tools</h3>

View File

@ -1,12 +1,6 @@
{% extends "default.html" %}
{% block title %}
<title>API App Administration</title>
{% endblock %}
{% block pagetitle %}API App Administration{% endblock %}
{% block content %}
<div class="row">
<div class="col col-lg-8">
<div class="settings">

View File

@ -1,12 +1,6 @@
{% extends "default.html" %}
{% block title %}
<title>API App Administration</title>
{% endblock %}
{% block pagetitle %}API App Administration{% endblock %}
{% block content %}
<div class="row">
<div class="col col-lg-8">
<div class="settings">

View File

@ -1,22 +1,12 @@
{% extends "userpage.html" %}
{% block pagetype %}userpage{% endblock %}
{% block desktopBanner %}{% endblock %}
{% block desktopUserBanner %}{% endblock %}
{% block mobileUserBanner %}{% endblock %}
{% block title %}
<title>Image feed</title>
{% endblock %}
{% block pagetitle %}Image feed{% endblock %}
{% block content %}
<div class="row no-gutters">
<div class="col">
{% block listing %}
<div class="posts">
{% include "submission_listing.html" %}

View File

@ -1,12 +1,6 @@
{% extends "admin/removed_posts.html" %}
{% block title %}
<title>Removed Comments</title>
{% endblock %}
{% block pagetitle %}Removed Comments{% endblock %}
{% block listing %}
<div class="posts">
{% with comments=listing %}
{% include "comments.html" %}
@ -21,5 +15,4 @@
</div>
{% endif %}
</div>
{% endblock %}

View File

@ -1,17 +1,10 @@
{% extends "userpage.html" %}
{% block pagetype %}userpage{% endblock %}
{% block desktopBanner %}{% endblock %}
{% block desktopUserBanner %}{% endblock %}
{% block mobileUserBanner %}{% endblock %}
{% block title %}
<title>Removed Posts</title>
{% endblock %}
{% block pagetitle %}Removed Posts{% endblock %}
{% block content %}
<ul class="nav post-nav py-2">
<li class="nav-item">
<a class="nav-link {% if request.path=="/admin/removed/posts" %} active{% endif %}" href="/admin/removed/posts">
@ -24,11 +17,8 @@
</a>
</li>
</ul>
<div class="row no-gutters">
<div class="col">
{% block listing %}
<div class="posts">
{% include "submission_listing.html" %}
@ -37,7 +27,6 @@
</div>
</div>
{% endblock %}
{% block pagenav %}
<nav aria-label="Page navigation">
<ul class="pagination pagination-sm py-3 pl-3 mb-0">

View File

@ -1,12 +1,6 @@
{% extends "admin/reported_posts.html" %}
{% block title %}
<title>Reported Comments</title>
{% endblock %}
{% block pagetitle %}Reported Comments{% endblock %}
{% block listing %}
<div class="posts">
{% with comments=listing %}
{% include "comments.html" %}
@ -21,5 +15,4 @@
</div>
{% endif %}
</div>
{% endblock %}

View File

@ -1,17 +1,10 @@
{% extends "userpage.html" %}
{% block pagetype %}userpage{% endblock %}
{% block desktopBanner %}{% endblock %}
{% block desktopUserBanner %}{% endblock %}
{% block mobileUserBanner %}{% endblock %}
{% block title %}
<title>Reported Posts</title>
{% endblock %}
{% block pagetitle %}Reported Posts{% endblock %}
{% block content %}
<ul class="nav post-nav py-2">
<li class="nav-item">
<a class="nav-link {% if request.path=="/admin/reported/posts" %} active{% endif %}" href="/admin/reported/posts">
@ -26,9 +19,7 @@
</ul>
<div class="row no-gutters">
<div class="col">
{% block listing %}
<div class="posts">
{% include "submission_listing.html" %}

View File

@ -1,9 +1,5 @@
{% extends "default.html" %}
{% block title %}
<title>{{SITE_NAME}} - API</title>
{% endblock %}
{% block pagetitle %}API{% endblock %}
{% block content %}
<h1 class="mt-3 mb-1">API Guide for Bots</h1>

View File

@ -1,6 +1,4 @@
{% extends "default.html" %} {% block title %}
<title>{{game.capitalize()}}</title>
{% endblock %} {% block content %}
{% extends "default.html" %} {% block pagetitle %}{{game.capitalize()}}{% endblock %} {% block content %}
<style>
.game_screen-title {
display: flex;

View File

@ -1,7 +1,5 @@
{% extends "default.html" %}
{% block title %}
<title>{{SITE_NAME}} - Contact</title>
{% endblock %}
{% block pagetitle %}Contact{% endblock %}
{% block content %}
{% if msg %}
<div class="alert alert-success alert-dismissible fade show my-3" role="alert">

View File

@ -1,9 +1,5 @@
{% extends "default.html" %}
{% block title %}
<title>{{SITE_NAME}} - Donate</title>
{% endblock %}
{% block pagetitle %}Donate{% endblock %}
{% block content %}
<h1 class="py-3">Donate</h1>
<div class="overflow-x-auto">

View File

@ -1,11 +1,6 @@
{% extends "default.html" %}
{% block title %}
<title>{{code}} {{title}}</title>
{% endblock %}
{% block pagetitle %}{{code}} {{title}}{% endblock %}
{% block pagetype %}error-{{code}}{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-10 col-md-5">

View File

@ -1,11 +1,6 @@
{% extends "default.html" %}
{% block title %}
<title>+18</title>
{% endblock %}
{% block pagetitle %}+18{% endblock %}
{% block pagetype %}error-451{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col col-md-5">

View File

@ -1,11 +1,6 @@
{% extends "default.html" %}
{% block title %}
<title>401 Not Authorized</title>
{% endblock %}
{% block pagetitle %}401 Not Authorized{% endblock %}
{% block pagetype %}error-401{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-10 col-md-5">

View File

@ -1,9 +1,5 @@
{% extends "default.html" %}
{% block title %}
<title>{{SITE_NAME}} - Formatting</title>
{% endblock %}
{% block pagetitle %}Formatting{% endblock %}
{% block content %}
<h3 class="ml-2 mt-4">Markdown Formatting</h3>

View File

@ -1,9 +1,5 @@
{% extends "default.html" %}
{% block title %}
<title>Hats</title>
{% endblock %}
{% block pagetitle %}Hats{% endblock %}
{% block pagetype %}message{% endblock %}
{% block Banner %}

View File

@ -1,13 +1,7 @@
{% extends "default.html" %}
{% block title %}
<title>{{title}}</title>
{% endblock %}
{% block pagetitle %}{{title}}{% endblock %}
{% block pagetype %}message{% endblock %}
{% block customPadding %}{% endblock %}
{% block content %}
<div class="row justify-content-center">
<div class="col-10 col-md-5">

View File

@ -1,34 +1,19 @@
{% extends "login.html" %}
{% block title %}
<title>Application Request for Access</title>
{% endblock %}
{% block pagetitle %}Application Request for Access{% endblock %}
{% block content %}
<div id="auth-form">
<h2>{{application.app_name}}</h2>
<p class="mb-md-5">wants to access your @{{v.username}} account.</p>
<p class="mb-md-5">It will not be able to see your password, or change your account settings.</p>
<form action="/authorize" method="post" class="mt-md-3" id="login">
<input type="hidden" name="formkey" value="{{v|formkey}}">
<input type="hidden" name="scopes" value="{{scopes_txt}}">
<input type="hidden" name="redirect_uri" value="{{redirect_uri}}">
<input type="hidden" name="permanent" value="{{permanent}}">
<input type="hidden" name="client_id" value="{{application.client_id}}">
<input type="hidden" name="state" value="{{state}}">
<input type="submit" onclick="disable(this)" class="btn btn-primary" id="auth_button" value="Authorize {{application.app_name}}">
<a href="/" class="btn btn-secondary">No, back to {{SITE_NAME}}</a>
</form>
</div>
{% endblock %}

View File

@ -1,14 +1,7 @@
{% extends "default.html" %}
{% block title %}
<title>{{SITE_NAME}}</title>
{% endblock %}
{% block pagetitle %}Poll Votes{% endblock %}
{% block content %}
{% if thing %}
<h3 class="mt-5">{{thing.body_html | safe}} - {{ups | length}} {% if thing.exclusive == 2 %}bets{% else %}votes{% endif %}</h3>
<div class="overflow-x-auto mt-5">
<table class="table table-striped mb-5">
@ -35,10 +28,6 @@
{% endfor %}
</table>
</div>
<script defer src="{{'js/sort_table.js' | asset}}"></script>
{% endif %}
{% endblock %}

View File

@ -5,13 +5,8 @@
'WPD': 'Watch people die.',
}[SITE_NAME]
-%}
{% block title %}
<title>Shop</title>
{% endblock %}
{% block pagetitle %}Shop{% endblock %}
{% block pagetype %}message{% endblock %}
{% block Banner %}
<style>
.shop-tabs {

View File

@ -1,14 +1,8 @@
{% extends "default.html" %}
{% block title %}
<title>{{SITE_NAME}} Sidebar</title>
{% endblock %}
{% block pagetitle %}{{SITE_NAME}} Sidebar{% endblock %}
{% block content %}
<div class="mx-4 mt-4 mb-6">
<h1 class="text-muted text-uppercase">Sidebar</h5>
<div id="sidebar" class="my-3">
{% if has_sidebar %}
{% include "sidebar_" + SITE_NAME + ".html" %}

View File

@ -1,10 +1,5 @@
{% extends "default.html" %}
{% block title %}
<title>{{SITE_NAME}}</title>
{% endblock %}
{% block pagetitle %}{{SITE_NAME}}{% endblock %}
{% block content %}
<div class="overflow-x-auto mt-1"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">

View File

@ -1,57 +1,31 @@
{% extends "default.html" %}
{% block title %}
<title>Create a {{HOLE_NAME}}</title>
{% endblock %}
{% block pagetitle %}Create a {{HOLE_NAME}}{% endblock %}
{% block content %}
<form class="mt-3" id="submitform" action="/create_hole" method="post">
<div class="container">
<div class="row justify-content-center mb-4 pb-7">
<div class="col col-md-6 p-3 py-md-0">
<h1 class="d-mob-none">Create a {{HOLE_NAME}}</h1>
<h3 class=" d-md-none">Create a {{HOLE_NAME}}</h3>
<div class="body">
<input type="hidden" name="formkey" value="{{v|formkey}}">
<label for="title">Sub Name</label>
<input minlength="3" maxlength="25" pattern='[a-zA-Z0-9_\-]*' class="form-control" id="title-register" aria-describedby="titleHelpRegister" type="text" name="name" required>
<small class="form-text text-muted">3-25 characters, including letters, numbers, _ , and -</small>
<div class="footer">
<div class="d-flex">
{% if error %}
<p class="mb-0">
<span class="text-danger text-small" style="vertical-align: sub;">{{error}}</span>
</p>
{% endif %}
<button type="submit" class="btn btn-primary ml-auto" id="create_button" {% if cost > v.coins %}disabled{% endif %}>Create {{HOLE_NAME|capitalize}}</button>
</div>
<p class="mt-2 mr-1" style="float: right"><b>Cost</b>: {{cost}} coins</p>
</div>
</div>
</div>
</div>
</div>
</form>
{% endblock %}

View File

@ -1,11 +1,6 @@
{% extends "default.html" %}
{% block title %}
<title>Submit Hats</title>
{% endblock %}
{% block pagetitle %}Submit Hats{% endblock %}
{% block pagetype %}message{% endblock %}
{% block content %}
{% if error %}
<div class="alert alert-danger alert-dismissible fade show mb-3 mt-4" role="alert">

View File

@ -1,11 +1,6 @@
{% extends "default.html" %}
{% block title %}
<title>Submit Marseys</title>
{% endblock %}
{% block pagetitle %}Submit Marseys{% endblock %}
{% block pagetype %}message{% endblock %}
{% block content %}
<style>
input:not(.btn) {

View File

@ -1,7 +1,5 @@
{% extends "default.html" %}
{% block title %}
<title>Update {{type}}</title>
{% endblock %}
{% block pagetitle %}Update {{type}}{% endblock %}
{% block pagetype %}message{% endblock %}
{% block content %}
{% if error %}

View File

@ -1,13 +1,6 @@
{% extends "userpage/voted_posts.html" %}
{% block title %}
<title>Comments</title>
{% endblock %}
{% block pagetitle %}Comments{% endblock %}
{% block listing %}
<div class="posts">
{% with comments=listing %}
{% include "comments.html" %}
@ -22,5 +15,4 @@
</div>
{% endif %}
</div>
{% endblock %}

View File

@ -1,16 +1,10 @@
{% extends "userpage.html" %}
{% block pagetype %}userpage{% endblock %}
{% block desktopBanner %}{% endblock %}
{% block desktopUserBanner %}{% endblock %}
{% block mobileUserBanner %}{% endblock %}
{% block title %}
<title>Posts</title>
{% endblock %}
{% block pagetitle %}Posts{% endblock %}
{% block content %}
<ul class="nav post-nav py-2">
<li class="nav-item">
<a class="nav-link {% if request.path.endswith('/posts') %}active" href="{{request.path}}"{% else %}" href="{{request.path.replace('comments','posts')}}"{% endif %}>

View File

@ -1,14 +1,7 @@
{% extends "default.html" %}
{% block title %}
<title>{{SITE_NAME}}</title>
{% endblock %}
{% block pagetitle %}{{SITE_NAME}}{% endblock %}
{% block content %}
{% if thing %}
<h1 class="mt-2">Info</h1>
<p><a href="{{thing.permalink}}">{{thing.permalink}}</a></p>
<p><b>Author:</b> <a href="{{thing.author.url}}">@{{thing.author.username}}</a></p>