Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
32af1c06
Commit
32af1c06
authored
Apr 09, 2017
by
Liang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🚧
#12256
parent
e5ec2661
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
65 additions
and
58 deletions
+65
-58
src/main/java/org/b3log/solo/processor/util/Filler.java
src/main/java/org/b3log/solo/processor/util/Filler.java
+3
-2
src/main/java/org/b3log/solo/service/ArticleQueryService.java
...main/java/org/b3log/solo/service/ArticleQueryService.java
+4
-3
src/main/webapp/css/default-admin.css
src/main/webapp/css/default-admin.css
+36
-37
src/main/webapp/js/admin/categoryList.js
src/main/webapp/js/admin/categoryList.js
+2
-2
src/main/webapp/skins/9IPHP/category-articles.ftl
src/main/webapp/skins/9IPHP/category-articles.ftl
+6
-4
src/main/webapp/skins/9IPHP/lang/lang_en_US.properties
src/main/webapp/skins/9IPHP/lang/lang_en_US.properties
+3
-2
src/main/webapp/skins/9IPHP/lang/lang_zh_CN.properties
src/main/webapp/skins/9IPHP/lang/lang_zh_CN.properties
+3
-2
src/main/webapp/skins/9IPHP/side.ftl
src/main/webapp/skins/9IPHP/side.ftl
+8
-6
No files found.
src/main/java/org/b3log/solo/processor/util/Filler.java
View file @
32af1c06
...
...
@@ -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
);
}
...
...
src/main/java/org/b3log/solo/service/ArticleQueryService.java
View file @
32af1c06
...
...
@@ -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
<>();
...
...
src/main/webapp/css/default-admin.css
View file @
32af1c06
...
...
@@ -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
:
2
px
solid
#666666
;
border
:
1
px
solid
#666666
;
border-color
:
#C0C0C0
#D9D9D9
#D9D9D9
;
border-top-width
:
0
;
padding
:
12px
;
...
...
src/main/webapp/js/admin/categoryList.js
View file @
32af1c06
...
...
@@ -40,7 +40,7 @@ admin.categoryList = {
width
:
60
},
{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
linkT
itleLabel
,
text
:
Label
.
t
itleLabel
,
index
:
"
categoryTitle
"
,
width
:
230
},
{
...
...
@@ -50,7 +50,7 @@ admin.categoryList = {
width
:
230
},
{
style
:
"
padding-left: 12px;
"
,
text
:
Label
.
linkDescriptionLabel
,
text
:
Label
.
linkDescription
1
Label
,
index
:
"
categoryDesc
"
,
minWidth
:
180
}]);
...
...
src/main/webapp/skins/9IPHP/category-articles.ftl
View file @
32af1c06
...
...
@@ -2,8 +2,8 @@
<!DOCTYPE html>
<html>
<head>
<
@
head
title=
"${
tag.tag
Title} - ${blogTitle}"
>
<meta
name=
"keywords"
content=
"${metaKeywords},${
tag.tag
Title}"
/>
<
@
head
title=
"${
category.category
Title} - ${blogTitle}"
>
<meta
name=
"keywords"
content=
"${metaKeywords},${
category.category
Title}"
/>
<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>
${tag.tagTitle}
<small>
${categoryLabel}
</small>
${category.categoryTitle}
<small>
${category.categoryDescription}
</small>
</h2>
</div>
<
#include
"
article-list
.
ftl
"
>
</main>
...
...
src/main/webapp/skins/9IPHP/lang/lang_en_US.properties
View file @
32af1c06
...
...
@@ -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
src/main/webapp/skins/9IPHP/lang/lang_zh_CN.properties
View file @
32af1c06
...
...
@@ -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
=
\u
65E7
\u
4E00
\u
7BC7
articleCP1Label
=
\u
8F6C
\u
8F7D
\u
8BF7
\u
6CE8
\u
660E
\u6765\u
6E90
\u
FF1A
viewCountLabel
=
\u
6D4F
\u
89C8
\u6570
cntLabel
=
\u
4E2A
\ No newline at end of file
src/main/webapp/skins/9IPHP/side.ftl
View file @
32af1c06
...
...
@@ -6,14 +6,15 @@
</div>
</#if>
<#if 0 != mostUsed
Tag
s?size>
<#if 0 != mostUsed
Categorie
s?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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment