diff options
| author | 2019-04-20 23:49:12 +0200 | |
|---|---|---|
| committer | 2019-04-20 23:49:12 +0200 | |
| commit | 0e373cd953dd7ee8433cd936a8df050ab097bb08 (patch) | |
| tree | 54061f3d1f33247f0a57efc311167ba275c67c94 /pydis_site/templates/wiki/root_missing.html | |
| parent | Merge pull request #213 from python-discord/django_front_page (diff) | |
| parent | Replace wiki dep with PyDis fork, add git to Docker (diff) | |
Merge pull request #202 from gdude2002/django+200/wiki
[#200] Django Wiki
Diffstat (limited to 'pydis_site/templates/wiki/root_missing.html')
| -rw-r--r-- | pydis_site/templates/wiki/root_missing.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pydis_site/templates/wiki/root_missing.html b/pydis_site/templates/wiki/root_missing.html new file mode 100644 index 00000000..31ef2eab --- /dev/null +++ b/pydis_site/templates/wiki/root_missing.html @@ -0,0 +1,41 @@ +{% extends "wiki/create_root.html" %} +{% load wiki_tags %} + +{% block wiki_contents %} + <div class="columns"> + <div class="column is-two-thirds is-offset-2"> + <article class="message is-primary"> + <div class="message-header"> + <p>No articles found</p> + </div> + <div class="message-body"> + <p> + It appears that there are no articles available on this wiki. + </p> + + {% if not user.is_superuser %} + <p> + To get started, please login with a superuser account. + </p> + + {% login_url as wiki_login_url %} + + {% if wiki_login_url %} + <div class="has-text-centered"> + <a href="{{ wiki_login_url }}" class="button is-primary">Login</a> + </div> + {% endif %} + {% else %} + <p> + Let's get started - click below to create the first article, or to read up on the + <code>django-wiki</code> documentation. + </p> + + <a class="button is-primary" href="{% url 'wiki:root_create' %}">Create Article</a> + <a class="button is-info" href="http://django-wiki.readthedocs.org/">Documentation</a> + {% endif %} + </div> + </article> + </div> + </div> +{% endblock %} |