Commit b3fd805d authored by Rodolphe Breard's avatar Rodolphe Breard
Browse files

Remove the last parts of django-bulma

parent 9abfacb5
Pipeline #769 passed with stage
in 3 minutes and 13 seconds
......@@ -16,16 +16,9 @@ Build CSS:
- apt-get install -y nodejs npm
- pip3 install pipenv
- pipenv --three update
- pipenv install django
- pipenv install django-bulma
- echo "KHAGANAT_SECRET_KEY= build" > .env
- pipenv run ./manage.py bulma install
- pipenv run ./manage.py bulma build
artifacts:
paths:
- static_extra/bulma/css/*
- echo "KHAGANAT_SECRET_KEY= build" > .env
......@@ -13,7 +13,7 @@
In order to have a single Python coding style, please use [black](https://github.com/psf/black). However, auto-generated files and parts of external projects should not be reformatted.
```
$ black $(find . -type f -name "*\.py" -not -path "*/migrations/*" -not -path "./static_extra/bulma/*" -print)
$ black $(find . -type f -name "*\.py" -not -path "*/migrations/*" -print)
```
......@@ -33,16 +33,10 @@ To run this web application, you need a database. The simplest way is to downloa
```
$ pipenv run ./manage.py migrate
$ pipenv run ./manage.py compilemessages
$ pipenv run ./manage.py createsuperuser
```
In order to display the Khaganat theme, you have to install bulma and build it :
```
$ pipenv run ./manage.py bulma install
$ pipenv run ./manage.py bulma build
```
Now that everything has been set-up, you may run Django's internal debug server.
```
......
{% extends "khaganat/base.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block content %}
......
{% extends "khaganat/base.html" %}
{% load bulma_tags %}
{% load static %}
{% load i18n %}
......
{% extends "khaganat/centered_dialog.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block title %}{% trans 'New paste' %}{% endblock %}
......@@ -9,7 +8,7 @@
{% block dialog %}
<form action="" method="post">
{% csrf_token %}
{{ form|bulma }}
{{ form.as_p }}
<button type="submit" class="button is-link">{% trans "Submit" %}</button>
</form>
{% endblock %}
{% extends "khaganat/centered_dialog.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block title %}{% trans 'Report paste' %}{% endblock %}
......@@ -9,7 +8,7 @@
{% block dialog %}
<form action="" method="post">
{% csrf_token %}
{{ form|bulma }}
{{ form.as_p }}
<button type="submit" class="button is-warning">{% trans "Submit" %}</button>
</form>
{% endblock %}
{% extends "khaganat/centered_dialog.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block title %}{% trans "login"|capfirst %}{% endblock %}
......@@ -8,7 +7,7 @@
{% block dialog %}
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
{{ form|bulma }}
{{ form.as_p }}
<input type="hidden" name="next" value="{{ request.GET.next }}" />
<button type="submit" class="button is-link">{% trans "login"|capfirst %}</button>
<a class="button is-light" href="{% url "password_reset" %}" role="button">{% trans "forgotten_password"|capfirst %}</a>
......
{% extends "khaganat/centered_dialog.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block title %}{% trans "password_reset"|capfirst %}{% endblock %}
......@@ -8,7 +7,7 @@
{% block dialog %}
<form method="post" action="{% url 'password_reset' %}">
{% csrf_token %}
{{ form|bulma }}
{{ form.as_p }}
<button type="submit" class="button is-link">{% trans "reset_my_password"|capfirst %}</button>
</form>
{% endblock %}
{% extends "khaganat/centered_dialog.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block title %}{% if validlink %}{% trans "set_new_password"|capfirst %}{% else %}{% trans "password_reset"|capfirst %}{% endif %}{% endblock %}
......
{% extends "khaganat/centered_dialog.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block title %}{% trans "register"|capfirst %}{% endblock %}
......@@ -9,7 +8,7 @@
{% block dialog %}
<form method="post" action="{% url 'register' %}">
{% csrf_token %}
{{ form|bulma }}
{{ form.as_p }}
<button type="submit" class="button is-link">{% trans "register"|capfirst %}</button>
</form>
{% endblock %}
{% extends "khaganat/base.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block content %}
......
{% extends "neluser/settings/preferences/base.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block title %}{% trans "NSFW content" %}{% endblock %}
......
{% extends "neluser/settings/security/base.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block title %}{% trans "delete_account"|capfirst %}{% endblock %}
......@@ -7,7 +6,7 @@
{% block inner_panel %}
<form action="" method="post">
{% csrf_token %}
{{ form|bulma }}
{{ form.as_p }}
<button type="submit" class="button is-danger">{% trans "Permanently delete my account"|capfirst %}</button>
</form>
{% endblock %}
{% extends "neluser/settings/security/base.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block title %}{% trans "Password"|capfirst %}{% endblock %}
......@@ -7,7 +6,7 @@
{% block inner_panel %}
<form action="" method="post">
{% csrf_token %}
{{ form|bulma }}
{{ form.as_p }}
<button type="submit" class="button is-link">{% trans "change_my_password"|capfirst %}</button>
</form>
{% endblock %}
{% extends "khaganat/centered_dialog.html" %}
{% load bulma_tags %}
{% load i18n %}
{% block title %}{% trans "authenticate"|capfirst %}{% endblock %}
......
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