功能实现3.标签管理。
效果图
tags.html
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head th:replace="admin/_fragments :: head(~{::title})">
<title>标签管理</title>
</head>
<body>
<!--头部导航-->
<nav th:replace="admin/_fragments :: menu(3)"></nav>
<!--二级导航-->
<div class="ui inverted attached pointing menu">
<div class="ui container">
<div class="right menu">
<a href="#" th:href="@{/admin/tags/post}" class=" item">新增</a>
<a href="#" th:href="@{/admin/tags}" class="teal active item">列表</a>
</div>
</div>
</div>
<!--页面主体-->
<div class="m-container-small m-padded-tb-big">
<div class="ui container">
<!--消息提示-->
<div class="ui success message" th:unless="${#strings.isEmpty(message)}">
<i class="close icon"></i>
<div class="header">提示:</div>
<p th:text="${message}">操作成功!</p>
</div>
<!-- table 列表-->
<table class="ui celled table">
<thead>
<tr>
<th>#</th>
<th>名称</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr th:each="tag,iterStat : ${page.content}">
<td th:text="${iterStat.count}">1</td>
<td th:text="${tag.name}">摸鱼!