Skip to content

Commit 77eaf6a

Browse files
colegapostnati
authored andcommitted
nginx-directory: fix description
Follow up fix for: grafana#1511 Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
1 parent 7bf7701 commit 77eaf6a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nginx-directory/config.libsonnet

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242

4343
// Allow for extra CSS to be injected.
4444
extra_css: '',
45+
46+
// Description shown below the title
47+
description: '',
48+
description_html: if self.description != '' then '<p class="description">%s</p>' % self.description else '',
4549
},
4650

4751
_images+:: {

nginx-directory/directory.libsonnet

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ local link_data = import 'link_data.libsonnet';
3232
// For example proxy-pass of /grafana path will be passed as '%(path)s/grafana' to the upstream.
3333
normalized: true,
3434

35-
description: '',
36-
description_html: if this._config.description != '' then '<p class="description">%s</p>' % this._config.description else '',
37-
3835
// backwards compatible, service level config allows for more granular configuration
3936
read_timeout: this._config.nginx_proxy_read_timeout,
4037
send_timeout: this._config.nginx_proxy_send_timeout,

0 commit comments

Comments
 (0)