forked from x/icebergs
add some
This commit is contained in:
parent
e2babe49a6
commit
582519d290
@ -75,6 +75,9 @@ func Render(m *ice.Message, cmd string, args ...ice.Any) bool {
|
|||||||
res := m.Cmdx(nfs.CAT, arg[0])
|
res := m.Cmdx(nfs.CAT, arg[0])
|
||||||
fieldset := "fieldset." + m.Option(ctx.INDEX)
|
fieldset := "fieldset." + m.Option(ctx.INDEX)
|
||||||
m.W.Write([]byte(kit.ReplaceAll(res,
|
m.W.Write([]byte(kit.ReplaceAll(res,
|
||||||
|
"$option", fieldset+">form.option",
|
||||||
|
"$action", fieldset+">div.action",
|
||||||
|
"$output", fieldset+">div.output",
|
||||||
"$project", fieldset+">div.output>div.project",
|
"$project", fieldset+">div.output>div.project",
|
||||||
"$display", fieldset+">div.output>div.layout>div.display",
|
"$display", fieldset+">div.output>div.layout>div.display",
|
||||||
"$profile", fieldset+">div.output>div.layout>div.layout>div.profile",
|
"$profile", fieldset+">div.output>div.layout>div.layout>div.profile",
|
||||||
|
@ -74,7 +74,9 @@ func (m *Message) MergeLink(url string, arg ...Any) string {
|
|||||||
kit.If(m.Option(DEBUG) == TRUE, func() { arg = append([]Any{DEBUG, TRUE}, arg...) })
|
kit.If(m.Option(DEBUG) == TRUE, func() { arg = append([]Any{DEBUG, TRUE}, arg...) })
|
||||||
return kit.MergeURL2(strings.Split(kit.Select(Info.Domain, m.Option(MSG_USERWEB)), QS)[0], url, arg...)
|
return kit.MergeURL2(strings.Split(kit.Select(Info.Domain, m.Option(MSG_USERWEB)), QS)[0], url, arg...)
|
||||||
}
|
}
|
||||||
func (m *Message) FieldsSetDetail() { m.OptionFields(FIELDS_DETAIL) }
|
func (m *Message) FieldsSetDetail() {
|
||||||
|
m.OptionFields(FIELDS_DETAIL)
|
||||||
|
}
|
||||||
func (m *Message) FieldsIsDetail() bool {
|
func (m *Message) FieldsIsDetail() bool {
|
||||||
ls := m.value(MSG_APPEND)
|
ls := m.value(MSG_APPEND)
|
||||||
return len(ls) == 2 && ls[0] == KEY && ls[1] == VALUE || m.OptionFields() == FIELDS_DETAIL
|
return len(ls) == 2 && ls[0] == KEY && ls[1] == VALUE || m.OptionFields() == FIELDS_DETAIL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user