mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 12:22:47 +00:00 
			
		
		
		
	make is_administrator a property, add back db events
This commit is contained in:
		@@ -77,7 +77,7 @@
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="card-action right-align">
 | 
			
		||||
          {% if current_user.is_administrator()  %}
 | 
			
		||||
          {% if current_user.is_administrator %}
 | 
			
		||||
          <a class="action-button btn disabled waves-effect waves-light modal-trigger" data-action="get-log-request" id="job-log-button" href="#job-log-modal"><i class="material-icons left">text_snippet</i>Log</a>
 | 
			
		||||
          {% endif %}
 | 
			
		||||
          <a class="btn disabled waves-effect waves-light modal-trigger" href="#restart-job-modal"><i class="material-icons left">repeat</i>Restart</a>
 | 
			
		||||
@@ -159,7 +159,7 @@
 | 
			
		||||
      nopaque.requests.jobs.entity.restart({{ job.hashid|tojson }});
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  if ({{ current_user.is_administrator()|tojson }}) {
 | 
			
		||||
  if ({{ current_user.is_administrator|tojson }}) {
 | 
			
		||||
    let jobLogButtonElement = document.querySelector('#job-log-button');
 | 
			
		||||
    jobLogButtonElement.addEventListener('click', (event) => {
 | 
			
		||||
      nopaque.requests.jobs.entity.log({{ job.hashid|tojson }})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user