This repository was archived by the owner on Jun 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (47 loc) · 1.65 KB
/
index.html
File metadata and controls
59 lines (47 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{% extends 'base.html' %}
{% block content %}
<div class="wide column">
{% if principal %}
<h2 class="ui inverted black block header">{{ principal.titulo }}</h2>
<p>{{ principal.conteudo|linebreaks|truncatechars:"200"|safe }}</p>
<div class="ui grid">
<div class="twelve wide column">
<i>{{ principal.data }}</i>
</div>
<div class="four wide column">
<a class="circular ui teal animated button" href="{% url 'noticia_detalhe' principal.id %}">
<div class="visible content">Continuar lendo</div>
<div class="hidden content"><i class="right arrow icon"></i></div>
</a>
</div>
</div>
{% if noticias %}
<div class="ui section divider"></div>
<h3 class="ui header">Fique por dentro</h3>
{% for noticia in noticias %}
<div class="ui animated selection list">
<div class="item">
<i class="inbox icon" style="display:none"></i>
<a href="{% url 'noticia_detalhe' noticia.id %}">{{ noticia.titulo }}</a>
<div class="right floated">{{ noticia.data|date:"d/m/Y - H:i:s"}}</div>
</div>
</div>
{% endfor %}
{% endif %}
{% else %}
<p><i>Nenhuma noticia cadastrada.</i></p>
{% endif %}
</div>
{% endblock content %}
{% block scripts %}
<script type="text/javascript">
$(function(){
$('.item').hover(
function(){
$(this).children('.icon').show(100);
}, function(){
$(this).children('.icon').hide(200);
});
});
</script>
{% endblock scripts %}