-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathactivity-list-item.html
More file actions
33 lines (29 loc) · 1.44 KB
/
activity-list-item.html
File metadata and controls
33 lines (29 loc) · 1.44 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
<li class="activity-item clearfix">
{{!-- data attributes are not ideal, see comment in activity view --}}
<a href="{{ prefix "/place/" }}{{ place.id }}{{#is target_type 'comments'}}/response/{{ target.id }}{{/is}}" data-action-type="{{ target_type }}" data-place-id="{{ place.id }}">{{#_}}<strong>
{{#if target.submitter}}
<img src="{{ target.submitter.avatar_url }}" role="presentation" alt="" class="avatar" /> {{ target.submitter.name }}
{{^}}
<!-- TODO: FIXME: don't hardcode image URL -->
<img src="{{ STATIC_URL }}css/images/user-50.png" role="presentation" alt="" class="avatar" /> {{ target.submitter_name }}
{{/if}}
</strong>
{{#if is_place }}
{{ action }} a{{#if place.type_starts_with_vowel }}n{{/if }} <span class="place-type">{{ place.place_type_label }}</span>
{{#if place.name }}
named <span class="place-name">{{ place.name }}</span>
{{^}}
{{#if place.location }}
at <span class="place-name">{{>location-string place}}</span>
{{/if }}
{{/if }}
{{else}}
{{ action }}
{{#if place.name }}
<span class="place-name">{{ place.name }}</span>
{{else}}
a{{# place.type_starts_with_vowel }}n{{/ place.type_starts_with_vowel }} {{ place.place_type_label }}
{{/if }}
{{/if }}
{{/_}}</a>
</li>