diff --git a/templates/base.html b/templates/base.html
index f39ea88..5c9d741 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -30,7 +30,7 @@ under the License.
.fancy {
font-family: 'Kaushan Script';
font-style: normal;
- padding-bottom: 1em;
+ padding-bottom: 0em;
font-size: 3em;
color:#C63520;
}
@@ -86,7 +86,7 @@ under the License.
margin-bottom:1em;
}
.std-height {
- height:5em;
+ height:30em;
overflow-y:scroll;
overflow-x:hidden;
}
diff --git a/templates/index.html b/templates/index.html
index 47967bd..497f375 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -10,6 +10,16 @@
{
$("#row_expansion_" + row_id).load('/' + tenant_id + '/expand/' + row_id);
};
+
+ function search_form(tenant_id)
+ {
+ var field = $("#field").val();
+ var value = $("#query").val();
+ var data = {'field':field, 'value':value};
+ $("#detail").load('/' + tenant_id + '/search/', data);
+ return false;
+ };
+
{% endblock %}
{% block extra_init_js %}
@@ -19,28 +29,33 @@
{% block body %}
{{state.tenant.email}} (TID:{{state.tenant.tenant_id}}) - {{state.tenant.project_name}}
logout
- Recent Host Activity
+ Recent Activity
{% include "host_status.html" %}
- Recent Instance Activity
-
-
- {% include "instance_status.html" %}
-
-
-
+
Details
diff --git a/templates/rows.html b/templates/rows.html
index d4ab9d3..d2570a1 100644
--- a/templates/rows.html
+++ b/templates/rows.html
@@ -9,6 +9,9 @@
instance |
when |
+{% if not rows %}
+
No results |
+{% endif %}
{% for row in rows %}
@@ -37,7 +40,7 @@
{% endif %}
|
- {% if show_absolute_time %}{{row.when}}{%else%}{{row.when|timesince:utc}} ago{%endif%} |
+ {% if show_absolute_time %}{{row.when}} (+{{row.when.microsecond}}){%else%}{{row.when|timesince:utc}} ago{%endif%} |
{% if allow_expansion %}
diff --git a/templates/welcome.html b/templates/welcome.html
index c86a069..43e8216 100644
--- a/templates/welcome.html
+++ b/templates/welcome.html
@@ -15,7 +15,7 @@
- Get a StackTach Tenant ID
- Add
--notification_driver=nova.notifier.rabbit_notifier
and
- --notification_topics=info,monitor
to your nova.conf file.
+ --notification_topics=notifications,monitor
to your nova.conf file.
- Configure and run the StackTach Worker somewhere in your Nova development environment.
- Restart Nova and visit http://[your server]/[your_tenant_id]/ to see your Nova installation in action!
diff --git a/urls.py b/urls.py
index 5ae73fa..08885f1 100644
--- a/urls.py
+++ b/urls.py
@@ -1,9 +1,20 @@
from django.conf.urls.defaults import patterns, include, url
-# Uncomment the next two lines to enable the admin:
-# from django.contrib import admin
-# admin.autodiscover()
-
urlpatterns = patterns('',
- url(r'^', include('stacktach.url')),
+ url(r'^$', 'stacktach.views.welcome', name='welcome'),
+ url(r'new_tenant', 'stacktach.views.new_tenant', name='new_tenant'),
+ url(r'logout', 'stacktach.views.logout', name='logout'),
+ url(r'^(?P\d+)/$', 'stacktach.views.home', name='home'),
+ url(r'^(?P\d+)/data/$', 'stacktach.views.data',
+ name='data'),
+ url(r'^(?P\d+)/details/(?P\w+)/(?P\d+)/$',
+ 'stacktach.views.details', name='details'),
+ url(r'^(?P\d+)/search/$',
+ 'stacktach.views.search', name='search'),
+ url(r'^(?P\d+)/expand/(?P\d+)/$',
+ 'stacktach.views.expand', name='expand'),
+ url(r'^(?P\d+)/host_status/$',
+ 'stacktach.views.host_status', name='host_status'),
+ url(r'^(?P\d+)/instance_status/$',
+ 'stacktach.views.instance_status', name='instance_status'),
)