Skip to content

Commit

Permalink
Hide submission/edit links in the site template if config is off.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 24, 2023
1 parent 43ef393 commit ef5c43a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ range $k, $r := (mustSlice .Data.Results.Entries 0 $numResults) }}
<li class="entry" data-guid="{{ $r.GUID }}">
<header class="head">
{{ if $.EnableSubmissions }}
{{ if $.Consts.EnableSubmissions }}
<a href="" data-from="{{ $r.GUID }}" class="edit" title="{{ $.L.Ts "public.suggestEdit" "word" $r.Content }}">✏️</a>
{{ end }}
<h3 class="title">{{ $r.Content }}</h3>
Expand Down Expand Up @@ -35,7 +35,7 @@ <h3 class="title">{{ $r.Content }}</h3>
<div data-guid="{{ $d.GUID }}" class="def">
{{ $d.Content }}

{{ if $.EnableSubmissions }}
{{ if $.Consts.EnableSubmissions }}
<a href="" data-from="{{ $r.GUID }}" data-to="{{ $d.GUID }}"
class="edit" title="{{ $.L.Ts "public.suggestEdit" "word" $d.Content }}">✏️</a>
{{ end }}
Expand Down

0 comments on commit ef5c43a

Please sign in to comment.