aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-08-25 23:55:52 +0200
committerGitHub <noreply@github.com>2022-08-25 17:55:52 -0400
commit6c4688e1b1ddb68de192af7f83b06de27baae85e (patch)
tree554b4e7d97c843590031aab058ba1c66474c405f /templates/admin
parent27ac65a124f34ec3ed5f34aeb576f918ae1c70b1 (diff)
downloadgitea-6c4688e1b1ddb68de192af7f83b06de27baae85e.tar.gz
gitea-6c4688e1b1ddb68de192af7f83b06de27baae85e.zip
Add whitespace removal inside template curly brackes (#20853)
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/config.tmpl2
-rw-r--r--templates/admin/cron.tmpl4
-rw-r--r--templates/admin/notice.tmpl6
-rw-r--r--templates/admin/process-row.tmpl2
-rw-r--r--templates/admin/queue.tmpl8
-rw-r--r--templates/admin/stacktrace-row.tmpl14
6 files changed, 18 insertions, 18 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index ccd1029cd8..0d9432b395 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -50,7 +50,7 @@
<dt>{{.locale.Tr "admin.config.reverse_auth_user"}}</dt>
<dd>{{.ReverseProxyAuthUser}}</dd>
- {{if .EnvVars }}
+ {{if .EnvVars}}
<div class="ui divider"></div>
{{range .EnvVars}}
<dt>{{.Name}}</dt>
diff --git a/templates/admin/cron.tmpl b/templates/admin/cron.tmpl
index b5db356bd8..d34999e6eb 100644
--- a/templates/admin/cron.tmpl
+++ b/templates/admin/cron.tmpl
@@ -22,9 +22,9 @@
<td>{{$.locale.Tr (printf "admin.dashboard.%s" .Name)}}</td>
<td>{{.Spec}}</td>
<td>{{DateFmtLong .Next}}</td>
- <td>{{if gt .Prev.Year 1 }}{{DateFmtLong .Prev}}{{else}}N/A{{end}}</td>
+ <td>{{if gt .Prev.Year 1}}{{DateFmtLong .Prev}}{{else}}N/A{{end}}</td>
<td>{{.ExecTimes}}</td>
- <td {{if ne .Status ""}}class="tooltip" data-content="{{.FormatLastMessage $.locale}}"{{end}} >{{if eq .Status "" }}—{{else if eq .Status "finished"}}{{svg "octicon-check" 16}}{{else}}{{svg "octicon-x" 16}}{{end}}</td>
+ <td {{if ne .Status ""}}class="tooltip" data-content="{{.FormatLastMessage $.locale}}"{{end}} >{{if eq .Status ""}}—{{else if eq .Status "finished"}}{{svg "octicon-check" 16}}{{else}}{{svg "octicon-x" 16}}{{end}}</td>
</tr>
{{end}}
</tbody>
diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl
index 7d0fa0019a..b831f50c85 100644
--- a/templates/admin/notice.tmpl
+++ b/templates/admin/notice.tmpl
@@ -34,7 +34,7 @@
</tr>
{{end}}
</tbody>
- {{ if .Notices }}
+ {{if .Notices}}
<tfoot class="full-width">
<tr>
<th></th>
@@ -65,11 +65,11 @@
</th>
</tr>
</tfoot>
- {{ end }}
+ {{end}}
</table>
</div>
- {{ template "base/paginate" . }}
+ {{template "base/paginate" .}}
</div>
</div>
diff --git a/templates/admin/process-row.tmpl b/templates/admin/process-row.tmpl
index b97d0fc8dc..4ab190af46 100644
--- a/templates/admin/process-row.tmpl
+++ b/templates/admin/process-row.tmpl
@@ -1,6 +1,6 @@
<div class="item">
<div class="df ac">
- <div class="icon ml-3 mr-3">{{if eq .Process.Type "request"}}{{svg "octicon-globe" 16 }}{{else if eq .Process.Type "system"}}{{svg "octicon-cpu" 16 }}{{else}}{{svg "octicon-terminal" 16 }}{{end}}</div>
+ <div class="icon ml-3 mr-3">{{if eq .Process.Type "request"}}{{svg "octicon-globe" 16}}{{else if eq .Process.Type "system"}}{{svg "octicon-cpu" 16}}{{else}}{{svg "octicon-terminal" 16}}{{end}}</div>
<div class="content f1">
<div class="header">{{.Process.Description}}</div>
<div class="description"><span title="{{DateFmtLong .Process.Start}}">{{TimeSince .Process.Start .root.locale}}</span></div>
diff --git a/templates/admin/queue.tmpl b/templates/admin/queue.tmpl
index a7ea4c602a..95fd3a5e05 100644
--- a/templates/admin/queue.tmpl
+++ b/templates/admin/queue.tmpl
@@ -30,12 +30,12 @@
</tbody>
</table>
</div>
- {{if lt $sum 0 }}
+ {{if lt $sum 0}}
<h4 class="ui top attached header">
{{.locale.Tr "admin.monitor.queue.nopool.title"}}
</h4>
<div class="ui attached segment">
- {{if eq .Queue.Type "wrapped" }}
+ {{if eq .Queue.Type "wrapped"}}
<p>{{.locale.Tr "admin.monitor.queue.wrapped.desc"}}</p>
{{else if eq .Queue.Type "persistable-channel"}}
<p>{{.locale.Tr "admin.monitor.queue.persistable-channel.desc"}}</p>
@@ -58,7 +58,7 @@
</div>
<div class="inline field">
<label for="timeout">{{.locale.Tr "admin.monitor.queue.settings.timeout"}}</label>
- <input name="timeout" type="text" placeholder="{{.locale.Tr "admin.monitor.queue.settings.timeout.placeholder" .Queue.BoostTimeout }}">
+ <input name="timeout" type="text" placeholder="{{.locale.Tr "admin.monitor.queue.settings.timeout.placeholder" .Queue.BoostTimeout}}">
</div>
<div class="inline field">
<label for="number">{{.locale.Tr "admin.monitor.queue.settings.numberworkers"}}</label>
@@ -166,7 +166,7 @@
</tr>
{{else}}
<tr>
- <td colspan="4">{{.locale.Tr "admin.monitor.queue.pool.workers.none" }}
+ <td colspan="4">{{.locale.Tr "admin.monitor.queue.pool.workers.none"}}
</tr>
{{end}}
</tbody>
diff --git a/templates/admin/stacktrace-row.tmpl b/templates/admin/stacktrace-row.tmpl
index d8b337fc09..a8ae486bcb 100644
--- a/templates/admin/stacktrace-row.tmpl
+++ b/templates/admin/stacktrace-row.tmpl
@@ -2,13 +2,13 @@
<div class="df ac">
<div class="icon ml-3 mr-3">
{{if eq .Process.Type "request"}}
- {{svg "octicon-globe" 16 }}
+ {{svg "octicon-globe" 16}}
{{else if eq .Process.Type "system"}}
- {{svg "octicon-cpu" 16 }}
+ {{svg "octicon-cpu" 16}}
{{else if eq .Process.Type "normal"}}
- {{svg "octicon-terminal" 16 }}
+ {{svg "octicon-terminal" 16}}
{{else}}
- {{svg "octicon-code" 16 }}
+ {{svg "octicon-code" 16}}
{{end}}
</div>
<div class="content f1">
@@ -16,7 +16,7 @@
<div class="description">{{if ne .Process.Type "none"}}<span title="{{DateFmtLong .Process.Start}}">{{TimeSince .Process.Start .root.locale}}</span>{{end}}</div>
</div>
<div>
- {{if or (eq .Process.Type "request") (eq .Process.Type "normal") }}
+ {{if or (eq .Process.Type "request") (eq .Process.Type "normal")}}
<a class="delete-button icon" href="" data-url="{{.root.Link}}/cancel/{{.Process.PID}}" data-id="{{.Process.PID}}" data-name="{{.Process.Description}}">{{svg "octicon-trash" 16 "text-red"}}</a>
{{end}}
</div>
@@ -29,7 +29,7 @@
<summary>
<div class="dif content">
<div class="header ml-3">
- <span class="icon mr-3">{{svg "octicon-code" 16 }}</span>{{.Description}}{{if gt .Count 1}} * {{.Count}}{{end}}
+ <span class="icon mr-3">{{svg "octicon-code" 16}}</span>{{.Description}}{{if gt .Count 1}} * {{.Count}}{{end}}
</div>
<div class="description">
{{range .Labels}}
@@ -41,7 +41,7 @@
<div class="list">
{{range .Entry}}
<div class="item df ac">
- <span class="icon mr-4">{{svg "octicon-dot-fill" 16 }}</span>
+ <span class="icon mr-4">{{svg "octicon-dot-fill" 16}}</span>
<div class="content f1">
<div class="header"><code>{{.Function}}</code></div>
<div class="description"><code>{{.File}}:{{.Line}}</code></div>