diff --git a/devapp/views.py b/devapp/views.py index 05ba58f..13df1c7 100644 --- a/devapp/views.py +++ b/devapp/views.py @@ -594,7 +594,7 @@ def nagios_objects_conf(request): def norm_name(name: str, replreg=re.compile(r'\W+', re.IGNORECASE)): return replreg.sub('', name) - for dev in Device.objects.exclude(devtype='On').select_related('parent_dev').only('ip_address', 'comment', 'parent_dev'): + for dev in Device.objects.exclude(devtype='On', ip_address='127.0.0.1').select_related('parent_dev').only('ip_address', 'comment', 'parent_dev'): conf = templ(host_name=norm_name("%d%s" % (dev.pk, translit(dev.comment, language_code='ru', reversed=True))), host_addr=dev.ip_address, parent_host_name=norm_name("%d%s" % (dev.parent_dev.pk, diff --git a/mapapp/locale/ru/LC_MESSAGES/django.po b/mapapp/locale/ru/LC_MESSAGES/django.po index d12b542..33d5149 100644 --- a/mapapp/locale/ru/LC_MESSAGES/django.po +++ b/mapapp/locale/ru/LC_MESSAGES/django.po @@ -171,3 +171,6 @@ msgstr "Разрешите сайту открывать всплывающие msgid "Help" msgstr "Справка" + +msgid "Update states" +msgstr "Обновить состояния" diff --git a/mapapp/templates/maps/map_tooltip.html b/mapapp/templates/maps/map_tooltip.html index 44f5656..319b6d6 100644 --- a/mapapp/templates/maps/map_tooltip.html +++ b/mapapp/templates/maps/map_tooltip.html @@ -12,12 +12,12 @@ {% empty %} -
  • {% trans 'Pinned devices not found' %}
  • + {% trans 'Pinned devices not found' %} {% endfor %} {% if dot.attachment %} - {{ dot.attachment.name }} + {{ dot.attachment.name }} {% endif %} diff --git a/mapapp/templates/maps/ya_index.html b/mapapp/templates/maps/ya_index.html index 5348765..b8c6e39 100644 --- a/mapapp/templates/maps/ya_index.html +++ b/mapapp/templates/maps/ya_index.html @@ -3,6 +3,26 @@