Setting site name so forkers can change easily name to site

This commit is contained in:
Yusur 2019-10-10 15:30:27 +02:00
parent edead62fc0
commit 91b77f1cb0
4 changed files with 10 additions and 10 deletions

View file

@ -1,7 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block body %} {% block body %}
<h1>About Coriplus</h1> <h1>About {{ site_name }}</h1>
<p>Version: {{ version }}</p> <p>Version: {{ version }}</p>
<p>Copyright &copy; 2019 Sakuragasaki46.</p> <p>Copyright &copy; 2019 Sakuragasaki46.</p>

View file

@ -1,12 +1,14 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Cori+</title> {% set site_name = "Cori+" %}
<title>{{ site_name }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/static/style.css"> <link rel="stylesheet" type="text/css" href="/static/style.css">
</head> </head>
<body> <body>
<div class="header"> <div class="header">
<h1><a href="{{ url_for('homepage') }}">Cori+</a></h1> <h1><a href="{{ url_for('homepage') }}">{{ site_name }}</a></h1>
<div class="metanav"> <div class="metanav">
{% if not session.logged_in %} {% if not session.logged_in %}
<a href="{{ url_for('login') }}">log in</a> <a href="{{ url_for('login') }}">log in</a>
@ -26,7 +28,7 @@
</div> </div>
<div class="content"> <div class="content">
{% for message in get_flashed_messages() %} {% for message in get_flashed_messages() %}
<div class=flash>{{ message }}</div> <div class="flash">{{ message }}</div>
{% endfor %} {% endfor %}
{% block body %}{% endblock %} {% block body %}{% endblock %}
</div> </div>

View file

@ -2,6 +2,6 @@
{% block body %} {% block body %}
<h2>Hello</h2> <h2>Hello</h2>
<p>Cori+ is made by people like you. <br/> <p>{{ site_name }} is made by people like you. <br/>
<a href="{{url_for('login')}}">Log in</a> or <a href="{{url_for('register')}}">register</a> to see more.</p> <a href="{{url_for('login')}}">Log in</a> or <a href="{{url_for('register')}}">register</a> to see more.</p>
{% endblock %} {% endblock %}

View file

@ -1,6 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block body %} {% block body %}
<h2>Join Cori+</h2> <h2>Join {{ site_name }}</h2>
<form action="{{ url_for('register') }}" method="post"> <form action="{{ url_for('register') }}" method="post">
<dl> <dl>
<dt>Username:</dt> <dt>Username:</dt>
@ -8,9 +8,7 @@
<dt>Password:</dt> <dt>Password:</dt>
<dd><input type="password" name="password"></dd> <dd><input type="password" name="password"></dd>
<dt>Email:</dt> <dt>Email:</dt>
<dd><input type="text" name="email"> <dd><input type="text" name="email"></dd>
<p><small>(used for gravatar)</small></p>
</dd>
<dt>Birthday: <dt>Birthday:
<dd><input type="text" name="birthday" placeholder="yyyy-mm-dd"> <dd><input type="text" name="birthday" placeholder="yyyy-mm-dd">
<dd><input type="submit" value="Join"> <dd><input type="submit" value="Join">