Remove the last parts of django-bulma
This commit is contained in:
parent
9abfacb50c
commit
b3fd805d40
15 changed files with 11 additions and 37 deletions
|
@ -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
|
||||
|
|
10
README.md
10
README.md
|
@ -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.
|
||||
|
||||
```
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% extends "khaganat/base.html" %}
|
||||
{% load bulma_tags %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% extends "khaganat/base.html" %}
|
||||
{% load bulma_tags %}
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% 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 %}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% 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 %}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% 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>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% 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 %}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% 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 %}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% 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 %}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% extends "khaganat/base.html" %}
|
||||
{% load bulma_tags %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% extends "neluser/settings/preferences/base.html" %}
|
||||
{% load bulma_tags %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "NSFW content" %}{% endblock %}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% 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 %}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% 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 %}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{% extends "khaganat/centered_dialog.html" %}
|
||||
{% load bulma_tags %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "authenticate"|capfirst %}{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue