Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
IEQEFCR
halo
提交
45e60305
H
halo
项目概览
IEQEFCR
/
halo
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
halo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
45e60305
编写于
4月 21, 2019
作者:
RYAN0UP
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update common_macro.ftl.
上级
7983ba8f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
93 deletion
+6
-93
src/main/java/run/halo/app/web/controller/content/ContentPageController.java
...alo/app/web/controller/content/ContentPageController.java
+1
-5
src/main/resources/templates/common/macro/common_macro.ftl
src/main/resources/templates/common/macro/common_macro.ftl
+5
-5
src/main/resources/templates/common/macro/theme_option_marco.ftl
...n/resources/templates/common/macro/theme_option_marco.ftl
+0
-83
未找到文件。
src/main/java/run/halo/app/web/controller/content/ContentPageController.java
浏览文件 @
45e60305
...
...
@@ -10,7 +10,6 @@ import run.halo.app.model.entity.Comment;
import
run.halo.app.model.entity.Post
;
import
run.halo.app.model.enums.PostStatus
;
import
run.halo.app.service.CommentService
;
import
run.halo.app.service.GalleryService
;
import
run.halo.app.service.PostService
;
import
run.halo.app.service.ThemeService
;
...
...
@@ -23,7 +22,6 @@ import java.util.List;
@Controller
public
class
ContentPageController
{
private
final
GalleryService
galleryService
;
private
final
PostService
postService
;
...
...
@@ -31,11 +29,9 @@ public class ContentPageController {
private
final
ThemeService
themeService
;
public
ContentPageController
(
GalleryService
galleryService
,
PostService
postService
,
public
ContentPageController
(
PostService
postService
,
CommentService
commentService
,
ThemeService
themeService
)
{
this
.
galleryService
=
galleryService
;
this
.
postService
=
postService
;
this
.
commentService
=
commentService
;
this
.
themeService
=
themeService
;
...
...
src/main/resources/templates/common/macro/common_macro.ftl
浏览文件 @
45e60305
...
...
@@ -2,7 +2,7 @@
<#-- 统计代码 -->
<#macro statistics>
${options.statistics_code!}
${options.
blog_
statistics_code!}
</#macro>
<#-- 页脚信息 -->
...
...
@@ -20,16 +20,16 @@
<#-- 站点验证代码 -->
<#macro verification>
<#if options.blog_verification_google??>
<meta name="google-site-verification" content="${options.
blog
_verification_google}" />
<meta name="google-site-verification" content="${options.
seo
_verification_google}" />
</#if>
<#if options.blog_verification_bing??>
<meta name="msvalidate.01" content="${options.
blog
_verification_bing}" />
<meta name="msvalidate.01" content="${options.
seo
_verification_bing}" />
</#if>
<#if options.blog_verification_baidu??>
<meta name="baidu-site-verification" content="${options.
blog
_verification_baidu}" />
<meta name="baidu-site-verification" content="${options.
seo
_verification_baidu}" />
</#if>
<#if options.blog_verification_qihu??>
<meta name="360-site-verification" content="${options.
blog
_verification_qihu}" />
<meta name="360-site-verification" content="${options.
seo
_verification_qihu}" />
</#if>
</#macro>
...
...
src/main/resources/templates/common/macro/theme_option_marco.ftl
已删除
100644 → 0
浏览文件 @
7983ba8f
<
#macro
head
>
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
content=
"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
name=
"viewport"
>
<link
rel=
"stylesheet"
href=
"/static/halo-admin/plugins/bootstrap/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"/static/halo-admin/plugins/toast/css/jquery.toast.min.css"
>
<link
rel=
"stylesheet"
href=
"/static/halo-admin/css/AdminLTE.min.css"
>
<style>
.themeSetting
,
.themeImg
{
padding-top
:
15px
;
padding-bottom
:
15px
;
}
.form-horizontal
.control-label
{
text-align
:
left
;
}
</style>
</head>
<body>
</
#
macro>
<
#macro
import_js
>
</body>
<script
src=
"/static/halo-common/jquery/jquery.min.js"
></script>
<script
src=
"/static/halo-admin/plugins/bootstrap/js/bootstrap.min.js"
></script>
<script
src=
"/static/halo-admin/plugins/toast/js/jquery.toast.min.js"
></script>
<script
src=
"/static/halo-admin/plugins/layer/layer.js"
></script>
<script
src=
"/static/halo-admin/js/halo.min.js"
></script>
<
#nested
/>
<script>
var
halo
=
new
$
.
halo
();
var
heading
=
"
<@spring.message code='common.text.tips' />
"
;
/**
* 保存设置选项
* @param option option
*/
function
saveThemeOptions
(
option
)
{
var
param
=
$
(
'
#
'
+
option
).
serialize
();
$
.
post
(
'
/admin/option/save
'
,
param
,
function
(
data
)
{
if
(
data
.
code
===
1
){
halo
.
showMsg
(
data
.
msg
,
"
success
"
,
1000
);
}
else
{
halo
.
showMsg
(
data
.
msg
,
"
error
"
,
1000
);
}
},
'
JSON
'
);
}
/**
* 所有附件
* @param id id
*/
function
openAttach
(
id
)
{
layer
.
open
({
type
:
2
,
title
:
'
<@spring.message code="common.js.all-attachment" />
'
,
shadeClose
:
true
,
shade
:
0.5
,
area
:
[
'
90%
'
,
'
90%
'
],
content
:
'
/admin/attachments/select?id=
'
+
id
,
scrollbar
:
false
});
}
/**
* 更新主题
*/
function
updateTheme
(
theme
,
e
)
{
$
(
e
).
button
(
'
loading
'
);
$
.
get
(
'
/admin/themes/pull
'
,{
'
themeId
'
:
theme
},
function
(
data
)
{
if
(
data
.
code
===
1
)
{
halo
.
showMsgAndParentRedirect
(
data
.
msg
,
'
success
'
,
1000
,
'
/admin/themes
'
);
}
else
{
halo
.
showMsg
(
data
.
msg
,
'
error
'
,
2000
);
$
(
e
).
button
(
'
reset
'
);
}
},
'
JSON
'
);
}
</script>
</html>
</
#
macro>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录