summaryrefslogtreecommitdiff
path: root/templates/tablon/tema.html
blob: 5d19b9e833c1b7363ba7e57e25dc21c294e2b5a3 (plain)
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
{% extends "tablon/base.html" %}
{% load markup %}
{% load oembed_tags %}
{% load tablon %}
{% block title %}{{ block.super }} - {{ tema.titulo }}{% endblock %}
{% block page-header %}{{ tema.titulo }}{% endblock %}
{% block tablon %}
<ul class="breadcrumb">
  <li><a href="/tablon/">Lista de foros</a> <span class="divider">/</span></li>
  <li><a href="/tablon/foro/{{ foro.id }}">{{ foro.nombre }}</a></li>
</ul>
{% if lista_mensajes %}
  <table class="table table-striped" id="lista_mensajes" cellspacing="0" cellpadding="0">
  {% for m in lista_mensajes %}
  <tr id="{{ m.id }}" class="{% cycle mensaje_fila_1,mensaje_fila_2 %}">
    <td class="{% cycle mensaje_izda_1,mensaje_izda_2 %}">
      {% ifisnew m.created_on ult_visita %}NUEVO{% else %}NO NUEVO{% endifisnew %}
      {% if m.autor.get_profile.imagen %}
      <img src="{{ m.autor.get_profile.imagen }}" alt="{{ m.autor.username}}" />
      {% endif %}
      <!--
      <p>{{ m.created_on }}</p>
      <p>{{ ult_visita }}</p>
      -->
      <div class="mensaje_autor"><a href="/usuarios/ver/{{ m.autor.username }}/">{{ m.autor.username }}</a></div>
      {{ m.autor.get_profile.url }}<br />
      {{ m.autor.mensaje_set.count }} mensaje{{m.autor.mensaje_set.count|pluralize}}<br />
    </td>
    <td class="{% cycle mensaje_dcha_1,mensaje_dcha_2 %}">
      <div class="mensaje_titulo">{{ m.titulo }}</div>
      <div class="mensaje_fecha">Escrito el {{ m.created_on|date:"d/m/y @H:i" }}</div>
      <div class="mensaje_contenido">{{ m.texto|my_oembed:"480x480"|markdown:"wikilinks(base_url=/wiki/),tables"}}</div>
    </td>
  </tr>
  {% endfor %}
  </table>
{% else %}
  <p>¡No hay mensajes en este tema! Consulta con <a href="/usuarios/ver/kinote/">kinote</a>.</p>
{% endif %}
<div class="btn-toolbar">
  <a class="btn btn-primary" href="/tablon/tema/{{ tema.id }}/responder/">Responder</a>
</div>
{% endblock %}