SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 47e985e0 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Vet registrations now showing many requests

parent 09bce202
No related branches found
No related tags found
No related merge requests found
...@@ -69,11 +69,11 @@ ...@@ -69,11 +69,11 @@
<h2>SciPost Theses</h2> <h2>SciPost Theses</h2>
</div> </div>
<h3>What are Theses?</h3> <h3>What are Theses?</h3>
<p>SciPost Theses is a searchable repository of external links to Master's, Ph.D. and Habilitation theses. Besides a validated URL pointing to the original document, Each Thesis Link page contains some relevant summary info (such as Title, Author, degree granting institution, abstract, ...), followed by Comments from Contributors and Author and Contributor Replies. </p> <p>SciPost Theses is a searchable repository of external links to Master's, Ph.D. and Habilitation theses. Besides a validated URL pointing to the original document, each Thesis Link page contains some relevant summary info (such as title, author, degree granting institution, abstract, ...), followed by Comments from Contributors and Author and Contributor Replies. </p>
<br/> <br/>
<hr class="hr6"> <hr class="hr6">
<h3>How are Thesis Link pages activated?</h3> <h3>How are Thesis Link pages activated?</h3>
<p>As a registered Contributor, the author of the thesis (or, if unavailable, the supervisor) can request the activation of a Thesis Link by filling is the <a href="{% url 'theses:request_thesislink' %}">Thesis Link request page</a>.</p> <p>As a registered Contributor, the author of the thesis (or, if unavailable, the supervisor or a colleague) can request the activation of a Thesis Link by filling is the <a href="{% url 'theses:request_thesislink' %}">Thesis Link request page</a>.</p>
</div> </div>
<div class="col-1"></div> <div class="col-1"></div>
<div class="col-5"> <div class="col-5">
......
...@@ -46,15 +46,16 @@ $( document ).ready(function() { ...@@ -46,15 +46,16 @@ $( document ).ready(function() {
</script> </script>
<section> <section>
{% if not contributor_to_vet %} {% if not contributors_to_vet %}
<h1>There are no Registration requests for you to vet.</h1> <h1>There are no Registration requests for you to vet.</h1>
{% else %} {% else %}
<h1>SciPost Registration request to vet:</h1> <h1>SciPost Registration requests to vet:</h1>
<p>This Contributor is currently on rank 0 (submitting, commenting and voting disabled).</p> <p>These Contributors are currently on rank 0 (submitting, commenting and voting disabled).</p>
<p>Use this form to promote to rank 1.</p> <p>Use this page to promote them to rank 1 or refuse registration.</p>
{% for contributor_to_vet in contributors_to_vet %}
<br> <br>
<hr> <hr>
<div class="row"> <div class="row">
...@@ -76,6 +77,7 @@ $( document ).ready(function() { ...@@ -76,6 +77,7 @@ $( document ).ready(function() {
</form> </form>
</div> </div>
</div> </div>
{% endfor %}
{% endif %} {% endif %}
</section> </section>
......
...@@ -207,9 +207,11 @@ def already_activated(request): ...@@ -207,9 +207,11 @@ def already_activated(request):
def vet_registration_requests(request): def vet_registration_requests(request):
contributor = Contributor.objects.get(user=request.user) contributor = Contributor.objects.get(user=request.user)
contributor_to_vet = Contributor.objects.filter(user__is_active=True, rank=0).first() # limit to one at a time #contributor_to_vet = Contributor.objects.filter(user__is_active=True, rank=0).first() # limit to one at a time
contributors_to_vet = Contributor.objects.filter(user__is_active=True, rank=0).order_by('key_expires')
form = VetRegistrationForm() form = VetRegistrationForm()
context = {'contributor_to_vet': contributor_to_vet, 'form': form } #context = {'contributor_to_vet': contributor_to_vet, 'form': form }
context = {'contributors_to_vet': contributors_to_vet, 'form': form }
return render(request, 'scipost/vet_registration_requests.html', context) return render(request, 'scipost/vet_registration_requests.html', context)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment