mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	* Hide URLs * Hide elements with "noprint" class * Added noprint to: * Header Panel * Search Panel, Tags Panel * Buttons * Various list elements * Related elements
		
			
				
	
	
		
			24 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% load secret_helpers %}
 | 
						|
<tr>
 | 
						|
    <td><a href="{% url 'secrets:secret' pk=secret.pk %}">{{ secret.role }}</a></td>
 | 
						|
    <td>{{ secret.name }}</td>
 | 
						|
    <td id="secret_{{ secret.pk }}">********</td>
 | 
						|
    <td class="text-right noprint">
 | 
						|
        {% if secret|decryptable_by:request.user %}
 | 
						|
            <button class="btn btn-xs btn-success unlock-secret" secret-id="{{ secret.pk }}">
 | 
						|
                <i class="fa fa-lock"></i> Unlock
 | 
						|
            </button>
 | 
						|
            <button class="btn btn-xs btn-default copy-secret collapse" secret-id="{{ secret.pk }}" data-clipboard-target="#secret_{{ secret.pk }}">
 | 
						|
                <i class="fa fa-copy"></i> Copy
 | 
						|
            </button>
 | 
						|
            <button class="btn btn-xs btn-danger lock-secret collapse" secret-id="{{ secret.pk }}">
 | 
						|
                <i class="fa fa-unlock-alt"></i> Lock
 | 
						|
            </button>
 | 
						|
        {% else %}
 | 
						|
            <button class="btn btn-xs btn-default" disabled="disabled" title="Permission denied">
 | 
						|
                <i class="fa fa-lock"></i> Unlock
 | 
						|
            </button>
 | 
						|
        {% endif %}
 | 
						|
    </td>
 | 
						|
</tr>
 |