From 62e9e08c1496cb8c3d07d6ddc8344db0feb90161 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 14 Mar 2023 22:03:55 +0100 Subject: [PATCH] Fix 'View File' button in code search - Right-align 'View File' button - Add 'role' attribute to button link --- templates/code/searchresults.tmpl | 6 +++--- templates/repo/search.tmpl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/code/searchresults.tmpl b/templates/code/searchresults.tmpl index 74721a5a674dd..684e2860bff43 100644 --- a/templates/code/searchresults.tmpl +++ b/templates/code/searchresults.tmpl @@ -11,15 +11,15 @@ {{range $result := .SearchResults}} {{$repo := (index $.RepoMaps .RepoID)}}
-

- +

+ {{$repo.FullName}} {{if $repo.IsArchived}} {{$.locale.Tr "repo.desc.archived"}} {{end}} - {{.Filename}} - {{$.locale.Tr "repo.diff.view_file"}} + {{$.locale.Tr "repo.diff.view_file"}}

diff --git a/templates/repo/search.tmpl b/templates/repo/search.tmpl index 21f758e4a9029..ff4e218e2def8 100644 --- a/templates/repo/search.tmpl +++ b/templates/repo/search.tmpl @@ -39,9 +39,9 @@