Skip to content

Commit 6b3dd9d

Browse files
committed
Improve about dialog.
1 parent d1a9337 commit 6b3dd9d

3 files changed

Lines changed: 37 additions & 12 deletions

File tree

cloudbot/web/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_application():
2222
(r'/factoids/', TestHandler),
2323
(r'/commands/', CommandsHandler),
2424
(r"/s/(.*)", StaticFileHandler, {"path": "./cloudbot/web/static"}),
25-
])
25+
], compress_response=True)
2626
return app
2727

2828

cloudbot/web/templates/commands.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@ <h2 id="container">Command List</h2>
1111

1212
<p class="lead">{{ bot_name }} has a large selection of commands that can do all kinds of useful tasks.
1313
Below is an automatically-generated list of every command the bot currently knows.</p>
14-
<div class="alert alert-dismissible alert-warning">
15-
<button type="button" class="close" data-dismiss="alert">×</button>
16-
<h4>Under Construction!</h4>
17-
<p>This page is still under construction, and may provide incorrect data.</p>
18-
</div>
14+
15+
<div class="alert alert-dismissible alert-warning">
16+
<button type="button" class="close" data-dismiss="alert">×</button>
17+
<h4>Under Construction!</h4>
18+
19+
<p>This page is still under construction, and may provide incorrect data.</p>
20+
</div>
1921
<table class="table table-striped sortable" id="commands">
2022
<thead>
2123
<tr>
2224
<th class='az' data-defaultsign="nospan" data-defaultsort="asc">Command</th>
2325
<th data-defaultsort='disabled'>Description</th>
24-
<th><i class ="glyphicon glyphicon-lock"></i></th>
26+
<th><i class="glyphicon glyphicon-lock"></i></th>
2527
</tr>
2628
</thead>
2729
{% for cmd, doc, perm in commands %}
@@ -30,11 +32,12 @@ <h4>Under Construction!</h4>
3032
<td>{{ doc | e }}</td>
3133
{% if perm %}
3234
<td data-value="{{ perm|truncate(6, True, '') }}">
33-
<i class ="glyphicon glyphicon-lock" data-toggle="tooltip" data-placement="left" title="{{ perm }}"></i>
35+
<i class="glyphicon glyphicon-lock" data-toggle="tooltip" data-placement="left"
36+
title="{{ perm }}"></i>
3437
</td>
3538
{% else %}
3639
<td data-value="zz"></td>
37-
{% endif %}
40+
{% endif %}
3841
</tr>
3942
{% endfor %}
4043
</table>

cloudbot/web/templates/layout.html

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757

5858
</li>
5959
<li class="dropdown">
60-
<a class="glyphicon glyphicon-option-vertical" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"></a>
60+
<a class="glyphicon glyphicon-option-vertical" class="dropdown-toggle" data-toggle="dropdown"
61+
role="button" aria-expanded="false"></a>
6162
<ul class="dropdown-menu" role="menu">
6263
<li><a href="#" class="active">Default Theme</a></li>
6364
</ul>
@@ -81,11 +82,32 @@
8182
<div class="modal-content">
8283
<div class="modal-header">
8384
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
84-
<h4 class="modal-title">About Me</h4>
85+
<h4 class="modal-title">About {{ bot_name }}</h4>
8586
</div>
8687
<div class="modal-body">
87-
<p><strong>{{ bot_name }}</strong> is running version <strong>{{ bot_version }}</strong> of CloudBot.
88+
<p><strong>{{ bot_name }}</strong> is powered by CloudBot (<strong>{{ bot_version }}</strong>), the fast, simple, open-source Python
89+
IRC bot. CloudBot source code is available on <a href="https://github.com/CloudBotIRC/CloudBot/">the official Github</a>.
8890
</p>
91+
<!--
92+
<p>
93+
Put your own stuff here.
94+
</p>
95+
-->
96+
<pre class="pre-scrollable" style="max-height: 200px;">CloudBot
97+
Copyright © 2011-2015 Luke Rogers / CloudBot Project
98+
99+
CloudBot is free software: you can redistribute it and/or modify
100+
it under the terms of the GNU General Public License as published by
101+
the Free Software Foundation, either version 3 of the License, or
102+
(at your option) any later version.
103+
104+
CloudBot is distributed in the hope that it will be useful,
105+
but WITHOUT ANY WARRANTY; without even the implied warranty of
106+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
107+
GNU General Public License for more details.
108+
109+
You should have received a copy of the GNU General Public License
110+
along with CloudBot. If not, see &lt;<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</pre>
89111
</div>
90112
<div class="modal-footer">
91113
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

0 commit comments

Comments
 (0)