Skip to content

Commit 144f033

Browse files
committed
50char->| 72char->|
Add FAQ link to menu and fix bug CSS not showing * Fix 🐛 not showing css in faq app: * move css for faq to the proper path in `/apps/faq/static/faq/css/main.scss` * correct reference to css in `/apps/faq/templates/faq/base.html` * set `{% block body_class %}` to `faq-index` in `/apps/faq/templates/faq/faq_list.html` * add FAQ link in the main menu: * add faq to menu in `apps/commons/templates/header.html`
1 parent c45639d commit 144f033

6 files changed

Lines changed: 16 additions & 23 deletions

File tree

apps/commons/templates/header.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
<a class="navbar-item {% is_active 'about:history' %}" href="{% url 'about:history' %}">Historia</a>
2626
<a class="navbar-item {% is_active 'about:join' %}" href="{% url 'about:join' %}">¡Únete!</a>
2727
<a class="navbar-item {% is_active 'about:allies' %}" href="{% url 'about:allies' %}">Aliados</a>
28+
<a class="navbar-item {% is_active 'faq:faq_list' %}" href="{% url 'faq:faq_list' %}">FAQ</a>
2829
</div>
2930
</div>
3031
<div class="navbar-item has-dropdown is-hoverable">
@@ -37,7 +38,7 @@
3738
<a class="navbar-item {% is_active 'events:past_events' %}" href="{% url 'events:past_events' %}">Eventos pasados</a>
3839
</div>
3940
</div>
40-
41+
4142
<a class="navbar-item {% is_active 'jobs:index' %}" href="{% url 'jobs:index' %}">
4243
<i class="fas fa-laptop-code"></i>
4344
Empleo

apps/faq/admin.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,3 @@
44
from .models import FAQItem
55

66
admin.site.register(FAQItem)
7-
8-
"""
9-
# una referencia de pycan:
10-
11-
from . import models
12-
13-
14-
@admin.register(models.Ally)
15-
class AllyAdmin(admin.ModelAdmin):
16-
list_display = (
17-
'name',
18-
'url',
19-
'twitter',
20-
'email',
21-
)
22-
"""

apps/faq/static/faq/css/main.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@import "apps/commons/static/commons/css/base";
2+
3+
.faq-index {
4+
p {
5+
padding-top: 0.5rem;
6+
padding-bottom: 0.5rem;
7+
}
8+
9+
.dyn-anchor-link i:hover {
10+
color: tomato;
11+
}
12+
}

apps/faq/static/faq/main.scss

Lines changed: 0 additions & 4 deletions
This file was deleted.

apps/faq/templates/faq/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
{% load utils %}
44

55
{% block style %}
6-
<link rel="stylesheet" href="{{ assets|get_asset_key:'about/custom.min.css' }}">
6+
<link rel="stylesheet" href="{{ assets|get_asset_key:'faq/custom.min.css' }}">
77
{% endblock style %}

apps/faq/templates/faq/faq_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{% block title %}Asociación - {{ block.super }}{% endblock %}
44

5-
{% block body_class %}about-index{% endblock %}
5+
{% block body_class %}faq-index{% endblock %}
66

77
{% block content %}
88
<h1 class="title">FAQ</h1>

0 commit comments

Comments
 (0)