From b50d5e50dcc9fd87050f3e97ed988752db6c79c4 Mon Sep 17 00:00:00 2001 From: Nathan Booth Date: Sat, 31 Dec 2011 12:40:40 +0000 Subject: [PATCH] UI updates to admin page and bug fixes, added readme Signed-off-by: Nathan Booth --- README.md | 21 +++++++++++++++++++++ source/webui/templates/admin.tpl | 18 +++++++++++------- source/webui/templates/index.tpl | 2 +- source/webui/templates/status.tpl | 2 +- 4 files changed, 34 insertions(+), 9 deletions(-) create mode 100755 README.md diff --git a/README.md b/README.md new file mode 100755 index 0000000..373d052 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +StatusBoard +============= + +StatusBoard is a simple PHP web-based tool for displaying the status of services. Administrators can manually record incidents and provide estimated end times and simple descriptions. This tool is suitable for exposing status information to customers or other third parties and does not need to be connected to internal systems. + +Features +------- + +#Customisable list of Services and Sites. +#Manual reporting and status changes for Incidents. +#Multiple severity levels. +#Full admin UI. + +Requirements +------------ + +PHP +MYSQL +Smarty +sihnon-php-lib: https://github.com/optiz0r/sihnon-php-lib + diff --git a/source/webui/templates/admin.tpl b/source/webui/templates/admin.tpl index 8555eb1..09d7030 100644 --- a/source/webui/templates/admin.tpl +++ b/source/webui/templates/admin.tpl @@ -15,7 +15,7 @@

Alerts

-

+

There {StatusBoard_Formatting::pluralise(count($incidents_near_deadline), 'is', 'are')} {$incidents_near_deadline|count} {StatusBoard_Formatting::pluralise(count($incidents_near_deadline), 'incident', 'incidents')} within 1 hour of the current estimated end time.

@@ -43,8 +43,8 @@

Statistics

-
- +
+
@@ -53,19 +53,23 @@ - + - + - + + - + + + + diff --git a/source/webui/templates/index.tpl b/source/webui/templates/index.tpl index 4d18af3..c6cb11f 100644 --- a/source/webui/templates/index.tpl +++ b/source/webui/templates/index.tpl @@ -1,4 +1,4 @@ - +Status Board diff --git a/source/webui/templates/status.tpl b/source/webui/templates/status.tpl index ec06b32..46667b1 100644 --- a/source/webui/templates/status.tpl +++ b/source/webui/templates/status.tpl @@ -57,7 +57,7 @@

{$start|date_format:"d M Y"}

{$incidentCount} {StatusBoard_Formatting::pluralise($incidentCount,'incident','incidents')}

-

Note: Click on incident number to see incident audit trail

+ {if $incidentsDuring}

Note: Click on incident number to see incident audit trail

{/if}
{if $incidentsDuring}
Statistic
ServicesServices {$service_count}
SitesSites {$site_count}
IncidentsIncidents {array_sum(array_values($incident_counts))}
MajorIncident StatisticsCount
Major {$incident_counts[StatusBoard_Status::STATUS_Major]}