Skip to content

Commit 63c89ab

Browse files
committedJan 21, 2015
glyphicons
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent b8fc360 commit 63c89ab

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed
 

‎app.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -150,17 +150,17 @@ def checkgenerator(f):
150150
rssurl = burl + 'rss.xml'
151151
success = """
152152
<p class="text-success">
153-
<i class="glyphicon glyphicon-ok" style="font-size: 2em;"></i>
153+
<i class="fa fa-check" style="font-size: 2em;"></i>
154154
This is a Nikola site.</p>"""
155155

156156
failed = """
157157
<p class="text-danger">
158-
<i class="glyphicon glyphicon-remove" style="font-size: 2em;"></i>
158+
<i class="fa fa-times" style="font-size: 2em;"></i>
159159
This is not a Nikola site.</p>"""
160160

161161
unknown = """
162162
<p class="text-warning">
163-
<i class="glyphicon glyphicon-warning-sign" style="font-size: 2em;"></i>
163+
<i class="fa fa-warning" style="font-size: 2em;"></i>
164164
The check has failed. {0}</p>"""
165165
try:
166166
r = requests.get(rssurl)

‎templates/acp/index.html

+6-7
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@
2424
<td>{{ p.id|e }}</td>
2525
<td>{{ p.title|e }}</td>
2626
<td>{{ p.author|e }}</td>
27-
<td><i class="glyphicon{% if p.publishemail %}glyphicon-eye-open{% else
28-
%}glyphicon-eye-close{% endif %}"></i> <a href="mailto:{{
27+
<td><i class="fa fa-eye{% if not p.publishemail %}-slash{% endif %}"></i> <a href="mailto:{{
2928
p.email|e }}">{{ p.email|e }}</a></td>
3029
<td><a href="{{ p.url|e }}">{{ p.url|e }}</a></td>
31-
<td><i class="glyphicon {% if p.sourcelink %}glyphicon-ok{% else
32-
%}glyphicon-remove{% endif %}"></i></td>
30+
<td><i class="fa {% if p.sourcelink %}fa-check{% else
31+
%}fa-times{% endif %}"></i></td>
3332
<td>
3433
{% for i in p.languages %}
3534
<img src="/public/icons/{{ icons[i] }}.png">
@@ -40,14 +39,14 @@
4039
<div class="btn-group">
4140
<button type="submit" name="toggle" class="btn btn-xs
4241
{% if p.visible %}btn-info{% else %}btn-success{% endif %}">
43-
<i class="glyphicon glyphicon-eye-{% if p.visible %}close{% else %}open{% endif %}"></i>
42+
<i class="fa fa-eye{% if p.visible %}-slash{% endif %}"></i>
4443
</button>
4544
<button type="submit" name="edit" class="btn btn-xs
4645
btn-primary">
47-
<i class="glyphicon glyphicon-edit"></i>
46+
<i class="fa fa-pencil"></i>
4847
</button>
4948
<button type="submit" name="delete" class="btn btn-xs btn-danger">
50-
<i class="glyphicon glyphicon-trash"></i>
49+
<i class="fa fa-trash"></i>
5150
</button>
5251
</div>
5352
</form>

‎templates/base.html

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
{% autoescape false %}
88
{{ header }}
99
{% endautoescape %}
10+
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
11+
1012
<link href="http://getnikola.com/assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
1113
<link rel="canonical" href="http://users.getnikola.com/">
1214
<link rel="shortcut icon" href="http://getnikola.com/favicon.ico">

0 commit comments

Comments
 (0)
Please sign in to comment.