aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/includes/card.html7
-rw-r--r--views/includes/materialize_js.html2
-rw-r--r--views/pages/list.html33
3 files changed, 38 insertions, 4 deletions
diff --git a/views/includes/card.html b/views/includes/card.html
index 289c9d3..a96cb49 100644
--- a/views/includes/card.html
+++ b/views/includes/card.html
@@ -3,6 +3,11 @@
3<div class="col s12 m6 l4"> 3<div class="col s12 m6 l4">
4 <div class="card white"> 4 <div class="card white">
5 <div class="card-content black-text"> 5 <div class="card-content black-text">
6 {{ if $card.Image }}
7 <div class="center-align" style="padding-top: 8px">
8 <img class="circle responsive-img card-image" src="{{ $card.Image }}" />
9 </div>
10 {{ end }}
6 <span class="card-title">{{ $card.Title | html }}</span> 11 <span class="card-title">{{ $card.Title | html }}</span>
7 <p>{{ $card.Description | html }}</p> 12 <p>{{ $card.Description | html }}</p>
8 </div> 13 </div>
@@ -11,7 +16,7 @@
11 {{ if $action.Disabled }} 16 {{ if $action.Disabled }}
12 <span>{{ $action.Name | html }}</span> 17 <span>{{ $action.Name | html }}</span>
13 {{ else }} 18 {{ else }}
14 <a class="purple-text text-lighten-2" href="{{ $action.Link }}">{{ $action.Name | html }}</a> 19 <a {{ if $action.Target }} target="{{ $action.Target }}" {{ end }} class="purple-text text-lighten-2" href="{{ $action.Link }}">{{ $action.Name | html }}</a>
15 {{ end }} 20 {{ end }}
16 {{ end }} 21 {{ end }}
17 </div> 22 </div>
diff --git a/views/includes/materialize_js.html b/views/includes/materialize_js.html
index be6dda6..e74202a 100644
--- a/views/includes/materialize_js.html
+++ b/views/includes/materialize_js.html
@@ -1,4 +1,4 @@
1{{ define "materialize_js" }} 1{{ define "materialize_js" }}
2<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> 2<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
3<script src="/assets/js/materialize.min.js"></script> 3<script src="/assets/js/materialize.min.js"></script>
4{{ end }} \ No newline at end of file 4{{ end }}
diff --git a/views/pages/list.html b/views/pages/list.html
index 71f25fd..6d4d112 100644
--- a/views/pages/list.html
+++ b/views/pages/list.html
@@ -19,9 +19,19 @@
19 <h1>{{ $list.Name }} <small>von <a href="/user/{{ $list.Owner.ID }}/{{ $list.Owner.GetName}}">{{ $list.Owner.GetName }}</a></small></h1> 19 <h1>{{ $list.Name }} <small>von <a href="/user/{{ $list.Owner.ID }}/{{ $list.Owner.GetName}}">{{ $list.Owner.GetName }}</a></small></h1>
20 {{ if .isOwner }}</div> 20 {{ if .isOwner }}</div>
21 <div class="col s2 right-align"> 21 <div class="col s2 right-align">
22 <a class="waves-effect waves-light purple lighten-4 btn" style="margin-top: 8px; width: auto"href="/list/{{ $list.ID }}/settings"> 22 <a class="waves-effect waves-light purple lighten-4 btn" style="margin-top: 8px; width: auto" href="/list/{{ $list.ID }}/settings">
23 <i class="material-icons">settings</i> 23 <i class="material-icons">settings</i>
24 </a> 24 </a>
25 {{ if $user.HasExternalServices }}
26 <a class="waves-effect waves-light green lighten-4 dropdown-button btn" data-constrainwidth="false" data-beloworigin="true" data-activates="import-dropdown" style="margin-top: 8px; width: auto">
27 <i class="material-icons">file_download</i>
28 </a>
29 <ul id="import-dropdown" class="dropdown-content">
30 {{ if and $user.AnilistClient $user.AnilistClient.IsCoupled }}
31 <li><a id="import-from-anilist">Von Anilist importieren</a></li>
32 {{ end }}
33 </ul>
34 {{ end }}
25 </div> 35 </div>
26 </div>{{ end }} 36 </div>{{ end }}
27 <blockquote>{{ $list.Description }}</blockquote><br /> 37 <blockquote>{{ $list.Description }}</blockquote><br />
@@ -62,6 +72,25 @@
62 {{ end }} 72 {{ end }}
63 </div> 73 </div>
64 </div> 74 </div>
75 <div id="gril-merge-modal" class="modal">
76 <div class="modal-content">
77 <h4>Gril zuordnen</h4>
78 <p>Bitte Ordne deinem Anilist Favoriten ein Gril auf Grilist zu.</p>
79 <div class="row center-align">
80 <img id="gril-merge-modal-image">
81 </div>
82 <h4 id="gril-merge-modal-name"></h4>
83 <div id="gril-merge-modal-template">
84 {{ template "card" .mergeTemplateCard }}
85 </div>
86 <div id="gril-merge-modal-targets" class="row">
87 </div>
88 </div>
89 <div class="modal-footer">
90 <a class=" modal-action modal-close waves-effect waves-green btn-flat">Abbrechen</a>
91 </div>
92 </div>
93 {{ template "materialize_js" }}
65 </body> 94 </body>
66</html> 95</html>
67{{ end }} 96{{ end }}