fix %DEVICE% in template

This commit is contained in:
Oliver Gorwits
2014-03-04 21:51:08 +00:00
parent 94e6aa4c29
commit ae33fb8550
4 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
2.003000 - 2014-02-04
2.003001 - 2014-02-04
* Change to use %DEVICE% as well - full url must be configured in location
* Fix bug in check_acl call

View File

@@ -24,4 +24,4 @@ resources:
homepage: http://netdisco.org/
license: http://opensource.org/licenses/bsd-license.php
repository: git://git.code.sf.net/p/netdisco/netdisco-ng
version: '2.003000'
version: '2.003001'

View File

@@ -1,6 +1,6 @@
package App::NetdiscoX::Web::Plugin::RANCID;
our $VERSION = '2.003000';
our $VERSION = '2.003001';
use Dancer ':syntax';

View File

@@ -1,3 +1,3 @@
<a href="[% settings.plugin_rancid.location.replace('\%GROUP\%',rancidgroup) %]/configs/[% ranciddevice | uri %]"
<a href="[% settings.plugin_rancid.location.replace('\%GROUP\%',rancidgroup).replace('\%DEVICE\%',ranciddevice) %]"
[% ' target="_blank"' UNLESS settings.plugin_rancid.open_in_same_window %]
>View Configuration <i class="icon-circle-arrow-right"></i></a>