diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 98750d8..ccac296 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # plugin.sh - DevStack plugin.sh dispatch script vitrage-dashboard VITRAGE_DASHBOARD_DIR=$(cd $(dirname $BASH_SOURCE)/.. && pwd) @@ -5,6 +6,7 @@ VITRAGE_DASHBOARD_DIR=$(cd $(dirname $BASH_SOURCE)/.. && pwd) function install_vitrage_dashboard { sudo pip install --upgrade ${VITRAGE_DASHBOARD_DIR} cp -a ${VITRAGE_DASHBOARD_DIR}/vitragedashboard/static ${DEST}/horizon/ + cp -a ${VITRAGE_DASHBOARD_DIR}/vitragealarms/static ${DEST}/horizon/ cp -a ${VITRAGE_DASHBOARD_DIR}/vitragedashboard/enabled/* ${DEST}/horizon/openstack_dashboard/enabled/ cp -a ${VITRAGE_DASHBOARD_DIR}/vitrageclient/api/* ${DEST}/horizon/openstack_dashboard/api/ python ${DEST}/horizon/manage.py compress --force @@ -22,7 +24,6 @@ if is_service_enabled vitrage-dashboard; then # Perform installation of service source # no-op : - elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then # Configure after the other layer 1 and 2 services have been configured echo_summary "Installing Vitrage Dashboard" diff --git a/vitragealarms/static/alarms/project/layout/main/alarmList.controller.js b/vitragealarms/static/alarms/project/layout/main/alarmList.controller.js index d609f95..ccf0f1b 100644 --- a/vitragealarms/static/alarms/project/layout/main/alarmList.controller.js +++ b/vitragealarms/static/alarms/project/layout/main/alarmList.controller.js @@ -9,6 +9,8 @@ function AlarmListController($scope, vitrageTopologySrv) { var alarmList = this; + alarmList.alarms = []; + alarmList.ialarms = []; $scope.STATIC_URL = STATIC_URL; alarmList.alarms = []; vitrageTopologySrv.getAlarms('all').then(function(result){ diff --git a/vitragealarms/static/alarms/project/layout/main/alarmList.html b/vitragealarms/static/alarms/project/layout/main/alarmList.html index 9185e73..8ca1798 100644 --- a/vitragealarms/static/alarms/project/layout/main/alarmList.html +++ b/vitragealarms/static/alarms/project/layout/main/alarmList.html @@ -1,20 +1,30 @@
- - +
- - - - + + + + + + + + + - + + + diff --git a/vitragedashboard/locale/django.pot b/vitragedashboard/locale/django.pot new file mode 100644 index 0000000..e13f72d --- /dev/null +++ b/vitragedashboard/locale/django.pot @@ -0,0 +1,31 @@ +# Translations template for PROJECT. +# Copyright (C) 2016 ORGANIZATION +# This file is distributed under the same license as the PROJECT project. +# FIRST AUTHOR , 2016. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PROJECT VERSION\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2016-02-11 07:34+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.2.0\n" + +#: vitragedashboard/templates/topology/index.html:3 +#: vitragedashboard/static/dashboard/project/layout/main/compute/compute.html:19 +msgid "Topology" +msgstr "Topology" + +#: vitragedashboard/templates/topology/index.html:6 +msgid "\"Topology\"" +msgstr "Topology" + +#: vitragedashboard/static/dashboard/project/layout/main/compute/compute.html:7 +msgid "Info" +msgstr "Info" \ No newline at end of file diff --git a/vitragedashboard/locale/djangojs.pot b/vitragedashboard/locale/djangojs.pot new file mode 100644 index 0000000..e69de29 diff --git a/vitragedashboard/static/dashboard/project/layout/main/compute/compute.html b/vitragedashboard/static/dashboard/project/layout/main/compute/compute.html index e29cd99..b2dffb3 100644 --- a/vitragedashboard/static/dashboard/project/layout/main/compute/compute.html +++ b/vitragedashboard/static/dashboard/project/layout/main/compute/compute.html @@ -4,7 +4,7 @@
-

Info.

+

{$ 'Info' |translate$}

@@ -16,7 +16,7 @@
-

Topology

+

{$ 'Topology' |translate$}

diff --git a/vitragedashboard/templates/topology/index.html b/vitragedashboard/templates/topology/index.html index bfc97c4..1722438 100644 --- a/vitragedashboard/templates/topology/index.html +++ b/vitragedashboard/templates/topology/index.html @@ -3,7 +3,8 @@ {% block title %}{% trans "Topology" %}{% endblock %} {% block page_header %} - +{% include "horizon/common/_page_header.html" with title=_("Topology") %} + {% endblock page_header %} {% block main %}
{$ 'TimeStamp' | translate $}{$ 'Name' | translate $}{$ 'Severity' | translate $}{$ 'Type' | translate $}{$ 'TimeStamp' | translate $}{$ 'Name' | translate $}{$ 'Resource Type' | translate $}{$ 'Resource Name' | translate $}{$ 'Severity' | translate $}{$ 'Type' | translate $} {$ 'RCA' | translate $}
+ + +
{$alarm.update_timestamp | date:"h:mm a"$} {$alarm.name$}{$alarm.resource_type$}{$alarm.resource_name$} {$alarm.severity $} {$alarm.type$}