navbar-horizontal.vm
来自「这个weblogging 设计得比较精巧」· VM 代码 · 共 23 行
VM
23 行
#set($count = 0)
#foreach($menu in $menuModel.getMenus())
#if ($menu.isPermitted($req))
#foreach( $item in $menu.getMenuItems())
#if ($menu.isPermitted($req))
#if ($count > 0)
|
#end
#if($item.isSelected( $req ))
<b>
#end
<a href="$item.getUrl( $ctx )">$text.get($item.getName())</a>
#if($item.isSelected( $req ))
</b>
#end
#set($count = $count + 1)
#end
#end
#end
#end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?