From c68fc4f31ac5e7918f0b03cfec00e1224c1eaf9e Mon Sep 17 00:00:00 2001 From: rokuu <38368986+rokuu@users.noreply.github.com> Date: Tue, 24 Apr 2018 13:54:22 +0000 Subject: [PATCH] templates: fixes broken UI under supported resolution (1024x768) #5179 (#5182) * Update view_list.tmpl * Update commits_table.tmpl * Update dashboard.tmpl * Update list.tmpl * Update list.tmpl * Update list.tmpl * Update list.tmpl * Update notice.tmpl * Update monitor.tmpl * Update view_file.tmpl * Update diff_preview.tmpl * Update box.tmpl --- templates/admin/auth/list.tmpl | 4 ++-- templates/admin/dashboard.tmpl | 4 ++-- templates/admin/monitor.tmpl | 8 ++++---- templates/admin/notice.tmpl | 4 ++-- templates/admin/org/list.tmpl | 4 ++-- templates/admin/repo/list.tmpl | 4 ++-- templates/admin/user/list.tmpl | 4 ++-- templates/repo/commits_table.tmpl | 4 ++-- templates/repo/diff/box.tmpl | 2 +- templates/repo/editor/diff_preview.tmpl | 2 +- templates/repo/view_file.tmpl | 2 +- templates/repo/view_list.tmpl | 2 +- 12 files changed, 22 insertions(+), 22 deletions(-) diff --git a/templates/admin/auth/list.tmpl b/templates/admin/auth/list.tmpl index d989a77cc..cb95cb95d 100644 --- a/templates/admin/auth/list.tmpl +++ b/templates/admin/auth/list.tmpl @@ -8,8 +8,8 @@

{{.i18n.Tr "admin.auths.auth_sources"}} ({{.i18n.Tr "admin.total" .Total}})

-
- +
+
diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 20680bae2..55d9a8917 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -16,8 +16,8 @@

{{.i18n.Tr "admin.dashboard.operations"}}

-
-
ID
+
+
diff --git a/templates/admin/monitor.tmpl b/templates/admin/monitor.tmpl index fa87078cc..21bb17c2f 100644 --- a/templates/admin/monitor.tmpl +++ b/templates/admin/monitor.tmpl @@ -8,8 +8,8 @@

{{.i18n.Tr "admin.monitor.cron"}}

-
-
{{.i18n.Tr "admin.dashboard.delete_inactivate_accounts"}}
+
+
@@ -36,8 +36,8 @@

{{.i18n.Tr "admin.monitor.process"}}

-
-
{{.i18n.Tr "admin.monitor.name"}}
+
+
diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index a1c8dc230..fc2c703c0 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -8,8 +8,8 @@

{{.i18n.Tr "admin.notices.system_notice_list"}} ({{.i18n.Tr "admin.total" .Total}})

-
-
Pid
+
+
diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl index cde6491a0..a6258a6cb 100644 --- a/templates/admin/org/list.tmpl +++ b/templates/admin/org/list.tmpl @@ -11,8 +11,8 @@
{{template "admin/base/search" .}}
-
-
+
+
diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index 293d7093c..e3614bbbe 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -11,8 +11,8 @@
{{template "admin/base/search" .}}
-
-
ID
+
+
diff --git a/templates/admin/user/list.tmpl b/templates/admin/user/list.tmpl index aaf3d9230..077e696a8 100644 --- a/templates/admin/user/list.tmpl +++ b/templates/admin/user/list.tmpl @@ -14,8 +14,8 @@
{{template "admin/base/search" .}}
-
-
ID
+
+
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 0cf823f56..1b835d33c 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -19,8 +19,8 @@ {{if .Commits}} -
-
ID
+
+
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 33ce604d0..1ce15a3da 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -77,7 +77,7 @@ {{end}} -
+
{{if not $file.IsRenamed}} {{$isImage := (call $.IsImageFile $file.Name)}} {{if and $isImage}} diff --git a/templates/repo/editor/diff_preview.tmpl b/templates/repo/editor/diff_preview.tmpl index 06b4a2e83..736930110 100644 --- a/templates/repo/editor/diff_preview.tmpl +++ b/templates/repo/editor/diff_preview.tmpl @@ -1,5 +1,5 @@
-
+
{{.i18n.Tr "repo.commits.author"}}
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 54dbf13a6..c78ce2d1a 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -35,7 +35,7 @@ {{end}} -
+
{{if .IsMarkdown}} {{if .FileContent}}{{.FileContent | Str2html}}{{end}} diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 93b9e0df6..d3fe6811f 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -1,4 +1,4 @@ -
+