Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
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
Commits
86a4b105
Commit
86a4b105
authored
Jan 12, 2015
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #11992
parent
86d48e90
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
5 deletions
+19
-5
core/src/main/java/org/b3log/solo/SoloServletListener.java
core/src/main/java/org/b3log/solo/SoloServletListener.java
+8
-2
core/src/main/java/org/b3log/solo/model/Common.java
core/src/main/java/org/b3log/solo/model/Common.java
+6
-1
core/src/main/java/org/b3log/solo/processor/util/Filler.java
core/src/main/java/org/b3log/solo/processor/util/Filler.java
+1
-0
war/src/main/resources/b3log.properties
war/src/main/resources/b3log.properties
+2
-0
war/src/main/webapp/skins/ease/links.ftl
war/src/main/webapp/skins/ease/links.ftl
+1
-1
war/src/main/webapp/skins/mobile/side.ftl
war/src/main/webapp/skins/mobile/side.ftl
+1
-1
No files found.
core/src/main/java/org/b3log/solo/SoloServletListener.java
View file @
86a4b105
...
...
@@ -57,7 +57,7 @@ import org.json.JSONObject;
* B3log Solo servlet listener.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.
1.0.4, Oct 16, 2014
* @version 1.
2.0.4, Jan 12, 2015
* @since 0.3.1
*/
public
final
class
SoloServletListener
extends
AbstractServletListener
{
...
...
@@ -86,11 +86,16 @@ public final class SoloServletListener extends AbstractServletListener {
* B3log Rhythm address.
*/
public
static
final
String
B3LOG_RHYTHM_SERVE_PATH
;
/**
* B3log Symphony address.
*/
public
static
final
String
B3LOG_SYMPHONY_SERVE_PATH
;
/**
* Favicon API.
*/
public
static
final
String
FAVICON_API
;
/**
* Bean manager.
...
...
@@ -102,6 +107,7 @@ public final class SoloServletListener extends AbstractServletListener {
B3LOG_RHYTHM_SERVE_PATH
=
b3log
.
getString
(
"rhythm.servePath"
);
B3LOG_SYMPHONY_SERVE_PATH
=
b3log
.
getString
(
"symphony.servePath"
);
FAVICON_API
=
b3log
.
getString
(
"faviconAPI"
);
}
@Override
...
...
core/src/main/java/org/b3log/solo/model/Common.java
View file @
86a4b105
...
...
@@ -21,7 +21,7 @@ package org.b3log.solo.model;
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="mailto:dongxu.wang@acm.org">Dongxu Wang</a>
* @version 1.
0.5.1, Jul 2, 2013
* @version 1.
1.5.1, Jan 12, 2015
* @since 0.3.1
*/
public
final
class
Common
{
...
...
@@ -175,6 +175,11 @@ public final class Common {
* Key of is logged in.
*/
public
static
final
String
IS_LOGGED_IN
=
"isLoggedIn"
;
/**
* Key of favicon API.
*/
public
static
final
String
FAVICON_API
=
"faviconAPI"
;
/**
* Key of is mobile request.
...
...
core/src/main/java/org/b3log/solo/processor/util/Filler.java
View file @
86a4b105
...
...
@@ -617,6 +617,7 @@ public class Filler {
dataModel
.
put
(
Preference
.
META_DESCRIPTION
,
preference
.
getString
(
Preference
.
META_DESCRIPTION
));
dataModel
.
put
(
Common
.
YEAR
,
String
.
valueOf
(
Calendar
.
getInstance
().
get
(
Calendar
.
YEAR
)));
dataModel
.
put
(
Common
.
IS_LOGGED_IN
,
null
!=
userQueryService
.
getCurrentUser
(
request
));
dataModel
.
put
(
Common
.
FAVICON_API
,
SoloServletListener
.
FAVICON_API
);
final
String
noticeBoard
=
preference
.
getString
(
Preference
.
NOTICE_BOARD
);
...
...
war/src/main/resources/b3log.properties
View file @
86a4b105
...
...
@@ -22,3 +22,5 @@
rhythm.servePath
=
http://rhythm.b3log.org:80
symphony.servePath
=
http://symphony.b3log.org:80
faviconAPI
=
http://api.byi.pw/favicon?url=
\ No newline at end of file
war/src/main/webapp/skins/ease/links.ftl
View file @
86a4b105
...
...
@@ -18,7 +18,7 @@
<li>
<a
rel=
"friend"
href=
"${link.linkAddress}"
alt=
"${link.linkTitle}"
target=
"_blank"
>
<img
alt=
"${link.linkTitle}"
src=
"
http://www.google.com/s2/u/0/favicons?domain=
<#list link.linkAddress?split('/') as x><#if x_index=2>${x}<#break></#if></#list>"
/></a>
src=
"
${faviconAPI}
<#list link.linkAddress?split('/') as x><#if x_index=2>${x}<#break></#if></#list>"
/></a>
<a
rel=
"friend"
href=
"${link.linkAddress}"
title=
"${link.linkDescription}"
target=
"_blank"
>
${link.linkTitle}
</a>
</li>
...
...
war/src/main/webapp/skins/mobile/side.ftl
View file @
86a4b105
...
...
@@ -99,7 +99,7 @@
<li>
<a rel="friend" href="${link.linkAddress}" title="${link.linkTitle}" target="_blank">
<img alt="${link.linkTitle}"
src="
http://www.google.com/s2/u/0/favicons?domain=
<#list link.linkAddress?split('/') as x><#if x_index=2>${x}<#break></#if></#list>" /></a>
src="
${faviconAPI}
<#list link.linkAddress?split('/') as x><#if x_index=2>${x}<#break></#if></#list>" /></a>
<a rel="friend" href="${link.linkAddress}" title="${link.linkTitle}" target="_blank">${link.linkTitle}
</a>
<#-- ${link.linkDescription} -->
...
...
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