show period if dates exist
This commit is contained in:
		
					parent
					
						
							
								df67fa3333
							
						
					
				
			
			
				commit
				
					
						3ba1f191a3
					
				
			
		
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -98,10 +98,12 @@
 | 
				
			||||||
                </p>
 | 
					                </p>
 | 
				
			||||||
                <div class="row">
 | 
					                <div class="row">
 | 
				
			||||||
                    <div class="col-sm-6">
 | 
					                    <div class="col-sm-6">
 | 
				
			||||||
                        <p>
 | 
					                        {% if vm.created_at %}
 | 
				
			||||||
                            <span>{% trans "Period" %}: </span>
 | 
					                            <p>
 | 
				
			||||||
                            <span>{{ vm.created_at|date:'Y/m/d' }} - {% if vm.terminated_at %}{{ vm.terminated_at|date:'Y/m/d' }}{% else %}{% now 'Y/m/d' %}{% endif %}</span>
 | 
					                                <span>{% trans "Period" %}: </span>
 | 
				
			||||||
                        </p>
 | 
					                                <span>{{ vm.created_at|date:'Y/m/d' }} - {% if vm.terminated_at %}{{ vm.terminated_at|date:'Y/m/d' }}{% else %}{% now 'Y/m/d' %}{% endif %}</span>
 | 
				
			||||||
 | 
					                            </p>
 | 
				
			||||||
 | 
					                        {% endif %}
 | 
				
			||||||
                        <p>
 | 
					                        <p>
 | 
				
			||||||
                            <span>{% trans "Cores" %}: </span>
 | 
					                            <span>{% trans "Cores" %}: </span>
 | 
				
			||||||
                            {% if vm.cores %}
 | 
					                            {% if vm.cores %}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue