Fix user mentioning

This commit is contained in:
Manuel Rüger
2023-06-05 22:51:13 +02:00
parent 278488ed88
commit 22bf46026b
6 changed files with 18 additions and 18 deletions

View File

@@ -136,7 +136,7 @@ func templates(api *confluence.API) (*template.Template, error) {
`ac:link:user`: text(
`{{ with .Name | user }}`,
/**/ `<ac:link>`,
/**/ `{{ with .AccountID }}`,
/**/ `{{ if .AccountID }}`,
/****/ `<ri:user ri:account-id="{{ .AccountID }}" />`,
/**/ `{{ else }}`,
/****/ `<ri:user ri:userkey="{{ .UserKey }}" />`,
@@ -338,7 +338,7 @@ func templates(api *confluence.API) (*template.Template, error) {
`{{ with .Name | user }}`,
`<ac:structured-macro ac:name="profile">`,
`<ac:parameter ac:name="user">`,
`{{ with .AccountID }}`,
`{{ if .AccountID }}`,
/**/ `<ri:user ri:account-id="{{ .AccountID }}" />`,
`{{ else }}`,
/**/ `<ri:user ri:userkey="{{ .UserKey }}" />`,