mirror of https://github.com/halo-dev/halo
🐛 修复使用oss时,选择图片路径不正确的问题
parent
c44d4371f1
commit
21abfa406c
|
@ -64,7 +64,7 @@
|
|||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="button" class="btn btn-danger btn-sm pull-left" onclick="btn_delete()"><@spring.message code="common.btn.delete" /></button>
|
||||
<button type="button" class="btn btn-info btn-sm pull-right btn-copy" data-clipboard-text="<#if !attachment.attachLocation?? || attachment.attachLocation! == 'SERVER'>${options.blog_url!}</#if>${attachment.attachPath}"><@spring.message code='admin.attachments.modal.form.btn.copy-path' /></button>
|
||||
<button type="button" class="btn btn-info btn-sm pull-right btn-copy" data-clipboard-text="<#if !attachment.attachLocation?? || attachment.attachLocation! == 'server'>${options.blog_url!}</#if>${attachment.attachPath}"><@spring.message code='admin.attachments.modal.form.btn.copy-path' /></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<div class="row">
|
||||
<#list attachments.content as attachment>
|
||||
<div class="col-lg-2 col-md-2 col-sm-6 col-xs-6 div-thumbnail">
|
||||
<a href="javascript:void(0)" class="thumbnail" data-clipboard-text="${options.blog_url!}${attachment.attachPath}">
|
||||
<a href="javascript:void(0)" class="thumbnail" data-clipboard-text="<#if !attachment.attachLocation?? || attachment.attachLocation! == 'server'>${options.blog_url!}</#if>${attachment.attachPath}">
|
||||
<img src="${attachment.attachSmallPath}" class="img-responsive">
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<div class="row">
|
||||
<#list attachments.content as attachment>
|
||||
<div class="col-lg-2 col-md-2 col-sm-6 col-xs-6 div-thumbnail">
|
||||
<a href="javascript:void(0)" class="thumbnail" onclick="doTransport('${attachment.attachPath}')">
|
||||
<a href="javascript:void(0)" class="thumbnail" onclick="doTransport('<#if !attachment.attachLocation?? || attachment.attachLocation! == 'server'>${options.blog_url!}</#if>${attachment.attachPath}')">
|
||||
<img src="${attachment.attachSmallPath}" class="img-responsive">
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue