Commit 32af1c06 authored by Liang's avatar Liang

🚧 #12256

parent e5ec2661
......@@ -57,7 +57,8 @@ import static org.b3log.solo.model.Article.ARTICLE_CONTENT;
* Filler utilities.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.6.11.13, Apr 8, 2017
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.6.12.13, Apr 8, 2017
* @since 0.3.1
*/
@Service
......@@ -755,7 +756,7 @@ public class Filler {
fillRecentComments(dataModel, preference);
}
if (Templates.hasExpression(template, "<#list mostUsedCategories as tag>")) {
if (Templates.hasExpression(template, "<#list mostUsedCategories as category>")) {
fillMostUsedCategories(dataModel, preference);
}
......
......@@ -51,7 +51,8 @@ import static org.b3log.solo.model.Article.*;
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://blog.sweelia.com">ArmstrongCN</a>
* @author <a href="http://zephyr.b3log.org">Zephyr</a>
* @version 1.2.3.4, Apr 8, 2017
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.2.4.4, Apr 8, 2017
* @since 0.3.5
*/
@Service
......@@ -177,8 +178,8 @@ public class ArticleQueryService {
articleIds.add(tagArticles.optJSONObject(i).optString(Article.ARTICLE + "_" + Keys.OBJECT_ID));
}
query = new Query().setFilter(CompositeFilterOperator.and(
new PropertyFilter(Keys.OBJECT_ID, FilterOperator.IN, articleIds))).
query = new Query().setFilter(
new PropertyFilter(Keys.OBJECT_ID, FilterOperator.IN, articleIds)).
setPageCount(1).addSort(Keys.OBJECT_ID, SortDirection.DESCENDING);
final List<JSONObject> articles = new ArrayList<>();
......
......@@ -45,11 +45,6 @@ a:hover {
text-decoration: underline;
}
button.selected {
background: url("../images/bowknot/completed.png") no-repeat scroll right bottom transparent !important;
color: #D54121 !important;
border-color: #b0b5b9 !important;
}
@font-face {
font-family: 'icomoon';
src:url('fonts/icomoon.eot?1450');
......@@ -178,6 +173,33 @@ button.selected {
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
button,
.completed-ck span {
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
cursor: pointer;
user-select: none;
background-image: none;
border: 1px solid #1fb5ad;
border-radius: 4px;
background-color: #1fb5ad;
color: #fff;
height: auto;
outline: none;
line-height: 18px;
}
button:hover {
background-color: #1ca59e;
border-color: #1ca59e;
}
/* end reset */
/* start ico */
......@@ -417,7 +439,8 @@ a[class*=" icon-"]:hover {
#tabsPanel_plugin-list,
#tabsPanel_page-list > div:first-child,
#tabsPanel_user-list > div:first-child,
#tabsPanel_link-list > div:first-child{
#tabsPanel_category-list > div:first-child,
#tabsPanel_link-list > div:first-child {
background-color: #FFF;
border-radius: 4px;
margin-bottom: 40px;
......@@ -625,32 +648,6 @@ a[class*=" icon-"]:hover {
box-shadow: none;
border-color: #1fb5ad;
}
.form button,
.completed-ck span {
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
cursor: pointer;
user-select: none;
background-image: none;
border: 1px solid #1fb5ad;
border-radius: 4px;
background-color: #1fb5ad;
color: #fff;
height: auto;
outline: none;
line-height: 18px;
}
.form button:hover {
background-color: #1ca59e;
border-color: #1ca59e;
}
/* end form */
/* start module */
......@@ -872,9 +869,11 @@ button#submitArticle:hover,
border-color: #b0b5b9;
}
.completed-ck span.selected {
color: #D54121;
background: url(../images/bowknot/completed.png) no-repeat right bottom;
.completed-ck span.selected,
.signs button.selected {
background-color: #1ca59e;
border-color: #1ca59e;
color: #fff;
}
.dialog-background {
background-color: #000000;
......@@ -903,7 +902,7 @@ button#submitArticle:hover,
}
.dialog-header-bg {
background: url("../images/icon.png") repeat scroll center bottom #F1F1F1;
background: #F1F1F1;
border-color: #C0C0C0 #D9D9D9 #D9D9D9;
border-radius: 6px 6px 0 0;
border-style: solid;
......@@ -928,7 +927,7 @@ button#submitArticle:hover,
.dialog-main {
background-color: #FFFFFF;
border: 2px solid #666666;
border: 1px solid #666666;
border-color: #C0C0C0 #D9D9D9 #D9D9D9;
border-top-width: 0;
padding: 12px;
......
......@@ -40,7 +40,7 @@ admin.categoryList = {
width: 60
}, {
style: "padding-left: 12px;",
text: Label.linkTitleLabel,
text: Label.titleLabel,
index: "categoryTitle",
width: 230
}, {
......@@ -50,7 +50,7 @@ admin.categoryList = {
width: 230
}, {
style: "padding-left: 12px;",
text: Label.linkDescriptionLabel,
text: Label.linkDescription1Label,
index: "categoryDesc",
minWidth: 180
}]);
......
......@@ -2,8 +2,8 @@
<!DOCTYPE html>
<html>
<head>
<@head title="${tag.tagTitle} - ${blogTitle}">
<meta name="keywords" content="${metaKeywords},${tag.tagTitle}"/>
<@head title="${category.categoryTitle} - ${blogTitle}">
<meta name="keywords" content="${metaKeywords},${category.categoryTitle}"/>
<meta name="description" content="<#list articles as article>${article.articleTitle}<#if article_has_next>,</#if></#list>"/>
</@head>
</head>
......@@ -14,8 +14,10 @@
<main>
<div class="title">
<h2 class="tip"><i class="icon-category"></i>
&nbsp;${tag.tagTitle}
<small>${categoryLabel}</small>
&nbsp;${category.categoryTitle}
<small>${category.categoryDescription}</small>
</h2>
</div>
<#include "article-list.ftl">
</main>
......
......@@ -16,7 +16,7 @@
#
# Description: B3log Solo language configurations(en_US).
# Version: 1.1.0.0, Mar 14, 2017
# Version: 1.2.0.0, Apr 8, 2017
# Author: Liyuan Li
#
......@@ -28,3 +28,4 @@ nextArticleLabel=Next
previousArticleLabel=Previous
articleCP1Label=Please indicate the source:
viewCountLabel=View Count
cntLabel=
\ No newline at end of file
......@@ -16,7 +16,7 @@
#
# Description: B3log Solo default language configurations(zh_CN).
# Version: 1.1.0.0, Mar 14, 2017
# Version: 1.2.0.0, Apr 8, 2017
# Author: Liyuan Li
#
......@@ -28,3 +28,4 @@ nextArticleLabel=\u65B0\u4E00\u7BC7
previousArticleLabel=\u65E7\u4E00\u7BC7
articleCP1Label=\u8F6C\u8F7D\u8BF7\u6CE8\u660E\u6765\u6E90\uFF1A
viewCountLabel=\u6D4F\u89C8\u6570
cntLabel=\u4E2A
\ No newline at end of file
......@@ -6,14 +6,15 @@
</div>
</#if>
<#if 0 != mostUsedTags?size>
<#if 0 != mostUsedCategories?size>
<div class="module">
<header><h2>${categoryLabel}</h2></header>
<main>
<#list mostUsedTags as tag>
<a href="${servePath}/tags/${tag.tagTitle?url('UTF-8')}"
class="tag tooltipped tooltipped-n" aria-label="${tag.tagPublishedRefCount} ${countLabel}${articleLabel}">
${tag.tagTitle}</a>
<#list mostUsedCategories as category>
<a href="${servePath}/category/${category.categoryURI}"
aria-label="${category.categoryTagCnt} ${cntLabel}${tagsLabel}"
class="tag tooltipped tooltipped-n">
${category.categoryTitle}</a>
</#list>
</main>
</div>
......@@ -26,7 +27,8 @@
<#list mostUsedTags as tag>
<a rel="tag"
href="${servePath}/tags/${tag.tagTitle?url('UTF-8')}"
class="tag tooltipped tooltipped-n" aria-label="${tag.tagPublishedRefCount} ${countLabel}${articleLabel}">
class="tag tooltipped tooltipped-n"
aria-label="${tag.tagPublishedRefCount} ${countLabel}${articleLabel}">
${tag.tagTitle}</a>
</#list>
</main>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment