mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	update corpus public page
This commit is contained in:
		@@ -67,9 +67,7 @@
 | 
			
		||||
  followingUserList.add({{ following_users|tojson }}); #}
 | 
			
		||||
  
 | 
			
		||||
  corpusFollowingRequest.addEventListener('click', () => {
 | 
			
		||||
    corpusFollowingRequest.innerHTML = '<i class="material-icons left">add</i>Unfollow Corpus';
 | 
			
		||||
    if ("{{ current_user.is_following_corpus(corpus) }}" === "False") {
 | 
			
		||||
      corpusFollowingRequest.lastChild.textContent = 'Unfollow Corpus';
 | 
			
		||||
    if ({{ current_user.is_following_corpus(corpus)|tojson }}) {
 | 
			
		||||
      return new Promise((resolve, reject) => {
 | 
			
		||||
        fetch(`/corpora/{{ corpus.hashid }}/unfollow`, {method: 'POST', headers: {Accept: 'application/json'}})
 | 
			
		||||
          .then(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user