correct link in jobqueue template

This commit is contained in:
Oliver Gorwits
2014-11-19 22:13:20 +00:00
parent d91ee66634
commit 16c4d9cfbe

View File

@@ -36,7 +36,7 @@
<td class="nd_center-cell">[% row.status.ucfirst | html_entity %]</td> <td class="nd_center-cell">[% row.status.ucfirst | html_entity %]</td>
[% END %] [% END %]
<td class="nd_center-cell"> <td class="nd_center-cell">
[% IF row.status == 'error' %] [% IF row.action == 'discover' AND row.status == 'error' %]
<a href="[% uri_for('/') %]?device=[% row.device | uri %]">[% row.device | html_entity %]</a> <a href="[% uri_for('/') %]?device=[% row.device | uri %]">[% row.device | html_entity %]</a>
[% ELSE %] [% ELSE %]
<a href="[% uri_for('/device') %]?q=[% row.device | uri %]">[% row.device | html_entity %]</a> <a href="[% uri_for('/device') %]?q=[% row.device | uri %]">[% row.device | html_entity %]</a>