diff options
author | rtz12 <koenig@fagott.pw> | 2016-11-15 17:29:02 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2016-11-15 17:29:02 (UTC) |
commit | 0ad174d7329e02b3f644614de0758789bb3677d4 (patch) | |
tree | e49a659c0b89bdec07cde778850b7fe002ac27ea /views/pages | |
parent | e02ad854383265db216ed92b10c4f12408999d6a (diff) |
Verrückter Anilist Import
Bestes Feature 2k16.
Hashtag Make Grilist Great Again.
Diffstat (limited to 'views/pages')
-rw-r--r-- | views/pages/list.html | 33 |
1 files changed, 31 insertions, 2 deletions
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 }} |