Move module's templates to their data dir

Instead of having the template files and images in /usr/share/znc/www/<mod>/,
modules now get to use /usr/share/znc/<mod>/tmpl/ and files/ for this purpose.
This puts those directories for static data to good use again and might even fix
some bugs (after all, the code for that dir is older and more tested than the
new code for www/).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1997 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-05-17 13:25:17 +00:00
parent 38d6129964
commit c6b5a4d4db
13 changed files with 3 additions and 23 deletions
+40
View File
@@ -0,0 +1,40 @@
<? INC Header.tmpl ?>
<?IF !UserLoop?>
<div class="textsection">
There are no users defined. Click <a href="adduser">here</a> if you would like to add one.
</div>
<?ELSE?>
<div class="toptable">
<table>
<thead>
<tr>
<td>Action</td>
<td>Username</td>
<td>Clients</td>
<td>Current Server</td>
<td>IRC Nick</td>
</tr>
</thead>
<tbody>
<?LOOP UserLoop SORTASC=Username ?>
<tr class="<?IF __EVEN__?>evenrow<?ELSE?>oddrow<?ENDIF?>">
<td>
<span class="nowrap">
[<a href="edituser?user=<?VAR Username ESC=URL?>">Edit</a>]
<? IF !IsSelf ?>[<a href="deluser?user=<?VAR Username ESC=URL?>">Delete</a>]<? ENDIF ?>
</span>
</td>
<td><? VAR Username ?></td>
<td><? VAR Clients ?></td>
<td><? VAR Server DEFAULT="-N/A-" ?></td>
<td><? VAR IRCNick ?></td>
</tr>
<?ENDLOOP?>
</tbody>
</table>
</div>
<?ENDIF?>
<? INC Footer.tmpl ?>