SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit e2a76bc2 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

remove absolute urls from refereeing

parent ef4fc3d3
No related branches found
No related tags found
1 merge request!43Polish up new production page
......@@ -8,8 +8,6 @@ from django.urls import reverse
from django.utils import timezone
from django.utils.html import format_html, format_html_join, html_safe
from scipost.utils import build_absolute_uri_using_site
from . import constants
......@@ -125,11 +123,9 @@ class VettingAction(BaseAction):
@property
def url(self):
return "{}#current-contributions".format(
build_absolute_uri_using_site(
reverse(
"submissions:editorial_page",
args=(self.submission.preprint.identifier_w_vn_nr,),
)
reverse(
"submissions:editorial_page",
args=(self.submission.preprint.identifier_w_vn_nr,),
)
)
......@@ -181,21 +177,17 @@ class NoEICRecommendationAction(BaseAction):
@property
def url(self):
return "{}#reporting-deadline".format(
build_absolute_uri_using_site(
reverse(
"submissions:editorial_page",
args=(self.submission.preprint.identifier_w_vn_nr,),
)
reverse(
"submissions:editorial_page",
args=(self.submission.preprint.identifier_w_vn_nr,),
)
)
@property
def url2(self):
return build_absolute_uri_using_site(
reverse(
"submissions:eic_recommendation",
args=(self.submission.preprint.identifier_w_vn_nr,),
)
reverse(
"submissions:eic_recommendation",
args=(self.submission.preprint.identifier_w_vn_nr,),
)
......@@ -218,11 +210,9 @@ class NeedRefereesAction(BaseAction):
)
text += ' At least {minimum} should be. <a href="{url}">Invite a referee here</a>.'.format(
minimum=self.minimum_number_of_referees,
url=build_absolute_uri_using_site(
reverse(
"submissions:select_referee",
args=(self.submission.preprint.identifier_w_vn_nr,),
)
url=reverse(
"submissions:select_referee",
args=(self.submission.preprint.identifier_w_vn_nr,),
),
)
return text
......
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