diff --git a/www/css/main.css b/www/css/main.css index 2454bbfa4..57a5c909b 100755 --- a/www/css/main.css +++ b/www/css/main.css @@ -105,6 +105,14 @@ ul.tabs li.current { background-image:url(../img/master.png) } +.ui-icon-fertigation:after { + background-image:url("data:image/svg+xml;charset=US-ASCII,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2214px%22%20height%3D%2214px%22%20viewBox%3D%220%200%2014%2014%22%20enable-background%3D%22new%200%200%2014%2014%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M3.5%2C3.5h-1.2v9h1.2V3.5z%20M3.5%2C3.5h4.5v1.2H4.7v2.5h3.1v1.2H4.7v6.1h-1.2V3.5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") +} + +.ui-nosvg .ui-icon-fertigation:after { + background-image:url(../img/fertigation.png) +} + .ui-icon-relay:after { background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2014%2014%22%3E%3Cg%20stroke%3D%22%23fff%22%20stroke-width%3D%22.75%22%20fill%3D%22none%22%3E%3Cg%3E%3Cpath%20d%3D%22M8.326%206.792%22%2F%3E%3Cpath%20stroke-linecap%3D%22square%22%20d%3D%22M9.726%207.192c0%20.5-.3.9-.7.9s-.7-.4-.7-.9.3-.9.7-.9c.4%200%20.7.4.7.9z%22%2F%3E%3Cpath%20stroke-linecap%3D%22square%22%20d%3D%22M9.926%207.192h4%22%2F%3E%3C%2Fg%3E%3Cg%20stroke-linecap%3D%22square%22%3E%3Cpath%20d%3D%22M4.174%207.192c0%20.5.3.9.7.9.4%200%20.7-.4.7-.9s-.3-.9-.7-.9c-.4%200-.7.4-.7.9z%22%2F%3E%3Cpath%20d%3D%22M3.974%207.192h-4%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cpath%20stroke%3D%22%23fff%22%20stroke-width%3D%22.75%22%20fill%3D%22none%22%20d%3D%22M8.3%206.8l-2.7-4%22%2F%3E%3C%2Fsvg%3E") } diff --git a/www/js/modules/dashboard.js b/www/js/modules/dashboard.js index 68f374ce1..06520749d 100644 --- a/www/js/modules/dashboard.js +++ b/www/js/modules/dashboard.js @@ -86,11 +86,19 @@ OSApp.Dashboard.displayPage = function() { ( OSApp.Stations.isSpecial( sid ) ? "" : "hidden" ) + "'>"; if ( OSApp.Supported.groups() ) { - cards += "" + OSApp.Groups.mapGIDValueToName( OSApp.Stations.getGIDValue( sid ) ) + ""; } - cards += ""; - if ( !OSApp.Stations.isMaster( sid ) ) { + // Don't show status line for master or fertigation stations + var isFertigationStation = OSApp.Supported.fertigation() && OSApp.Stations.isFertigation( sid ); + if ( !OSApp.Stations.isMaster( sid ) && !isFertigationStation ) { if ( isScheduled || isRunning ) { // Generate status line for station @@ -393,7 +403,8 @@ OSApp.Dashboard.displayPage = function() { ( typeof sites[ currentSite ].images[ sid ] !== "string" ? OSApp.Language._( "Add" ) : OSApp.Language._( "Change" ) ) + " " + OSApp.Language._( "Image" ) + ""; - if ( !OSApp.Stations.isMaster( sid ) ) { + var isFertigationStation = OSApp.Supported.fertigation() && OSApp.Stations.isFertigation( sid ); + if ( !OSApp.Stations.isMaster( sid ) && !isFertigationStation ) { if ( OSApp.Supported.master( OSApp.Constants.options.MASTER_STATION_1 ) ) { select += "