Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Commit 03bb6bc

Browse files
author
Lucas Magnum
committed
Ajustes flatpages e adicionado quebra de linhas para noticias.
1 parent 669d533 commit 03bb6bc

6 files changed

Lines changed: 12 additions & 39 deletions

File tree

apps/noticias/templates/noticias/detalhe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends 'base.html' %}
22
{% block content %}
33
<h2 class="ui inverted black block header">{{ noticia.titulo }}</h2>
4-
<p>{{ noticia.conteudo }}</p>
4+
<p>{{ noticia.conteudo|linebreaks }}</p>
55
<div class="ui grid">
66
<div class="twelve wide column">
77
<i>{{ noticia.data }}</i>

templates/base.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h3 class="header item"><a href="{% url 'home' %}">Python - MG</a></h3>
2424
<a href="{% url 'membro_cadastro' %}" class="item">Entre para o grupo</a>
2525
{% get_flatpages as flatpages %}
2626
{% for page in flatpages %}
27-
<a href="{{ page.url }}" class="{{ page.title }} item"><i class="inbox icon"></i>{{ page.title }}</a>
27+
<a href="{{ page.url }}" class="{{ page.title }} item">{{ page.title }}</a>
2828
{% endfor %}
2929
</div>
3030
</div>
@@ -90,28 +90,28 @@ <h1 class="center aligned ui header">
9090
<div class="center four column aligned row">
9191
<div class="column">
9292
<div class="active side">
93-
<a href="#">
93+
<a href="{{ twitter_url }}">
9494
<i class="huge circular twitter icon"></i>
9595
</a>
9696
</div>
9797
</div>
9898
<div class="column">
9999
<div class="active side">
100-
<a href="#">
100+
<a href="{{ facebook_url }}">
101101
<i class="huge circular facebook icon"></i>
102102
</a>
103103
</div>
104104
</div>
105105
<div class="column">
106106
<div class="active side">
107-
<a href="#">
107+
<a href="{{ github_url }}">
108108
<i class="huge circular github icon"></i>
109109
</a>
110110
</div>
111111
</div>
112112
<div class="column">
113113
<div class="active side">
114-
<a href="#">
114+
<a href="{{ google_url }}">
115115
<i class="huge circular google plus icon"></i>
116116
</a>
117117
</div>
@@ -146,7 +146,7 @@ <h1 class="center aligned ui header">
146146
</div>
147147
<div class="six wide right floated aligned column">
148148
<h2 class="ui header">Python - MG</h3>
149-
<p><i>"Now is better than never."</i></p>
149+
<p><i>{{ zen_python|default:"Now is better than never." }}</i></p>
150150
</div>
151151
</div>
152152

templates/flatpages/default.html

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{% extends "base.html" %}
2-
{% block frame %}
3-
<script type="text/javascript">
4-
selecionaMenu('{{ flatpage.title }}');
5-
</script>
6-
<h1>{{ flatpage.title }}</h1>
7-
8-
<p>
9-
{{ flatpage.content|linebreaks }}
10-
</p>
11-
12-
{% endblock frame %}
2+
{% block content %}
3+
<h1 class="ui inverted black block header">{{ flatpage.title }}</h1>
4+
<p>{{ flatpage.content|linebreaks }}</p>
5+
{% endblock content %}

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{% if forloop.first %}
77

88
<h2 class="ui inverted black block header">{{ noticia.titulo }}</h2>
9-
<p>{{ noticia.conteudo|truncatechars:"200" }}</p>
9+
<p>{{ noticia.conteudo|linebreaks|truncatechars:"200" }}</p>
1010

1111
<div class="ui grid">
1212
<div class="twelve wide column">

templates/noticias/listagem.html

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

templates/participantes/detalhe.html

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

0 commit comments

Comments
 (0)