diff --git a/addons/bitbucket/models.py b/addons/bitbucket/models.py index 50ebc39a2de..7945c2ab367 100644 --- a/addons/bitbucket/models.py +++ b/addons/bitbucket/models.py @@ -340,8 +340,8 @@ def before_page_load(self, node, user): ) else: message += ( - ' The files in this Bitbucket repo can be viewed on Bitbucket ' - 'here.' + ' View the files in this repo on Bitbucket ' + '.' ).format( user=self.user, repo=self.repo, @@ -369,8 +369,8 @@ def before_remove_contributor_message(self, node, removed): """ try: message = (super().before_remove_contributor_message(node, removed) + - 'You can download the contents of this repository before removing ' - 'this contributor here.'.format( + 'You can download the contents of this repository before removing ' + 'this contributor.'.format( url=node.api_url + 'bitbucket/tarball/' )) except TypeError: diff --git a/addons/github/models.py b/addons/github/models.py index 89f90cbdf50..772a746e16a 100644 --- a/addons/github/models.py +++ b/addons/github/models.py @@ -336,8 +336,8 @@ def before_page_load(self, node, user): ) else: message += ( - ' The files in this GitHub repo can be viewed on GitHub ' - 'here.' + ' View the files in this repo on GitHub ' + '.' ).format( user=self.user, repo=self.repo, @@ -355,8 +355,8 @@ def before_remove_contributor_message(self, node, removed): """ try: message = (super().before_remove_contributor_message(node, removed) + - 'You can download the contents of this repository before removing ' - 'this contributor here.'.format( + 'You can download the contents of this repository before removing ' + 'this contributor.'.format( url=node.api_url + 'github/tarball/' )) except TypeError: diff --git a/addons/gitlab/api.py b/addons/gitlab/api.py index 04ccb2c1b3a..0501af05c13 100644 --- a/addons/gitlab/api.py +++ b/addons/gitlab/api.py @@ -58,8 +58,8 @@ def repos(self, all=False): return self.gitlab.projects.list(membership=True, all=all) except gitlab.GitlabAuthenticationError: raise HTTPError(http_status.HTTP_403_FORBIDDEN, data={ - 'message_long': 'Your Gitlab token is deleted or invalid you may disconnect your Gitlab account and ' - 'reconnect with a valid token here.' + 'message_long': 'Your GitLab token is deleted or invalid you may disconnect ' + 'your GitLab account and reconnect with a valid token.' }) def branches(self, repo_id, branch=None): diff --git a/addons/gitlab/models.py b/addons/gitlab/models.py index 42b5d7991e0..8a69c3bc237 100644 --- a/addons/gitlab/models.py +++ b/addons/gitlab/models.py @@ -302,8 +302,8 @@ def before_page_load(self, node, user): ) else: message += ( - ' The files in this GitLab repo can be viewed on GitLab ' - 'here.' + ' View the files in this repo on GitLab ' + '.' ).format(url=repo.http_url_to_repo) messages.append(message) return messages @@ -318,8 +318,8 @@ def before_remove_contributor_message(self, node, removed): """ try: message = (super().before_remove_contributor_message(node, removed) + - 'You can download the contents of this repository before removing ' - 'this contributor here.'.format( + 'You can download the contents of this repository before removing ' + 'this contributor.'.format( url=node.api_url + 'gitlab/tarball/' )) except TypeError: diff --git a/addons/s3/static/s3NodeConfig.js b/addons/s3/static/s3NodeConfig.js index 521e4749db9..74a8f488ced 100644 --- a/addons/s3/static/s3NodeConfig.js +++ b/addons/s3/static/s3NodeConfig.js @@ -202,8 +202,8 @@ var s3FolderPickerViewModel = oop.extend(OauthAddonFolderPicker, { '' + '' + '' + - 'For more information on locations, click ' + - 'here' + + 'See more ' + + 'information on locations' + '' + '' + '', diff --git a/admin/templates/preprint_providers/enter_custom_taxonomy.html b/admin/templates/preprint_providers/enter_custom_taxonomy.html index b303a58a8de..d42a7095d41 100644 --- a/admin/templates/preprint_providers/enter_custom_taxonomy.html +++ b/admin/templates/preprint_providers/enter_custom_taxonomy.html @@ -48,7 +48,7 @@

Custom Taxonomy

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 final comma.

-

Click here to see an example of a full custom taxonomy and for more information about each field.

+

See an example of a full custom taxonomy and more information about each field.

{% csrf_token %} diff --git a/admin/templates/registration_providers/enter_custom_taxonomy.html b/admin/templates/registration_providers/enter_custom_taxonomy.html index 94683133a05..c2d5c222ee0 100644 --- a/admin/templates/registration_providers/enter_custom_taxonomy.html +++ b/admin/templates/registration_providers/enter_custom_taxonomy.html @@ -13,7 +13,7 @@

Custom Taxonomy

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 final comma.

-

Click here to see an example of a full custom taxonomy and for more information about each field.

+

See an example of a full custom taxonomy and more information about each field.

{% csrf_token %} diff --git a/api/addons/views.py b/api/addons/views.py index c0844401653..4aa14d1b580 100644 --- a/api/addons/views.py +++ b/api/addons/views.py @@ -59,7 +59,7 @@ def get_addon_settings(self, provider=None, fail_if_absent=True, check_object_pe return addon_settings class AddonList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/addons_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/addons_list). """ permission_classes = ( drf_permissions.AllowAny, diff --git a/api/brands/views.py b/api/brands/views.py index 70b336560fc..3b376b2925f 100644 --- a/api/brands/views.py +++ b/api/brands/views.py @@ -34,7 +34,7 @@ def get_brand(self): class BrandList(JSONAPIBaseView, generics.ListAPIView, BrandMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/institutions_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/institutions_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -57,7 +57,7 @@ def get_queryset(self): class BrandDetail(JSONAPIBaseView, generics.RetrieveAPIView, BrandMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/subjects_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/subjects_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, diff --git a/api/citations/views.py b/api/citations/views.py index 92cb1c7162f..92b69463bb5 100644 --- a/api/citations/views.py +++ b/api/citations/views.py @@ -11,7 +11,7 @@ class CitationStyleList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/citations_styles_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/citations_styles_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -35,7 +35,7 @@ def get_queryset(self): return self.get_queryset_from_request() class CitationStyleDetail(JSONAPIBaseView, generics.RetrieveAPIView): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/citations_styles_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/citations_styles_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, diff --git a/api/collections/views.py b/api/collections/views.py index 3680b0cb04a..9dbf2454c8b 100644 --- a/api/collections/views.py +++ b/api/collections/views.py @@ -471,7 +471,7 @@ def perform_update(self, serializer): class CollectionSubmissionSubjectsList(BaseResourceSubjectsList, CollectionMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/collected_meta_subjects). + """See [documentation for this endpoint](https://developer.osf.io/#operation/collected_meta_subjects). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -489,7 +489,7 @@ def get_resource(self): class CollectionSubmissionSubjectsRelationshipList(SubjectRelationshipBaseView, CollectionMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/collected_meta_subjects_relationship). + """See [documentation for this endpoint](https://developer.osf.io/#operation/collected_meta_subjects_relationship). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, diff --git a/api/comments/views.py b/api/comments/views.py index 76cf84c0ad7..f09eb5d3d41 100644 --- a/api/comments/views.py +++ b/api/comments/views.py @@ -48,7 +48,7 @@ def get_comment(self, check_permissions=True): class CommentDetail(JSONAPIBaseView, generics.RetrieveUpdateDestroyAPIView, CommentMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/comments_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/comments_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, diff --git a/api/files/views.py b/api/files/views.py index 197c1dd3cdb..c19aec53d2c 100644 --- a/api/files/views.py +++ b/api/files/views.py @@ -63,7 +63,7 @@ def get_file(self, check_permissions=True): class FileDetail(JSONAPIBaseView, generics.RetrieveUpdateAPIView, FileMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/files_detail). + """See [documentation for this endpoint](https://developer.osf.io/#operation/files_detail). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -108,7 +108,7 @@ def get_object(self): class FileVersionsList(JSONAPIBaseView, generics.ListAPIView, FileMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/files_versions). + """See [documentation for this endpoint](https://developer.osf.io/#operation/files_versions). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -140,7 +140,7 @@ def node_from_version(request, view, obj): class FileVersionDetail(JSONAPIBaseView, generics.RetrieveAPIView, FileMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/files_version_detail). + """See [documentation for this endpoint](https://developer.osf.io/#operation/files_version_detail). """ version_lookup_url_kwarg = 'version_id' permission_classes = ( diff --git a/api/institutions/views.py b/api/institutions/views.py index 9424a69fa10..4bfea107c85 100644 --- a/api/institutions/views.py +++ b/api/institutions/views.py @@ -77,7 +77,7 @@ def get_institution(self): class InstitutionList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/institutions_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/institutions_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -104,7 +104,7 @@ def get_queryset(self): class InstitutionDetail(JSONAPIBaseView, generics.RetrieveAPIView, InstitutionMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/institutions_detail). + """See [documentation for this endpoint](https://developer.osf.io/#operation/institutions_detail). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -125,7 +125,7 @@ def get_object(self): class InstitutionNodeList(JSONAPIBaseView, generics.ListAPIView, InstitutionMixin, NodesFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/institutions_node_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/institutions_node_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -160,7 +160,7 @@ def get_queryset(self): class InstitutionUserList(JSONAPIBaseView, ListFilterMixin, generics.ListAPIView, InstitutionMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/institutions_users_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/institutions_users_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -215,7 +215,7 @@ def post(self, request, *args, **kwargs): class InstitutionRegistrationList(InstitutionNodeList): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/institutions_registration_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/institutions_registration_list). """ serializer_class = RegistrationSerializer view_name = 'institution-registrations' diff --git a/api/licenses/views.py b/api/licenses/views.py index 324740cb848..86d559f5915 100644 --- a/api/licenses/views.py +++ b/api/licenses/views.py @@ -12,7 +12,7 @@ class LicenseDetail(JSONAPIBaseView, generics.RetrieveAPIView): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/licenses_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/licenses_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -40,7 +40,7 @@ def get_object(self): class LicenseList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/license_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/license_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, diff --git a/api/logs/views.py b/api/logs/views.py index 03fa3721069..b3b2ddd4285 100644 --- a/api/logs/views.py +++ b/api/logs/views.py @@ -30,7 +30,7 @@ def get_log(self): class NodeLogDetail(JSONAPIBaseView, generics.RetrieveAPIView, LogMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/logs_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/logs_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, diff --git a/api/metaschemas/views.py b/api/metaschemas/views.py index 3450d292945..23b99c39555 100644 --- a/api/metaschemas/views.py +++ b/api/metaschemas/views.py @@ -18,7 +18,7 @@ class DeprecatedRegistrationMetaSchemaDetail(DeprecatedView, views.RegistrationS class DeprecatedMetaSchemasList(DeprecatedView, views.RegistrationSchemaList): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/metaschemas_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/metaschemas_list). """ max_version = '2.7' view_category = 'metaschemas' @@ -27,7 +27,7 @@ class DeprecatedMetaSchemasList(DeprecatedView, views.RegistrationSchemaList): class DeprecatedMetaSchemaDetail(DeprecatedView, views.RegistrationSchemaDetail): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/metaschemas_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/metaschemas_read). """ max_version = '2.7' view_category = 'metaschemas' diff --git a/api/nodes/views.py b/api/nodes/views.py index 8e5352f6f30..fa5f23a0308 100644 --- a/api/nodes/views.py +++ b/api/nodes/views.py @@ -239,7 +239,7 @@ def get_draft(self, draft_id=None, check_object_permissions=True): class NodeList(JSONAPIBaseView, bulk_views.BulkUpdateJSONAPIView, bulk_views.BulkDestroyJSONAPIView, bulk_views.ListBulkCreateJSONAPIView, NodesFilterMixin, WaterButlerMixin, NodeOptimizationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -361,7 +361,7 @@ def perform_destroy(self, instance): class NodeDetail(JSONAPIBaseView, generics.RetrieveUpdateDestroyAPIView, NodeMixin, WaterButlerMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -410,7 +410,7 @@ def get_renderer_context(self): class NodeContributorsList(BaseContributorList, bulk_views.BulkUpdateJSONAPIView, bulk_views.BulkDestroyJSONAPIView, bulk_views.ListBulkCreateJSONAPIView, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_contributors_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_contributors_list). """ permission_classes = ( AdminOrPublic, @@ -501,7 +501,7 @@ def get_serializer_context(self): class NodeContributorDetail(BaseContributorDetail, generics.RetrieveUpdateDestroyAPIView, NodeMixin, UserMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_contributors_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_contributors_read). """ permission_classes = ( ContributorDetailPermissions, @@ -619,7 +619,7 @@ def get_default_queryset(self): class NodeDraftRegistrationsList(JSONAPIBaseView, generics.ListCreateAPIView, NodeMixin): """ - The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_draft_registrations_list). + See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_draft_registrations_list). This endpoint supports the older registries submission workflow and will soon be deprecated. Use DraftRegistrationsList endpoint instead. """ @@ -656,7 +656,7 @@ def get_queryset(self): class NodeDraftRegistrationDetail(JSONAPIBaseView, generics.RetrieveUpdateDestroyAPIView, DraftMixin): """ - The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_draft_registrations_read). + See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_draft_registrations_read). This endpoint supports the older registries submission workflow and will soon be deprecated. Use DraftRegistrationDetail endpoint instead. """ @@ -688,7 +688,7 @@ def perform_destroy(self, draft): class NodeRegistrationsList(JSONAPIBaseView, generics.ListCreateAPIView, NodeMixin, DraftMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_registrations_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_registrations_list). """ permission_classes = ( AdminContributorOrPublic, @@ -737,7 +737,7 @@ def perform_create(self, serializer): class NodeChildrenList(BaseChildrenList, bulk_views.ListBulkCreateJSONAPIView, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_children_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_children_list). """ required_read_scopes = [CoreScopes.NODE_CHILDREN_READ] @@ -770,7 +770,7 @@ def perform_create(self, serializer): class NodeCitationDetail(JSONAPIBaseView, generics.RetrieveAPIView, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_citation_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_citation_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -792,7 +792,7 @@ def get_object(self): return node.csl class NodeCitationStyleDetail(JSONAPIBaseView, generics.RetrieveAPIView, NodeMixin): - """ The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_citation_read). + """ See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_citation_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -1005,7 +1005,7 @@ def perform_destroy(self, instance): class NodeForksList(JSONAPIBaseView, generics.ListCreateAPIView, NodeMixin, NodesFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_forks_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_forks_list). """ permission_classes = ( IsPublic, @@ -1108,7 +1108,7 @@ def get_queryset(self): class NodeFilesList(JSONAPIBaseView, generics.ListAPIView, WaterButlerMixin, ListFilterMixin, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_files_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_files_list). """ permission_classes = ( @@ -1209,7 +1209,7 @@ def get_queryset(self): class NodeFileDetail(JSONAPIBaseView, generics.RetrieveAPIView, WaterButlerMixin, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_files_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_files_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -1248,7 +1248,7 @@ def get_object(self): class NodeAddonList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin, NodeMixin, AddonSettingsMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_addons_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_addons_list). """ @@ -1283,7 +1283,7 @@ def get_default_queryset(self): class NodeAddonDetail(JSONAPIBaseView, generics.RetrieveUpdateDestroyAPIView, generics.CreateAPIView, NodeMixin, AddonSettingsMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_addon_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_addon_read). """ permission_classes = ( @@ -1336,7 +1336,7 @@ def get_serializer_class(self): class NodeAddonFolderList(JSONAPIBaseView, generics.ListAPIView, NodeMixin, AddonSettingsMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_addons_folders_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_addons_folders_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -1426,7 +1426,7 @@ def root_folder(self): class NodeStorageProvidersList(JSONAPIBaseView, generics.ListAPIView, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_providers_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_providers_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -1461,7 +1461,7 @@ def get_queryset(self): class NodeStorageProviderDetail(JSONAPIBaseView, generics.RetrieveAPIView, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_providers_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_providers_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -1483,7 +1483,7 @@ def get_object(self): class NodeLogList(JSONAPIBaseView, generics.ListAPIView, NodeMixin, ListFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_logs_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_logs_list). """ serializer_class = NodeLogSerializer @@ -1517,7 +1517,7 @@ def get_queryset(self): class NodeCommentsList(JSONAPIBaseView, generics.ListCreateAPIView, ListFilterMixin, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_comments_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_comments_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -1593,7 +1593,7 @@ def get_queryset(self): class NodeInstitutionsList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_institutions_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_institutions_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -1753,7 +1753,7 @@ def retrieve(self, request, *args, **kwargs): class NodeSubjectsList(BaseResourceSubjectsList, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_subjects_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_subjects_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -1772,7 +1772,7 @@ def get_resource(self): class NodeSubjectsRelationship(SubjectRelationshipBaseView, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/node_subjects_relationship). + """See [documentation for this endpoint](https://developer.osf.io/#operation/node_subjects_relationship). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -1794,7 +1794,7 @@ def get_resource(self, check_object_permissions=True): class NodeWikiList(JSONAPIBaseView, generics.ListCreateAPIView, NodeMixin, ListFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_wikis_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_wikis_list). """ permission_classes = ( @@ -1895,7 +1895,7 @@ class NodeLinkedNodesRelationship(LinkedNodesRelationship, NodeMixin): class LinkedNodesList(BaseLinkedList, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_linked_nodes_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_linked_nodes_list). """ serializer_class = NodeSerializer view_category = 'nodes' @@ -2065,7 +2065,7 @@ def get_parser_context(self, http_request): class NodeViewOnlyLinksList(JSONAPIBaseView, generics.ListCreateAPIView, ListFilterMixin, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_view_only_links_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_view_only_links_list). """ permission_classes = ( IsAdmin, @@ -2091,7 +2091,7 @@ def get_queryset(self): class NodeViewOnlyLinkDetail(JSONAPIBaseView, generics.RetrieveUpdateDestroyAPIView, NodeMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_view_only_links_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_view_only_links_read). """ permission_classes = ( @@ -2128,7 +2128,7 @@ def perform_destroy(self, link): # enqueue_postcommit_task(ban_url, (self.get_node(),), {}, celery=False, once_per_request=True) class NodeIdentifierList(NodeMixin, IdentifierList): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_identifiers_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_identifiers_list). """ serializer_class = NodeIdentifierSerializer @@ -2159,7 +2159,7 @@ def get_node(self, check_object_permissions=True): class NodePreprintsList(JSONAPIBaseView, generics.ListAPIView, NodeMixin, PreprintFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/nodes_preprints_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/nodes_preprints_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, diff --git a/api/preprints/views.py b/api/preprints/views.py index 147ca2faaab..fb07b9cd671 100644 --- a/api/preprints/views.py +++ b/api/preprints/views.py @@ -163,7 +163,7 @@ def get_preprint(self, check_object_permissions=True, ignore_404=False): return preprint class PreprintList(PreprintMetricsViewMixin, JSONAPIBaseView, generics.ListCreateAPIView, PreprintFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprints_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprints_list). """ # These permissions are not checked for the list of preprints, permissions handled by the query permission_classes = ( @@ -290,7 +290,7 @@ def create(self, request, *args, **kwargs): class PreprintDetail(PreprintOldVersionsImmutableMixin, PreprintMetricsViewMixin, JSONAPIBaseView, generics.RetrieveUpdateDestroyAPIView, PreprintMixin, WaterButlerMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprints_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprints_read). Note: The resource now exposes a `versions` relationship pointing to `/v2/preprints/{preprint_id}/versions/` for listing or creating versions. @@ -374,7 +374,7 @@ def get_object(self): class PreprintCitationDetail(PreprintOldVersionsImmutableMixin, JSONAPIBaseView, generics.RetrieveAPIView, PreprintMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprints_citation_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprints_citation_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -399,7 +399,7 @@ def get_object(self): class PreprintCitationStyleDetail(JSONAPIBaseView, generics.RetrieveAPIView, PreprintMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprints_citation_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprints_citation_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -600,7 +600,7 @@ def post(self, request, *args, **kwargs): class PreprintSubjectsList(BaseResourceSubjectsList, PreprintMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprint_subjects_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprint_subjects_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -620,7 +620,7 @@ def get_resource(self): class PreprintSubjectsRelationship(PreprintOldVersionsImmutableMixin, SubjectRelationshipBaseView, PreprintMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprint_subjects_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprint_subjects_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -814,7 +814,7 @@ def get_queryset(self): class PreprintInstitutionsList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin, PreprintMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprint_institutions_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprint_institutions_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, diff --git a/api/providers/views.py b/api/providers/views.py index 940d29f8a2f..cd2bb480864 100644 --- a/api/providers/views.py +++ b/api/providers/views.py @@ -148,7 +148,7 @@ class RegistrationProviderList(GenericProviderList): class PreprintProviderList(PreprintMetricsViewMixin, GenericProviderList): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprint_provider_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprint_provider_list). """ model_class = PreprintProvider @@ -226,7 +226,7 @@ class RegistrationProviderDetail(GenericProviderDetail): class PreprintProviderDetail(GenericProviderDetail, generics.UpdateAPIView): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprint_provider_detail). + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprint_provider_detail). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -322,7 +322,7 @@ class RegistrationProviderSubjects(BaseProviderSubjects): class PreprintProviderSubjects(BaseProviderSubjects): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprint_provider_subjects_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprint_provider_subjects_list). """ view_category = 'preprint-providers' provider_class = PreprintProvider # Not actually the model being serialized, privatize to avoid issues @@ -400,7 +400,7 @@ class PreprintProviderHighlightedSubjectList(GenericProviderHighlightedSubjectLi class GenericProviderLicenseList(LicenseList): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprint_provider_licenses_list) + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprint_provider_licenses_list) """ ordering = () # TODO: should be ordered once the frontend for selecting default licenses no longer relies on order @@ -447,7 +447,7 @@ class PreprintProviderLicenseList(GenericProviderLicenseList): class PreprintProviderPreprintList(JSONAPIBaseView, generics.ListAPIView, PreprintFilterMixin, ProviderMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/preprint_providers_preprints_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/preprint_providers_preprints_list). """ provider_class = PreprintProvider permission_classes = ( diff --git a/api/registrations/views.py b/api/registrations/views.py index b2026d5f4b8..c6db1242231 100644 --- a/api/registrations/views.py +++ b/api/registrations/views.py @@ -130,7 +130,7 @@ def get_node(self, check_object_permissions=True, **annotations): class RegistrationList(JSONAPIBaseView, generics.ListCreateAPIView, bulk_views.BulkUpdateJSONAPIView, NodesFilterMixin, DraftMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -236,7 +236,7 @@ def check_branched_from(self, draft): class RegistrationDetail(JSONAPIBaseView, generics.RetrieveUpdateAPIView, RegistrationMixin, WaterButlerMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -276,7 +276,7 @@ def get_serializer_context(self): class RegistrationContributorsList(BaseContributorList, mixins.CreateModelMixin, RegistrationMixin, UserMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_contributors_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_contributors_list). """ view_category = 'registrations' view_name = 'registration-contributors' @@ -319,7 +319,7 @@ def get_serializer_context(self): class RegistrationContributorDetail(BaseContributorDetail, mixins.UpdateModelMixin, mixins.DestroyModelMixin, RegistrationMixin, UserMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_contributors_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_contributors_read). """ view_category = 'registrations' view_name = 'registration-contributor-detail' @@ -396,7 +396,7 @@ def get_queryset(self): class RegistrationChildrenList(BaseChildrenList, generics.ListAPIView, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_children_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_children_list). """ view_category = 'registrations' view_name = 'registration-children' @@ -423,7 +423,7 @@ def get_queryset(self): class RegistrationCitationDetail(NodeCitationDetail, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_citations_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_citations_list). """ required_read_scopes = [CoreScopes.NODE_REGISTRATIONS_READ] @@ -432,7 +432,7 @@ class RegistrationCitationDetail(NodeCitationDetail, RegistrationMixin): class RegistrationCitationStyleDetail(NodeCitationStyleDetail, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_citation_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_citation_read). """ required_read_scopes = [CoreScopes.NODE_REGISTRATIONS_READ] @@ -441,13 +441,13 @@ class RegistrationCitationStyleDetail(NodeCitationStyleDetail, RegistrationMixin class RegistrationForksList(NodeForksList, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_forks_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_forks_list). """ view_category = 'registrations' view_name = 'registration-forks' class RegistrationCommentsList(NodeCommentsList, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_comments_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_comments_list). """ serializer_class = RegistrationCommentSerializer view_category = 'registrations' @@ -461,14 +461,14 @@ def get_serializer_class(self): class RegistrationLogList(NodeLogList, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_logs_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_logs_list). """ view_category = 'registrations' view_name = 'registration-logs' class RegistrationStorageProvidersList(NodeStorageProvidersList, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_providers_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_providers_list). """ serializer_class = RegistrationStorageProviderSerializer @@ -629,7 +629,7 @@ class RegistrationRegistrationsList(NodeRegistrationsList, RegistrationMixin): class RegistrationFilesList(NodeFilesList, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_files_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_files_list). """ view_category = 'registrations' view_name = 'registration-files' @@ -639,7 +639,7 @@ class RegistrationFilesList(NodeFilesList, RegistrationMixin): class RegistrationFileDetail(NodeFileDetail, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_files_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_files_read). """ view_category = 'registrations' view_name = 'registration-file-detail' @@ -647,14 +647,14 @@ class RegistrationFileDetail(NodeFileDetail, RegistrationMixin): class RegistrationInstitutionsList(NodeInstitutionsList, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_institutions_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_institutions_list). """ view_category = 'registrations' view_name = 'registration-institutions' class RegistrationSubjectsList(NodeSubjectsList, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_subjects_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_subjects_list). """ view_category = 'registrations' view_name = 'registration-subjects' @@ -663,7 +663,7 @@ class RegistrationSubjectsList(NodeSubjectsList, RegistrationMixin): class RegistrationSubjectsRelationship(NodeSubjectsRelationship, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_subjects_relationship). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_subjects_relationship). """ required_read_scopes = [CoreScopes.NODE_REGISTRATIONS_READ] @@ -674,7 +674,7 @@ class RegistrationSubjectsRelationship(NodeSubjectsRelationship, RegistrationMix class RegistrationInstitutionsRelationship(NodeInstitutionsRelationship, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_institutions_relationship). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_institutions_relationship). """ view_category = 'registrations' view_name = 'registration-relationships-institutions' @@ -687,7 +687,7 @@ class RegistrationInstitutionsRelationship(NodeInstitutionsRelationship, Registr class RegistrationWikiList(NodeWikiList, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_wikis_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_wikis_list). """ view_category = 'registrations' view_name = 'registration-wikis' @@ -696,7 +696,7 @@ class RegistrationWikiList(NodeWikiList, RegistrationMixin): class RegistrationLinkedNodesList(LinkedNodesList, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_linked_nodes_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_linked_nodes_list). """ view_category = 'registrations' view_name = 'linked-nodes' @@ -850,7 +850,7 @@ class RegistrationLinkedRegistrationsList(NodeLinkedRegistrationsList, Registrat class RegistrationViewOnlyLinksList(NodeViewOnlyLinksList, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_view_only_links_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_view_only_links_list). """ required_read_scopes = [CoreScopes.REGISTRATION_VIEW_ONLY_LINKS_READ] required_write_scopes = [CoreScopes.REGISTRATION_VIEW_ONLY_LINKS_WRITE] @@ -860,7 +860,7 @@ class RegistrationViewOnlyLinksList(NodeViewOnlyLinksList, RegistrationMixin): class RegistrationViewOnlyLinkDetail(NodeViewOnlyLinkDetail, RegistrationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_view_only_links_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_view_only_links_read). """ required_read_scopes = [CoreScopes.REGISTRATION_VIEW_ONLY_LINKS_READ] required_write_scopes = [CoreScopes.REGISTRATION_VIEW_ONLY_LINKS_WRITE] @@ -870,7 +870,7 @@ class RegistrationViewOnlyLinkDetail(NodeViewOnlyLinkDetail, RegistrationMixin): class RegistrationIdentifierList(RegistrationMixin, NodeIdentifierList): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/registrations_identifiers_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/registrations_identifiers_list). """ serializer_class = RegistrationIdentifierSerializer diff --git a/api/schemas/views.py b/api/schemas/views.py index 0f44646f7f5..4575ce7d034 100644 --- a/api/schemas/views.py +++ b/api/schemas/views.py @@ -16,7 +16,7 @@ class RegistrationSchemaList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/metaschemas_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/metaschemas_list). """ permission_classes = ( @@ -42,7 +42,7 @@ def get_queryset(self): class RegistrationSchemaDetail(JSONAPIBaseView, generics.RetrieveAPIView): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/metaschemas_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/metaschemas_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, diff --git a/api/search/views.py b/api/search/views.py index 958c5907f3b..c8df1309f19 100644 --- a/api/search/views.py +++ b/api/search/views.py @@ -260,7 +260,7 @@ class SearchFiles(BaseSearchView): For an OSF File entity, the `type` is "files" regardless of whether the entity is actually a file or folder, because it belongs to the `files` collection of the API. They can be distinguished by the `kind` attribute. Files and folders use the same representation, but some attributes may be null for one kind but not the other. `size` will be - null for folders. A list of storage provider keys can be found [here](/v2/#storage-providers). + null for folders. See the [list of storage provider keys](/v2/#storage-providers). name type description ================================================================================================================ diff --git a/api/subjects/views.py b/api/subjects/views.py index 28ea766a573..3bd41fcf2f5 100644 --- a/api/subjects/views.py +++ b/api/subjects/views.py @@ -132,7 +132,7 @@ def postprocess_query_param(self, key, field_name, operation): class SubjectDetail(JSONAPIBaseView, generics.RetrieveAPIView, SubjectMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/subjects_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/subjects_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -151,7 +151,7 @@ def get_object(self): class SubjectChildrenList(JSONAPIBaseView, generics.ListAPIView, SubjectMixin, ListFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/subject_children_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/subject_children_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, diff --git a/api/taxonomies/views.py b/api/taxonomies/views.py index 2e421a3432b..e8f6d74d76b 100644 --- a/api/taxonomies/views.py +++ b/api/taxonomies/views.py @@ -13,7 +13,7 @@ class TaxonomyList(DeprecatedView, JSONAPIBaseView, generics.ListAPIView, ListFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/taxonomies_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/taxonomies_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -54,7 +54,7 @@ def postprocess_query_param(self, key, field_name, operation): class TaxonomyDetail(JSONAPIBaseView, generics.RetrieveAPIView): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/taxonomies_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/taxonomies_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, diff --git a/api/users/views.py b/api/users/views.py index a35a5e9511f..74eef8d02b2 100644 --- a/api/users/views.py +++ b/api/users/views.py @@ -165,7 +165,7 @@ def get_user(self, check_permissions=True): class UserList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/users_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/users_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -192,7 +192,7 @@ def get_queryset(self): class UserDetail(JSONAPIBaseView, generics.RetrieveUpdateAPIView, UserMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/users_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/users_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -228,7 +228,7 @@ def get_serializer_context(self): class UserAddonList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin, UserMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/users_addons_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/users_addons_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -252,7 +252,7 @@ def get_queryset(self): class UserAddonDetail(JSONAPIBaseView, generics.RetrieveAPIView, UserMixin, AddonSettingsMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/users_addons_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/users_addons_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -272,7 +272,7 @@ def get_object(self): class UserAddonAccountList(JSONAPIBaseView, generics.ListAPIView, UserMixin, AddonSettingsMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/Users_addon_accounts_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/Users_addon_accounts_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -293,7 +293,7 @@ def get_queryset(self): return self.get_addon_settings(check_object_permissions=False).external_accounts class UserAddonAccountDetail(JSONAPIBaseView, generics.RetrieveAPIView, UserMixin, AddonSettingsMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/Users_addon_accounts_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/Users_addon_accounts_read). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -319,7 +319,7 @@ def get_object(self): class UserNodes(JSONAPIBaseView, generics.ListAPIView, UserMixin, UserNodesFilterMixin, NodeOptimizationMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/users_nodes_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/users_nodes_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -358,7 +358,7 @@ def get_queryset(self): class UserPreprints(JSONAPIBaseView, generics.ListAPIView, UserMixin, PreprintFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/users_preprints_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/users_preprints_list). """ permission_classes = ( @@ -393,7 +393,7 @@ def get_queryset(self): class UserDraftPreprints(JSONAPIBaseView, generics.ListAPIView, UserMixin, PreprintFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/). + """See [documentation for this endpoint](https://developer.osf.io/). """ permission_classes = ( @@ -423,7 +423,7 @@ def get_queryset(self): class UserInstitutions(JSONAPIBaseView, generics.ListAPIView, UserMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/users_institutions_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/users_institutions_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -448,7 +448,7 @@ def get_queryset(self): class UserRegistrations(JSONAPIBaseView, generics.ListAPIView, UserMixin, NodesFilterMixin): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/users_registrations_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/users_registrations_list). """ permission_classes = ( drf_permissions.IsAuthenticatedOrReadOnly, @@ -554,7 +554,7 @@ def perform_destroy(self, instance): class UserIdentitiesList(JSONAPIBaseView, generics.ListAPIView, UserMixin): """ - The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/external_identities_list). + See [documentation for this endpoint](https://developer.osf.io/#operation/external_identities_list). """ permission_classes = ( base_permissions.TokenHasScope, @@ -582,7 +582,7 @@ def get_queryset(self): class UserIdentitiesDetail(JSONAPIBaseView, generics.RetrieveDestroyAPIView, UserMixin): """ - The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/external_identities_detail). + See [documentation for this endpoint](https://developer.osf.io/#operation/external_identities_detail). """ permission_classes = ( base_permissions.TokenHasScope, diff --git a/api/view_only_links/views.py b/api/view_only_links/views.py index a7c369bd349..0045c435fc5 100644 --- a/api/view_only_links/views.py +++ b/api/view_only_links/views.py @@ -18,7 +18,7 @@ from osf.utils.permissions import ADMIN class ViewOnlyLinkDetail(JSONAPIBaseView, generics.RetrieveAPIView): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/view_only_links_read). + """See [documentation for this endpoint](https://developer.osf.io/#operation/view_only_links_read). """ permission_classes = ( base_permissions.TokenHasScope, @@ -49,7 +49,7 @@ def get_object(self): class ViewOnlyLinkNodes(JSONAPIBaseView, generics.ListAPIView): - """The documentation for this endpoint can be found [here](https://developer.osf.io/#operation/view_only_links_node_list). + """See [documentation for this endpoint](https://developer.osf.io/#operation/view_only_links_node_list). """ permission_classes = ( base_permissions.TokenHasScope, diff --git a/website/language.py b/website/language.py index 80936924e6a..c49bf6c9b6f 100644 --- a/website/language.py +++ b/website/language.py @@ -71,7 +71,7 @@ # Shown if user tries to login with an email that is not yet confirmed UNCONFIRMED = ('This login email has been registered but not confirmed. Please check your email (and spam folder).' - ' Click here to resend your confirmation email.') + ' You can resend your confirmation email.') # Shown if the user's account is disabled DISABLED = """ diff --git a/website/project/metadata/prereg-prize.json b/website/project/metadata/prereg-prize.json index 780b485a9f0..84710e6fff0 100644 --- a/website/project/metadata/prereg-prize.json +++ b/website/project/metadata/prereg-prize.json @@ -12,7 +12,7 @@ "requiresConsent": true, "messages": { "beforeSkipReview": "You are about to register your project without having its content reviewed. This preregistration will NOT BE ELIGIBLE for the Preregistration Challenge. You may click “Continue” to register your project or “Cancel” to return to the form and then “Submit for review” to enter the Preregistration Challenge.", - "preConsentHeader": "

Preregistration Challenge


Notice

Articles must be published by an approved journal by December 31, 2018, to be eligible for a prize.

Below are some important items for those who choose to enter the Preregistration Challenge. If you do not agree to the terms you may still continue, use the form, and register your research study without entering the Challenge. Only Preregistrations that enter the challenge and undergo review are eligible for a $1,000 prize. We welcome questions and comments (learn more here or email us at prereg@cos.io).

", + "preConsentHeader": "

Preregistration Challenge


Notice

Articles must be published by an approved journal by December 31, 2018, to be eligible for a prize.

Below are some important items for those who choose to enter the Preregistration Challenge. If you do not agree to the terms you may still continue, use the form, and register your research study without entering the Challenge. Only Preregistrations that enter the challenge and undergo review are eligible for a $1,000 prize. We welcome questions and comments or email us at prereg@cos.io).

", "postConsentHeader": "

Preregistration Challenge


Notice of Consent

Articles must be published by an approved journal by December 31, 2018, to be eligible for a prize.

Please read and agree to the terms before submitting your research plan to the Preregistration Challenge.

", "consentBody": "
  1. After submitting your research plan for review, it is not yet registered. Your research plan will become a static, time stamped preregistration after it passes review. Please do not begin your study until it is registered. You will hear back from the review team within 2 business days.
  2. The published article must also be reviewed before receiving the prize.
  3. Prizes will be awarded at predetermined dates to eligible entrants. If more eligible entrants exist than available prizes, entrants will be ranked based on the date of registration.
  4. Articles must be published in an eligible journal.
  5. Residents of countries on the U.S. State Department's list of embargoed countries may not participate in the Preregistration Challenge.
  6. Entering the Preregistration Challenge requires that you agree to all of its terms.
" }, diff --git a/website/templates/erpc_landing_page.mako b/website/templates/erpc_landing_page.mako index 77074f783fc..07368fe72dd 100644 --- a/website/templates/erpc_landing_page.mako +++ b/website/templates/erpc_landing_page.mako @@ -19,7 +19,7 @@ Please note that many studies created as part of this competition will remain private for up to four years from the date of creation.


-

A blank version of the Election Research Preacceptance Competition form is available here.

+

A blank version of the Election Research Preacceptance Competition form is available.


If you'd like to preregister another study, please see the Preregistration Challenge information page or get started on your next preregistration diff --git a/website/templates/policies/generic_policy.mako b/website/templates/policies/generic_policy.mako index 6ae8581d350..78d90e56733 100644 --- a/website/templates/policies/generic_policy.mako +++ b/website/templates/policies/generic_policy.mako @@ -9,7 +9,7 @@


- Version history for this policy is available here + Version history for this policy is available.
diff --git a/website/templates/project/project_header.mako b/website/templates/project/project_header.mako index 8aa26140ee4..a50b273f7c6 100644 --- a/website/templates/project/project_header.mako +++ b/website/templates/project/project_header.mako @@ -195,7 +195,7 @@ % endif % if node['anonymous'] and user['is_contributor_or_group_member']: -
This ${node['node_type']} is being viewed through an anonymized, view-only link. If you want to view it as a contributor, click here.
+
This ${node['node_type']} is being viewed through an anonymized, view-only link. You can view it as a contributor.
% endif % if node['link'] and not node['is_public'] and not user['is_contributor_or_group_member']: diff --git a/website/templates/project/settings.mako b/website/templates/project/settings.mako index fd922fa15c6..5b394036c2b 100644 --- a/website/templates/project/settings.mako +++ b/website/templates/project/settings.mako @@ -385,7 +385,7 @@
Withdrawing children components of a registration is not allowed. Should you wish to - withdraw this component, please withdraw its parent registration here. + withdraw this component, please withdraw its parent registration.
% else: