Skip to content

Commit

Permalink
feat: combine author name and url into single line
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed May 6, 2024
1 parent 3a1487b commit 4de4956
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions server/templates/mentions.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ <h2>Mentions Moderation</h2>
{{ range .Mentions }}
<pre>
{{- with .EntryID }}<strong>Entry:</strong> {{ . }}<br>{{- end -}}
{{- with .Author }}<strong>Author Name:</strong> {{ . }}<br>{{- end -}}
{{- with .AuthorURL }}<strong>Author URL:</strong> {{ . }}<br>{{- end -}}
{{- if or .Author .AuthorURL}}<strong>From:</strong>
{{- with .Author }} {{ . }}{{ else }} Unknown{{ end -}}
{{- with .AuthorURL }} <{{ . }}>{{- end -}}
<br>
{{- end -}}
{{- with .Name }}<strong>Title:</strong> {{ . }}<br>{{- end -}}
{{- with .URL }}<strong>URL:</strong> {{ . }}<br>{{- end -}}
{{- with .Date }}<strong>Date:</strong> {{ . }}<br>{{- end -}}
Expand Down

0 comments on commit 4de4956

Please sign in to comment.