* adds direct jump of viewport on related-data action (create/delete) * adds comment field to log.html as 'details'
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% load i18n %}
 | 
						|
<div class="table-container scroll-300">
 | 
						|
    <table class="table table-hover">
 | 
						|
        <thead>
 | 
						|
            <tr>
 | 
						|
                <th scope="col" class="w-25">
 | 
						|
                    {% trans 'Timestamp' %}
 | 
						|
                </th>
 | 
						|
                <th scope="col">
 | 
						|
                    {% trans 'Action' %}
 | 
						|
                </th>
 | 
						|
                <th scope="col">
 | 
						|
                    {% trans 'Details' %}
 | 
						|
                </th>
 | 
						|
                <th scope="col">
 | 
						|
                    {% trans 'User' %}
 | 
						|
                </th>
 | 
						|
            </tr>
 | 
						|
        </thead>
 | 
						|
        <tbody>
 | 
						|
        {% for entry in log %}
 | 
						|
            <tr>
 | 
						|
                <td>
 | 
						|
                    {{entry.timestamp}}
 | 
						|
                </td>
 | 
						|
                <td>
 | 
						|
                    {{ entry.action_humanize}}
 | 
						|
                </td>
 | 
						|
                <td>
 | 
						|
                    {{ entry.comment|default_if_none:"-" }}
 | 
						|
                </td>
 | 
						|
                <td>
 | 
						|
                    {{entry.user}}
 | 
						|
                </td>
 | 
						|
            </tr>
 | 
						|
        {% endfor %}
 | 
						|
        </tbody>
 | 
						|
    </table>
 | 
						|
</div> |