summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authoryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-07-13 11:08:09 +0000
committeryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-07-13 11:08:09 +0000
commita9de16e13ba4b2270794e2b1aef4f710fa143cbf (patch)
tree3a01a32c93deb8f3a4f40fae031b8ff4ef7ad176 /data
parent2252e5a53eec2a23b202aa2e2468f10375d72ab0 (diff)
Admins can change someones username, Fixed the automatic relogin after changing password and Added lock indicator when browsing threads on a tag
git-svn-id: svn://vndb.org/vndb@65 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'data')
-rw-r--r--data/tpl/ttag5
-rw-r--r--data/tpl/useredit1
-rw-r--r--data/tpl/userlist8
3 files changed, 9 insertions, 5 deletions
diff --git a/data/tpl/ttag b/data/tpl/ttag
index 3495d319..6ddee459 100644
--- a/data/tpl/ttag
+++ b/data/tpl/ttag
@@ -33,7 +33,10 @@
</tr></thead>
[[ for (@{$d{t}}) { ]]-
<tr>
- <td class="tc1"><a href="/t[[= $_->{id} ]]" title="[[= join ', ', sort map $$_[1]?$$_[0].$$_[1]:$$_[0], @{$_->{tags}} ]]">[[: $_->{title} ]]</a></td>
+ <td class="tc1">
+ <a href="/t[[= $_->{id} ]]" title="[[= join ', ', sort map $$_[1]?$$_[0].$$_[1]:$$_[0], @{$_->{tags}} ]]">[[: $_->{title} ]]</a>
+ [[ if($_->{locked}) { ]]- <b>[locked]</b>[[ } ]]
+ </td>
<td class="tc2">[[= $_->{count}-1 ]]</td>
<td class="tc3"><a href="/u[[= $_->{uid} ]]">[[= $_->{username} ]]</a></td>
<td class="tc4"><a href="/u[[= $_->{luid} ]]">[[= $_->{lusername} ]]</a> @
diff --git a/data/tpl/useredit b/data/tpl/useredit
index 16bc8c44..0e152f80 100644
--- a/data/tpl/useredit
+++ b/data/tpl/useredit
@@ -26,6 +26,7 @@
$d{adm} ? (
{ type => 'sub', title => 'Admin', short => 'adm' },
+ { type => 'input', name => 'Username', short => 'username' },
{ type => 'select', name => 'Rank', short => 'rank', options => [
map { { name => $VNDB::VNDBopts{ranks}[0][0][$_], short => $_ } } 1..($#{$VNDB::VNDBopts{ranks}}-1) ] },
) : (),
diff --git a/data/tpl/userlist b/data/tpl/userlist
index 4fcb12c7..d83249e1 100644
--- a/data/tpl/userlist
+++ b/data/tpl/userlist
@@ -19,20 +19,20 @@
<table id="tul">
<thead><tr>
<td class="tc1">Username [[= sortbut($url, 'username') ]]</td>
-[[ if($p{Authuserlist}) { ]]-
+[[ if($p{Authusermod}) { ]]-
<td class="tc2">Mail [[= sortbut($url, 'mail') ]]</td>
<td class="tc3">Rank [[= sortbut($url, 'rank') ]]</td>[[ } ]]-
<td class="tc4">Registered [[= sortbut($url, 'registered') ]]</td>
<td class="tc5">VN list</td>
<td class="tc6">Votes</td>
<td class="tc7">Changes</td>
-[[ if($p{Authuseredit}) { ]]-
+[[ if($p{Authusermod}) { ]]-
<td class="tc8">&nbsp;</td>[[ } ]]-
</tr></thead>
[[ for (@{$d{users}}) { ]]-
<tr>
<td class="tc1"><a href="/u[[= $_->{id} ]]">[[: $_->{username} ]]</a></td>
-[[ if($p{Authuserlist}) { ]]-
+[[ if($p{Authusermod}) { ]]-
<td class="tc2">[[: $_->{mail} ]]</td>
<td class="tc3">[[: $VNDB::VNDBopts{ranks}[0][0][$_->{rank}] ]]</td>[[ } ]]-
<td class="tc4">[[= formatdate('%Y-%m-%d', $_->{registered}, 'wd') ]]</td>
@@ -45,7 +45,7 @@
<td class="tc7">[[ if($_->{changes}) { ]]
<a href="/u[[= $_->{id} ]]/hist" title="Recent changes by -[[: $_->{username} ]]">[[= $_->{changes} ]]</a>
[[ } else { ]]0[[ } ]]</td>
-[[ if($p{Authuseredit}) { ]]-
+[[ if($p{Authusermod}) { ]]-
<td class="tc8">( <a href="/u[[= $_->{id} ]]/edit">edit</a> )</td>[[ } ]]-
</tr>
[[ } ]]-