From 66024a7b1b7c113b739f32b4bdc9fb43ca2b76be Mon Sep 17 00:00:00 2001 From: rharishan Date: Wed, 22 Aug 2012 00:05:28 +0000 Subject: [PATCH] 2012-08-22 Hareesan Rajendra * Added color changes and few other updates. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6901 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- .../chrome/content/js/popup.js | 17 +++++++++++++---- .../chrome/content/pandorasidebar.xul | 2 +- extras/firefox_extension/chrome/skin/popup.css | 14 ++++++++++---- 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/extras/firefox_extension/chrome/content/js/popup.js b/extras/firefox_extension/chrome/content/js/popup.js index 7ebe7c5c9b..89bb2f76a7 100644 --- a/extras/firefox_extension/chrome/content/js/popup.js +++ b/extras/firefox_extension/chrome/content/js/popup.js @@ -108,6 +108,15 @@ PandoraPoPUp = function () { a.setAttribute("value", allEventsPoP[i][6]); //var temp_style="font-weight:bold;"; new_events + var agent_url; + if(allEventsPoP[i][1]==""){; + agent_url=prefmanager.getCharPref("ip_address")+"/index.php?sec=eventos&sec2=operation/events/events" ; + }else{ + agent_url=prefmanager.getCharPref("ip_address")+"/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente="+allEventsPoP[i][1]; + } + a.setAttribute("href",agent_url); + a.setAttribute("class","text-link"); + if (i < prefmanager.getIntPref("new_events")) { var temp_style = "font-weight:bold;"; } @@ -117,16 +126,16 @@ PandoraPoPUp = function () { if (allEventsPoP[i][19] == "Warning") { - eve_title.setAttribute("style", "background:#FDE84F; margin-bottom:1px;" + temp_style); + eve_title.setAttribute("style", "background:#FCED7E; margin-bottom:1px;" + temp_style); } if (allEventsPoP[i][19] == "Critical") { - eve_title.setAttribute("style", "background:#C60700; margin-bottom:1px;" + temp_style); + eve_title.setAttribute("style", "background:#FA7A7A; margin-bottom:1px;" + temp_style); } if (allEventsPoP[i][19] == "Informational") { - eve_title.setAttribute("style", "background:#739FD0; margin-bottom:1px;" + temp_style); + eve_title.setAttribute("style", "background:#7FB9FA; margin-bottom:1px;" + temp_style); } if (allEventsPoP[i][19] == "Normal") { - eve_title.setAttribute("style", "background:#8AE234; margin-bottom:1px;" + temp_style); + eve_title.setAttribute("style", "background:#A8D96C; margin-bottom:1px;" + temp_style); } if (allEventsPoP[i][19] == "Maintenance") { eve_title.setAttribute("style", "background:#BABDB6; margin-bottom:1px;" + temp_style); diff --git a/extras/firefox_extension/chrome/content/pandorasidebar.xul b/extras/firefox_extension/chrome/content/pandorasidebar.xul index 797572cb07..1908320775 100644 --- a/extras/firefox_extension/chrome/content/pandorasidebar.xul +++ b/extras/firefox_extension/chrome/content/pandorasidebar.xul @@ -40,7 +40,7 @@ diff --git a/extras/firefox_extension/chrome/skin/popup.css b/extras/firefox_extension/chrome/skin/popup.css index 1e16636cc8..96c3a36503 100644 --- a/extras/firefox_extension/chrome/skin/popup.css +++ b/extras/firefox_extension/chrome/skin/popup.css @@ -5,17 +5,23 @@ body { font-family:Tahoma, Geneva, Arial; font-size:10pt; } -h1 { font-weight: bold; font-size:16px; margin:2px 0px 2px 0px; color:#0068C4; font-family:arial } +h1 { font-weight: bold; font-size:16px; margin:2px 0px 2px 0px; color:#237948; font-family:arial } h2{ color : blue; } - -label { color: #035BAC; text-decoration:none; } +label { color: #254533; text-decoration:none; } label:hover { text-decoration:underline; } -label:visited { color: #035BAC; text-decoration:none; } +label:visited { color: #254533; text-decoration:none; } label:visited:hover { text-decoration:underline; } + +label.text-link { color: #254533; text-decoration:none; } +label.text-link :hover { text-decoration:underline; } +label.text-link :visited { color: #254533; text-decoration:none; } +label.text-link :visited:hover { text-decoration:underline; } + + span.res { font-size:80%; color:#555; } image.pm { margin-right:3px;cursor:pointer; margin-top:0px; }