diff --git a/.gitignore b/.gitignore index e27f8df..1e3b2af 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ var/ *.tar.gz gitversion .DS_Store +.idea/ diff --git a/rrd/config.py b/rrd/config.py index dbce872..ee00891 100755 --- a/rrd/config.py +++ b/rrd/config.py @@ -54,6 +54,7 @@ LDAP_TLS_KEYFILE = "" LDAP_TLS_REQUIRE_CERT = True LDAP_TLS_CIPHER_SUITE = "" +ROOT_PASSWD = os.environ.get("ROOT_PASSWD","ROOT PASSWORD") # i18n BABEL_DEFAULT_LOCALE = 'zh_CN' diff --git a/rrd/templates/base.html b/rrd/templates/base.html index 6f729c9..659b202 100644 --- a/rrd/templates/base.html +++ b/rrd/templates/base.html @@ -27,6 +27,10 @@ } select {font-size:12px;} input {font-size:12px;} + .danger a{color:red;} + .danger{color:red;} + .attention{color:#FF00CC;} + .attention a{color:#FF00CC;} {% endblock %} diff --git a/rrd/templates/navbar.html b/rrd/templates/navbar.html index 7b01821..f5ed087 100644 --- a/rrd/templates/navbar.html +++ b/rrd/templates/navbar.html @@ -15,11 +15,13 @@
  • +screen
  • + {%if g.user.is_admin() or g.user.is_root() %}
  • HostGroups
  • Templates
  • Expressions
  • Nodata
  • Alarm-Dashboard
  • + {%endif%}