Skip to content
Permalink
Browse files
glyphicons
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jan 21, 2015
1 parent b8fc360 commit 63c89ab62ee63ff35e2bc6c2f12ead0aa343d3e7
Showing with 11 additions and 10 deletions.
  1. +3 −3 app.py
  2. +6 −7 templates/acp/index.html
  3. +2 −0 templates/base.html
6 app.py
@@ -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)
@@ -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">
@@ -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>
@@ -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">

0 comments on commit 63c89ab

Please sign in to comment.