app/views/roles/index.html.erb in admin-sys-1.0.2 vs app/views/roles/index.html.erb in admin-sys-1.1.0

- old
+ new

@@ -1,71 +1,71 @@ -<!-- Content Wrapper. Contains page content --> -<div class="content-wrapper"> - <!-- Content Header (Page header) --> - <section class="content-header"> - <h1> - roles - <small>roles manager</small> - </h1> - <ol class="breadcrumb"> - <li><a href="/"><i class="fa fa-dashboard"></i> 首页</a></li> - <li class="active">角色管理</li> - </ol> - </section> - <!-- Main content --> - <section class="content"> - <!-- /.row --> - <div class="row"> - <div class="col-xs-12"> - <div class="box"> - <div class="box-header"> - <h3 class="box-title">角色管理</h3> - - <div class="box-tools"> - <div class="input-group input-group-sm" style="width: 150px;"> - <input type="text" name="table_search" class="form-control pull-right" placeholder="Search"> - - <div class="input-group-btn"> - <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button> - </div> - </div> - </div> - </div> - <!-- /.box-header --> - <div class="box-body table-responsive no-padding"> - <%= link_to '添加角色<i class="fa fa-plus"></i>'.html_safe, new_role_path, class:"btn green" %> - <table class="table table-hover"> - <tr> - <th>ID</th> - <th>角色名称</th> - <th>角色代码</th> - <th>操作</th> - <th colspan="2"></th> - </tr> - <% @roles.each do |role| %> - <tr> - <td><%= role.id %></td> - <td><%= role.name %></td> - <td><%= role.code %></td> - <td> - <a href="<%= edit_role_path(role) %>"> - 修改 - </a></td> - <td> - <a href="<%= role_group_new_path(role) %>"> - 分配权限 - </a> - </td> - </tr> - <% end %> - </table> - </div> - <!-- /.box-body --> - </div> - <!-- /.box --> - </div> - </div> - <!-- /.row --> - </section> - <!-- /.content --> -</div> +<!-- Content Wrapper. Contains page content --> +<div class="content-wrapper"> + <!-- Content Header (Page header) --> + <section class="content-header"> + <h1> + roles + <small>roles manager</small> + </h1> + <ol class="breadcrumb"> + <li><a href="/"><i class="fa fa-dashboard"></i> 首页</a></li> + <li class="active">角色管理</li> + </ol> + </section> + <!-- Main content --> + <section class="content"> + <!-- /.row --> + <div class="row"> + <div class="col-xs-12"> + <div class="box"> + <div class="box-header"> + <h3 class="box-title">角色管理</h3> + + <div class="box-tools"> + <div class="input-group input-group-sm" style="width: 150px;"> + <input type="text" name="table_search" class="form-control pull-right" placeholder="Search"> + + <div class="input-group-btn"> + <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button> + </div> + </div> + </div> + </div> + <!-- /.box-header --> + <div class="box-body table-responsive no-padding"> + <%= link_to '添加角色<i class="fa fa-plus"></i>'.html_safe, new_role_path, class:"btn green" %> + <table class="table table-hover"> + <tr> + <th>ID</th> + <th>角色名称</th> + <th>角色代码</th> + <th>操作</th> + <th colspan="2"></th> + </tr> + <% @roles.each do |role| %> + <tr> + <td><%= role.id %></td> + <td><%= role.name %></td> + <td><%= role.code %></td> + <td> + <a href="<%= edit_role_path(role) %>"> + 修改 + </a></td> + <td> + <a href="<%= role_group_new_path(role) %>"> + 分配权限 + </a> + </td> + </tr> + <% end %> + </table> + </div> + <!-- /.box-body --> + </div> + <!-- /.box --> + </div> + </div> + <!-- /.row --> + </section> + <!-- /.content --> +</div> <!-- /.content-wrapper --> \ No newline at end of file