Skip to content

Commit

Permalink
Fix profile template (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
nt0xa authored Mar 22, 2023
1 parent 7f0bc95 commit ee4edb3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions internal/results/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,14 @@ func DefaultTemplates(opts TemplateOptions) map[string]Template {
// Profile
//

var profileGet = "" +
"<bold>Name:</bold> <code>{{ .Name }}</code>\n" +
"<bold>Telegram ID:</bold> <code>{{ .Params.TelegramID }}</code>\n" +
"<bold>API token:</bold> <code>{{ .Params.APIToken }}</code>\n" +
"<bold>Admin:</bold> <code>{{ .IsAdmin }}</code>"
var profileGet = `
<bold>Name:</bold> <code>{{ .Name }}</code>
{{ if .Params.TelegramID }}<bold>Telegram ID:</bold> <code>{{ .Params.TelegramID }}</code>
{{ end -}}
{{ if .Params.LarkUserID }}<bold>Lark ID:</bold> <code>{{ .Params.LarkUserID }}</code>
{{ end -}}
<bold>API token:</bold> <code>{{ .Params.APIToken }}</code>
<bold>Admin:</bold> <code>{{ .IsAdmin }}</code>`

//
// Payloads
Expand Down

0 comments on commit ee4edb3

Please sign in to comment.