Plugins can have CSS and Javascript loaded within <head>

This commit is contained in:
Oliver Gorwits
2013-06-02 12:48:06 +01:00
parent ed1bfa1ae7
commit 66b3ced179
13 changed files with 99 additions and 21 deletions

View File

@@ -1,2 +0,0 @@
<!-- not yet a hyperlink as observium does not support device details page by device-name -->
<img src="http://[% settings.plugin_c_observiumsparklines.webhost | html_entity %]/graph.php?type=port_bits&device=[% device | uri %]&port=[% row.port | uri %]&from=-1d&to=now&width=100&height=20&legend=no"/>

View File

@@ -0,0 +1,4 @@
<button class="btn" rel="popover" data-trigger="hover" data-html="true" data-content='
<img src="http://[% settings.plugin_observiumsparklines.webhost | html_entity %]/graph.php?type=port_bits&device=[% device.dns || device.name | uri %]&port=[% row.port | uri %]&from=-1w&to=now&width=208&height=100&title=yes"/>
'
><i class="icon-bar-chart"></i></button>