File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { LanguageCode } from "./utils/language.js";
22import { Node , NodeId } from "./utils/node.js" ;
33import { GeoJSONOptions , GridLayerOptions , LatLngBoundsExpression } from "leaflet" ;
44import { GeoJsonObject } from "geojson" ;
5+ import { h } from "snabbdom" ;
56
67interface NodeAttr {
78 name : string ;
@@ -211,6 +212,16 @@ export const config: Config = {
211212 name : "node.coordinates" ,
212213 value : "GeoURI" ,
213214 } ,
215+ {
216+ name : "node.contact" ,
217+ value : function ( d ) {
218+ if ( d . owner ) {
219+ return d . owner ;
220+ } else {
221+ return h ( "span" , { props : { className : "missing" } } , "keine Kontaktinformation hinterlegt" ) ;
222+ }
223+ }
224+ } ,
214225 {
215226 name : "node.hardware" ,
216227 value : "model" ,
Original file line number Diff line number Diff line change @@ -103,7 +103,11 @@ self.showStatus = function showStatus(node: Node) {
103103
104104self . showGeoURI = function showGeoURI ( data : Node ) {
105105 if ( ! helper . hasLocation ( data ) ) {
106- return undefined ;
106+ return h (
107+ "td" ,
108+ { props : { className : "missing" } } ,
109+ "kein Standort hinterlegt"
110+ ) ;
107111 }
108112
109113 return h (
Original file line number Diff line number Diff line change 152152.offline {
153153 color : variables .$color-offline ;
154154}
155+
156+ .missing {
157+ color : $color-offline ;
158+ font-style : italic ;
159+ }
You can’t perform that action at this time.
0 commit comments