mirror of
				https://github.com/sb745/NyaaV3.git
				synced 2025-10-31 16:05:46 +02:00 
			
		
		
		
	 16814d6eb7
			
		
	
	
		16814d6eb7
		
	
	
	
	
		
			
			* Add trusted application functionality This lets users apply for trusted status, given certain minimum requirements. Moderators can then review the applications, giving a recommendation, and administrators can accept or reject them. If an application is accepted or rejected, the user receives an e-mail about it. Markdown images are not rendered in applications to prevent browsers from sending automatic requests to untrusted webservers. Users who have had their application rejected cannot re-apply for a set amount of days. * minor fixes
		
			
				
	
	
		
			51 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% extends "layout.html" %}
 | |
| {% from "_formhelpers.html" import render_field %}
 | |
| {% block title %}Apply for Trusted :: {{ config.SITE_NAME }}{% endblock %}
 | |
| {% block body %}
 | |
| <div class="content">
 | |
| 	{% if trusted_form %}
 | |
| 	<div class="row">
 | |
| 		<div class="col-md-12">
 | |
| 			<h1>You are eligible to apply for trusted status</h1>
 | |
| 		</div>
 | |
| 	</div>
 | |
| 	<form class="trusted-form" method="POST">
 | |
| 		{{ trusted_form.csrf_token }}
 | |
| 		<div class="row">
 | |
| 			<div class="col-md-6">
 | |
| 				{{ render_field(trusted_form.why_give_trusted, class_='form-control') }}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 		<div class="row">
 | |
| 			<div class="col-md-6">
 | |
| 				{{ render_field(trusted_form.why_want_trusted, class_='form-control') }}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 		<div class="row">
 | |
| 			<div class="col-md-2">
 | |
| 				<input type="submit" value="Submit" class="btn btn-success btn-sm">
 | |
| 			</div>
 | |
| 		</div>
 | |
| 	</form>
 | |
| 	{% else %}
 | |
| 	<div class="row">
 | |
| 		<div class="col-md-12">
 | |
| 			<h1>You are currently not eligible to apply for trusted status</h1>
 | |
| 		</div>
 | |
| 	</div>
 | |
| 	<div class="row">
 | |
| 		<div class="col-md-12">
 | |
| 			<p>
 | |
| 				You currently are not eligible to apply for trusted status for the following
 | |
| 				reason{% if deny_reasons|length > 1 %}s{% endif %}:
 | |
| 			</p>
 | |
| 			<ul>
 | |
| 				{% for reason in deny_reasons %}
 | |
| 				<li>{{ reason }}</li>
 | |
| 				{% endfor %}
 | |
| 			</ul>
 | |
| 		</div>
 | |
| 	</div>
 | |
| 	{% endif %}
 | |
| </div>
 | |
| {% endblock %}
 |