Commits

conanca  committed 767b6a3

增加面包屑导航

  • Participants
  • Parent commits ae5baf1

Comments (0)

Files changed (10)

File src/main/webapp/WEB-INF/jsp/permission_add.jsp

       </div>
     </div>
   </div>
-  <div class="container">  
+  <div class="container">
+    <ul class="breadcrumb">
+      <li>
+        <a href="permission/all">权限管理</a> <span class="divider">/</span>
+      </li>
+      <li class="active">添加权限</li>
+    </ul>
     <form action="permission/add" class="form-vertical">
     <fieldset>
       <legend>添加新权限</legend>

File src/main/webapp/WEB-INF/jsp/permission_list.jsp

     </div>
   </div>
   <div class="container">
-  <a href="permission/p_add" class="btn btn-primary">添加权限</a><br/>
+  <ul class="breadcrumb">
+    <li class="active">权限管理</li>
+  </ul>
+  <shiro:hasPermission name="permission:create">
+    <a href="permission/p_add" class="btn btn-primary">添加权限</a><br/>
+  </shiro:hasPermission>
   <table class="table table-striped">
     <thead>
     <tr>

File src/main/webapp/WEB-INF/jsp/permission_view.jsp

     </div>
   </div>
   <div class="container">
+    <ul class="breadcrumb">
+      <li>
+        <a href="permission/all">权限管理</a> <span class="divider">/</span>
+      </li>
+      <li class="active">编辑权限</li>
+    </ul>
     <form action="permission/edit" class="form-horizontal">
     <fieldset>
       <legend>编辑权限信息</legend>

File src/main/webapp/WEB-INF/jsp/role_add.jsp

       </div>
     </div>
   </div>
-  <div class="container">  
+  <div class="container">
+    <ul class="breadcrumb">
+      <li>
+        <a href="role/all">角色管理</a> <span class="divider">/</span>
+      </li>
+      <li class="active">添加角色</li>
+    </ul>
     <form action="role/add" class="form-vertical">
     <fieldset>
       <legend>添加新角色</legend>

File src/main/webapp/WEB-INF/jsp/role_list.jsp

     </div>
   </div>
   <div class="container">
-  <a href="role/p_add" class="btn btn-primary">添加角色</a><br/>
+  <ul class="breadcrumb">
+    <li class="active">角色管理</li>
+  </ul>
+  <shiro:hasPermission name="role:create">
+    <a href="role/p_add" class="btn btn-primary">添加角色</a><br/>
+  </shiro:hasPermission>
   <table class="table table-striped">
     <thead>
     <tr>

File src/main/webapp/WEB-INF/jsp/role_view.jsp

     </div>
   </div>
   <div class="container">
+    <ul class="breadcrumb">
+      <li>
+        <a href="role/all">角色管理</a> <span class="divider">/</span>
+      </li>
+      <li class="active">编辑角色</li>
+    </ul>
     <div class="row">
       <div class="span6">
     <form action="role/edit" class="form-horizontal">

File src/main/webapp/WEB-INF/jsp/user_add.jsp

       </div>
     </div>
   </div>
-  <div class="container">  
+  <div class="container">
+    <ul class="breadcrumb">
+      <li>
+        <a href="user/all">用户管理</a> <span class="divider">/</span>
+      </li>
+      <li class="active">添加用户</li>
+    </ul>
     <form action="user/add" class="form-vertical">
     <fieldset>
       <legend>添加新用户</legend>

File src/main/webapp/WEB-INF/jsp/user_list.jsp

     </div>
   </div>
   <div class="container">
-  <a href="user/p_add" class="btn btn-primary">添加新用户</a><br/>
+  <ul class="breadcrumb">
+    <li class="active">用户管理</li>
+  </ul>
+  <shiro:hasPermission name="user:create">
+    <a href="user/p_add" class="btn btn-primary">添加新用户</a><br/>
+  </shiro:hasPermission>
   <table class="table table-striped">
     <thead>
     <tr>

File src/main/webapp/WEB-INF/jsp/user_view.jsp

     </div>
   </div>
   <div class="container">
+    <ul class="breadcrumb">
+      <li>
+        <a href="user/all">用户管理</a> <span class="divider">/</span>
+      </li>
+      <li class="active">编辑用户</li>
+    </ul>
     <div class="row">
       <div class="span6">
     <form action="user/edit" class="form-horizontal">

File src/main/webapp/index.jsp

         </a>
         <a class="brand" href="#">Nutzdemo-shiro</a>
         <div class="nav-collapse">
-          <shiro:user>
+          <shiro:authenticated>
           <ul class="nav">
             <li><a href="user/all">用户管理</a></li>
             <li><a href="role/all">角色管理</a></li>
             <li><a>欢迎, <shiro:principal/></a></li>
             <li><a href="logout">登出</a></li>
           </ul>
-          </shiro:user>
+          </shiro:authenticated>
         </div><!--/.nav-collapse -->
       </div>
     </div>
   
     <div class="hero-unit">
       <p>这是一个结合 Nutz 使用 Shiro 进行登录验证和鉴权的 Demo</p>
-      <shiro:user>
+      <shiro:authenticated>
         <p>欢迎, <shiro:principal/></p>
         <p>您可以通过点击顶部导航,进行不同的操作</p>
-      </shiro:user>
+      </shiro:authenticated>
       <shiro:guest>
         <p>请您先登录</p>
       </shiro:guest>