diff options
Diffstat (limited to 'data/tpl/vnpage')
-rw-r--r-- | data/tpl/vnpage | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/data/tpl/vnpage b/data/tpl/vnpage index 1077c202..39374ed8 100644 --- a/data/tpl/vnpage +++ b/data/tpl/vnpage @@ -13,7 +13,9 @@ -[[ if($p{AuthLoggedin}) { ]] <p class="mod">< + user options - <a href="/u[[= $p{AuthId} ]]/list" rel="voteDD" class="dropdown">[[= $d{vote}{vid} ? 'your vote: '.$d{vote}{vote} : 'vote' ]]</a> + - <a href="/u[[= $p{AuthId} ]]/wish" rel="wishDD" class="dropdown">[[= $d{wlist}{vid} ? 'wishlist: '.lc($$VNDB::WSTAT[$d{wlist}{wstat}]) : 'wishlist' ]]</a> ></p> [[ } ]]- @@ -176,6 +178,19 @@ if($d{vn}{length} || $d{vn}{alias} || @links || $prod) { ]] [[ } ]] </ul> </div> + +<div class="dropdown" id="wishDD"> + <ul> + [[ for (0..$#$VNDB::WSTAT) { + if($d{wlist}{vid} && $d{wlist}{wstat} == $_) { ]]- + <li><b>[[: $$VNDB::WSTAT[$_] ]]</b></li> + [[ } else { ]]- + <li><a href="/v[[= $d{vn}{id} ]]/wish?w=[[= $_ ]]">[[: $$VNDB::WSTAT[$_] ]]</a></li> + [[ } } if($d{wlist}{vid}) { ]]- + <li><a href="/v[[= $d{vn}{id} ]]/wish?w=-1">remove</a></li> + [[ } ]] + </ul> +</div> [[ } ]] |