aboutsummaryrefslogtreecommitdiff
path: root/views/includes/list_gril.html
blob: 8ac52e97b8ce423cafbb551d1afa9bfed91c85ea (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
{{ define "list_gril" }}
<li id="{{ .Value.Gril.Gril.ID }}">
	<div class="card-panel hoverable list-entry">
		<div class="row valign-wrapper">
			<div class="col s3 m2 {{ if not .Value.IsListOwner }}offset-s1 offset-m1{{ end }}">
				<div class="circle gril-img" style="background-image: url(/{{ .Value.Gril.Gril.ImagePath true }})"> </div>
			</div>
			<div class="col {{ if .Value.IsListOwner }}s6 m3{{ else }}s8 m9{{ end }}">
			<span><a href="/gril/{{ .Value.Gril.Gril.Slug }}">{{ .Value.Gril.Gril.RomajiName }}</a><br />
				<span class="jap-name truncate">{{ .Value.Gril.Gril.KanjiName }}</span>
			</span>
			</div>
			{{ if .Value.IsListOwner }}
			<div class="col s3 m5">
				<div class="hide-on-med-and-up">
					<div class="row list-controls valign-wrapper">
						<div class="col s6 left-align">
							<i class="gril-sort-up material-icons">keyboard_arrow_up</i>
							<i class="gril-sort-down material-icons">keyboard_arrow_down</i>
							</div>
							<div class="col s4 left-align">
							<i class="gril-delete hide-on-med-and-up material-icons delete-icon">delete</i>
							</div>
						</div>
					</div>
					<div class="hide-on-small-only">
						<div class="valign-wrapper">
						<i class="gril-sort-up medium material-icons">keyboard_arrow_up</i>
						<i class="gril-sort-down medium material-icons">keyboard_arrow_down</i>
						<i class="gril-delete material-icons">delete</i>
					</div>
				</div>
			</div>
			{{ end }}
		</div>
	</div>
</li>
{{ end }}