Commit a4c37eab authored by Matthieu Gautier's avatar Matthieu Gautier

Emphasize application cards.

Fix #39
parent d344bc08
......@@ -71,6 +71,11 @@ STAFF_HOME_CARDS = [
card for card in STAFF_HOME_CARDS # pragma: no flakes
if card['url'] in ('user_list', 'server:settings')
]
# Mark staff cards as application cards.
for c in STAFF_HOME_CARDS:
c['class'] = 'application'
CUSTOM_CARDS = [
{
'id': 'radio_listen',
......
.no-underline {
text-decoration: none;
}
.card.tinted.application,
.card.tinted.appinventor,
.card.tinted.blog,
.card.tinted.bsfcampus,
.card.tinted.khanacademy,
.card.tinted.kolibri,
.card.tinted.koombookedu,
.card.tinted.library,
.card.tinted.mediacenter {
border: 2px solid #b9b9b9;
background-color: #eee;
}
{% load i18n %}
<a href="
{% if card.url|slice:'7' == 'http://' %}
{{ card.url }}
{% else %}
{% url card.url %}
{% endif %}" class="card tinted {{ card.class }}">
{% if card.fa %}<i class="fa fa-{{ card.fa }} fa-3x"></i>{% endif %}
<h4>
<span class="theme {{ card.category }}">{% trans card.category %}</span>
<span>{{ card.title }}</span>
</h4>
<p>{{ card.description }}</p>
</a>
{% load i18n %}
<a href="{% url 'message_create' %}" class="card tinted">
<a href="{% url 'message_create' %}" class="card tinted application">
<i class="fa fa-edit fa-3x"></i>
<h4>
{% comment %}Translators: Do not translate this, the translation is in Ideascube{% endcomment %}
......
{% load i18n %}
<a href="{% url 'message_create' %}" class="card tinted">
<i class="fa fa-music fa-3x"></i>
<h4>
{% comment %}Translators: Do not translate this, the translation is in Ideascube{% endcomment %}
<span class="theme discover">{% trans "discover" %}</span>
<span>
<<<<<<< HEAD
{% trans 'Post a new message' %}
=======
{% trans 'Participate' %}
>>>>>>> 9f649e9... fixup! Add a card pointing to
</span>
</h4>
<p>
{% trans 'Post a new message or a advertisement.' %}
</p>
</a>
{% load i18n %}
<a href="{% url 'radio_index' %}" class="card tinted">
<a href="{% url 'radio_index' %}" class="card tinted application">
<i class="fa fa-music fa-3x"></i>
<h4>
{% comment %}Translators: Do not translate this, the translation is in Ideascube{% endcomment %}
......
{% load i18n %}
<a href="{% url 'blog:index' %}" class="card tinted">
<a href="{% url 'blog:index' %}" class="card tinted application">
<i class="fa fa-newspaper-o fa-3x"></i>
<h4>
{% comment %}Translators: Do not translate this, the translation is in Ideascube{% endcomment %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment