From c7dffe69b93e3a447ada5b0377575e3c98a7eb08 Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Tue, 29 May 2018 22:01:22 +0200 Subject: [PATCH] Revert "Show forms only to users who are logged in" This reverts commit c083682 Signed-off-by: Jonas Franz --- templates/repo/diff/box.tmpl | 15 ++++----------- templates/repo/diff/section_unified.tmpl | 6 ++---- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 1ea51ffdb..a602a671a 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -8,9 +8,7 @@
{{ if .IsSplitStyle }}{{.i18n.Tr "repo.diff.show_unified_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}} {{.i18n.Tr "repo.diff.show_diff_stats"}} - {{if .IsSigned}} - {{template "repo/diff/new_review" .}} - {{end}} + {{template "repo/diff/new_review" .}}
    @@ -106,7 +104,7 @@ - {{if and $.IsSigned (not (len $line.Comments))}} + {{if not (len $line.Comments)}} + {{end}}
    {{if $line.LeftIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
    @@ -116,7 +114,7 @@ - {{if and $.IsSigned (not (len $line.Comments))}} + {{if not (len $line.Comments)}} + {{end}}
    {{if $line.RightIdx}}{{$section.GetComputedInlineDiffFor $line}}{{end}}
    @@ -131,12 +129,7 @@ {{ template "repo/diff/comments" dict "root" $ "comments" $line.Comments}} - {{if $.IsSigned}} - {{template "repo/diff/comment_form_datahandler" dict "root" $ "comment" (index $line.Comments 0)}} - {{end}} - {{printf "%v" $}} -
    - {{printf "%v" $.IsSigned}} + {{template "repo/diff/comment_form_datahandler" dict "root" $ "comment" (index $line.Comments 0)}} diff --git a/templates/repo/diff/section_unified.tmpl b/templates/repo/diff/section_unified.tmpl index 23cb29670..8db154bd5 100644 --- a/templates/repo/diff/section_unified.tmpl +++ b/templates/repo/diff/section_unified.tmpl @@ -16,7 +16,7 @@ {{end}} - {{if and $.IsSigned (not (len $line.Comments))}} + {{if not (len $line.Comments)}} + {{end}}
    {{$section.GetComputedInlineDiffFor $line}}
    @@ -31,9 +31,7 @@ {{ template "repo/diff/comments" dict "root" $.root "comments" $line.Comments}} - {{if $.IsSigned}} - {{template "repo/diff/comment_form_datahandler" dict "root" $.root "comment" (index $line.Comments 0)}} - {{end}} + {{template "repo/diff/comment_form_datahandler" dict "root" $.root "comment" (index $line.Comments 0)}}