forked from x/icebergs
add some
This commit is contained in:
parent
37d2d84381
commit
c100727a95
@ -283,8 +283,14 @@ func init() {
|
|||||||
if len(arg) == 0 {
|
if len(arg) == 0 {
|
||||||
_dream_list(m).RewriteAppend(func(value, key string, index int) string {
|
_dream_list(m).RewriteAppend(func(value, key string, index int) string {
|
||||||
if key == mdb.ICON {
|
if key == mdb.ICON {
|
||||||
|
if kit.HasPrefix(value, HTTP, nfs.PS) {
|
||||||
|
return value
|
||||||
|
}
|
||||||
|
if nfs.ExistsFile(m, path.Join(ice.USR_LOCAL_WORK, m.Appendv(mdb.NAME)[index], value)) {
|
||||||
return kit.MergeURL(ctx.FileURI(value), ice.POD, m.Appendv(mdb.NAME)[index])
|
return kit.MergeURL(ctx.FileURI(value), ice.POD, m.Appendv(mdb.NAME)[index])
|
||||||
}
|
}
|
||||||
|
return kit.MergeURL(ctx.FileURI(nfs.USR_ICONS_ICEBERGS))
|
||||||
|
}
|
||||||
return value
|
return value
|
||||||
}).Option(ice.MSG_ACTION, "")
|
}).Option(ice.MSG_ACTION, "")
|
||||||
ctx.DisplayTableCard(m)
|
ctx.DisplayTableCard(m)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user