amuse.git

commit 43e3d5d05db9897bb56d5b528dbd22c8d5e4d0fb

Author: Adam <git@apiote.tk>

show watch buttons only for logged users

 templates/tvserie.html | 2 ++


diff --git a/templates/tvserie.html b/templates/tvserie.html
index 25b568f5fb7d9d9a1e94d0830862b584cb61de92..1320890f7a597b52de2e981d4e0f8d86eb7eddf0 100644
--- a/templates/tvserie.html
+++ b/templates/tvserie.html
@@ -179,6 +179,7 @@ 					{{$.Strings.Serie.season}} {{.Season_number}}
 					{{if not .Episodes}}
 					<p class="sans indent-2 margin-top-1">{{$.Strings.Serie.no_episodes}}</p>
 					{{end}}
+					{{if and (not $.State.User.IsEmpty) $.Data.IsOnWantList}}
 					{{if eq .Season_number 0}}
 					<form action="/users/{{$.State.User.Username}}/experiences/" method="POST" class="flex flex-centre">
 						<input type="hidden" name="itemId" value="{{$.Data.Id}}/S00A{{len .Episodes}}" />
@@ -197,6 +198,7 @@ 						
 						<input type="checkbox" class="display-none" name="isOtherTime" value="true"/>
 						<button type="submit" class="border-text hover-bg-dark-accent cursor-hand text-black font-1_5"><span class="padding-lr-_5 material-icon font-1_5">&#xe01f;</span><span class="sans padding-lr-_5">{{$.Strings.Serie.watched_whole_season}}</span></button>
 					</form>
+					{{end}}
 					{{end}}
 					{{range .Episodes}}
 					<div class="flex margin-tb-1">