Skip to content

Commit f5369ea

Browse files
delsimGibbsConsulting
authored andcommitted
Improve demo list formatting (#202)
* Improve demo list formatting by changing it to a table * Bump version to 1.1.1
1 parent e299dc6 commit f5369ea

File tree

2 files changed

+45
-13
lines changed

2 files changed

+45
-13
lines changed

demo/demo/templates/index.html

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,48 @@ <h1>Demonstration Application</h1>
66
This is the django_plotly_dash demo application. It contains a number of separate pages that
77
exhibit different features of the integration of Plotly Dash into the Django framework.
88
</div>
9-
<ul class="btnspace">
10-
<li><a class="btn btn-primary btnspace" href="{%url "demo-one"%}">Demo One</a> - direct insertion of one or more Dash applications into a Django template</li>
11-
<li><a class="btn btn-primary btnspace" href="{%url "demo-two"%}">Demo Two</a> - storage of application initial state within Django</li>
12-
<li><a class="btn btn-primary btnspace" href="{%url "demo-three"%}">Demo Three</a> - adding Django features with enhanced callbacks</li>
13-
<li><a class="btn btn-primary btnspace" href="{%url "demo-four"%}">Demo Four</a> - live updating of apps by pushing from the Django server</li>
14-
<li><a class="btn btn-primary btnspace" href="{%url "demo-five"%}">Demo Five</a> - injection of a Dash application without embedding in an html iframe</li>
15-
<li><a class="btn btn-primary btnspace" href="{%url "demo-six"%}">Demo Six</a> - simple html injection example</li>
16-
<li><a class="btn btn-primary btnspace" href="{%url "demo-seven"%}">Demo Seven</a> - dash-bootstrap-components example</li>
17-
<li><a class="btn btn-primary btnspace" href="{%url "demo-eight"%}">Demo Eight</a> - Django session state example</li>
18-
<li><a class="btn btn-primary btnspace" href="{%url "demo-nine"%}">Demo Nine</a> - local serving of assets</li>
19-
<li><a class="btn btn-primary btnspace" href="{%url "demo-ten"%}">Demo Ten</a> - callback multiple return values</li>
20-
</ul>
9+
<table class="table table-bordered table-striped">
10+
<tbody>
11+
<tr>
12+
<td><a class="btn btn-primary btn-block" href="{%url "demo-one"%}">Demo One</a></td>
13+
<td>Direct insertion of one or more Dash applications into a Django template</td>
14+
</tr>
15+
<tr>
16+
<td><a class="btn btn-primary btn-block" href="{%url "demo-two"%}">Demo Two</a></td>
17+
<td>Storage of application initial state within Django</td>
18+
</tr>
19+
<tr>
20+
<td><a class="btn btn-primary btn-block" href="{%url "demo-three"%}">Demo Three<a/></td>
21+
<td>Adding Django features with enhanced callbacks</td>
22+
</tr>
23+
<tr>
24+
<td><a class="btn btn-primary btn-block" href="{%url "demo-four"%}">Demo Four</a></td>
25+
<td>Live updating of apps by pushing from the Django server</td>
26+
</tr>
27+
<tr>
28+
<td><a class="btn btn-primary btn-block" href="{%url "demo-five"%}">Demo Five</a></td>
29+
<td>Injection of a Dash application without embedding in an html iframe</td>
30+
</tr>
31+
<tr>
32+
<td><a class="btn btn-primary btn-block" href="{%url "demo-six"%}">Demo Six</a></td>
33+
<td>Simple html injection example</td>
34+
</tr>
35+
<tr>
36+
<td><a class="btn btn-primary btn-block" href="{%url "demo-seven"%}">Demo Seven</a></td>
37+
<td>Dash-bootstrap-components example</td>
38+
</tr>
39+
<tr>
40+
<td><a class="btn btn-primary btn-block" href="{%url "demo-eight"%}">Demo Eight</a></td>
41+
<td>Django session state example</td>
42+
</tr>
43+
<tr>
44+
<td><a class="btn btn-primary btn-block" href="{%url "demo-nine"%}">Demo Nine</a></td>
45+
<td>Local serving of assets</td>
46+
</tr>
47+
<tr>
48+
<td><a class="btn btn-primary btn-block" href="{%url "demo-ten"%}">Demo Ten</a></td>
49+
<td>Callback with multiple return values</td>
50+
</tr>
51+
</tbody>
52+
</table>
2153
{%endblock%}

django_plotly_dash/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
2424
'''
2525

26-
__version__ = "1.1.0"
26+
__version__ = "1.1.1"

0 commit comments

Comments
 (0)