Skip to content

Commit

Permalink
mod: 添加icon
Browse files Browse the repository at this point in the history
  • Loading branch information
yangrunkang committed Feb 9, 2023
1 parent 3deae5a commit a22b803
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions upupor-web/src/main/resources/templates/content/type.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
<div class="card border-0 rounded-3 p-2">
<nav class="mb-1">
<div class="nav nav-tabs">
<a th:class="${businessTitle == '新内容'?'nav-item nav-link cv-link active':'nav-item nav-link cv-link'}" href="/content/new" title="新内容">新内容</a>
<a th:class="${businessTitle == '内容有更新'?'nav-item nav-link cv-link active':'nav-item nav-link cv-link'}" href="/content/recently-edited" title="内容有更新">内容有更新</a>
<a th:class="${businessTitle == '所有内容'?'nav-item nav-link cv-link active':'nav-item nav-link cv-link'}" href="/content/all" title="所有内容">所有内容</a>
<a th:class="${businessTitle == '转载内容'?'nav-item nav-link cv-link active':'nav-item nav-link cv-link'}" href="/content/reproduce" title="转载内容">转载内容</a>
<a th:class="${businessTitle == '所有内容'?'nav-item nav-link cv-link active':'nav-item nav-link cv-link'}" href="/content/all" title="所有内容"><img class="lazyload cv-icon-item" th:data-src="${ossStatic} + @{/icons/contents/all.svg}"/> 所有内容</a>
<a th:class="${businessTitle == '内容有更新'?'nav-item nav-link cv-link active':'nav-item nav-link cv-link'}" href="/content/recently-edited" title="内容有更新"><img class="lazyload cv-icon-item" th:data-src="${ossStatic} + @{/icons/contents/update.svg}"/> 内容有更新</a>
<a th:class="${businessTitle == '新内容'?'nav-item nav-link cv-link active':'nav-item nav-link cv-link'}" href="/content/new" title="新内容"><img class="lazyload cv-icon-item" th:data-src="${ossStatic} + @{/icons/contents/new.svg}"/> 新内容</a>
<a th:class="${businessTitle == '转载内容'?'nav-item nav-link cv-link active':'nav-item nav-link cv-link'}" href="/content/reproduce" title="转载内容"><img class="lazyload cv-icon-item" th:data-src="${ossStatic} + @{/icons/contents/reproduce.svg}"/> 转载内容</a>
</div>
</nav>
<div th:include="fragments/index::list_content_dto(${listContentDto},'content-type')"></div>
Expand Down

0 comments on commit a22b803

Please sign in to comment.