/
profileDisabledClubContent.html
75 lines (68 loc) · 2.88 KB
/
profileDisabledClubContent.html
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{% extends "profile.html" %}
{% block nav_profile_club %} class="active" {% endblock %}
{% block profileContent %}
<div class="row">
<div class="span16">
{% ifequal selectedClub.state 'Deshabilitado' %}
<p class="alert-message block-message error"><b>¡Atención!</b> Este club está deshabilitado. No podrá escribir comentarios ni crear eventos.</p>
{% else %}
<p class="alert-message block-message error"><b>¡Atención!</b> Todavía no es participante de este club. No podrá escribir comentarios ni crear eventos.</p>
{% endifequal %}
<h5 class="clubtitle">Club {{selectedClub.name}}</h5>
<div class="row">
<div class="span2"><img align="center" class="thumbnail book-cover" src="{{club.image}}" alt="{{club.name}}"></div>
<div class="span14">
<p><b>Descripción: </b>{{selectedClub.description}} </p>
{% if selectedClub.genre %}
<p><b>Género :</b>{% for genre in selectedClub.genre %}
{{genre}};
{% endfor %}
</p>
{% endif %}
{% if selectedClub.book %}
<p><b>Libro: </b>{{selectedClub.book.title}}</p>
<p><b>Autor: </b>{{selectedClub.book.author}}</p>
{% endif %}
</div>
</div>
</div>
</div>
<p></p>
<div class="row">
<div class="span6">
<h5 class="clubtitle2">Eventos</h5>
</div>
<div class="span10">
<h5 class="clubtitle2">Comentarios</h5>
{% for c in comments %}
<blockquote>
<p>{{c.comment.text}}</p>
<small>{{c.comment.user.nickname}} ({{c.comment.date}})</small>
</blockquote>
{% endfor %}
</div>
</div>
<div class="row centerrow">
<div class="span10 offset3">
<h5 class="clubtitle2">Participantes</h6>
<table id="participantsTable" class="zebra-striped sortable">
<thead>
<tr>
<th class="header blue" style="width:50px" >Avatar</th>
<th class="header blue" >Nombre</th>
<th class="header blue" >Estado</th>
</tr>
</thead>
<tbody>
{% for participation in participations %}
<tr>
<td style="vertical-align:middle"><img class="avatar-small" src='/img?user={{participation.user}}' alt="Avatar del usuario"></td>
<td style="vertical-align:middle">{{participation.user.nickname}}</td>
<td style="vertical-align:middle">{{participation.state}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}