View Source Runbox.Ui (runbox v17.1.0)
Set of utility functions for working with UI.
Summary
Functions
Returns a URL path to the specific asset in the Network tab.
Returns a URL path to the specific incident in the Network tab.
Functions
Returns a URL path to the specific asset in the Network tab.
Examples
iex> network_asset_path("/assets/cameras", "main")
"/network/asset/%2Fassets%2Fcameras/main"
iex> network_asset_path("/assets/strange type", "strange#id")
"/network/asset/%2Fassets%2Fstrange%20type/strange%23id"
Returns a URL path to the specific incident in the Network tab.
Examples
iex> network_incident_path("fire", "big")
"/network/incident/fire/big"
iex> network_incident_path("bad fire&", "strange#/id")
"/network/incident/bad%20fire%26/strange%23%2Fid"