Skip to content

Commit

Permalink
glyphicons
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 21, 2015
1 parent b8fc360 commit 63c89ab
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions app.py
Expand Up @@ -150,17 +150,17 @@ def checkgenerator(f):
rssurl = burl + 'rss.xml'
success = """
<p class="text-success">
<i class="glyphicon glyphicon-ok" style="font-size: 2em;"></i>
<i class="fa fa-check" style="font-size: 2em;"></i>
This is a Nikola site.</p>"""

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

unknown = """
<p class="text-warning">
<i class="glyphicon glyphicon-warning-sign" style="font-size: 2em;"></i>
<i class="fa fa-warning" style="font-size: 2em;"></i>
The check has failed. {0}</p>"""
try:
r = requests.get(rssurl)
Expand Down
13 changes: 6 additions & 7 deletions templates/acp/index.html
Expand Up @@ -24,12 +24,11 @@
<td>{{ p.id|e }}</td>
<td>{{ p.title|e }}</td>
<td>{{ p.author|e }}</td>
<td><i class="glyphicon{% if p.publishemail %}glyphicon-eye-open{% else
%}glyphicon-eye-close{% endif %}"></i> <a href="mailto:{{
<td><i class="fa fa-eye{% if not p.publishemail %}-slash{% endif %}"></i> <a href="mailto:{{
p.email|e }}">{{ p.email|e }}</a></td>
<td><a href="{{ p.url|e }}">{{ p.url|e }}</a></td>
<td><i class="glyphicon {% if p.sourcelink %}glyphicon-ok{% else
%}glyphicon-remove{% endif %}"></i></td>
<td><i class="fa {% if p.sourcelink %}fa-check{% else
%}fa-times{% endif %}"></i></td>
<td>
{% for i in p.languages %}
<img src="/public/icons/{{ icons[i] }}.png">
Expand All @@ -40,14 +39,14 @@
<div class="btn-group">
<button type="submit" name="toggle" class="btn btn-xs
{% if p.visible %}btn-info{% else %}btn-success{% endif %}">
<i class="glyphicon glyphicon-eye-{% if p.visible %}close{% else %}open{% endif %}"></i>
<i class="fa fa-eye{% if p.visible %}-slash{% endif %}"></i>
</button>
<button type="submit" name="edit" class="btn btn-xs
btn-primary">
<i class="glyphicon glyphicon-edit"></i>
<i class="fa fa-pencil"></i>
</button>
<button type="submit" name="delete" class="btn btn-xs btn-danger">
<i class="glyphicon glyphicon-trash"></i>
<i class="fa fa-trash"></i>
</button>
</div>
</form>
Expand Down
2 changes: 2 additions & 0 deletions templates/base.html
Expand Up @@ -7,6 +7,8 @@
{% autoescape false %}
{{ header }}
{% endautoescape %}
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

<link href="http://getnikola.com/assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
<link rel="canonical" href="http://users.getnikola.com/">
<link rel="shortcut icon" href="http://getnikola.com/favicon.ico">
Expand Down

0 comments on commit 63c89ab

Please sign in to comment.