mirror of
				https://github.com/retspen/webvirtcloud
				synced 2025-07-31 12:41:08 +00:00 
			
		
		
		
	account view now displays user public keys
This commit is contained in:
		
							parent
							
								
									6d153a6acf
								
							
						
					
					
						commit
						fdca3cef9c
					
				
					 2 changed files with 25 additions and 1 deletions
				
			
		|  | @ -13,6 +13,29 @@ | |||
| 
 | ||||
|             {% include 'errors_block.html' %} | ||||
| 
 | ||||
|             {% if request.user.is_superuser and publickeys %} | ||||
|             <div class="row"> | ||||
|                 <div class="col-lg-12"> | ||||
|                     <div class="table-responsive"> | ||||
|                         <table class="table table-bordered table-hover"> | ||||
|                             <thead> | ||||
|                                 <tr> | ||||
|                                     <th>{% trans "Key name" %}</th> | ||||
|                                     <th>{% trans "Public key" %}</th> | ||||
|                                 </tr> | ||||
|                             </thead> | ||||
|                             <tbody> | ||||
|                             {% for publickey in publickeys %} | ||||
|                                 <td>{{ publickey.keyname }}</td> | ||||
|                                 <td title="{{ publickey.keypublic }}">{{ publickey.keypublic|truncatechars:64 }}</td> | ||||
|                             {% endfor %} | ||||
|                             </tbody> | ||||
|                         </table> | ||||
|                     </div> | ||||
|                 </div> | ||||
|             </div> | ||||
|             {% endif %} | ||||
|              | ||||
|             <div class="row"> | ||||
|                 <div class="col-lg-12"> | ||||
|                     {% if not user_insts %} | ||||
|  | @ -112,4 +135,4 @@ | |||
|                     {% endif %} | ||||
|                 </div> | ||||
|             </div> | ||||
| {% endblock %} | ||||
| {% endblock %} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue