Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
git test
Jpress
Commits
3b700f9c
Unverified
Commit
3b700f9c
authored
6 years ago
by
jpressprojects
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #109 from nanbeizzz/master
模板编辑页面资源文件显示优化
parents
c08623d7
8a6c3873
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
jpress-web/src/main/java/io/jpress/web/admin/_TemplateController.java
+1
-1
...rc/main/java/io/jpress/web/admin/_TemplateController.java
jpress-web/src/main/resources/WEB-INF/views/admin/template/edit.html
+1
-1
...src/main/resources/WEB-INF/views/admin/template/edit.html
with
2 additions
and
2 deletions
+2
-2
jpress-web/src/main/java/io/jpress/web/admin/_TemplateController.java
+
1
-
1
View file @
3b700f9c
...
...
@@ -252,7 +252,7 @@ public class _TemplateController extends AdminControllerBase {
srcFiles
.
add
(
file
.
getName
());
}
setAttr
(
"srcFiles"
,
srcFiles
);
setAttr
(
"prefixPath"
,
template
.
getAbsolutePath
().
substring
(
template
.
getAbsolutePath
().
indexOf
(
"
class
es/"
)
+
7
));
setAttr
(
"prefixPath"
,
template
.
getAbsolutePath
().
substring
(
template
.
getAbsolutePath
().
indexOf
(
"
/templat
es/"
)));
setAttr
(
"files"
,
doGetFileInfos
(
files
));
setAttr
(
"d"
,
dirName
);
...
...
This diff is collapsed.
Click to expand it.
jpress-web/src/main/resources/WEB-INF/views/admin/template/edit.html
+
1
-
1
View file @
3b700f9c
...
...
@@ -162,7 +162,7 @@
#if(f)
#if(isImage(f))
<div
class=
"text-center"
>
<img
src=
"#(prefixPath)/#(d ??)/#(f ??)"
style=
"width: 50%"
>
<img
src=
"#(
CPATH+
prefixPath)/#(d ??)/#(f ??)"
style=
"width: 50%"
>
</div>
#else
<div
class=
"box-body no-padding"
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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