Skip to content

Commit

Permalink
fix action/notes url target
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jul 21, 2023
1 parent 7713f92 commit bba2d77
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
44 changes: 22 additions & 22 deletions templates/extinfo_type_1.tt
Original file line number Diff line number Diff line change
Expand Up @@ -87,29 +87,29 @@
<img class="inline-block" src="[% url_prefix %]plugins/[% shinken_features_path %]/images/criticity_[% prio %].png" alt="Priority [% prio %]/5" title="[% priorities.$prio | html %]">
</div>
[% END %]
[% IF host.action_url_expanded %]
[% action_url = proxifiy_url(c, host, get_action_url(c, 2, 1, host.action_url_expanded, host)) %]
<div>
<a href='[% l = set_target_link(action_url, c.config.action_url_target); l.0 %]' target='[% l.1 %]'>
<i class="fa-solid fa-chart-line clickable text-xl" title='Show Performance Chart'></i>
</a>
</div>
[% END %]
[% IF host.notes_url_expanded %]
<div>
<a href='[% l = set_target_link(host.notes_url_expanded, c.config.notes_url_target); l.0 %]' target='[% l.1 %]'>
<i class="fa-solid fa-clipboard clickable" title='View Extra Host Notes'></i>
</a>
</div>
[% END %]
[% has_bp = has_business_process(host) %]
[% IF has_bp %]
<div>
<a href="bp.cgi?action=details&bp=[% has_bp %]">
<i class="fa-solid fa-sitemap clickable text-xl" title='Show Business Process'></i>
</a>
</div>
[% END %]
[% IF host.action_url_expanded %]
[% action_url = proxifiy_url(c, host, get_action_url(c, 2, 1, host.action_url_expanded, host)) %]
<div>
<a href='[% l = set_target_link(action_url, c.config.action_url_target); l.0 %]' target='[% l.1 %]'>
<i class="fa-solid fa-chart-line clickable text-xl" title='Show Performance Chart'></i>
</a>
</div>
[% END %]
<div>
<a href='[% l = set_target_link(host.notes_url_expanded, c.config.notes_url_target); l.0 %]' target='[% l.1 %]'>
<i class="fa-solid fa-clipboard clickable" title='View Extra Host Notes'></i>
</a>
</div>
[% END %]
[% has_bp = has_business_process(host) %]
[% IF has_bp %]
<div>
<a href="bp.cgi?action=details&bp=[% has_bp %]">
<i class="fa-solid fa-sitemap clickable text-xl" title='Show Business Process'></i>
</a>
</div>
[% END %]
</div>
</div>
<div>
Expand Down
6 changes: 4 additions & 2 deletions templates/extinfo_type_2.tt
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@
[% IF service.action_url_expanded %]
[% action_url = proxifiy_url(c, service, get_action_url(c, 2, 1, service.action_url_expanded, service)) %]
<div>
<a href='[% action_url %]' target='_blank'><i class="fa-solid fa-chart-line clickable text-xl" title='Show Performance Chart'></i></a>
<a href='[% l = set_target_link(action_url, c.config.action_url_target); l.0 %]' target='[% l.1 %]'>
<i class="fa-solid fa-chart-line clickable text-xl" title='Show Performance Chart'></i>
</a>
</div>
[% END %]
[% IF service.notes_url_expanded %]
<div>
<a href='[% service.notes_url_expanded %]' target='[% c.config.notes_url_target %]'>
<a href='[% l = set_target_link(service.notes_url_expanded, c.config.notes_url_target); l.0 %]' target='[% l.1 %]'>
<i class="fa-solid fa-clipboard clickable" title='View Extra Service Notes'></i>
</a>
</div>
Expand Down

0 comments on commit bba2d77

Please sign in to comment.