📄 grouplist.tmpl
字号:
## $Id: GroupList.tmpl 4148 2007-08-21 08:47:53Z jodal $## Extends the UserAdmin template for common useradmin structure.## Builds html for the Group list screen of the useradmin module.#### Copyright 2003, 2004 Norwegian University of Science and Technology## Copyright 2007 UNINETT AS#### This file is part of Network Administration Visualized (NAV)#### NAV is free software; you can redistribute it and/or modify## it under the terms of the GNU General Public License as published by## the Free Software Foundation; either version 2 of the License, or## (at your option) any later version.#### NAV is distributed in the hope that it will be useful,## but WITHOUT ANY WARRANTY; without even the implied warranty of## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the## GNU General Public License for more details.#### You should have received a copy of the GNU General Public License## along with NAV; if not, write to the Free Software## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA###### Authors: Morten Vold <morten.vold@itea.ntnu.no>## Stein Magnus Jodal <stein.magnus.jodal@uninett.no>###extends UserAdmin#def add_group($group) <tr class="$rowcycler"> <td><a href="/useradmin/group?id=$group.id">$group.name</a></td> <td>$group.description</td> <td style="text-align: center;">$group.membercount</td> </tr>#end def#block useradmin<table class="listtable">#set $groupcount = len($groups) <caption> Group List<br /> <span class="subtitle">$groupcount groups</span> </caption>#if $groupcount <thead> <tr> <th>Name</th> <th>Description</th> <th># of members</th> </tr> </thead> <tbody>#for $group in $groups $add_group($group)#end for </tbody>#end if <tbody class="footer"> <tr> <th colspan="0">$groupcount groups</th> </tr> </tbody></table><p><a href="group">Create new group</a></p>#end block useradmin
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -