mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-24 23:48: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"?>
|
||||
<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" />
|
||||
</project>
|
|
@ -14,5 +14,14 @@ inv test
|
|||
./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
|
||||
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_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
|
||||
ALLOWED_HOSTS=localhost,127.0.0.1
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# DJANGO
|
||||
###############################################################################
|
||||
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
|
||||
ALLOWED_HOSTS=localhost,127.0.0.1
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# DJANGO
|
||||
###############################################################################
|
||||
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
|
||||
ALLOWED_HOSTS=localhost,127.0.0.1
|
||||
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
<i class="fa-solid fa-pen-to-square"></i> Edit
|
||||
</a>
|
||||
</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 }}
|
||||
</div>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<i class="fa-solid fa-save"></i> Save
|
||||
</a>
|
||||
</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 %}
|
||||
<textarea class="form-control" name="gm_notes" rows="10">{{ character.gm_notes }}</textarea>
|
||||
</form>
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
</a>
|
||||
</h2>
|
||||
<div class="alert alert-info">
|
||||
Le {% if character|mastered_by:user %}joueur{% else %}MJ{% endif %}
|
||||
peut également voir et modifier ces notes.
|
||||
Le joueur et le MJ peuvent voir et modifier ces notes.
|
||||
</div>
|
||||
{{ character.get_formatted_notes|safe }}
|
||||
</div>
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
</a>
|
||||
</h2>
|
||||
<div class="alert alert-info">
|
||||
Ces notes ne sont visibles que par le joueur et les MJ
|
||||
des groupes auquel ce personnage appartient.
|
||||
Le joueur et le MJ peuvent voir et modifier ces notes.
|
||||
</div>
|
||||
{% csrf_token %}
|
||||
<textarea class="form-control" name="notes" rows="25">{{ character.notes }}</textarea>
|
||||
|
|
Loading…
Reference in a new issue