mirror of
https://github.com/kovetskiy/mark.git
synced 2025-09-16 01:17:38 +08:00
refactor: check for Server var in template
This commit is contained in:
parent
bb32afdf09
commit
f08991137e
@ -150,7 +150,9 @@ func templates(api *confluence.API) (*template.Template, error) {
|
|||||||
`ac:jira:ticket`: text(
|
`ac:jira:ticket`: text(
|
||||||
`<ac:structured-macro ac:name="jira">`,
|
`<ac:structured-macro ac:name="jira">`,
|
||||||
`<ac:parameter ac:name="key">{{ .Ticket }}</ac:parameter>`,
|
`<ac:parameter ac:name="key">{{ .Ticket }}</ac:parameter>`,
|
||||||
`<ac:parameter ac:name="server">{{ or .Server "System JIRA" }}</ac:parameter>`,
|
`{{ if .Server }}`,
|
||||||
|
`<ac:parameter ac:name="server">{{ .Server }}</ac:parameter>`,
|
||||||
|
`{{ end }}`,
|
||||||
`</ac:structured-macro>`,
|
`</ac:structured-macro>`,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user