📄 grouplist.tmpl
字号:
## $Id: GroupList.tmpl 3536 2006-07-17 06:35:04Z 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#### 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>###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="horiztable">#set $groupcount = len($groups) <caption> <span class="cornerkludge"></span> Group List<br /> <span class="subtitle">$groupcount groups : <a href="group">Create new group</a></span> </caption>#set $rowcount = len($groups) + 1 <tr class="header"> <td class="leftkludge" rowspan="$rowcount"></td> <th>Name</th> <th>Description</th> <th style="text-align: center;"># of members</th> <td class="rightkludge" rowspan="$rowcount"></td> </tr>#for $group in $groups $add_group($group)#end for</table>#end block useradmin
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -