kopia lustrzana https://gitlab.com/marnanel/chapeau
basic framework for the front page. Still needs the login box etc.
Part of issue #50.merge-requests/2/merge
rodzic
dffc8ff532
commit
5e1dc37a99
|
@ -20,3 +20,12 @@ but there will be.
|
||||||
|
|
||||||
* [bowler-heavy](docs/bowler-heavy.md) was a historical course change that may still affect the state of the codebase.
|
* [bowler-heavy](docs/bowler-heavy.md) was a historical course change that may still affect the state of the codebase.
|
||||||
* [Why the name?](docs/name.md)
|
* [Why the name?](docs/name.md)
|
||||||
|
|
||||||
|
## Licence
|
||||||
|
|
||||||
|
kepi is distributed under version 2 of the GNU General Public License.
|
||||||
|
|
||||||
|
Some Mastodon-based tests are included in the source distribution. These are copyright (C) 2016-2019 Eugen Rochko & other Mastodon contributors. They are released under the GNU Affero General Public License, version 3.
|
||||||
|
|
||||||
|
The base template is based on the Clean Blog template by Start Bootstrap. This is copyright (c) 2013-2020 Start Bootstrap LLC. It's distributed under the MIT license.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,78 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
||||||
|
<title>{{ title }} - {{ subtitle }}</title>
|
||||||
|
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
|
||||||
|
<link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
|
||||||
|
<link href="static/kepi-hats.css" rel="stylesheet">
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- Navigation -->
|
||||||
|
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
|
||||||
|
<div class="container">
|
||||||
|
<a class="navbar-brand" href="index.html">kepi</a>
|
||||||
|
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
|
Menu
|
||||||
|
<i class="fas fa-bars"></i>
|
||||||
|
</button>
|
||||||
|
<div class="collapse navbar-collapse" id="navbarResponsive">
|
||||||
|
{% include 'navbar.html' %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Page Header -->
|
||||||
|
<header class="masthead" style="background-image: url('/static/hats-header.jpg')">
|
||||||
|
<div class="overlay"></div>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-8 col-md-10 mx-auto">
|
||||||
|
<div class="site-heading">
|
||||||
|
<h1>{{ title }}</h1>
|
||||||
|
<span class="subheading">{{ subtitle }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Main Content -->
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-8 col-md-10 mx-auto">
|
||||||
|
{% block content %}
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer>
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
powered by <a href="https://kepi.org.uk">kepi</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- Bootstrap core JavaScript -->
|
||||||
|
<script src="vendor/jquery/jquery.min.js"></script>
|
||||||
|
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Custom scripts for this template -->
|
||||||
|
<script src="js/clean-blog.min.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -0,0 +1,6 @@
|
||||||
|
<ul class="navbar-nav ml-auto">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="index.html">Home</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
|
@ -1,27 +1,3 @@
|
||||||
<!DOCTYPE html>
|
{% extends 'base.html' %}
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Kepi is installed</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>
|
|
||||||
If you can see this message,
|
|
||||||
Kepi is installed correctly.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
{% block content %}Welcome to this kepi instance. It's not properly set up yet.{% endblock %}
|
||||||
I appreciate that this message is not particularly
|
|
||||||
interesting or helpful. This will change in
|
|
||||||
later releases.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
You might like to visit <a href="admin/">the admin console</a>
|
|
||||||
now, to set things up.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
Love and hugs.
|
|
||||||
</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ logger = logging.getLogger(name='kepi')
|
||||||
|
|
||||||
from django.views import View
|
from django.views import View
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
class RootPageView(View):
|
class RootPageView(View):
|
||||||
|
|
||||||
|
@ -19,7 +20,10 @@ class RootPageView(View):
|
||||||
result = render(
|
result = render(
|
||||||
request=request,
|
request=request,
|
||||||
template_name='root-page.html',
|
template_name='root-page.html',
|
||||||
content_type='text/html',
|
context = {
|
||||||
|
'title': settings.KEPI['INSTANCE_NAME'],
|
||||||
|
'subtitle': settings.KEPI['INSTANCE_DESCRIPTION'],
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
Ładowanie…
Reference in New Issue