取消的category及subCategory顯示

Phoenix Phoenix 2018.8.14 20:55 浏览(597) 评论 (0)
<ol class="breadcrumb">
	<li class="breadcrumb-level"><a th:href="#{blogUrl}"><i class="fa fa-home"></i>&nbsp;[[#{article}]]</a></li>
	<li th:if="${category != null}" class="breadcrumb-level"><a th:href="#{blogUrl} + '/list-c' + ${article.categoryId} + 'sc0/1'" th:text="${category.categoryName}"></a></li>
	<li th:if="${subCategory != null}" class="breadcrumb-level"><a th:href="#{blogUrl} + '/list-c' + ${article.categoryId} + 'sc' + ${subCategory.subCategoryId} + '/1'" th:text="${subCategory.subCategoryName}"></a></li>
	<li class="breadcrumb-level"><a th:text="${article.title}"></a></li>
</ol>
<ol class="breadcrumb">
	<li class="breadcrumb-level"><a th:href="#{albumUrl}"><i class="fa fa-home"></i>&nbsp;[[#{homepage}]]</a></li>
	<li class="breadcrumb-level" th:if="${category} != null"><a th:href="#{albumUrl} + '/list-c' + ${category.categoryId} + 'sc0/1'" th:text="${category?.categoryName}"></a></li>
	<li class="breadcrumb-level" th:if="${subCategory != null}"><a th:href="#{albumUrl} + '/list-c' + ${album.categoryId} + 'sc' + ${subCategory.subCategoryId} + '/1'" th:text="${subCategory.subCategoryName}"></a></li>
	<li class="breadcrumb-level"><a>正文</a></li>
</ol>

手機端

<ol class="breadcrumb">
	<li class="breadcrumb-level"><a th:href="#{blogUrl}"><i class="fa fa-home"></i>&nbsp;[[#{article}]]</a></li>
	<li th:if="${category != null}" class="breadcrumb-level"><a th:href="#{blogUrl} + '/list-c' + ${article.categoryId} + 'sc0/1'" th:text="${category.categoryName}"></a></li>
	<li th:if="${subCategory != null}" class="breadcrumb-level"><a th:href="#{blogUrl} + '/list-c' + ${article.categoryId} + 'sc' + ${subCategory.subCategoryId} + '/1'" th:text="${subCategory.subCategoryName}"></a></li>
</ol>
<ol class="breadcrumb">
	<li class="breadcrumb-level"><a th:href="#{albumUrl}"><i class="fa fa-home"></i>&nbsp;[[#{homepage}]]</a></li>
	<li class="breadcrumb-level" th:if="${category} != null"><a th:href="#{albumUrl} + '/list-c' + ${category.categoryId} + 'sc0/1'" th:text="${category?.categoryName}"></a></li>
	<li class="breadcrumb-level" th:if="${subCategory != null}"><a th:href="#{albumUrl} + '/list-c' + ${album.categoryId} + 'sc' + ${subCategory.subCategoryId} + '/1'" th:text="${subCategory.subCategoryName}"></a></li>
</ol>

 

本文链接 https://www.mangoxo.com/blog/8g5rVO5z 版权所有,转载请保留地址链接,感谢!

Phoenix 关注
來一遭,做一事。 等一人,愛一次。
  • 964 动态
  • 1,986 相册
  • 61 粉丝
  • 2,575 获赞