Skip to content

Commit dbbd3ae

Browse files
authored
Upgrade Tornado and improve template and docs (#1)
1 parent 09f0b8b commit dbbd3ae

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ dev.sh
2525
/static
2626

2727
# Virtual environments
28-
venv/
29-
venv?.?/
28+
venv*/
3029
.venv*/
3130

README.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Requirements
1717
------------
1818

1919
* Python 3.6+
20-
* Tornado framework installed (tested with version 6)
20+
* Tornado framework installed (tested with version 6 and 6.1)
2121
* Django Coleman running at the URL pointed
2222
by the ``DCOLEMAN_ENDPOINT`` environment
2323
variable (by default it uses ``http://localhost:8000/api/v1``)
@@ -56,11 +56,25 @@ email with the order URL signed with a unique token so users cannot
5656
reuse the token to see other orders.
5757

5858

59+
Settings
60+
--------
61+
62+
+-------------------------------------+----------------------------------+--------------------------------------------------------------+
63+
| **Environment variable** | **Default value** | **Description** |
64+
+-------------------------------------+----------------------------------+--------------------------------------------------------------+
65+
| ``DCOLEMAN_ENDPOINT`` | ``http://localhost:8000/api/v1`` | Django Coleman API URL |
66+
+-------------------------------------+----------------------------------+--------------------------------------------------------------+
67+
| ``DCOLEMAN_MASTER_TOKEN`` | ``porgs`` | Master token (**CHANGE IT** in production) |
68+
+-------------------------------------+----------------------------------+--------------------------------------------------------------+
69+
| ``DCOLEMAN_TASKS_VIEWER_HASH_SALT`` | ``1two3`` | Same value than ``TASKS_VIEWER_HASH_SALT`` in Django Coleman |
70+
+---------------------------+---------+----------------------------------+--------------------------------------------------------------+
71+
72+
5973
About
6074
-----
6175

6276
**Project**: https://github.com/mrsarm/tornado-dcoleman-mtasks-viewer
6377

64-
**Authors**: (2019) Mariano Ruiz <[email protected]>
78+
**Authors**: (2019-2021) Mariano Ruiz <[email protected]>
6579

6680
**License**: AGPL-v3

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
.breadcrumb-item.dismissed {
3838
color: darkred;
3939
}
40+
ol.in_progress .breadcrumb-item.active {
41+
color: #0e0;
42+
}
4043
</style>
4144
<title>{{ title }}</title>
4245
</head>
@@ -49,7 +52,7 @@ <h1>Order Status — Django Coleman</h1>
4952
<h2 class="text-right">Order Number: #{{ order['number'] }}</h2>
5053

5154
<nav aria-label="breadcrumb">
52-
<ol class="breadcrumb">
55+
<ol class="breadcrumb {{ state }}">
5356
<li class="breadcrumb-item {% if state == 'to-do' %}active{% end %}">
5457
{% if state == 'to-do' %}
5558
<strong>To Do</strong>

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
tornado==6.0.2
1+
tornado==6.1.0

0 commit comments

Comments
 (0)