Skip to content

Commit f6349e5

Browse files
authored
Accessible links (#11369)
* link: documentation for this endpoint Signed-off-by: Josh Soref <[email protected]> * link: download the contents of this repository Signed-off-by: Josh Soref <[email protected]> * link: files in this repo Signed-off-by: Josh Soref <[email protected]> * link: disconnect your GitLab account and reconnect with a valid token Signed-off-by: Josh Soref <[email protected]> * link: more information on locations Signed-off-by: Josh Soref <[email protected]> * link: example of a full custom taxonomy and more information about each field Signed-off-by: Josh Soref <[email protected]> * link: set a password Signed-off-by: Josh Soref <[email protected]> * link: questions and comments Signed-off-by: Josh Soref <[email protected]> * link: blank version of the Election Research Preacceptance Competition form Signed-off-by: Josh Soref <[email protected]> * link: review the request Signed-off-by: Josh Soref <[email protected]> * link: disable this feature Signed-off-by: Josh Soref <[email protected]> * link: OSF Storage capacity Signed-off-by: Josh Soref <[email protected]> * link: Version history for this policy Signed-off-by: Josh Soref <[email protected]> * link: view it as a contributor Signed-off-by: Josh Soref <[email protected]> * link: withdraw its parent registration Signed-off-by: Josh Soref <[email protected]> * link: resend your confirmation email Signed-off-by: Josh Soref <[email protected]> * link: set a password for your account Signed-off-by: Josh Soref <[email protected]> * link: approve this ... Signed-off-by: Josh Soref <[email protected]> * link: View your draft Signed-off-by: Josh Soref <[email protected]> * link: Review and contribute to the updates in progress Signed-off-by: Josh Soref <[email protected]> * link: Review the updates in progress Signed-off-by: Josh Soref <[email protected]> * link: Review and either approve or reject the submitted updates Signed-off-by: Josh Soref <[email protected]> * link: Review the submited updates Signed-off-by: Josh Soref <[email protected]> * link: about preregistration Signed-off-by: Josh Soref <[email protected]> * link: list of storage provider keys Signed-off-by: Josh Soref <[email protected]> * Remove bogus aria-label Signed-off-by: Josh Soref <[email protected]> --------- Signed-off-by: Josh Soref <[email protected]>
1 parent d006605 commit f6349e5

File tree

33 files changed

+130
-130
lines changed

33 files changed

+130
-130
lines changed

addons/bitbucket/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ def before_page_load(self, node, user):
340340
)
341341
else:
342342
message += (
343-
' The files in this Bitbucket repo can be viewed on Bitbucket '
344-
'<u><a href="https://bitbucket.org/{user}/{repo}/">here</a></u>.'
343+
' View the <u><a href="https://bitbucket.org/{user}/{repo}/">files in this repo</a></u> on Bitbucket '
344+
'.'
345345
).format(
346346
user=self.user,
347347
repo=self.repo,
@@ -369,8 +369,8 @@ def before_remove_contributor_message(self, node, removed):
369369
"""
370370
try:
371371
message = (super().before_remove_contributor_message(node, removed) +
372-
'You can download the contents of this repository before removing '
373-
'this contributor <u><a href="{url}">here</a></u>.'.format(
372+
'You can <u><a href="{url}">download the contents of this repository</a></u> before removing '
373+
'this contributor.'.format(
374374
url=node.api_url + 'bitbucket/tarball/'
375375
))
376376
except TypeError:

addons/github/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ def before_page_load(self, node, user):
336336
)
337337
else:
338338
message += (
339-
' The files in this GitHub repo can be viewed on GitHub '
340-
'<u><a href="https://github.com/{user}/{repo}/">here</a></u>.'
339+
' View the <u><a href="https://github.com/{user}/{repo}/">files in this repo</a></u> on GitHub '
340+
'.'
341341
).format(
342342
user=self.user,
343343
repo=self.repo,
@@ -355,8 +355,8 @@ def before_remove_contributor_message(self, node, removed):
355355
"""
356356
try:
357357
message = (super().before_remove_contributor_message(node, removed) +
358-
'You can download the contents of this repository before removing '
359-
'this contributor <u><a href="{url}">here</a></u>.'.format(
358+
'You can <u><a href="{url}">download the contents of this repository</a></u> before removing '
359+
'this contributor.'.format(
360360
url=node.api_url + 'github/tarball/'
361361
))
362362
except TypeError:

addons/gitlab/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def repos(self, all=False):
5858
return self.gitlab.projects.list(membership=True, all=all)
5959
except gitlab.GitlabAuthenticationError:
6060
raise HTTPError(http_status.HTTP_403_FORBIDDEN, data={
61-
'message_long': 'Your Gitlab token is deleted or invalid you may disconnect your Gitlab account and '
62-
'reconnect with a valid token <a href="/settings/addons/">here</a>.'
61+
'message_long': 'Your GitLab token is deleted or invalid you may <a href="/settings/addons/">disconnect '
62+
'your GitLab account and reconnect with a valid token</a>.'
6363
})
6464

6565
def branches(self, repo_id, branch=None):

addons/gitlab/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ def before_page_load(self, node, user):
302302
)
303303
else:
304304
message += (
305-
' The files in this GitLab repo can be viewed on GitLab '
306-
'<u><a href="{url}" aria-label="github link" >here</a></u>.'
305+
' View the <u><a href="{url}">files in this repo</a></u> on GitLab '
306+
'.'
307307
).format(url=repo.http_url_to_repo)
308308
messages.append(message)
309309
return messages
@@ -318,8 +318,8 @@ def before_remove_contributor_message(self, node, removed):
318318
"""
319319
try:
320320
message = (super().before_remove_contributor_message(node, removed) +
321-
'You can download the contents of this repository before removing '
322-
'this contributor <u><a href="{url}">here</a></u>.'.format(
321+
'You can <u><a href="{url}">download the contents of this repository</a></u> before removing '
322+
'this contributor.'.format(
323323
url=node.api_url + 'gitlab/tarball/'
324324
))
325325
except TypeError:

addons/s3/static/s3NodeConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ var s3FolderPickerViewModel = oop.extend(OauthAddonFolderPicker, {
202202
'</div>' +
203203
'</div>' +
204204
'</form>' +
205-
'<span>For more information on locations, click ' +
206-
'<a href="http://help.osf.io/m/addons/l/863985">here</a>' +
205+
'<span>See <a href="http://help.osf.io/m/addons/l/863985">more ' +
206+
'information on locations</a>' +
207207
'</span>' +
208208
'</div>' +
209209
'</div>',

admin/templates/preprint_providers/enter_custom_taxonomy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2>Custom Taxonomy</h2>
4848
<p>To remove an entry, delete it from the text box in the Built Custom Taxonomy section. If deleting the last item in a list, be sure to also remove the
4949
final comma.</p>
5050

51-
<p>Click <a role="button" data-toggle="modal" href="#exampleModal">here</a> to see an example of a full custom taxonomy and for more information about each field.</p>
51+
<p>See an <a role="button" data-toggle="modal" href="#exampleModal">example of a full custom taxonomy and more information about each field</a>.</p>
5252
</div>
5353
<form id="taxonomy-form" action="{% url 'preprint_providers:process_custom_taxonomy' preprint_provider_id %}" method="post">
5454
{% csrf_token %}

admin/templates/registration_providers/enter_custom_taxonomy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h2>Custom Taxonomy</h2>
1313
<p>To remove an entry, delete it from the text box in the Built Custom Taxonomy section. If deleting the last item in a list, be sure to also remove the
1414
final comma.</p>
1515

16-
<p>Click <a role="button" data-toggle="modal" href="#exampleModal">here</a> to see an example of a full custom taxonomy and for more information about each field.</p>
16+
<p>See an <a role="button" data-toggle="modal" href="#exampleModal">example of a full custom taxonomy and more information about each field</a>.</p>
1717
</div>
1818
<form id="taxonomy-form" action="{% url 'registration_providers:process_custom_taxonomy' %}" method="post">
1919
{% csrf_token %}

api/addons/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_addon_settings(self, provider=None, fail_if_absent=True, check_object_pe
5959
return addon_settings
6060

6161
class AddonList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin):
62-
"""The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/addons_list).
62+
"""See [documentation for this endpoint](https://developer.osf.io/#operation/addons_list).
6363
"""
6464
permission_classes = (
6565
drf_permissions.AllowAny,

api/brands/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_brand(self):
3434

3535

3636
class BrandList(JSONAPIBaseView, generics.ListAPIView, BrandMixin):
37-
"""The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/institutions_list).
37+
"""See [documentation for this endpoint](https://developer.osf.io/#operation/institutions_list).
3838
"""
3939
permission_classes = (
4040
drf_permissions.IsAuthenticatedOrReadOnly,
@@ -57,7 +57,7 @@ def get_queryset(self):
5757

5858

5959
class BrandDetail(JSONAPIBaseView, generics.RetrieveAPIView, BrandMixin):
60-
"""The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/subjects_read).
60+
"""See [documentation for this endpoint](https://developer.osf.io/#operation/subjects_read).
6161
"""
6262
permission_classes = (
6363
drf_permissions.IsAuthenticatedOrReadOnly,

api/citations/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
class CitationStyleList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin):
14-
"""The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/citations_styles_list).
14+
"""See [documentation for this endpoint](https://developer.osf.io/#operation/citations_styles_list).
1515
"""
1616
permission_classes = (
1717
drf_permissions.IsAuthenticatedOrReadOnly,
@@ -35,7 +35,7 @@ def get_queryset(self):
3535
return self.get_queryset_from_request()
3636

3737
class CitationStyleDetail(JSONAPIBaseView, generics.RetrieveAPIView):
38-
"""The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/citations_styles_read).
38+
"""See [documentation for this endpoint](https://developer.osf.io/#operation/citations_styles_read).
3939
"""
4040
permission_classes = (
4141
drf_permissions.IsAuthenticatedOrReadOnly,

0 commit comments

Comments
 (0)