mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 06:28:03 +01:00
Update some wording
This commit is contained in:
parent
7a108001d4
commit
ebff79e3de
10 changed files with 34 additions and 9 deletions
|
@ -1,4 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
|
<component name="Black">
|
||||||
|
<option name="sdkName" value="Python 3.11 (charasheet)" />
|
||||||
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (charasheet)" project-jdk-type="Python SDK" />
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (charasheet)" project-jdk-type="Python SDK" />
|
||||||
</project>
|
</project>
|
|
@ -14,5 +14,14 @@ inv test
|
||||||
./src/manage.py createsuperuser
|
./src/manage.py createsuperuser
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## With preview mode
|
||||||
|
|
||||||
|
```shell
|
||||||
|
caddy --config contrib/Caddyfile.local
|
||||||
|
./src/manage.py runserver
|
||||||
|
cd ~/Projects/charasheet-go
|
||||||
|
make run/live
|
||||||
|
```
|
||||||
|
|
||||||
# Reuse
|
# Reuse
|
||||||
If you do reuse my work, please consider linking back to this repository 🙂
|
If you do reuse my work, please consider linking back to this repository 🙂
|
||||||
|
|
15
contrib/Caddyfile.local
Normal file
15
contrib/Caddyfile.local
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
email gabriel@augendre.info
|
||||||
|
http_port 8000
|
||||||
|
}
|
||||||
|
|
||||||
|
http://localhost:8080 {
|
||||||
|
@preview {
|
||||||
|
header Cookie *preview=enabled;*
|
||||||
|
path /test /test/* /character/1/notes_change/
|
||||||
|
}
|
||||||
|
route {
|
||||||
|
reverse_proxy @preview localhost:4444
|
||||||
|
reverse_proxy localhost:8000
|
||||||
|
}
|
||||||
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
# DJANGO
|
# DJANGO
|
||||||
###############################################################################
|
###############################################################################
|
||||||
DJANGO_SETTINGS_MODULE=charasheet.settings
|
DJANGO_SETTINGS_MODULE=charasheet.settings
|
||||||
SECRET_KEY="UkZF3iM%Fqdj6HWugPWS26q!tmquRm#8G^X#&AiXiT$r2t%N4F"
|
SECRET_KEY="UkZF3iM%Fqdj6HWugPWS26q!tmquRm#8G^X#&AiXiTr2t%N4F"
|
||||||
DEBUG=False
|
DEBUG=False
|
||||||
ALLOWED_HOSTS=localhost,127.0.0.1
|
ALLOWED_HOSTS=localhost,127.0.0.1
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# DJANGO
|
# DJANGO
|
||||||
###############################################################################
|
###############################################################################
|
||||||
DJANGO_SETTINGS_MODULE=charasheet.settings
|
DJANGO_SETTINGS_MODULE=charasheet.settings
|
||||||
SECRET_KEY="UkZF3iM%Fqdj6HWugPWS26q!tmquRm#8G^X#&AiXiT$r2t%N4F"
|
SECRET_KEY="UkZF3iM%Fqdj6HWugPWS26q!tmquRm#8G^X#&AiXiTr2t%N4F"
|
||||||
DEBUG=True
|
DEBUG=True
|
||||||
ALLOWED_HOSTS=localhost,127.0.0.1
|
ALLOWED_HOSTS=localhost,127.0.0.1
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# DJANGO
|
# DJANGO
|
||||||
###############################################################################
|
###############################################################################
|
||||||
DJANGO_SETTINGS_MODULE=charasheet.settings
|
DJANGO_SETTINGS_MODULE=charasheet.settings
|
||||||
SECRET_KEY="UkZF3iM%Fqdj6HWugPWS26q!tmquRm#8G^X#&AiXiT$r2t%N4F"
|
SECRET_KEY="UkZF3iM%Fqdj6HWugPWS26q!tmquRm#8G^X#&AiXiTr2t%N4F"
|
||||||
DEBUG=False
|
DEBUG=False
|
||||||
ALLOWED_HOSTS=localhost,127.0.0.1
|
ALLOWED_HOSTS=localhost,127.0.0.1
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,6 @@
|
||||||
<i class="fa-solid fa-pen-to-square"></i> Edit
|
<i class="fa-solid fa-pen-to-square"></i> Edit
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="alert alert-info">Le joueur ne peut pas voir ces notes.</div>
|
<div class="alert alert-info">Seul le MJ peut voir et modifier ces notes.</div>
|
||||||
{{ character.get_formatted_gm_notes|safe }}
|
{{ character.get_formatted_gm_notes|safe }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<i class="fa-solid fa-save"></i> Save
|
<i class="fa-solid fa-save"></i> Save
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="alert alert-info">Ces notes ne sont pas visibles par le joueur.</div>
|
<div class="alert alert-info">Seul le MJ peut voir et modifier ces notes.</div>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<textarea class="form-control" name="gm_notes" rows="10">{{ character.gm_notes }}</textarea>
|
<textarea class="form-control" name="gm_notes" rows="10">{{ character.gm_notes }}</textarea>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
Le {% if character|mastered_by:user %}joueur{% else %}MJ{% endif %}
|
Le joueur et le MJ peuvent voir et modifier ces notes.
|
||||||
peut également voir et modifier ces notes.
|
|
||||||
</div>
|
</div>
|
||||||
{{ character.get_formatted_notes|safe }}
|
{{ character.get_formatted_notes|safe }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
</a>
|
</a>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
Ces notes ne sont visibles que par le joueur et les MJ
|
Le joueur et le MJ peuvent voir et modifier ces notes.
|
||||||
des groupes auquel ce personnage appartient.
|
|
||||||
</div>
|
</div>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<textarea class="form-control" name="notes" rows="25">{{ character.notes }}</textarea>
|
<textarea class="form-control" name="notes" rows="25">{{ character.notes }}</textarea>
|
||||||
|
|
Loading…
Reference in a new issue