-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
218 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{% extends "admin/change_form.html" %} | ||
{% load i18n admin_urls %} | ||
{% block after_related_objects %} | ||
<a target="_blank" href="/book/{{ original.pk }}/map.svg"> | ||
<img src="/book/{{ original.pk }}/map.svg"/> | ||
</a> | ||
<a target="_blank" href="/book/{{ original.pk }}/map.svg"> | ||
<img src="/book/{{ original.pk }}/map.svg"/> | ||
</a> | ||
{% endblock %} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>{% block title %}{% endblock %}</title> | ||
<link rel="stylesheet" href="/static/styles.css" | ||
type="text/css" media="screen" /> | ||
<link rel="icon" href="/static/favicon.png" | ||
type="image/png" sizes="64x64" /> | ||
</head> | ||
<body> | ||
{% block body %} | ||
{% endblock %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>{{ page.book.title }}: {{ page.title }}</title> | ||
</head> | ||
<body> | ||
<h3> | ||
{{ page.title }}: Заметка | ||
</h3> | ||
{% extends "default.html" %} | ||
{% block title %}{{ page.book.title }}: {{ page.title }}{% endblock %} | ||
{% block body %} | ||
<div class="single-column"> | ||
<h1><a href="{% url 'book' page.book.id %}">{{ page.book.title }} ({{ page.title }})</a>: Заметка</h1> | ||
<form method="POST" style="display: grid;" | ||
action="{% url 'update_note' page.book.id note.id %}"> | ||
{% csrf_token %} | ||
<label for="memo-text">Текст</label> | ||
<textarea id="memo-text" name="text">{{ note.text }}</textarea> | ||
|
||
<label for="memo-page">Привязка</label> | ||
<select id="memo-page" name="page"> | ||
{% if note.page %} | ||
<option value="keep" | ||
{% if note.page.id != page.id %} | ||
selected | ||
{% endif %}> | ||
Оставить привязанной к [{{ note.page.title }}] | ||
</option> | ||
{% endif %} | ||
{% if not note.page or note.page.id != page.id %} | ||
<option value="change"> | ||
Привязать к [{{ page.title }}] | ||
</option> | ||
{% endif %} | ||
<option value="remove" | ||
{% if not note.page %} | ||
selected | ||
{% endif %}> | ||
{% if note.page %}Отвязать{% endif %} | ||
</option> | ||
</select> | ||
<label for="memo-pinned">Закреплена</label> | ||
<input id="memo-pinned" name="pinned" type="checkbox" | ||
{% if note.pinned %}checked{% endif %}> | ||
<label for="memo-page">Привязка | ||
<select id="memo-page" name="page"> | ||
{% if note.page %} | ||
<option value="keep" | ||
{% if note.page.id != page.id %} | ||
selected | ||
{% endif %} | ||
>Оставить привязанной к [{{ note.page.title }}]</option> | ||
{% endif %} | ||
{% if not note.page or note.page.id != page.id %} | ||
<option value="change">Привязать к [{{ page.title }}]</option> | ||
{% endif %} | ||
<option value="remove" | ||
{% if not note.page %} | ||
selected | ||
{% endif %} | ||
>{% if note.page %}Отвязать{% endif %}</option> | ||
</select> | ||
</label> | ||
<label for="memo-pinned"> | ||
Закреплена | ||
<input id="memo-pinned" name="pinned" type="checkbox" | ||
{% if note.pinned %}checked{% endif %}> | ||
</label> | ||
<button type="submit">Обновить</button> | ||
</form> | ||
</body> | ||
</html> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,100 +1,97 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>{{ page.book.title }}: {{ page.title }}</title> | ||
<link rel="stylesheet" href="/static/page.css" type="text/css" media="screen" /> | ||
<link rel="icon" sizes="64x64" href="/static/favicon.png" type="image/png" /> | ||
</head> | ||
<body> | ||
<div class="main"> | ||
<div class="content"> | ||
{% extends "default.html" %} | ||
{% block title %}{{ page.book.title }}: {{ page.title }}{% endblock %} | ||
{% block body %} | ||
<div class="page"> | ||
<div class="page-split"> | ||
<div class="page-content"> | ||
<h1> | ||
{{ page.title }} | ||
</h1> | ||
{{ page.body }} | ||
{% if page_items %} | ||
<h3>Вы видите</h3> | ||
<ul> | ||
{% for item in page_items %} | ||
<li> | ||
<a href="{% url 'take' page.book.id item.id %}"> | ||
{{ item.name }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<h3>Вы видите</h3> | ||
<ul> | ||
{% for item in page_items %} | ||
<li> | ||
<a href="{% url 'take' page.book.id item.id %}"> | ||
{{ item.name }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% if dropped_items %} | ||
<h3>Брошено вами ранее</h3> | ||
<ul> | ||
{% for dropped_item in dropped_items %} | ||
<li> | ||
{{ dropped_item.item.name }} | ||
<a href="{% url 'take_back' page.book.id dropped_item.id %}"> | ||
[Подобрать] | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<h3>Брошено вами ранее</h3> | ||
<ul> | ||
{% for dropped_item in dropped_items %} | ||
<li> | ||
{{ dropped_item.item.name }} | ||
<a href="{% url 'take_back' page.book.id dropped_item.id %}"> | ||
[Подобрать] | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
<h3>Куда податься?</h3> | ||
<ul> | ||
{% for link, passable in links %} | ||
<li> | ||
{% if passable %} | ||
<a href="{% url 'go_to' page.book.id link.id %}"> | ||
{{ link.name }} | ||
</a> | ||
{% else %} | ||
{{ link.name }} | ||
{% endif %} | ||
</li> | ||
<li> | ||
{% if passable %} | ||
<a href="{% url 'go_to' page.book.id link.id %}"> | ||
{{ link.name }} | ||
</a> | ||
{% else %} | ||
{{ link.name }} | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% if progress.items.all %} | ||
<h3>Инвентарь</h3> | ||
<ul> | ||
{% for item in progress.items.all %} | ||
<li> | ||
{{ item.name }} | ||
<a href="{% url 'drop' page.book.id item.id %}"> | ||
[Выбросить] | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<h3>Инвентарь</h3> | ||
<ul> | ||
{% for item in progress.items.all %} | ||
<li> | ||
{{ item.name }} | ||
<a href="{% url 'drop' page.book.id item.id %}"> | ||
[Выбросить] | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
<hr /> | ||
<a href="{% url 'saves' page.book.id %}">Сохранения</a> | ||
</div> | ||
<div class="sidebar"> | ||
<div class="page-sidebar"> | ||
<h3>Заметки</h3> | ||
<form method="POST" class="new-note" | ||
action="{% url 'add_note' page.book.id %}"> | ||
{% csrf_token %} | ||
<label for="memo-text">Новая</label> | ||
<textarea id="memo-text" name="text"></textarea> | ||
<label for="memo-pin">Для этого места</label> | ||
<input id="memo-pin" name="pin" type="checkbox"> | ||
<label for="memo-pin"> | ||
Для этого места | ||
<input id="memo-pin" name="pin" type="checkbox"> | ||
</label> | ||
<button type="submit">Добавить</button> | ||
</form> | ||
{% for name, noteset in notesets %} | ||
<ul class="noteset noteset-{{ name }}"> | ||
{% for note_id, note_text, note_page_title in noteset %} | ||
<li> | ||
<a href="{% url 'delete_note' page.book.id note_id %}">🚮</a> | ||
<a href="{% url 'toggle_note' page.book.id note_id %}">📌</a> | ||
<a href="{% url 'update_note' page.book.id note_id %}">🖉</a> | ||
<pre>{{ note_text }}</pre> | ||
{% if note_page_title and name == 'other' %} | ||
({{ note_page_title }}) | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<ul class="noteset noteset-{{ name }}"> | ||
{% for note_id, note_text, note_page_title in noteset %} | ||
<li> | ||
<a href="{% url 'delete_note' page.book.id note_id %}">🚮</a> | ||
<a href="{% url 'toggle_note' page.book.id note_id %}">📌</a> | ||
<a href="{% url 'update_note' page.book.id note_id %}">🖉</a> | ||
<pre>{{ note_text }}</pre> | ||
{% if note_page_title and name == 'other' %} | ||
({{ note_page_title }}) | ||
{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>{{ book.title }}: Сохранения</title> | ||
</head> | ||
<body> | ||
<h1> | ||
{{ book.title }} | ||
</h1> | ||
<h2> | ||
{{ page.title }} | ||
</h2> | ||
<a href="{% url 'book' book.id %}">[Продолжить игру]</a> | ||
<br/> | ||
<a href="{% url 'save_new' book.id %}">[Новое сохранение]</a> | ||
{% extends "default.html" %} | ||
{% block title %}{{ book.title }}: Сохранения{% endblock %} | ||
{% block body %} | ||
<div class="single-column"> | ||
<h1><a href="{% url 'book' page.book.id %}">{{ page.book.title }} ({{ page.title }})</a>: Сохранения</h1> | ||
<a href="{% url 'save_new' page.book.id %}">[Новое сохранение]</a> | ||
<ul> | ||
{% for save in saves %} | ||
<li> | ||
<a href="{% url 'delete_save' book.id save.id %}">[Удалить]</a> | ||
<a href="{% url 'load_from' book.id save.id %}">[Загрузить]</a> | ||
<a href="{% url 'save_to' book.id save.id %}">[Заменить]</a> | ||
[{{ save.updated_at|date:"Y.m.d H:i:s" }}] {{ save.book_page.title }} | ||
</li> | ||
<li> | ||
<a href="{% url 'delete_save' page.book.id save.id %}">[Удалить]</a> | ||
<a href="{% url 'load_from' page.book.id save.id %}">[Загрузить]</a> | ||
<a href="{% url 'save_to' page.book.id save.id %}">[Заменить]</a> | ||
[{{ save.updated_at|date:"Y.m.d H:i:s" }}] {{ save.book_page.title }} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</body> | ||
</html> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.