aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/commit_page.tmpl
diff options
context:
space:
mode:
authorsebastian-sauer <sauer.sebastian@gmail.com>2022-09-27 07:22:19 +0200
committerGitHub <noreply@github.com>2022-09-27 13:22:19 +0800
commit31f934c1d8005cdd87c47ce104d00c0efaec374b (patch)
treea71a387a73fd9a5506e539ad491982dd0a6e0756 /templates/repo/commit_page.tmpl
parent525751243efbaed86d6992ca6c7a7e4be229841b (diff)
downloadgitea-31f934c1d8005cdd87c47ce104d00c0efaec374b.tar.gz
gitea-31f934c1d8005cdd87c47ce104d00c0efaec374b.zip
Add filetree on left of diff view (#21012)
This PR adds a filetree to the left side of the files/diff view. Initially the filetree will not be shown and may be shown via a new "Show file tree" button. Showing and hiding is using the same icon as github. Folders are collapsible. On small devices (max-width 991 PX) the file tree will be hidden. Close #18192 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates/repo/commit_page.tmpl')
-rw-r--r--templates/repo/commit_page.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl
index 8ece768832..da37aaa9b3 100644
--- a/templates/repo/commit_page.tmpl
+++ b/templates/repo/commit_page.tmpl
@@ -1,7 +1,7 @@
{{template "base/head" .}}
<div class="page-content repository diff">
{{template "repo/header" .}}
- <div class="ui container {{if .IsSplitStyle}}fluid padded{{end}}">
+ <div class="ui container fluid padded">
{{$class := ""}}
{{if .Commit.Signature}}
{{$class = (printf "%s%s" $class " isSigned")}}