Unverified Commit 3b700f9c authored by jpressprojects's avatar jpressprojects Committed by GitHub
Browse files

Merge pull request #109 from nanbeizzz/master

模板编辑页面资源文件显示优化
parents c08623d7 8a6c3873
Showing with 2 additions and 2 deletions
+2 -2
......@@ -252,7 +252,7 @@ public class _TemplateController extends AdminControllerBase {
srcFiles.add(file.getName());
}
setAttr("srcFiles", srcFiles);
setAttr("prefixPath", template.getAbsolutePath().substring(template.getAbsolutePath().indexOf("classes/") + 7));
setAttr("prefixPath", template.getAbsolutePath().substring(template.getAbsolutePath().indexOf("/templates/")));
setAttr("files", doGetFileInfos(files));
setAttr("d", dirName);
......
......@@ -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">
......
Supports Markdown
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