|
|
@@ -8,16 +8,16 @@
|
|
|
<meta name="renderer" content="webkit"/>
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
|
- <link rel="shortcut icon" href="http://ui.zhangshuzheng.cn:1000/zheng-cms-web/favicon.ico"/>
|
|
|
- <link rel="stylesheet" href="http://ui.zhangshuzheng.cn:1000/zheng-cms-web/css/bootstrap.min.css"/>
|
|
|
+ <link rel="shortcut icon" href="favicon.ico" th:href="@{${uiPath} + ${appName} + '/favicon.ico'}"/>
|
|
|
+ <link rel="stylesheet" href="css/bootstrap.min.css" th:href="@{${uiPath} + ${appName} + '/css/bootstrap.min.css'}"/>
|
|
|
<!--[if lt IE 9]>
|
|
|
- <script src="http://ui.zhangshuzheng.cn:1000/zheng-cms-web/js/vendor/html5shiv.js"></script>
|
|
|
- <script src="http://ui.zhangshuzheng.cn:1000/zheng-cms-web/js/vendor/respond.min.js"></script>
|
|
|
+ <script src="js/vendor/html5shiv.js" th:src="@{${uiPath} + ${appName} + '/js/vendor/html5shiv.js'}"></script>
|
|
|
+ <script src="js/vendor/respond.min.js" th:src="@{${uiPath} + ${appName} + '/js/vendor/respond.min.js'}"></script>
|
|
|
<![endif]-->
|
|
|
<script type="text/javascript">
|
|
|
if (/msie [6|7|8]/i.test(navigator.userAgent)) {};
|
|
|
</script>
|
|
|
- <link rel="stylesheet" href="http://ui.zhangshuzheng.cn:1000/zheng-cms-web/css/main.css"/>
|
|
|
+ <link rel="stylesheet" href="css/main.css" th:href="@{${uiPath} + ${appName} + '/css/main.css'}"/>
|
|
|
</head>
|
|
|
<body>
|
|
|
<!-- .navbar -->
|
|
|
@@ -38,20 +38,7 @@
|
|
|
<!-- navbar-collapse -->
|
|
|
<div class="collapse navbar-collapse" id="nav-menu">
|
|
|
<ul class="nav navbar-nav">
|
|
|
- <li class="active"><a href="index.html" th:href="@{/}">首页13</a>
|
|
|
- <c:forEach var="menu" items="${menus}">
|
|
|
- <c:if test="${menu.pid==null}">
|
|
|
- <li><a href="<c:url value="${menu.url}"/>" target="${menu.target}" class="dropdown-toggle" data-toggle="dropdown">${menu.name}</a>
|
|
|
- <ul class="dropdown-menu" role="menu">
|
|
|
- <c:forEach var="subMenu" items="${menus}">
|
|
|
- <c:if test="${menu.menuId==subMenu.pid}">
|
|
|
- <li><a href="<c:url value="${subMenu.url}"/>" target="${subMenu.target}">${subMenu.name}</a></li>
|
|
|
- </c:if>
|
|
|
- </c:forEach>
|
|
|
- </ul>
|
|
|
- </li>
|
|
|
- </c:if>
|
|
|
- </c:forEach>
|
|
|
+ <li th:each="menu : ${menus}" th:if="${menu.pid} == null"><a th:href="@{${menu.url}}" th:target="${menu.target}" th:text="${menu.name}">菜单</a></li>
|
|
|
</ul>
|
|
|
<ul class="nav navbar-right navbar-nav">
|
|
|
<li class="dropdown">
|
|
|
@@ -67,16 +54,16 @@
|
|
|
</form>
|
|
|
</ul>
|
|
|
</li>
|
|
|
- <!--<li><a href="#">登录</a></li>
|
|
|
- <li><a href="#">注册</a></li>-->
|
|
|
+ <li><a href="login.html">登录</a></li>
|
|
|
+ <li><a href="reg.html">注册</a></li>
|
|
|
<li id="messages" class="dropdown">
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
<span class="glyphicon glyphicon-bell"></span>
|
|
|
<span class="badge bg-important">5</span>
|
|
|
</a>
|
|
|
<ul class="dropdown-menu">
|
|
|
- <li><a href="#"><span class="glyphicon glyphicon-envelope"></span> 我的私信(<span class="msg-txt">1</span>)</a></li>
|
|
|
- <li><a href="#"><span class="glyphicon glyphicon-volume-up"></span> 系统消息(<span class="msg-txt">4</span>)</a></li>
|
|
|
+ <li><a href="home/letter.html"><span class="glyphicon glyphicon-envelope"></span> 我的私信(<span class="msg-txt">1</span>)</a></li>
|
|
|
+ <li><a href="home/message.html"><span class="glyphicon glyphicon-volume-up"></span> 系统消息(<span class="msg-txt">4</span>)</a></li>
|
|
|
</ul>
|
|
|
</li>
|
|
|
<li class="dropdown">
|
|
|
@@ -85,14 +72,14 @@
|
|
|
<span class="caret"></span>
|
|
|
</a>
|
|
|
<ul class="dropdown-menu">
|
|
|
- <li><a href="#"><span class="glyphicon glyphicon-home"></span> 个人博客</a></li>
|
|
|
- <li><a href="#"><span class="glyphicon glyphicon-question-sign"></span> 我的提问</a></li>
|
|
|
- <li><a href="#"><span class="glyphicon glyphicon-ok-sign"></span> 我的回答</a></li>
|
|
|
- <li><a href="#"><span class="glyphicon glyphicon-star"></span> 我的收藏</a></li>
|
|
|
+ <li><a href="home/index.html"><span class="glyphicon glyphicon-home"></span> 个人博客</a></li>
|
|
|
+ <li><a href="home/question.html"><span class="glyphicon glyphicon-question-sign"></span> 我的提问</a></li>
|
|
|
+ <li><a href="home/answer.html"><span class="glyphicon glyphicon-ok-sign"></span> 我的回答</a></li>
|
|
|
+ <li><a href="home/collection.html"><span class="glyphicon glyphicon-star"></span> 我的收藏</a></li>
|
|
|
<li class="divider"></li>
|
|
|
- <li><a href="#"><span class="glyphicon glyphicon-cog"></span> 修改资料</a></li>
|
|
|
- <li><a href="#"><span class="glyphicon glyphicon-lock"></span> 密码安全</a></li>
|
|
|
- <li><a href="#"><span class="glyphicon glyphicon-log-out"></span> 安全退出</a></li>
|
|
|
+ <li><a href="setting/info.html"><span class="glyphicon glyphicon-cog"></span> 修改资料</a></li>
|
|
|
+ <li><a href="setting/password.html"><span class="glyphicon glyphicon-lock"></span> 密码安全</a></li>
|
|
|
+ <li><a href="logout.html"><span class="glyphicon glyphicon-log-out"></span> 安全退出</a></li>
|
|
|
</ul>
|
|
|
</li>
|
|
|
</ul>
|
|
|
@@ -102,43 +89,36 @@
|
|
|
</nav>
|
|
|
<!-- /.navbar -->
|
|
|
<!-- .container -->
|
|
|
-<div class="container" style="min-height: 900px;">
|
|
|
+<div class="container" style="padding-bottom:80px;">
|
|
|
<dl>
|
|
|
<dt>所有类目</dt>
|
|
|
- <c:forEach var="category" items="${categories}">
|
|
|
- <dd><a href="category.html" th:href="@{/}">${category.name}</a></dd>
|
|
|
- </c:forEach>
|
|
|
+ <dd th:each="category : ${categories}"><a href="category/index.html" th:href="@{'/category/' + ${category.alias}}" th:text="${category.name}">类目</a></dd>
|
|
|
</dl>
|
|
|
<dl>
|
|
|
<dt>所有标签</dt>
|
|
|
- <c:forEach var="tag" items="${tags}">
|
|
|
- <dd><a href="${basePath}/tag-${tag.alias}">${tag.name}</a></dd>
|
|
|
- </c:forEach>
|
|
|
+ <dd th:each="tag : ${tags}"><a href="tag/index.html" th:href="@{'/tag/' + ${tag.alias}}" th:text="${tag.name}">标签</a></dd>
|
|
|
+ </dl>
|
|
|
+ <dl>
|
|
|
+ <dt>最新5个专题</dt>
|
|
|
+ <dd th:each="topic : ${topics}"><a href="topic/index.html" th:href="@{${topic.url}}" th:text="${topic.title}">专题</a></dd>
|
|
|
+ </dl>
|
|
|
+ <dl>
|
|
|
+ <dt>最新5条文章</dt>
|
|
|
+ <dd th:each="newArticle : ${newArticles}"><a href="article/index.html" th:href="@{'/article/' + ${newArticle.articleId}}" th:text="${newArticle.title}">文章标题</a></dd>
|
|
|
+ </dl>
|
|
|
+ <dl>
|
|
|
+ <dt>最热5个文章</dt>
|
|
|
+ <dd th:each="hotArticle : ${hotArticles}"><a href="article/index.html" th:href="@{'/article/' + ${hotArticle.articleId}}" th:text="${hotArticle.title}">文章标题</a></dd>
|
|
|
</dl>
|
|
|
</div>
|
|
|
<!-- /.container -->
|
|
|
<!-- footer -->
|
|
|
-<footer class="container-fuild" style="background:#222;padding-top:20px;min-height:100px;">
|
|
|
- <div class="container">
|
|
|
- <div class="row">
|
|
|
- <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
|
|
|
-
|
|
|
- </div>
|
|
|
- <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
|
|
|
-
|
|
|
- </div>
|
|
|
- <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
|
|
|
-
|
|
|
- </div>
|
|
|
- <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 hidden-md">
|
|
|
-
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+<footer class="container-fuild text-center" style="position:fixed;bottom:0;width:100%;background:#eee;padding:20px 0;">
|
|
|
+ Copyright © 2017 ZhangShuzheng All Rights Reserved
|
|
|
</footer>
|
|
|
<!-- /footer -->
|
|
|
-<script src="http://ui.zhangshuzheng.cn:1000/zheng-cms-web/js/jquery-1.11.2.min.js"></script>
|
|
|
-<script src="http://ui.zhangshuzheng.cn:1000/zheng-cms-web/js/bootstrap.min.js"></script>
|
|
|
-<script src="http://ui.zhangshuzheng.cn:1000/zheng-cms-web/js/main.js"></script>
|
|
|
+<script src="js/jquery-1.11.2.min.js" th:src="@{${uiPath} + ${appName} + '/js/jquery-1.11.2.min.js'}"></script>
|
|
|
+<script src="js/bootstrap.min.js" th:src="@{${uiPath} + ${appName} + '/js/bootstrap.min.js'}"></script>
|
|
|
+<script src="js/main.js" th:src="@{${uiPath} + ${appName} + '/js/main.js'}"></script>
|
|
|
</body>
|
|
|
</html>
|