Linkify components under device view

This commit is contained in:
Jeremy Stretch 2020-06-25 12:21:25 -04:00
parent 8695714c65
commit 0fcdd63941
7 changed files with 14 additions and 7 deletions

View File

@ -2,7 +2,8 @@
{# Name #}
<td>
<i class="fa fa-fw fa-keyboard-o"></i> {{ cp }}
<i class="fa fa-fw fa-keyboard-o"></i>
<a href="{{ cp.get_absolute_url }}">{{ cp }}</a>
</td>
{# Type #}

View File

@ -11,7 +11,8 @@
{# Name #}
<td>
<i class="fa fa-fw fa-keyboard-o"></i> {{ csp }}
<i class="fa fa-fw fa-keyboard-o"></i>
<a href="{{ csp.get_absolute_url }}">{{ csp }}</a>
</td>
{# Type #}

View File

@ -9,7 +9,8 @@
{# Name #}
<td>
<i class="fa fa-fw fa-{% if devicebay.installed_device %}dot-circle-o{% else %}circle-o{% endif %}"></i> {{ devicebay.name }}
<i class="fa fa-fw fa-{% if devicebay.installed_device %}dot-circle-o{% else %}circle-o{% endif %}"></i>
<a href="{{ devicebay.get_absolute_url }}">{{ devicebay.name }}</a>
</td>
{# Status #}

View File

@ -10,7 +10,8 @@
{# Name #}
<td>
<i class="fa fa-fw fa-square{% if not frontport.cable %}-o{% endif %}"></i> {{ frontport }}
<i class="fa fa-fw fa-square{% if not frontport.cable %}-o{% endif %}"></i>
<a href="{{ frontport.get_absolute_url }}">{{ frontport }}</a>
</td>
{# Type #}

View File

@ -11,7 +11,8 @@
{# Name #}
<td>
<i class="fa fa-fw fa-bolt"></i> {{ po }}
<i class="fa fa-fw fa-bolt"></i>
<a href="{{ po.get_absolute_url }}">{{ po }}</a>
</td>
{# Type #}

View File

@ -2,7 +2,8 @@
{# Name #}
<td>
<i class="fa fa-fw fa-bolt"></i> {{ pp }}
<i class="fa fa-fw fa-bolt"></i>
<a href="{{ pp.get_absolute_url }}">{{ pp }}</a>
</td>
{# Type #}

View File

@ -10,7 +10,8 @@
{# Name #}
<td>
<i class="fa fa-fw fa-square{% if not rearport.cable %}-o{% endif %}"></i> {{ rearport }}
<i class="fa fa-fw fa-square{% if not rearport.cable %}-o{% endif %}"></i>
<a href="{{ rearport.get_absolute_url }}">{{ rearport }}</a>
</td>
{# Type #}