mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge launch, SSH, telnet and settings into 1 dropdown
Screenshot: http://i.imgur.com/vV30EKQ.png
This commit is contained in:
@@ -388,19 +388,25 @@ if (device_permitted($vars['device']) || $check_device == $vars['device']) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
echo '<li style="float: right;"><a href="https://'.$device['hostname'].'"><img src="images/16/http.png" alt="https" title="Launch browser to https://'.$device['hostname'].'" border="0" width="16" height="16" target="_blank"></a></li>
|
echo '<div class="dropdown" style="float: right;">
|
||||||
<li style="float: right;"><a href="ssh://'.$device['hostname'].'"><img src="images/16/ssh.png" alt="ssh" title="SSH to '.$device['hostname'].'" border="0" width="16" height="16"></a></li>
|
<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"><i class="fa fa-cog"></i>
|
||||||
<li style="float: right;"><a href="telnet://'.$device['hostname'].'"><img src="images/16/telnet.png" alt="telnet" title="Telnet to '.$device['hostname'].'" border="0" width="16" height="16"></a></li>';
|
<span class="caret"></span></button>
|
||||||
|
<ul class="dropdown-menu">
|
||||||
if ($_SESSION['userlevel'] >= '7') {
|
<li><a href="https://'.$device['hostname'].'"><img src="images/16/http.png" alt="https" title="Launch browser to https://'.$device['hostname'].'" border="0" width="16" height="16" target="_blank"> Launch</a></li>
|
||||||
echo '<li class="'.$select['edit'].'" style="float: right;">
|
<li><a href="ssh://'.$device['hostname'].'"><img src="images/16/ssh.png" alt="ssh" title="SSH to '.$device['hostname'].'" border="0" width="16" height="16"> SSH</a></li>
|
||||||
|
<li><a href="telnet://'.$device['hostname'].'"><img src="images/16/telnet.png" alt="telnet" title="Telnet to '.$device['hostname'].'" border="0" width="16" height="16"> Telnet</a></li>';
|
||||||
|
if ($_SESSION['userlevel'] >= '7') {
|
||||||
|
echo '<li>
|
||||||
<a href="'.generate_device_url($device, array('tab' => 'edit')).'">
|
<a href="'.generate_device_url($device, array('tab' => 'edit')).'">
|
||||||
<img src="images/16/wrench.png" align="absmiddle" border="0" />
|
<img src="images/16/wrench.png" align="absmiddle" border="0" />
|
||||||
|
Edit
|
||||||
</a>
|
</a>
|
||||||
</li>';
|
</li>';
|
||||||
}
|
}
|
||||||
|
echo '</ul>
|
||||||
|
</div>';
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
|
|
||||||
}//end if
|
}//end if
|
||||||
|
|
||||||
if (device_permitted($device['device_id']) || $check_device == $vars['device']) {
|
if (device_permitted($device['device_id']) || $check_device == $vars['device']) {
|
||||||
|
Reference in New Issue
Block a user