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

Commit

Permalink
event.list-itemで画像出ていない問題を修正した
Browse files Browse the repository at this point in the history
  • Loading branch information
giginet committed Oct 5, 2014
1 parent 74eaf0d commit 4279158
Showing 1 changed file with 29 additions and 36 deletions.
65 changes: 29 additions & 36 deletions src/kawaz/templates/events/components/list-item.html
Expand Up @@ -5,43 +5,36 @@

<div class="panel panel-default event-list-item{% if event.pub_state == "protected" %} list-item-internal{% endif %}">

<a href="{{ event.get_absolute_url }}" class="event-list-panel">
<div class="panel-body event-panel-body">
<div class="event-panel-header">
<h3>{{ event.title }}</h3>
<div class="event-category">
<span class="glyphicon glyphicon-folder-open event-category-icon"></span>
<span>{{ event.category | default_if_none:"未設定" }}</span>
</div>
</div>

<div class="event-panel-info">
<div class="event-panel-time">
<span class="glyphicon glyph-large-icon glyphicon-time"></span>
<a href="{{ event.get_absolute_url }}" class="event-list-panel">
<div class="panel-body event-panel-body">
<div class="event-panel-header">
<h3>{% if event.period_start %}<span class="title-date">{{ event.period_start | date:"m/d" }} </span>{% endif %}{{ event.title }}</h3>
<div class="event-category">
<span class="glyphicon glyphicon-folder-open event-category-icon"></span>
<span>{{ event.category | default_if_none:"未設定" }}</span>
</div>
</div>

{# TODO 年月日だけ出力(今はなにもなし) #}
<span class="event-start-date">{{ event.humanized_period }}</span>
<div class="event-panel-info">
<div class="event-panel-time">
<span class="glyphicon glyph-large-icon glyphicon-time"></span>
<span class="event-start-date">{{ event.humanized_period }}</span>
</div>
<div class="event-panel-place">
<span class="glyphicon glyph-large-icon glyphicon-flag"></span>
{% if event.place %}
<span class="event-place">{{ event.place }}</span>
{% else %}
<span class="event-place">{% trans "開催場所未定" %}</span>
{% endif %}
</div>
</div>

{# TODO 曜日だけ出力 #}
{# TODO 曜日用のクラス名 #}
<span class="">{{ event.humanized_period | date:"(l)" }}</span>
<ul class="event-attendees-list">
{% for attendee in event.attendees.all %}
<img src="{{ attendee.get_middle_avatar }}" alt="{{ attendee.nickname }} Avatar" rel="tooltip" data-toggle="tooltip" data-placement="top" title="{{ attendee.nickname }}" class="avatar avatar-small" />
{% endfor %}
</ul>
</div>
<div class="event-panel-place">
<span class="glyphicon glyph-large-icon glyphicon-flag"></span>
{% if event.place %}
<span class="event-place">{{ event.place }}</span>
{% else %}
<span class="event-place">{% trans "開催場所未定" %}</span>
{% endif %}
</div>
</div>

<ul class="event-attendees-list">
{% for attendee in event.attendees.all %}
<img src="{{ MEDIA_URL }}{{ attendee.get_middle_avatar }}" alt="{{ attendee.nickname }} Avatar" rel="tooltip" data-toggle="tooltip" data-placement="top" title="{{ attendee.nickname }}" class="avatar avatar-small" />
{% endfor %}
</ul>
</div>
</a>
</a>
</div>
{{ block.super }}

0 comments on commit 4279158

Please sign in to comment.