| Revision 2118,
1.9 KB
checked in by msaelices, 22 months ago
(diff) |
|
Make features icon also clickable, to increase the clickable area. See #330
|
| Line | |
|---|
| 1 | {% extends "content_list.html" %} |
|---|
| 2 | |
|---|
| 3 | {% load i18n inlinetrans action_tags %} |
|---|
| 4 | |
|---|
| 5 | {% block pagetitle %}{% trans "Features index" %}{% endblock %} |
|---|
| 6 | |
|---|
| 7 | {% block extrastyles %} |
|---|
| 8 | {{ block.super }} |
|---|
| 9 | <style type="text/css"> |
|---|
| 10 | .categoryFeatureList { |
|---|
| 11 | background: transparent url(/media/themes/merengueprojectorg/img/features_note_{{ LANGUAGE_CODE }}.png) no-repeat top left; |
|---|
| 12 | } |
|---|
| 13 | </style> |
|---|
| 14 | {% endblock %} |
|---|
| 15 | |
|---|
| 16 | {% block extrabreadcrumbs %} |
|---|
| 17 | <span class="breadcrumbSeparator">â</span><a href="{% url features_index %}" title="{% trans "Features" %}">{% inline_trans "Features" %}</a> |
|---|
| 18 | {% endblock %} |
|---|
| 19 | |
|---|
| 20 | {% block listtitle %}{% trans "Features index" %}{% endblock %} |
|---|
| 21 | |
|---|
| 22 | {% block listing %} |
|---|
| 23 | <ul class="contentList"> |
|---|
| 24 | <li> |
|---|
| 25 | <ul class="categoryFeatureList"> |
|---|
| 26 | <li {% if not category_active %}class="selected"{% endif %}><a href="{% url features_index %}" title="{% trans 'All features' %}"> {% trans 'All' %} </a> </li> |
|---|
| 27 | {% for category in categories_list %} |
|---|
| 28 | <li {% ifequal category category_active %}class="selected"{% endifequal %}><span class="separator">|</span><a href="{{ category.get_absolute_url }}" title="{{ category }}"> |
|---|
| 29 | {{ category }} |
|---|
| 30 | </a> |
|---|
| 31 | </li> |
|---|
| 32 | {% endfor %} |
|---|
| 33 | </ul> |
|---|
| 34 | </li> |
|---|
| 35 | <li> |
|---|
| 36 | <ul class="featureList"> |
|---|
| 37 | {% for feature in content_list %} |
|---|
| 38 | <li> |
|---|
| 39 | <a href="{{ feature.get_absolute_url }}" title="{{ feature }}"> |
|---|
| 40 | {% if feature.icon %} |
|---|
| 41 | <img src="{{ feature.icon.url }}"/> |
|---|
| 42 | {% else %} |
|---|
| 43 | <img src="{{ MEDIA_URL }}features/feature_default.png" /> |
|---|
| 44 | {% endif %} |
|---|
| 45 | {{ feature }} |
|---|
| 46 | </a> |
|---|
| 47 | </li> |
|---|
| 48 | {% endfor %} |
|---|
| 49 | </ul> |
|---|
| 50 | </li> |
|---|
| 51 | </ul> |
|---|
| 52 | {% endblock %} |
|---|
Note: See
TracBrowser
for help on using the repository browser.