diff --git a/.coveragerc b/.coveragerc index 7a86c7657fe..9a097eb5dcf 100644 --- a/.coveragerc +++ b/.coveragerc @@ -10,6 +10,7 @@ omit = rtd_tests/* */**/tests/** wsgi.py +plugins = django_coverage_plugin [report] exclude_lines = diff --git a/readthedocs/audit/templates/audit/list_logs.html b/readthedocs/audit/templates/audit/list_logs.html deleted file mode 100644 index 0a39872cf6a..00000000000 --- a/readthedocs/audit/templates/audit/list_logs.html +++ /dev/null @@ -1,129 +0,0 @@ -{% load i18n %} - -{% comment %} -If `omit_user` is given, the username attached to the log isn't shown. -This is useful when listing logs for the same user. -{% endcomment %} - -
-
- -
-
diff --git a/readthedocs/core/templates/core/ko_form_field.html b/readthedocs/core/templates/core/ko_form_field.html deleted file mode 100644 index 5402f69b9b1..00000000000 --- a/readthedocs/core/templates/core/ko_form_field.html +++ /dev/null @@ -1,22 +0,0 @@ -{% if field.is_hidden %} - {{ field }} -{% else %} - - {{ field.errors }} - {% if not skip_errorlist and 'data-bind' in field.field.widget.attrs %} - - {% endif %} -

- - {{ field }} - {% if field.help_text %} - {{ field.help_text }} - {% endif %} -

- -{% endif %} diff --git a/readthedocs/domains/templates/domains/notifications/pending_domain_configuration_email.html b/readthedocs/domains/templates/domains/notifications/pending_domain_configuration_email.html deleted file mode 100644 index 146b2e540ac..00000000000 --- a/readthedocs/domains/templates/domains/notifications/pending_domain_configuration_email.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "core/email/common.html" %} -{% block content %} -{% url "projects_domains_edit" domain.project.slug domain.pk as domain_url %} -

- The configuration of your custom domain {{ domain.domain }} is pending. - Make sure to follow the step from our documentation to complete the process. -

- -{% if not domain.validation_process_expired %} -

- If you don't complete the configuration, - we will stop trying to validate your domain in - {{ domain.validation_process_expiration_date|timeuntil }}. -

-{% else %} -

- The validation period for this domain has ended. - If you want to restart the process, - go to your domain and click on Save. -

-{% endif %} -{% endblock %} diff --git a/readthedocs/gold/templates/gold/projects.html b/readthedocs/gold/templates/gold/projects.html deleted file mode 100644 index ead12fbf384..00000000000 --- a/readthedocs/gold/templates/gold/projects.html +++ /dev/null @@ -1,76 +0,0 @@ -{% extends "profiles/base_profile_edit.html" %} -{% load static %} -{% load i18n %} - -{% block profile-admin-gold-edit %}active{% endblock %} - -{% block title %}{% trans "Gold Projects" %}{% endblock %} - - -{% block edit_content %} - -

{% trans "Gold Projects" %}

-

- {% blocktrans trimmed %} - Gold members may completely remove advertising for all visitors to their projects. - {% endblocktrans %} -

- - - -

{% trans 'Ad-free projects' %}

- -
-
-
-
    - {% for project in projects %} -
  • - - {{ project.name }} - -
      -
    • -
      - {% csrf_token %} - -
      -
    • -
    -
  • - {% empty %} -
  • -

    - {% trans 'No projects are currently ad-free.' %} -

    -
  • - {% endfor %} -
-
-
-
- -

{% trans "Make a project ad-free" %}

- {% if gold_user.num_supported_projects > projects|length %} -

- {% trans "Choose which project you would like to make ad-free." %} -

-
{% csrf_token %} - {{ form.as_p }} -

- -

-
- {% else %} -

- {% blocktrans trimmed with gold_level=gold_user.get_level_display gold_projects_count=gold_user.num_supported_projects %} - You can't make any more projects ad-free with your current Gold membership of {{ gold_level }}. - You can either increase the level of your membership or change which projects you make ad-free. - {% endblocktrans %} -

- {% endif %} - -{% endblock %} diff --git a/readthedocs/gold/templates/gold/subscription_detail.html b/readthedocs/gold/templates/gold/subscription_detail.html deleted file mode 100644 index 60b1fb0d145..00000000000 --- a/readthedocs/gold/templates/gold/subscription_detail.html +++ /dev/null @@ -1,115 +0,0 @@ -{% extends "profiles/base_profile_edit.html" %} -{% load static %} -{% load i18n %} - -{% block profile-admin-gold-edit %}active{% endblock %} - -{% block title %} -Read the Docs Gold -{% endblock %} - -{% block extra_scripts %} - - - -{% endblock %} - -{% block edit_content %} -
-

{% trans 'Read the Docs Gold Membership' %}

- -

- {% blocktrans trimmed %} - Supporting Read the Docs lets us work more on features that people love. - Your money will go directly to maintenance and development of the - product. - {% endblocktrans %} -

- -

- {% blocktrans trimmed %} - Gold members may completely remove advertising for all visitors to their projects. - {% endblocktrans %} -

- - - -

- {% blocktrans trimmed %} - If you are a company using Read the Docs, - please consider Read the Docs for Business. - This will help us cover our costs, - and provide you with a better experience on the site. - {% endblocktrans %} -

- -

- {% blocktrans trimmed %} - For any questions about our Gold membership program, - please email us. - {% endblocktrans %} -

- - {% if golduser %} -

- {% blocktrans trimmed %} - Your Gold membership - {% endblocktrans %} -

- -

- {% blocktrans trimmed %} - Thanks for supporting Read the Docs! It really means a lot to us. - {% endblocktrans %} -

- -

- - {{ golduser.get_level_display }} -

- -
- {% csrf_token %} - -
- -

{% trans "Gold projects" %}

-

{% trans 'Choose projects you would like to make ad-free.' %}

- -
- -
- {% else %} -

- {% blocktrans trimmed %} - Become a Gold member - {% endblocktrans %} -

- -
- {% csrf_token %} - {{ form }} - -
- {% endif %} -
-{% endblock %} diff --git a/readthedocs/invitations/templates/invitations/includes/invitation_list.html b/readthedocs/invitations/templates/invitations/includes/invitation_list.html deleted file mode 100644 index f185c0e7975..00000000000 --- a/readthedocs/invitations/templates/invitations/includes/invitation_list.html +++ /dev/null @@ -1,33 +0,0 @@ -{% load i18n %} -{% load gravatar %} - -{% for invitation in invitations %} -
  • - - {% if invitation.to_user %} - {% gravatar invitation.to_user.email 24 %} - - {{ invitation.to_user.get_full_name|default:invitation.to_user.username }} - - {% else %} - {% gravatar invitation.to_email 24 %} - {{ invitation.to_email }} - {% endif %} - - - {% if invitation.expired %} - {% trans "Invitation expired" %} - {% else %} - {% trans "Invitation pending" %} - {% endif %} - - -
  • -{% endfor %} diff --git a/readthedocs/invitations/templates/invitations/invitation_detail.html b/readthedocs/invitations/templates/invitations/invitation_detail.html deleted file mode 100644 index 9e827b86608..00000000000 --- a/readthedocs/invitations/templates/invitations/invitation_detail.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} - -{% block title %} - {% trans "Invitation request" %} -{% endblock %} - -{% block content %} -

    - {% url "profiles_profile_detail" invitation.from_user.username as profile_url %} - {% with from_name=invitation.from_user.get_full_name|default:invitation.from_user.username %} - {% blocktrans trimmed with requestor_name=requestor_name requestor_url=requestor_url target_name=target_name target_type=target_type%} - {{ requestor_name }} - has invited you to join the - {{ target_name }} {{ target_type }}. - {% endblocktrans %} - {% endwith %} -

    - -{% if invitation.expired %} -

    - {% trans "Your invitation has expired." %} - {% if invitation.object_type == "organization" or invitation.object_type == "team" %} - {% trans "Ask the admin of the organization to invite you again." %} - {% else %} - {% trans "Ask the admin of the project to invite you again." %} - {% endif %} -

    -{% else %} -

    - {% blocktrans trimmed with valid_until=invitation.expiration_date|timeuntil expiration_date=invitation.expiration_date|date %} - This invitation will expire in {{ valid_until }}. - {% endblocktrans %} -

    -{% endif %} - -
    - {% csrf_token %} - - -
    -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/admin/base.html b/readthedocs/organizations/templates/organizations/admin/base.html deleted file mode 100644 index c3111da7c52..00000000000 --- a/readthedocs/organizations/templates/organizations/admin/base.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "organizations/base.html" %} - -{% load i18n %} - -{% block organization-bar-admin %}active{% endblock %} - -{% block content %} -
    -
    - -
    -
    -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/admin/organization_edit.html b/readthedocs/organizations/templates/organizations/admin/organization_edit.html deleted file mode 100644 index c31cfcebfd3..00000000000 --- a/readthedocs/organizations/templates/organizations/admin/organization_edit.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends "organizations/admin/base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Edit Organization" %}{% endblock %} - -{% block organization-admin-details %}active{% endblock %} - -{% block edit_content_header %}{% trans "Details" %}{% endblock %} - -{% block edit_content %} -
    {% csrf_token %} - {{ form.as_p }} -

    - - {% comment %}Translators: The 'or' here is in between 'Save' and 'Delete organization'.{% endcomment %} - {% trans "or" %} - {% trans "Delete organization" %} -

    -
    -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/admin/owners_edit.html b/readthedocs/organizations/templates/organizations/admin/owners_edit.html deleted file mode 100644 index 1c8743aea9a..00000000000 --- a/readthedocs/organizations/templates/organizations/admin/owners_edit.html +++ /dev/null @@ -1,58 +0,0 @@ -{% extends "organizations/admin/base.html" %} - -{% load i18n gravatar %} - -{% block title %}{% trans "Edit Organization Owners" %}{% endblock %} - -{% block organization-admin-owners %}active{% endblock %} - -{% block edit_content_header %}Owners{% endblock %} - -{% block edit_content %} -

    - {% trans "Owners have full access to this Organization" %} -

    - - -
    -
    -
    - - - -
    -
    - -
    -

    {% trans "Add Owner" %}

    -
    - {% csrf_token %} - {{ form.as_p }} - -
    -
    - -
    - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/base.html b/readthedocs/organizations/templates/organizations/base.html deleted file mode 100644 index 2202765eb0e..00000000000 --- a/readthedocs/organizations/templates/organizations/base.html +++ /dev/null @@ -1,46 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} -{% load core_tags %} -{% load privacy_tags %} -{% load gravatar %} -{% load organizations %} - -{% block subnav-bar %} - - - - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/email/team_add.html b/readthedocs/organizations/templates/organizations/email/team_add.html deleted file mode 100644 index c8ffe1154a9..00000000000 --- a/readthedocs/organizations/templates/organizations/email/team_add.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends 'core/email/common.html' %} - -{% block top-right %} -{% endblock %} - -{% block salutation %} -

    - Join your team at Read the Docs! -

    -{% endblock %} - -{% block content %} -

    - {{ sender_full_name|default:sender_username }} has added you to a team at {{ organization_name|default_if_none:"your company" }}. - Join your team now, by following this link: -

    - -

    - {{ uri }}{% url "organization_detail" organization_slug %} -

    -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/includes/member_list.html b/readthedocs/organizations/templates/organizations/includes/member_list.html deleted file mode 100644 index 8fa7ba8da16..00000000000 --- a/readthedocs/organizations/templates/organizations/includes/member_list.html +++ /dev/null @@ -1,30 +0,0 @@ -{% load organizations gravatar i18n %} - -
    -
    -
    -
      - {% for member in members.all %} -
    • - - {# Teams here #} - - - - {{ member.username }} - {{ member.get_full_name }} - - {% if request.user|org_owner:team %} - -
      - {% csrf_token %} - -
      -
      - {% endif %} -
    • - {% endfor %} -
    -
    -
    -
    diff --git a/readthedocs/organizations/templates/organizations/includes/team_list_item.html b/readthedocs/organizations/templates/organizations/includes/team_list_item.html deleted file mode 100644 index 4cd4be98457..00000000000 --- a/readthedocs/organizations/templates/organizations/includes/team_list_item.html +++ /dev/null @@ -1,23 +0,0 @@ -{% load organizations %} -{% load gravatar %} - -
    -

    - {% if show_org %}{{ team.organization.name }} / {% endif %}{{ team.name }} - {% if show_meta %} - - {% with team.projects.all|length as num_projects %} - {{ num_projects }} Project{{ num_projects|pluralize }} - {% endwith %} - - {% endif %} -

    - -

    - {% for member in team.members.all %} - - - - {% endfor %} -

    -
    diff --git a/readthedocs/organizations/templates/organizations/includes/team_member_list.html b/readthedocs/organizations/templates/organizations/includes/team_member_list.html deleted file mode 100644 index 231e7e75fd8..00000000000 --- a/readthedocs/organizations/templates/organizations/includes/team_member_list.html +++ /dev/null @@ -1,39 +0,0 @@ -{% load organizations gravatar i18n %} - -
    -
    - -
    -
    diff --git a/readthedocs/organizations/templates/organizations/member_list.html b/readthedocs/organizations/templates/organizations/member_list.html deleted file mode 100644 index fe993f1f2c9..00000000000 --- a/readthedocs/organizations/templates/organizations/member_list.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "organizations/base.html" %} - -{% load i18n %} -{% load gravatar %} -{% load organizations %} - -{% block title %}{% trans "Members" %}{% endblock %} - -{% block organization-bar-members %}active{% endblock %} - -{% block content %} -
    -
    - -
    - {% include "organizations/includes/member_list.html" with members=members %} -
    - -
    -
    -
    -

    All Members

    - -

    - {% url 'organization_team_list' organization.slug as invite_url %} - {% blocktrans %} - This is a list of all the team members and owners inside your organization. - To invite members, invite them to a team - {% endblocktrans %} -

    -
    -
    -
    -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/onboard/base.html b/readthedocs/organizations/templates/organizations/onboard/base.html deleted file mode 100644 index bc9d8d852b8..00000000000 --- a/readthedocs/organizations/templates/organizations/onboard/base.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} - -{% block content %} -
    -
    - - {% csrf_token %} - {{ wizard.management_form }} - - {% block wizard-form %} - {% if wizard.form.forms %} - {{ wizard.form.management_form }} - {% for form in wizard.form.forms %} - {{ form }} - {% endfor %} - {% else %} - {{ wizard.form }} - {% endif %} - {% endblock %} - -
    - {% if wizard.steps.next %} - - {% else %} - - {% endif %} - - {% if wizard.steps.prev %} - - {% endif %} -
    - -
    -
    -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/onboard/invite.html b/readthedocs/organizations/templates/organizations/onboard/invite.html deleted file mode 100644 index 69e4cdf28a6..00000000000 --- a/readthedocs/organizations/templates/organizations/onboard/invite.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "organizations/onboard/base.html" %} -{% load i18n %} - -{% block title %}{% trans "Create an Organization" %}{% endblock %} - -{% block content %} -

    {% trans "Invite your Company" %}

    - - {% if onboarding %} -

    - {% blocktrans %} - Finally, if you'd like to invite your company to join you, - invite some members to share documentation with below. - More members can be invited to your team later, - in the organization admin dashboard. - {% endblocktrans %} -

    - {% endif %} - - {{ block.super }} - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/onboard/organization.html b/readthedocs/organizations/templates/organizations/onboard/organization.html deleted file mode 100644 index 43a357a144f..00000000000 --- a/readthedocs/organizations/templates/organizations/onboard/organization.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "organizations/onboard/base.html" %} -{% load i18n %} - -{% block title %}{% trans "Create an Organization" %}{% endblock %} - -{% block content %} -

    {% trans "Create an Organization" %}

    - - {% if onboarding %} -

    - {% blocktrans %} - Before you can add a project or build documentation, - we will help you create an organization. - Access to your documentation is limited to only those inside your organization, - or inside a team with access. - We'll help set up a team shortly, - start by entering your organization details. - {% endblocktrans %} -

    - {% endif %} - - {{ block.super }} - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/onboard/plan.html b/readthedocs/organizations/templates/organizations/onboard/plan.html deleted file mode 100644 index ab02a7d8095..00000000000 --- a/readthedocs/organizations/templates/organizations/onboard/plan.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "organizations/onboard/base.html" %} -{% load i18n %} - -{% block title %}{% trans "Create an Organization" %}{% endblock %} - -{% block wizard-form %} - {% include "corporate/pricing_detail_signup.html" %} -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/onboard/team.html b/readthedocs/organizations/templates/organizations/onboard/team.html deleted file mode 100644 index 826e451b9cb..00000000000 --- a/readthedocs/organizations/templates/organizations/onboard/team.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "organizations/onboard/base.html" %} -{% load i18n %} - -{% block title %}{% trans "Create an Organization" %}{% endblock %} - -{% block content %} -

    {% trans "Create a Team" %}

    - -
    -

    - Teams allow you to group organization members together, - and limit access to projects inside your organization. -

    -

    - We have created two teams for you: -

    - - -
    - - {{ block.super }} - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/organization_choose.html b/readthedocs/organizations/templates/organizations/organization_choose.html deleted file mode 100644 index 8c668b30d98..00000000000 --- a/readthedocs/organizations/templates/organizations/organization_choose.html +++ /dev/null @@ -1,51 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} -{% load gravatar %} -{% load organizations %} - -{% block title %}{% trans "Choose an organization" %}{% endblock %} - -{% block organization-bar-organization %}active{% endblock %} - -{% block content %} -
    -
    -
    - -

    {% trans "Choose an organization" %}

    - -

    - {% blocktrans trimmed %} - You are a member of several organizations. - Select the organization that you want to use: - {% endblocktrans %} -

    - - {% if organization_list %} - -
    -
    - - - -
    -
    - - {% else %} -

    {% trans "Your user is not a member of an organization yet." %}

    - {% endif %} -
    -
    -
    - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/organization_create.html b/readthedocs/organizations/templates/organizations/organization_create.html deleted file mode 100644 index 82497c497bd..00000000000 --- a/readthedocs/organizations/templates/organizations/organization_create.html +++ /dev/null @@ -1,58 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Create an Organization" %}{% endblock %} - -{% block dash-nav-profile %}active{% endblock %} - -{% block content-header %} -

    {% trans "Create an Organization" %}

    -{% endblock %} - -{% block content %} -
    - -
    -
    - - {% csrf_token %} - {{ form.as_p }} - -
    - -
    - -
    -
    -
    - -
    -
    -

    - {% blocktrans %} - To start building documentation, we will first help you create an - organization. - {% endblocktrans %} -

    - -
    -
    Limited Access
    -
    - {% blocktrans %} - Access to your documentation is limited to - only those inside your organization, or inside a team with access. - {% endblocktrans %} -
    - -
    30 Day Trial
    -
    - {% blocktrans %} - No need to decide now, you can pick a plan that fits your organization - after a 30 day trial. - {% endblocktrans %} -
    -
    -
    -
    -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/organization_detail.html b/readthedocs/organizations/templates/organizations/organization_detail.html deleted file mode 100644 index 7773b748057..00000000000 --- a/readthedocs/organizations/templates/organizations/organization_detail.html +++ /dev/null @@ -1,89 +0,0 @@ -{% extends "organizations/base.html" %} - -{% load i18n %} -{% load gravatar %} -{% load organizations %} - -{% block title %}{{ organization.name }}{% endblock %} - -{% block organization-bar-details %}active{% endblock %} - -{% block content %} - {% include "core/notifications.html" with notifications=notifications %} - -
    -
    - {% if projects|length == 0 %} - {% include "projects/onboard_import.html" with organization=organization %} - {% else %} - -
    -

    Projects

    -
    - -
    -
    - {% with projects as project_list %} -
      - {% include "core/project_list.html" with omit=profile.user show_users=False %} -
    - {% endwith %} -
    -
    - - {% endif %} -
    -
    - -
    -
    - -
    - {% gravatar organization.email 200 %} -
    - - {% if organization.url %} -

    - {{ organization.url }} -

    - {% endif %} - - {% if organization.description %} -

    - {{ organization.description }} -

    - {% endif %} - - {% if not organization|has_sso_enabled:'allauth' %} -

    - Teams -

    - - {% if teams %} - - {% else %} - {% trans "There are no teams currently established." %} - {% endif %} - {% endif %} - -

    - Owners -

    - -

    - {% for owner in owners %} - - {% gravatar owner.email 24 %} - - {% endfor %} -

    -
    -
    - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/organization_invite.html b/readthedocs/organizations/templates/organizations/organization_invite.html deleted file mode 100644 index 972fe795727..00000000000 --- a/readthedocs/organizations/templates/organizations/organization_invite.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "organizations/base.html" %} - -{% load i18n gravatar %} - -{% block title %}{% trans "Invite Members" %}{% endblock %} - -{% block organization-admin-invite %}active{% endblock %} - -{% block edit_content_header %}{% trans "Invite Members" %}{% endblock %} - -{% block edit_content %} -

    - {% trans "Invite members to " %} {{ organization.name }} -

    - - {% if teams %} -
    {% csrf_token %} - {{ form }} -
    - -
    - {% else %} -

    - Please add a team before you can add people. -

    - {% endif %} - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/organization_list.html b/readthedocs/organizations/templates/organizations/organization_list.html deleted file mode 100644 index 9a1ac3e6627..00000000000 --- a/readthedocs/organizations/templates/organizations/organization_list.html +++ /dev/null @@ -1,67 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} -{% load gravatar %} -{% load organizations %} - -{% block title %}Organization List{% endblock %} - -{% block organization-bar-organization %}active{% endblock %} - -{% block content %} -
    -
    -
    - -

    Organizations

    - - {% with orgs=request.user|organization %} - {% if orgs %} - -
    -
    - - - -
    -
    - - {% else %} -

    You aren't currently a member of any organizations

    - {% endif %} - {% endwith %} -
    -
    -
    - -
    -
    -

    Teams

    - - {% with teams=request.user|teams %} - {% if teams %} - - {% else %} -

    - You currently aren't a member of any teams. -

    - {% endif %} - {% endwith %} -
    -
    -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/security_log.html b/readthedocs/organizations/templates/organizations/security_log.html deleted file mode 100644 index 4a6ef36e7a6..00000000000 --- a/readthedocs/organizations/templates/organizations/security_log.html +++ /dev/null @@ -1,52 +0,0 @@ -{% extends "organizations/admin/base.html" %} - -{% load i18n %} -{% load pagination_tags %} - -{% block title %}{% trans "Organization Security Log" %}{% endblock %} - -{% block organization-admin-security-log %}active{% endblock %} - -{% block edit_content_header %} {% trans "Organization Security Log" %} {% endblock %} - -{% block edit_content %} - -{% if not enabled %} - {% include 'projects/includes/feature_disabled.html' with organization=organization %} -{% endif %} - -

    - {% blocktrans trimmed with docs_url='https://docs.readthedocs.io/page/security-log.html#organization-security-log' %} - The organization security log allows you to see what has happened recently in your organization. - {% endblocktrans %} - - {% if enabled %} - {% if days_limit and days_limit > 0 %} - {% blocktrans trimmed with days_limit=days_limit %} - Showing logs from the last {{ days_limit }} days. - You can upgrade your plan to increase the time period that is stored. - {% endblocktrans %} - {% else %} - {% trans "Showing logs from all time." %} - {% endif %} - {% endif %} -

    - -{% autopaginate object_list 15 %} - -
    -
    - -
    - - {% include "audit/list_logs.html" with omit_user=False %} -
    -{% paginate %} -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/team_create.html b/readthedocs/organizations/templates/organizations/team_create.html deleted file mode 100644 index fd6d8832d1c..00000000000 --- a/readthedocs/organizations/templates/organizations/team_create.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "organizations/base_team.html" %} - -{% load i18n %} -{% load gravatar %} -{% load organizations %} - -{% block title %}{% trans "Add Team" %}{% endblock %} - -{% block content-header %}{% endblock %} - -{% block content %} - -
    -

    {% trans "Add Team" %}

    -
    - {% csrf_token %} - {{ form.as_p }} - -
    -
    - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/team_detail.html b/readthedocs/organizations/templates/organizations/team_detail.html deleted file mode 100644 index 2da07f52703..00000000000 --- a/readthedocs/organizations/templates/organizations/team_detail.html +++ /dev/null @@ -1,64 +0,0 @@ -{% extends "organizations/base_team.html" %} - -{% load i18n %} -{% load gravatar %} -{% load organizations %} - -{% block admin-bar %} - {% if request.user|org_owner:team %} -
    -
    - -
    -
    - {% endif %} -{% endblock %} - -{% block content %} - - -
    -
    - -
    -

    {% trans "Members" %}

    - - {% include "organizations/includes/team_member_list.html" with members=team_members %} -
    - -
    -
    - -
    -

    {% trans "Projects" %}

    - -
    -
    -
      - {% include "core/project_list.html" with omit=profile.user show_users=False project_list=projects %} -
    -
    -
    -
    - -
    -
    - - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/team_edit.html b/readthedocs/organizations/templates/organizations/team_edit.html deleted file mode 100644 index be8eb8e6ba8..00000000000 --- a/readthedocs/organizations/templates/organizations/team_edit.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "organizations/base_team.html" %} - -{% load i18n %} -{% load gravatar %} -{% load organizations %} - -{% block title %}{% trans "Edit Team" %}{% endblock %} - -{% block content %} - - -
    - -

    {% trans "Edit Team" %}

    -
    - {% csrf_token %} - {{ form.as_p }} - -
    - - {% trans "Delete Team" %} - -
    - - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/team_list.html b/readthedocs/organizations/templates/organizations/team_list.html deleted file mode 100644 index 79ba997cb46..00000000000 --- a/readthedocs/organizations/templates/organizations/team_list.html +++ /dev/null @@ -1,84 +0,0 @@ -{% extends "organizations/base.html" %} - -{% load i18n %} -{% load gravatar %} -{% load organizations %} - -{% block title %}{% trans "Teams" %}{% endblock %} - -{% block organization-bar-teams %}active{% endblock %} - -{% block content-header %} - -{% if organization|has_sso_enabled:'allauth' %} -

    -Permissions for projects under this organization are managed at GitHub. -Please refer to GitHub repositories' help page for more information. -

    - -

    -Owners have full access to the organization's settings, -and can import projects. -

    -{% else %} -

    -Here is a listing of all the teams you have in your organization. -Teams are how you can limit access for a set of projects to a set of users. -

    - -

    -You can also add Owners, -who will be given full access to your Organization. -

    -{% endif %} -{% endblock %} - - -{% block admin-bar %} - {% if request.user|org_owner:organization %} -
    -
    - -
    -
    - {% endif %} -{% endblock %} - -{% block content %} -
    -
    -
    - {% if not organization|has_sso_enabled:'allauth' %} -

    Teams

    - {% for team in teams.all %} - {% include 'organizations/includes/team_list_item.html' with large=True show_meta=True %} - {% empty %} - {% trans "There are no teams currently established." %} - {% endfor %} - {% endif %} - -

    Owners

    -

    - {% for owner in owners %} - - {% gravatar owner.email 24 %} - - {% endfor %} -

    -
    -
    -
    -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/team_member_create.html b/readthedocs/organizations/templates/organizations/team_member_create.html deleted file mode 100644 index 36ba4818885..00000000000 --- a/readthedocs/organizations/templates/organizations/team_member_create.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "organizations/base_team.html" %} - -{% load i18n gravatar %} - -{% block title %}{% trans "Add Team Member" %}{% endblock %} - -{% block content %} - - -
    -

    {% trans "Invite Member" %}

    -
    - {% csrf_token %} - {{ form.as_p }} - -
    -
    - - -{% endblock %} diff --git a/readthedocs/organizations/templates/organizations/team_project_edit.html b/readthedocs/organizations/templates/organizations/team_project_edit.html deleted file mode 100644 index 36ec06d4a03..00000000000 --- a/readthedocs/organizations/templates/organizations/team_project_edit.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends "organizations/base_team.html" %} - -{% load i18n gravatar %} - -{% block title %}{% trans "Team's Projects" %}{% endblock %} - -{% block content %} - -
    - - -
    -

    {% trans "Projects" %}

    -

    - {% blocktrans %} - Select the projects that you would like this team to have access to. - {% endblocktrans %} -

    -
    - {% csrf_token %} - {{ form.as_p }} - -
    -
    - - -
    - -{% endblock %} diff --git a/readthedocs/redirects/templates/redirects/redirect_form.html b/readthedocs/redirects/templates/redirects/redirect_form.html deleted file mode 100644 index c066fae59c6..00000000000 --- a/readthedocs/redirects/templates/redirects/redirect_form.html +++ /dev/null @@ -1,91 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Redirect" %}{% endblock %} - -{% block project-redirects-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Redirects" %}{% endblock %} - -{% block extra_scripts %} - -{% endblock %} - -{% block project_edit_content %} -

    - {% blocktrans trimmed with docs_url='https://docs.readthedocs.io/page/user-defined-redirects.html' %} - Add redirects for your project. This allows you to fix links to old pages that are 404ing. Learn more. - {% endblocktrans %} -

    - -
    {% csrf_token %} - {{ form.as_p }} -
    - -
    - - {% if redirect %} -
    - {% csrf_token %} - -
    - {% endif %} -{% endblock %} diff --git a/readthedocs/redirects/templates/redirects/redirect_list.html b/readthedocs/redirects/templates/redirects/redirect_list.html deleted file mode 100644 index 8ca2df442f9..00000000000 --- a/readthedocs/redirects/templates/redirects/redirect_list.html +++ /dev/null @@ -1,88 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} -{% load static %} - -{% block title %}{% trans "Redirects" %}{% endblock %} - -{% block extra_links %} - -{% endblock %} - -{% block project-redirects-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Redirects" %}{% endblock %} - -{% block project_edit_content %} -

    - {% blocktrans trimmed with docs_url='https://docs.readthedocs.io/page/user-defined-redirects.html' %} - Add redirects for your project. This allows you to fix links to old pages that are 404ing. Learn more. - {% endblocktrans %} -

    - -
    - -
    - -
    -
    -
    -
      - {% for redirect in redirects %} -
    • -
      - {{ redirect.get_redirect_type_display }} -
      - {% if redirect.get_from_to_url_display %} -
      - {{ redirect.get_from_to_url_display }} -
      - {% endif %} -
        - {% if not forloop.first %} -
      • -
        - {% csrf_token %} - -
        -
      • - {% endif %} - - {% if not forloop.last %} -
      • -
        - {% csrf_token %} - -
        -
      • - {% endif %} - -
      • - - {% trans "Edit" %} - -
      • -
      -
    • - {% empty %} -
    • -

      - {% trans "No redirects found." %} -

      -
    • - {% endfor %} -
    -
    -
    -
    -{% endblock %} diff --git a/readthedocs/settings/test.py b/readthedocs/settings/test.py index 985abef831e..09506335bbb 100644 --- a/readthedocs/settings/test.py +++ b/readthedocs/settings/test.py @@ -37,6 +37,15 @@ class CommunityTestSettings(CommunityBaseSettings): } } + @property + def TEMPLATES(self): + templates = super().TEMPLATES + + # Set DEBUG on templates to allow running Django coverage plugin + templates[0]["OPTIONS"]["debug"] = True + + return templates + @property def PASSWORD_HASHERS(self): # Speed up tests by using a fast password hasher as the default. diff --git a/readthedocs/subscriptions/templates/subscriptions/notifications/organization_disabled_email.html b/readthedocs/subscriptions/templates/subscriptions/notifications/organization_disabled_email.html deleted file mode 100644 index 00a765901ab..00000000000 --- a/readthedocs/subscriptions/templates/subscriptions/notifications/organization_disabled_email.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "core/email/common.html" %} -{% block content %} -

    Your subscription period for {{ organization.name }} has ended and you haven't yet renewed. If -you'd like to continue using Read the Docs to manage your -documentation, please renew the subscription for your organization now.

    - -

    You can renew it here:

    - -

    {{ production_uri }}{% url 'subscription_detail' organization.slug %}

    - -

    Your builds will soon be disabled and access to your documentation will be removed.

    - -

    - If you need more help with Read the Docs for Business, we'd love to help you! - Get in touch with us - and let us know what problems you're having. -

    -{% endblock %} diff --git a/readthedocs/subscriptions/templates/subscriptions/notifications/organization_disabled_site.html b/readthedocs/subscriptions/templates/subscriptions/notifications/organization_disabled_site.html deleted file mode 100644 index 719e2f8291f..00000000000 --- a/readthedocs/subscriptions/templates/subscriptions/notifications/organization_disabled_site.html +++ /dev/null @@ -1,3 +0,0 @@ -Your organization {{ organization.name }} will soon be disabled. -To continue using Read the Docs, -please renew your subscription. diff --git a/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_ended_email.html b/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_ended_email.html deleted file mode 100644 index 1ece4240c18..00000000000 --- a/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_ended_email.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "core/email/common.html" %} -{% block content %} -

    The subscription period for {{ organization.name }} has ended. If -you'd like to continue using Read the Docs to manage your -documentation, please renew the subscription for your organization soon.

    - -

    You can renew it here:

    - -

    {{ production_uri }}{% url 'subscription_detail' organization.slug %}

    - -

    If you don't upgrade your account, your builds will soon be disabled - and access to your documentation will be removed.

    - -

    - If you need more help with Read the Docs, we'd love to help you! - Get in touch with us - and let us know what problems you're having. -

    -{% endblock %} diff --git a/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_ended_site.html b/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_ended_site.html deleted file mode 100644 index 0fd161bce9d..00000000000 --- a/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_ended_site.html +++ /dev/null @@ -1,3 +0,0 @@ -The subscription for {{ organization.name }} has ended. -To continue using Read the Docs, -please renew your subscription. diff --git a/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_required_email.html b/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_required_email.html deleted file mode 100644 index 55943e2dc86..00000000000 --- a/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_required_email.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "core/email/common.html" %} -{% block content %} -

    The trial period for {{ organization.name }} has ended. If -you'd like to continue using Read the Docs to host and manage your -documentation, please sign up for a subscription soon. -

    - -

    You can sign up here:

    - -

    {{ production_uri }}{% url 'subscription_detail' organization.slug %}

    - -

    If you don't upgrade your account, your builds will be disabled, -and access to your documentation will be removed.

    - -

    - If you need more information on the various plan options available to you, - see our pricing page - or always feel free to get in touch with us. -

    - - -

    - If you need more help with Read the Docs, we'd love to help you! - Get in touch with us - and let us know what problems you're having. -

    -{% endblock %} diff --git a/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_required_site.html b/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_required_site.html deleted file mode 100644 index 137f9983102..00000000000 --- a/readthedocs/subscriptions/templates/subscriptions/notifications/subscription_required_site.html +++ /dev/null @@ -1,3 +0,0 @@ -The trial period for {{ organization.name }} has ended. -To continue using Read the Docs, -please add a subscription to your organization. diff --git a/readthedocs/subscriptions/templates/subscriptions/notifications/trial_ending_email.html b/readthedocs/subscriptions/templates/subscriptions/notifications/trial_ending_email.html deleted file mode 100644 index f322144c093..00000000000 --- a/readthedocs/subscriptions/templates/subscriptions/notifications/trial_ending_email.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "core/email/common.html" %} -{% block content %} -

    This is just a reminder that the trial period for {{ organization.name }} -will end in under 7 days. We hope your trial has gone smoothly!

    - -

    Be sure to add a subscription to your organization before your trial period -is over if you wish to continue using Read the Docs. If you don't upgrade your account, -your builds will be disabled, and documentation serving will be disabled.

    - -

    You can add a subscription to your organization here:

    - -

    {{ production_uri }}{% url 'subscription_detail' organization.slug %}

    - -

    - If you'd like more information on the various plan options available to you, - see our pricing page - or always feel free to get in touch with us. -

    - -

    We hope you've enjoyed Read the Docs so far! If you have any questions, don't -hesitate to contact us!

    -{% endblock %} diff --git a/readthedocs/subscriptions/templates/subscriptions/notifications/trial_ending_site.html b/readthedocs/subscriptions/templates/subscriptions/notifications/trial_ending_site.html deleted file mode 100644 index cd234c015e1..00000000000 --- a/readthedocs/subscriptions/templates/subscriptions/notifications/trial_ending_site.html +++ /dev/null @@ -1 +0,0 @@ -The trial period for {{ organization.name }} is almost over. Please add a subscription to your organization to continue using Read the Docs. diff --git a/readthedocs/subscriptions/templates/subscriptions/subscription_detail.html b/readthedocs/subscriptions/templates/subscriptions/subscription_detail.html deleted file mode 100644 index 5c630faeb87..00000000000 --- a/readthedocs/subscriptions/templates/subscriptions/subscription_detail.html +++ /dev/null @@ -1,128 +0,0 @@ -{% extends "organizations/admin/base.html" %} - -{% load i18n gravatar %} -{% load static %} -{% load humanize %} - -{% block title %}{% trans "Organization Subscription" %}{% endblock %} - -{% block organization-admin-subscription %}active{% endblock %} - -{% block edit_content_header %}Subscription{% endblock %} - -{% block edit_content %} -
    - {% if stripe_subscription.status == 'trialing' %} -
      -
    • - {% url 'pricing' as pricing_url %} - {% blocktrans trimmed with pricing_url=pricing_url %} - You are currently on a trial. - Please choose a paid plan that fits your organization - prior to the end of your trial. - Upgrade your account by clicking on Manage subscription below. - {% endblocktrans %} -
    • -
    - {% endif %} - - {% if stripe_subscription and stripe_subscription.status != 'canceled' %} -
    -
    {% trans "Plan" %}:
    -
    - - {{ main_product.stripe_price.product.name }} - - - ({{ main_product.stripe_price.human_readable_price }}) - -
    - - {% if extra_products %} -
    {% trans "Extra products:" %}
    - {% for extra_product in extra_products %} -
    - - {{ extra_product.stripe_price.product.name }} - - - ({{ extra_product.stripe_price.human_readable_price }}) - - {% if extra_product.quantity > 1 %} - - (x{{ extra_product.quantity }}) - - {% endif %} -
    - {% endfor %} - {% endif %} - - {% if features %} -
    {% trans "Features:" %}
    -
    - {% for feature in features %} - - {{ feature.get_description }} - - {% endfor %} -
    - {% endif %} - - {% if stripe_subscription.start_date %} -
    {% trans "Signed up" %}:
    -
    - {# Translators: this is the subscription start date, used here as "4 days ago" or "5 months ago" #} - {% blocktrans with time_since_signup=stripe_subscription.start_date|timesince trimmed %} - {{ time_since_signup }} ago - {% endblocktrans %} -
    - {% endif %} - -
    {% trans "Subscription status" %}:
    -
    - {{ stripe_subscription.get_status_display }} -
    - - {% if stripe_subscription.status == 'trialing' and stripe_subscription.trial_end %} -
    {% trans "Trial ends" %}:
    -
    - {{ stripe_subscription.trial_end|date:"SHORT_DATE_FORMAT" }} -
    - {% elif subscription_end_date %} -
    {% trans "Subscription ends" %}:
    -
    - {{ subscription_end_date|date:"SHORT_DATE_FORMAT" }} -
    - {% endif %} -
    - -
    - {% csrf_token %} - - - {% trans "Use the button above to see past invoices, change your plan, and update your billing information." %} - -
    - - {% else %} - {# Allow users to create a new subscription if the current one was canceled. #} -

    - {% url 'pricing' as pricing_url %} - {% blocktrans trimmed with pricing_url=pricing_url %} - You don't currently have an active subscription. - You must create a subscription for a paid plan that fits your organization to continue using Read the Docs for Business. - {% endblocktrans %} -

    -
    - {% csrf_token %} - {{ form.as_p }} - -
    - {% endif %} - -
    -{% endblock %} diff --git a/readthedocs/templates/account/email.html b/readthedocs/templates/account/email.html deleted file mode 100644 index ee9532816ce..00000000000 --- a/readthedocs/templates/account/email.html +++ /dev/null @@ -1,114 +0,0 @@ -{% extends "profiles/base_profile_edit.html" %} - -{% load i18n %} - -{% block title %}{% trans "Change Email" %}{% endblock %} - -{% block profile-admin-change-email %}active{% endblock %} - -{% block edit_content_header %} {% trans "Change Email" %} {% endblock %} - -{% block edit_content %} - {% if user.emailaddress_set.all %} -

    {% trans "The following email addresses are associated with your account:" %}

    - - - - {% else %} - -

    {% trans "Warning:" %}{% trans "You currently do not have any email address set up. You should really add an email address so you can receive notifications, reset your password, etc." %}

    - - {% endif %} - -

    {% trans "Add E-mail Address" %}

    - -
    - {% csrf_token %} - {{ form.as_p }} - -
    - -{% endblock %} - -{% block footerjs %} - -{% endblock %} diff --git a/readthedocs/templates/account/email/account_already_exists_message.html b/readthedocs/templates/account/email/account_already_exists_message.html deleted file mode 100644 index 711c7813692..00000000000 --- a/readthedocs/templates/account/email/account_already_exists_message.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends "core/email/common.html" %} - -{% block content %} -

    - You are receiving this email because you or someone else tried to signup for - an account using email address: {{ email}}. -

    - -

    - However, an account using that email address already exists. In case you have - forgotten about this, please use the password forgotten procedure to recover - your account: -

    - -

    - {{ password_reset_url }} -

    - -

    - If you did not sign up for an account with Read the Docs, you can disregard this email. -

    - -{% endblock %} diff --git a/readthedocs/templates/account/email/email_confirmation_message.html b/readthedocs/templates/account/email/email_confirmation_message.html deleted file mode 100644 index a74fa11dfc3..00000000000 --- a/readthedocs/templates/account/email/email_confirmation_message.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "core/email/common.html" %} - -{% load i18n %} - -{% block content %} -

    - {% trans "To verify your email address and finish setting up your account, please go to:" %} -

    - -

    - {{ activate_url }} -

    - -

    - {% trans "If you did not sign up for an account with Read the Docs, you can disregard this email." %} -

    -{% endblock %} diff --git a/readthedocs/templates/account/email/email_confirmation_signup_message.html b/readthedocs/templates/account/email/email_confirmation_signup_message.html deleted file mode 100644 index c6f10e37dc9..00000000000 --- a/readthedocs/templates/account/email/email_confirmation_signup_message.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "account/email/email_confirmation_message.html" %} diff --git a/readthedocs/templates/account/email/password_reset_key_message.html b/readthedocs/templates/account/email/password_reset_key_message.html deleted file mode 100644 index d692788f67a..00000000000 --- a/readthedocs/templates/account/email/password_reset_key_message.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "core/email/common.html" %} - -{% load i18n %} - -{% block content %} -

    - {% trans "A request has been made to reset your Read the Docs password. To confirm this reset request, please go to:" %} -

    - -

    - {{ password_reset_url }} -

    - -

    - {% trans "If you did not request to reset your password, you can disregard this email." %} -

    -{% endblock %} diff --git a/readthedocs/templates/account/email/unknown_account_message.html b/readthedocs/templates/account/email/unknown_account_message.html deleted file mode 100644 index 779a830ca9a..00000000000 --- a/readthedocs/templates/account/email/unknown_account_message.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends "core/email/common.html" %} - -{% block content %} -

    - You are receiving this email because you or someone else has requested a - password for your user account. However, we do not have any record of a user - with email {{ email }} in our database. -

    - -

    - This mail can be safely ignored if you did not request a password reset. -

    - -

    - If it was you, you can sign up for an account using the link below. -

    - -

    - {{ signup_url }} -

    -{% endblock %} diff --git a/readthedocs/templates/account/login.html b/readthedocs/templates/account/login.html deleted file mode 100644 index 04691e4c4f4..00000000000 --- a/readthedocs/templates/account/login.html +++ /dev/null @@ -1,87 +0,0 @@ -{% extends "account/base_entrance.html" %} - -{% load i18n %} -{% load account %} - -{% block head_title %}{% trans "Log in" %}{% endblock %} - -{% block body_class %}login-page{% endblock %} - -{% block content %} - -

    {% trans "Log in" %}

    - -{% if is_from_cas_login %} -

    - {% blocktrans %} - In order to view this documentation, you must log in first. - {% endblocktrans %} -

    -{% endif %} - -{% if allowed_providers %} - {# If allowed providers is given, don't show the username/password form #} -
    -
      - {% include "socialaccount/snippets/provider_list.html" with process="login" next=request.GET.next verbiage="Log in using" %} -
    -
    - - {% if project_password_url %} -

    {% trans 'Or' %}

    -

    - {% blocktrans trimmed with project_password_url=project_password_url %} - Do you have a password to access this documentation? - Access here. - {% endblocktrans %} -

    - {% endif %} - -{% else %} - -

    {% blocktrans trimmed %}If you have not created an account yet, then please - sign up first.{% endblocktrans %}

    - - - - {% if project_password_url %} -

    {% trans 'Or' %}

    -

    - {% blocktrans trimmed with project_password_url=project_password_url %} - Do you have a password to access this documentation? - Access here. - {% endblocktrans %} -

    - {% endif %} - -

    {% trans 'Or' %}

    - -
    -
      - {% include "socialaccount/snippets/provider_list.html" with process="login" next=request.GET.next verbiage="Log in using" %} - {% if USE_ORGANIZATIONS %} -
    • -
      - -
      -
    • - {% endif %} -
    -
    -{% endif %} - -{% endblock content %} diff --git a/readthedocs/templates/account/password_change.html b/readthedocs/templates/account/password_change.html deleted file mode 100644 index 268be35bfad..00000000000 --- a/readthedocs/templates/account/password_change.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "profiles/base_profile_edit.html" %} - -{% load i18n %} - -{% block title %}{% trans "Change Password" %}{% endblock %} - -{% block profile-admin-change-password %}active{% endblock %} - -{% block edit_content_header %} {% trans "Change Password" %} {% endblock %} - -{% block edit_content %} -
    - {% csrf_token %} - {{ form.as_p }} - -
    -{% endblock %} diff --git a/readthedocs/templates/account/signup.html b/readthedocs/templates/account/signup.html deleted file mode 100644 index 627af3c6e3d..00000000000 --- a/readthedocs/templates/account/signup.html +++ /dev/null @@ -1,60 +0,0 @@ -{% extends "account/base_entrance.html" %} - -{% load i18n %} - -{% block head_title %}{% trans "Sign up" %}{% endblock %} - -{% block body_class %}signup-page{% endblock %} - -{% block content %} -

    {% trans "Sign Up" %}

    - -

    - {% blocktrans %}Already have an account? Then please sign in.{% endblocktrans %} -

    - -{% if allowed_providers %} -

    - {% if organization %} - {% blocktrans trimmed with organization.name as organization_name %} - You have been invited to join - the organization "{{ organization_name }}" - at Read the Docs. - {% endblocktrans %} - {% else %} - {% blocktrans trimmed %} - You have been invited to join - an organization - at Read the Docs. - {% endblocktrans %} - {% endif %} -

    -

    - {% blocktrans trimmed %} - Sign up using the following provider. - If you don't have an account with this provider, - please contact your organization owner and ask about this. - {% endblocktrans %} -

    -{% else %} - - -

    {% trans 'Or' %}

    -{% endif %} - -
    -
      - {% include "socialaccount/snippets/provider_list.html" with process="login" next="" verbiage="Sign up using" %} -
    -
    -{% endblock %} diff --git a/readthedocs/templates/all_builds.html b/readthedocs/templates/all_builds.html deleted file mode 100644 index d3f5b30654a..00000000000 --- a/readthedocs/templates/all_builds.html +++ /dev/null @@ -1,79 +0,0 @@ -{% extends "base.html" %} - -{% block title %}Live Builds{% endblock %} - -{% block content %} - - {% for build in builds %} -
    -

    {{ build.project }}

    -
    {{ build.output }}
    -
    - {% endfor %} - -{% endblock %} - -{% block extra_scripts %} -{{ block.super }} - - -{% endblock %} diff --git a/readthedocs/templates/allauth/layouts/base.html b/readthedocs/templates/allauth/layouts/base.html deleted file mode 100644 index 94d9808cc76..00000000000 --- a/readthedocs/templates/allauth/layouts/base.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "base.html" %} diff --git a/readthedocs/templates/archive/index.html b/readthedocs/templates/archive/index.html deleted file mode 100644 index 3a17f67070b..00000000000 --- a/readthedocs/templates/archive/index.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} - -{% block content-header %} -

    {% trans "Read the Docs Archive" %}

    -{% endblock %} - -{% block content %} -{% for project, versions in doc_index.items %} -

    {{ project }}

    -
      - {% for version in versions %} -
    • - {{ version }} -
    • - {% endfor %} -
    -{% endfor %} -{% endblock %} diff --git a/readthedocs/templates/base.html b/readthedocs/templates/base.html deleted file mode 100644 index 0ba683c6302..00000000000 --- a/readthedocs/templates/base.html +++ /dev/null @@ -1,336 +0,0 @@ -{% load i18n %} -{% load core_tags %} -{% load static %} - - - - - - - - {% block extra_metas %}{% endblock extra_metas %} - - - - - {% block title %}{% endblock %}{% block head_title %}{% endblock %} | {% block branding %}Read the Docs {% endblock %} - - {% if GLOBAL_ANALYTICS_CODE %} - - - - {% endif %} - - {% if request.user.is_authenticated %} - {# Only tack logged-in users to avoid sending a lot of (maybe unrelevant) traffic #} - - {% endif %} - - - - {% block extra_links %}{% endblock %} - - - - - - - - - - - - {% block extra_scripts %}{% endblock %} - - - - - - {% block header-wrapper %} - {% include "core/header.html" %} - {% endblock %} - - {% block subnav-bar %}{% endblock %} - - {% block project_editing %}{% endblock %} - - - -
    -
    - - {% comment %} - ``user_notifications`` comes from a Context Processor. - We need to use a CustomUser to have access to "user.notifications" - See https://docs.djangoproject.com/en/4.2/ref/settings/#std-setting-AUTH_USER_MODEL - {% endcomment %} - {% include "core/notifications.html" with notifications=user_notifications %} - - - {% block notify %} - {# These are regular one-time Django message attached to the request. #} - {% if messages %} -
      - {% for message in messages %} -
    • - {{ message }} -
    • - {% endfor %} -
    - {% endif %} - {% endblock %} - - - {% block content-header %} - {% endblock %} - - {% block content %} - {% endblock %} - -
    -
    - - - - - - - {% block footerjs %}{% endblock %} - - - - diff --git a/readthedocs/templates/base_filter.html b/readthedocs/templates/base_filter.html deleted file mode 100644 index 977e8144d43..00000000000 --- a/readthedocs/templates/base_filter.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block project_editing %} - - -
    -
    - -
    -

    {% trans "Filter" %}

    -
    - -
    - -
      - {% block filter_bar %}{% endblock %} -
    -
    - - -
    -
    - - -{% endblock %} diff --git a/readthedocs/templates/builds/build_detail.html b/readthedocs/templates/builds/build_detail.html deleted file mode 100644 index 2409abf2078..00000000000 --- a/readthedocs/templates/builds/build_detail.html +++ /dev/null @@ -1,312 +0,0 @@ -{% extends "projects/base_project.html" %} - -{% load i18n %} -{% load privacy_tags %} -{% load static %} - -{% block title %}{{ build.project.name }}{% endblock %} - -{% block extra_scripts %} - - - -{% endblock %} - -{% block extra_links %} - -{% endblock %} - -{% block project_editing %} - {% with builds_active="active" %} - {% include "core/project_bar.html" %} - {% endwith %} -{% endblock %} - -{% block content %} - {% block build_detail_beta %} - {% comment %} - Temporary notification to point to the beta dashboard, url_beta comes from the view - {% endcomment %} - {% if url_switch_dashboard %} -
    -

    - {% blocktrans trimmed with url=url_switch_dashboard %} - Our new beta dashboard is now available for testing! - Try viewing this build on the new dashboard. - {% endblocktrans %} -

    -
    - {% endif %} - {% endblock build_detail_beta %} - -
    - - {% if build.state != "finished" and build.state != "cancelled" and request.user|is_admin:project %} -
    - {% csrf_token %} - -
    - {% endif %} - - -
      -
      -
    • - {% trans "Completed" %} - {{ build.date|date:"N j, Y. P" }} -
    • - -
    • - {% trans "Build took" %} - - {{ build.length }} - - {% trans "seconds" %} -
    • -
      - - {% if build.builder and request.user.is_staff %} -
    • - {% trans "Built on" %} - {{ build.builder }} -
    • - {% endif %} - - - - - - {# Show rebuild button only if the version is external, active and it's the latest build for this version #} - {# see https://github.com/readthedocs/readthedocs.org/pull/6995#issuecomment-852918969 #} - {% if request.user|is_admin:project and build.can_rebuild %} -
      -
      - {% csrf_token %} - - Rebuild this build - - - -
      -
      - {% endif %} - -
    - -
    - {% blocktrans trimmed with build_id=build.pk %} - Build #{{ build_id }} - {% endblocktrans %} -
    - -
    - - {% if request.user|is_admin:project and not build.is_external and build.version %} - {{ build.version.slug }} - {% elif build.is_external %} - {% blocktrans with build.external_version_name as external_version_name %} - {{ external_version_name }} - {% endblocktrans %} - #{{ build.get_version_name }} - {% else %} - {{ build.get_version_slug }} - {% endif %} - - - {% if build.get_commit_url %} - ({{ build.commit }}) - {% else %} - ({{ build.commit }}) - {% endif %} - -
    - -
    - - - {{ build.get_state_display }} - - - - - - -
    - - {% if request.user|is_admin:project %} - {# TODO: migrate these "build ideas" to the new notification system #} - {% if not build.success and "setup.py install" in build.commands.last.output %} -
    -

    - {% url 'projects_edit' build.project.slug as project_settings_url %} - {% blocktrans trimmed %} - Don't want setup.py install called? - Change the Install Project setting in your project settings. - {% endblocktrans %} -

    -
    - {% endif %} - {% endif %} - - - {% comment %} - Show non-error notifications as "build-ideas" (e.g. "build.commands is in beta") - - This temporal until we render these notifications from the front-end. - {% endcomment %} - {% for notification in notifications %} - {% if notification.get_message.type != "error" %} -

    - {{ notification.get_message.get_rendered_header|safe }} — {{ notification.get_message.get_rendered_body|safe }} -

    - {% endif %} - {% endfor %} - - - {% if build.output %} - {# If we have build output, this is an old build #} -

    - -

    - -
    -

    {% trans "Build Output" %}

    -
    {{ build.output }}
    - - {% if build.setup %} -

    {% trans "Setup Output" %}

    -
    {{ build.setup }}
    - {% endif %} - - {% if build.setup_error %} -

    {% trans "Environment Standard Error" %}

    -
    {{ build.setup_error }}
    - {% endif %} -
    - - {% if build.error %} -

    {% trans "Build Errors" %}

    -
    {{ build.error }}
    - {% endif %} - - {% else %} - {# Show new command output if lacking build.output #} - - {% comment %} - Show error notifications as "build-error" (e.g. "syntax error in YAML") - - This temporal until we render these notifications from the front-end. - {% endcomment %} - {% for notification in notifications %} - {% if notification.get_message.type == "error" %} -
    -

    {{ notification.get_message.type|title }}

    -

    {{ notification.get_message.get_rendered_body|safe }}

    -
    - {% endif %} - {% endfor %} - - {% comment %} - After deploying the new notification system (`Notification` model), - we won't be populating `Build.error` field anymore and these errors won't be shown anymore. - However, old builds will still need to render the `Build.error` message - and that's why we are keeping this HTML + KO code here. - - In the future, we can decide fully migrate `Build.error` -> `Notification` and remove this - block completely. Read more at - https://github.com/readthedocs/readthedocs.org/issues/10980#issuecomment-1876785304 - {% endcomment %} - - - - {% endif %} - -
    -{% endblock %} diff --git a/readthedocs/templates/builds/build_list.html b/readthedocs/templates/builds/build_list.html deleted file mode 100644 index fce27df20ed..00000000000 --- a/readthedocs/templates/builds/build_list.html +++ /dev/null @@ -1,90 +0,0 @@ -{% extends "projects/base_project.html" %} - -{% load i18n %} -{% load static %} - -{% load pagination_tags %} -{% load privacy_tags %} -{% load projects_tags %} - -{% block title %}Builds{% endblock %} - -{% block project_editing %} - {% with builds_active="active" %} - {% include "core/project_bar.html" %} - {% endwith %} -{% endblock %} - -{% block content %} - - -
    - - {% autopaginate build_qs 15 %} - - -
    -
    - - {% block build_versions %} - {% if versions and request.user|is_admin:project %} -
    -
    -
    - {% csrf_token %} -
      -
    • - -
    • -
    • - -
    • -
    -
    -
    -
    - {% endif %} - {% endblock %} - -

    {% trans "Recent Builds" %}

    -
    - -
    -
    -
      - {% include "core/build_list_detailed.html" %} -
    -
    -
    - -
    -
    - - - {% paginate %} - - - -{% endblock %} - -{% comment %} - -{% block extra_scripts %} -{{ block.super }} - - - -{% endblock %} - -{% endcomment %} diff --git a/readthedocs/templates/builds/regexautomationrule_form.html b/readthedocs/templates/builds/regexautomationrule_form.html deleted file mode 100644 index 4de0a46293a..00000000000 --- a/readthedocs/templates/builds/regexautomationrule_form.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load static %} -{% load i18n %} - -{% block title %}{% trans "Automation Rule" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block project-automation-rules-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Automation Rule" %}{% endblock %} - - -{% block extra_scripts %} - - -{% endblock %} - -{% block project_edit_content %} -
    - {% csrf_token %} - {{ form.as_p }} - -
    - - {% if object.pk %} -
    - {% csrf_token %} - -
    - {% endif %} - -{% endblock %} diff --git a/readthedocs/templates/builds/tag_list.html b/readthedocs/templates/builds/tag_list.html deleted file mode 100644 index 78ddbde7228..00000000000 --- a/readthedocs/templates/builds/tag_list.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "projects/base_project.html" %} - -{% load i18n %} - -{% block title %}{% trans "Popular tags" %}{% endblock %} - -{% block content %} - -{% endblock %} diff --git a/readthedocs/templates/builds/versionautomationrule_list.html b/readthedocs/templates/builds/versionautomationrule_list.html deleted file mode 100644 index f5c50678c48..00000000000 --- a/readthedocs/templates/builds/versionautomationrule_list.html +++ /dev/null @@ -1,108 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} -{% load static %} - -{% block title %}{% trans "Automation Rules" %}{% endblock %} - -{% block extra_links %} - -{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block project-automation-rules-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Automation Rules" %}{% endblock %} - -{% block project_edit_content %} - -

    - {% blocktrans trimmed %} - Automate actions on new branches and tags. - Check the documentation on automation rules for more information. - {% endblocktrans %} -

    - - - - -
    -
    -
      - {% for rule in object_list %} -
    • - - {{ rule.get_description }} - - - ({{ rule.get_version_type_display }}) - -
        - {% if not forloop.first %} -
      • -
        - {% csrf_token %} - -
        -
      • - {% endif %} - - {% if not forloop.last %} -
      • -
        - {% csrf_token %} - -
        -
      • - {% endif %} -
      -
    • - {% empty %} -
    • -

      - {% trans 'No automation rules are currently configured.' %} -

      -
    • - {% endfor %} -
    -
    -
    - -

    -

    {% trans "Recent Activity" %}

    -

    -
    -
      - {% for match in matches %} -
    • - {% blocktrans trimmed with version=match.version_name pattern=match.match_arg type=match.get_version_type_display action=match.get_action_display date=match.created|timesince url=match.rule.get_edit_url %} - {{ type }} "{{ version }}" - matched the pattern "{{ pattern }}", - and the action {{ action }} - was performed {{ date }} ago. - {% endblocktrans %} -
    • - {% empty %} -
    • - - {% trans 'There is no recent activity' %} - -
    • - {% endfor %} -
    -
    - -{% endblock %} diff --git a/readthedocs/templates/core/badge_markup.html b/readthedocs/templates/core/badge_markup.html deleted file mode 100644 index e710e217cb2..00000000000 --- a/readthedocs/templates/core/badge_markup.html +++ /dev/null @@ -1,26 +0,0 @@ - diff --git a/readthedocs/templates/core/build_list_detailed.html b/readthedocs/templates/core/build_list_detailed.html deleted file mode 100644 index f1f488f8edf..00000000000 --- a/readthedocs/templates/core/build_list_detailed.html +++ /dev/null @@ -1,30 +0,0 @@ -{% load i18n %} -{% load static %} - - {% for build in build_qs %} -
  • - -
  • - {% empty %} -
  • {% trans "No builds found" %}
  • - {% endfor %} diff --git a/readthedocs/templates/core/email/base.html b/readthedocs/templates/core/email/base.html deleted file mode 100644 index 7a4a63e50a4..00000000000 --- a/readthedocs/templates/core/email/base.html +++ /dev/null @@ -1,122 +0,0 @@ -{% load i18n %} - - - - - - Read the Docs - - - - - - - - - - - - - - - - -
    - - - - -
    - {% block top-right %}{% endblock %} -
    -
    - - - - - - - - - - - - - - - - -
    - {% block header %} - - {% endblock %} -
    - - - - - - - - - - -
    - {% block salutation %} - {% trans "Hello," %} - {% endblock %} -
    - {% block content %} - {% endblock %} -
    - {% block signature %} - {% trans "Keep documenting," %}
    - {% trans "Read the Docs" %} - {% endblock %} -
    -
    - - - - -
    - {% block footer %} - Read the Docs
    - https://readthedocs.org
    - {% endblock %} -
    -
    -
    - - diff --git a/readthedocs/templates/core/filter_bar.html b/readthedocs/templates/core/filter_bar.html deleted file mode 100644 index ae2b263f944..00000000000 --- a/readthedocs/templates/core/filter_bar.html +++ /dev/null @@ -1,22 +0,0 @@ -{% load i18n %} - - -
    -
    - -
    -

    {% trans "Filter" %}

    -
    - -
    - - -
      - {% block filter_bar %}{% endblock %} -
    -
    - - -
    -
    - diff --git a/readthedocs/templates/core/filter_list.html b/readthedocs/templates/core/filter_list.html deleted file mode 100644 index f1a0862fe14..00000000000 --- a/readthedocs/templates/core/filter_list.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load i18n %} - - {% for obj in filter.qs %} -
  • - -
  • - {% empty %} -
  • {% trans "No objects found" %}
  • - {% endfor %} diff --git a/readthedocs/templates/core/header.html b/readthedocs/templates/core/header.html deleted file mode 100644 index 3a158738dcb..00000000000 --- a/readthedocs/templates/core/header.html +++ /dev/null @@ -1,50 +0,0 @@ -{% load i18n %} -{% load gravatar %} - - -
    -
    - - -
    -

    - {% comment %}Translators: Name of the website{% endcomment %} - Read the Docs -

    -
    - - - - {% if request.user.is_authenticated %} - - {% else %} - {% url 'account_login' as login %} - {% if not request.path == login %} - - {% endif %} - {% endif %} - - - -
    -
    - diff --git a/readthedocs/templates/core/home-header.html b/readthedocs/templates/core/home-header.html deleted file mode 100644 index 6aa98d901d7..00000000000 --- a/readthedocs/templates/core/home-header.html +++ /dev/null @@ -1,26 +0,0 @@ -{% load i18n %} - - -
    -
    - - -
    -

    Read the Docs

    -

    {% trans "Create, host, and browse documentation." %}

    -
    - - - - - - -
    -
    - diff --git a/readthedocs/templates/core/notifications.html b/readthedocs/templates/core/notifications.html deleted file mode 100644 index 6ae9f6108bd..00000000000 --- a/readthedocs/templates/core/notifications.html +++ /dev/null @@ -1,20 +0,0 @@ -{% load i18n %} - -{% if notifications %} -
      - {% for notification in notifications %} -
    • - {% if notification.dismissable %} - - - - {% endif %} - {{ notification.get_message.get_rendered_body|safe }} -
    • - {% endfor %} -
    -{% endif %} diff --git a/readthedocs/templates/core/project_bar.html b/readthedocs/templates/core/project_bar.html deleted file mode 100644 index cbb0fa68f06..00000000000 --- a/readthedocs/templates/core/project_bar.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends 'core/project_bar_base.html' %} -{% load projects_tags %} -{% load i18n %} - -{% block project-breadcrumb %} - {% if request.user|is_project_user:project %} - {% trans "Projects" %} > - {% endif %} - {% if project.superprojects.exists %} - {% with main_project=project.superprojects.all.0.parent %} - {{ main_project.name }} > - {% endwith %} - {% endif %} -{% endblock %} diff --git a/readthedocs/templates/core/project_bar_base.html b/readthedocs/templates/core/project_bar_base.html deleted file mode 100644 index 3851cc25cd8..00000000000 --- a/readthedocs/templates/core/project_bar_base.html +++ /dev/null @@ -1,52 +0,0 @@ -{% load i18n %} -{% load core_tags %} -{% load privacy_tags %} -{% load gravatar %} - - -
    -
    - - {% if project.has_good_build %} - - {% endif %} - -
    -

    - - {% block project-breadcrumb %} - {% trans "Projects" %} > - {% endblock %} - - {{ project }} - {% if project.delisted %} - {% trans "delisted" %} - {% endif %} -

    -
    - -
    - - -
    - - -
    -
    - diff --git a/readthedocs/templates/core/project_detail_right.html b/readthedocs/templates/core/project_detail_right.html deleted file mode 100644 index 364ee813388..00000000000 --- a/readthedocs/templates/core/project_detail_right.html +++ /dev/null @@ -1,137 +0,0 @@ -{% load i18n %} -{% load core_tags %} -{% load privacy_tags %} -{% load gravatar %} -{% load projects_tags %} - -{% block repo %} - {% if project.repo %} -

    {% trans "Repository" %}

    -

    - {% if project.repo|slice:':4' == 'http' %} - {{ project.repo|urlize }} - {% else %} - {{ project.repo }} - {% endif %} -

    - {% endif %} -{% endblock %} - -{% block slug %} - {% trans "Used in URL's and in code to represent the project name" as title %} -

    {% trans "Project Slug" %}

    -

    - {{ project.slug }} -

    -{% endblock %} - -{% block last-built %} -

    {% trans "Last Built" %}

    -

    - {% with build=project.get_latest_build %} - {% if build %} - {% if build.date %} - {{ build.date|timesince }} ago - {% if build.success %} - {% trans "passed" %} - {% else %} - {% trans "failed" %} - {% endif %} - {% else %} - {% trans "Currently Building" %} - {% endif %} - {% else %} - {% trans "No builds yet" %} - {% endif %} - {% endwith %} -

    -{% endblock %} - -{% block owners %} -

    {% trans "Maintainers" %}

    -

    - {% for user in project.users.all %} - {% gravatar user.email 32 %} - {% endfor %} -

    -{% endblock %} - -{% block homepage %} - {% if project.project_url %} -

    {% trans "Home Page" %}

    -

    - {{ project.project_url }} -

    - {% endif %} -{% endblock %} - -{% block badge %} -

    {% trans "Badge" %}

    - - - - - {% include "core/badge_markup.html" with badge_url=badge_url site_url=site_url %} -{% endblock %} - - -{% block tags %} -

    {% trans "Tags" %}

    -

    - - {% if project.tags.exists %} - {% for tag in project.tags.all %} - {{ tag.name }}{% if forloop.last %}{% else %}, {% endif %} - {% endfor %} - {% else %} - {% trans "Project has no tags." %} - {% if is_project_admin %} - {% url 'projects_edit' project.slug as edit_url %} - {% blocktrans trimmed %} - Add some in your project settings. - {% endblocktrans %} - {% endif %} - {% endif %} - -

    -{% endblock %} - -{% block short-urls %} -

    {% trans "Short URLs" %}

    -

    - {{ project.slug }}.{{ PUBLIC_DOMAIN }}
    - {% if PUBLIC_DOMAIN == "readthedocs.io" %} - {{ project.slug }}.rtfd.io - {% endif %} -

    -{% endblock %} - -{% block translations %} - {% if project.translations.exists %} -

    {% trans "Translations" %}

    - - {% endif %} -{% endblock %} - -{% block subprojects %} - {% if subprojects_and_urls %} -

    {% trans "Sub Projects" %}

    - - {% endif %} -{% endblock %} - -{% block defaults %} -

    {% trans "Default Version" %}

    -

    {{ project.get_default_version }}

    - -

    {% trans "'latest' Version" %}

    -

    {{ project.get_default_branch }}

    -{% endblock %} diff --git a/readthedocs/templates/core/project_details.html b/readthedocs/templates/core/project_details.html deleted file mode 100644 index 0edd612af2c..00000000000 --- a/readthedocs/templates/core/project_details.html +++ /dev/null @@ -1,92 +0,0 @@ -{% load i18n %} -{% load gravatar %} -{% load projects_tags %} - -
    -
    - -
    - {% if onboard %} - - {% include 'projects/onboard_detail.html' %} - - {% endif %} - - -
    -

    {% trans "Versions" %}

    -
    - -
    - -
    - -
    -
    - -{% block build_versions %} -{% if versions and is_project_admin %} -
    -

    {% trans "Build a version" %}

    -
    -
    - {% csrf_token %} - - -
    -
    -
    -{% endif %} -{% endblock %} - -{% if project.description %} -
    -

    {% trans "Description" %}

    -

    - {{ project.description }} -

    -
    -{% endif %} - -
    {# END .module #} - -
    - {% include "core/project_detail_right.html" with badge_url=badge_url site_url=site_url %} -
    {# END .project_details #} - -
    -
    diff --git a/readthedocs/templates/core/project_list.html b/readthedocs/templates/core/project_list.html deleted file mode 100644 index 642525ab02a..00000000000 --- a/readthedocs/templates/core/project_list.html +++ /dev/null @@ -1,6 +0,0 @@ - - {% for project in project_list %} -
  • - {{ project.name }} -
  • - {% endfor %} diff --git a/readthedocs/templates/core/project_list_detailed.html b/readthedocs/templates/core/project_list_detailed.html deleted file mode 100644 index acd59e46b99..00000000000 --- a/readthedocs/templates/core/project_list_detailed.html +++ /dev/null @@ -1,45 +0,0 @@ -{% load i18n %} - -{% for project in project_list %} -
  • - {{ project.name }} - - {% with project.users.all as users %} - {% if users|length > 1 %} - ({% for user in project.users.all|slice:":3" %} - {% if omit and user.pk != omit.pk %} - {{ user }} - {% endif %} - {% if not omit %} - {{ user }} - {% endif %} - {% endfor %}) - {% else %} - {% if omit and users.0.pk == omit.pk %}{% else %}{% with project.users.all.0 as user %} - ({{ user }}) - {% endwith %} - {% endif %} - {% endif %} - {% endwith %} - - {% if project.has_good_build %} - {% blocktrans with date=project.get_latest_build.date|timesince %}{{ date }} ago{% endblocktrans %} - {% else %} - {% trans "No builds" %} - {% endif %} - - - - -
  • -{% empty %} -
  • {% trans "No projects found" %}
  • -{% endfor %} diff --git a/readthedocs/templates/core/widesearchbar.html b/readthedocs/templates/core/widesearchbar.html deleted file mode 100644 index 7950c8096cd..00000000000 --- a/readthedocs/templates/core/widesearchbar.html +++ /dev/null @@ -1,22 +0,0 @@ -{% load i18n %} - - - {% if not term|default_if_none:False %} -

    {% trans "Search all the docs" %}

    - {% endif %} - diff --git a/readthedocs/templates/error_header.html b/readthedocs/templates/error_header.html deleted file mode 100644 index ecebdbc745b..00000000000 --- a/readthedocs/templates/error_header.html +++ /dev/null @@ -1,20 +0,0 @@ -{% load i18n %} -{# this template is deprecated, please extend from errors/base.html #} - -
    -
    - - - -
    -

    - {% comment %}Translators: Name of the website{% endcomment %} - - Read the Docs - -

    -
    - -
    -
    - diff --git a/readthedocs/templates/errors/base.html b/readthedocs/templates/errors/base.html deleted file mode 100644 index 3ecdbd7fbb0..00000000000 --- a/readthedocs/templates/errors/base.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends "base.html" %} -{% load core_tags %} -{% load i18n %} - -{# Remove analytics (e.g. Plausible) from 404 pages #} -{% block analytics %}{% endblock %} - -{% block header-wrapper %} -
    -
    - - - -
    -

    - {% comment %}Translators: Name of the website{% endcomment %} - - Read the Docs - -

    -
    - -
    -
    - -{% endblock %} - -{% block notify %}{% endblock %} - -{# Hide the language select form so we don't set a CSRF cookie #} -{% block language-select-form %}{% endblock %} diff --git a/readthedocs/templates/errors/dashboard/401.html b/readthedocs/templates/errors/dashboard/401.html deleted file mode 100644 index c50f8a26c6c..00000000000 --- a/readthedocs/templates/errors/dashboard/401.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "errors/dashboard/base.html" %} -{% load core_tags %} -{% load i18n %} - -{% block title %} - {% trans "Maze Found" %} -{% endblock %} - -{% block content %} -

    Permission Denied

    -

    -You don't have the proper permissions to view this page. Please contact the owner of this project to request permission. -

    -{% endblock %} diff --git a/readthedocs/templates/errors/dashboard/403.html b/readthedocs/templates/errors/dashboard/403.html deleted file mode 120000 index ec15dd1f74a..00000000000 --- a/readthedocs/templates/errors/dashboard/403.html +++ /dev/null @@ -1 +0,0 @@ -401.html \ No newline at end of file diff --git a/readthedocs/templates/errors/dashboard/404.html b/readthedocs/templates/errors/dashboard/404.html deleted file mode 100644 index 7b83c17302a..00000000000 --- a/readthedocs/templates/errors/dashboard/404.html +++ /dev/null @@ -1,46 +0,0 @@ -{% extends "errors/dashboard/base.html" %} -{% load core_tags %} -{% load i18n %} - -{% block title %} - {% trans "404 Not Found" %} -{% endblock %} - -{% block content %} - -

    {% trans "404 Not Found" %}

    - - {% block 404_error_message %} -
    -

    {% trans "You have encountered a 404 on Read the Docs. You are either looking for a page that does not exist or a project that has been removed." %}

    -
    - -
    -
    -        \       What a maze!        /
    -         \                         /
    -          \    This page does     /
    -           ]     not exist.      [    ,'|
    -           ]                     [   /  |
    -           ]___               ___[ ,'   |
    -           ]  ]\             /[  [ |:   |
    -           ]  ] \           / [  [ |:   |
    -           ]  ]  ]         [  [  [ |:   |
    -           ]  ]  ]__     __[  [  [ |:   |
    -           ]  ]  ] ]\ _ /[ [  [  [ |:   |
    -           ]  ]  ] ] (#) [ [  [  [ :===='
    -           ]  ]  ]_].nHn.[_[  [  [
    -           ]  ]  ]  HHHHH. [  [  [
    -           ]  ] /   `HH("N  \ [  [
    -           ]__]/     HHH  "  \[__[
    -           ]         NNN         [
    -           ]         N/"         [
    -           ]         N H         [
    -          /          N            \
    -         /           q,            \
    -        /                           \
    -
    - - {% endblock %} - -{% endblock %} diff --git a/readthedocs/templates/errors/dashboard/429.html b/readthedocs/templates/errors/dashboard/429.html deleted file mode 100644 index aa7de6f707f..00000000000 --- a/readthedocs/templates/errors/dashboard/429.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "errors/dashboard/base.html" %} -{% load core_tags %} -{% load i18n %} - -{% block title %} - {% trans "Too many requests" %} -{% endblock %} - -{% block content %} -
    -              .--~~,__
    - :-....,-------`~~'._.'
    -  `-,,,  ,_      ;'~U'
    -   _,-' ,'`-__; '--.
    -  (_/'~~      ''''(;
    -
    - Too many requests! Try again in a bit.
    -
    -{% endblock %} diff --git a/readthedocs/templates/errors/dashboard/4xx.html b/readthedocs/templates/errors/dashboard/4xx.html deleted file mode 100644 index ea595681c2e..00000000000 --- a/readthedocs/templates/errors/dashboard/4xx.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "errors/dashboard/base.html" %} -{% load core_tags %} -{% load i18n %} - -{% block title %} - {% trans "Bad request" %} -{% endblock %} - -{% block content %} -

    - {% blocktrans trimmed %} - Bad request - {% endblocktrans %} -

    -

    - {% blocktrans trimmed %} - Your request is either unsupported or we didn't understand it. - {% endblocktrans %} -

    -{% endblock %} diff --git a/readthedocs/templates/errors/dashboard/500.html b/readthedocs/templates/errors/dashboard/500.html deleted file mode 100644 index 61e68c00247..00000000000 --- a/readthedocs/templates/errors/dashboard/500.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "errors/dashboard/base.html" %} -{% load i18n %} - -{% block title %} - {% trans "Server Error" %} -{% endblock %} - -{% block content %} -
    -          .
    -         ":"
    -       ___:____     |"\/"|
    -     ,'        `.    \  /
    -     |  O        \___/  |
    -   ~^~^~^~^~^~^~^~^~^~^~^~^~
    -
    -   Fail.  Check back in a bit!
    -
    -  
    -{% endblock %} diff --git a/readthedocs/templates/errors/dashboard/5xx.html b/readthedocs/templates/errors/dashboard/5xx.html deleted file mode 120000 index 0f3fa109755..00000000000 --- a/readthedocs/templates/errors/dashboard/5xx.html +++ /dev/null @@ -1 +0,0 @@ -500.html \ No newline at end of file diff --git a/readthedocs/templates/errors/dashboard/base.html b/readthedocs/templates/errors/dashboard/base.html deleted file mode 100644 index d6dd60f4cfa..00000000000 --- a/readthedocs/templates/errors/dashboard/base.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "errors/base.html" %} diff --git a/readthedocs/templates/errors/dashboard/spam.html b/readthedocs/templates/errors/dashboard/spam.html deleted file mode 100644 index ce99b2a2f25..00000000000 --- a/readthedocs/templates/errors/dashboard/spam.html +++ /dev/null @@ -1,32 +0,0 @@ -{% load static %} - - - - - - - - Spam Project - - - -
    - Read the Docs Logo -

    Project marked as spam

    -

    Read the Docs has marked this content as spam and is not serving it anymore.

    - {# We can't use url templatetag here because the URL is not defined in El Proxito #} -

    Please contact us if you think this is a mistake.

    -

    410 - Gone

    -
    - - diff --git a/readthedocs/templates/errors/proxito/401.html b/readthedocs/templates/errors/proxito/401.html deleted file mode 120000 index f479f7f09fb..00000000000 --- a/readthedocs/templates/errors/proxito/401.html +++ /dev/null @@ -1 +0,0 @@ -../dashboard/401.html \ No newline at end of file diff --git a/readthedocs/templates/errors/proxito/403.html b/readthedocs/templates/errors/proxito/403.html deleted file mode 120000 index f479f7f09fb..00000000000 --- a/readthedocs/templates/errors/proxito/403.html +++ /dev/null @@ -1 +0,0 @@ -../dashboard/401.html \ No newline at end of file diff --git a/readthedocs/templates/errors/proxito/404/base.html b/readthedocs/templates/errors/proxito/404/base.html deleted file mode 100644 index 57401598fb1..00000000000 --- a/readthedocs/templates/errors/proxito/404/base.html +++ /dev/null @@ -1,46 +0,0 @@ -{% extends "errors/proxito/base.html" %} -{% load core_tags %} -{% load i18n %} - -{% block title %} - {% trans "404 Not Found" %} -{% endblock %} - -{% block content %} - -

    {% trans "404 Not Found" %}

    - - {% block 404_error_message %} -
    -

    {% trans "You have encountered a 404 on Read the Docs. You are either looking for a page that does not exist or a project that has been removed." %}

    -
    - -
    -
    -        \       What a maze!        /
    -         \                         /
    -          \    This page does     /
    -           ]     not exist.      [    ,'|
    -           ]                     [   /  |
    -           ]___               ___[ ,'   |
    -           ]  ]\             /[  [ |:   |
    -           ]  ] \           / [  [ |:   |
    -           ]  ]  ]         [  [  [ |:   |
    -           ]  ]  ]__     __[  [  [ |:   |
    -           ]  ]  ] ]\ _ /[ [  [  [ |:   |
    -           ]  ]  ] ] (#) [ [  [  [ :===='
    -           ]  ]  ]_].nHn.[_[  [  [
    -           ]  ]  ]  HHHHH. [  [  [
    -           ]  ] /   `HH("N  \ [  [
    -           ]__]/     HHH  "  \[__[
    -           ]         NNN         [
    -           ]         N/"         [
    -           ]         N H         [
    -          /          N            \
    -         /           q,            \
    -        /                           \
    -
    - - {% endblock %} - -{% endblock %} diff --git a/readthedocs/templates/errors/proxito/404/dns.html b/readthedocs/templates/errors/proxito/404/dns.html deleted file mode 100644 index 62c0670f812..00000000000 --- a/readthedocs/templates/errors/proxito/404/dns.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends "errors/proxito/404/base.html" %} -{% load core_tags %} -{% load i18n %} - -{% block 404_error_message %} - -

    {% blocktrans %}The host "{{ domain }}" is unknown to Read the Docs{% endblocktrans %}

    - -

    - {% with docsurl='https://docs.readthedocs.io/en/stable/custom_domains.html' %} - {% blocktrans trimmed %} - If you control this domain and believe this is in error, - please review our custom domain documentation. - In the past, we allowed custom domains to point to us without configuring the domain in the Read the Docs dashboard - and we attempted to intelligently guess the correct project based on DNS settings. - Now, we believe that explicit is better than implicit. - Below are some steps to help you get your domain working again: - {% endblocktrans %} - {% endwith %} -

    - -
    -

    {% trans "Are you the project owner?" %}

    - -

    {% trans "Here are some tips to address 404 errors:" %}

    - -
      -
    • {% trans 'Ensure you have a CNAME record pointing to readthedocs.io' %}
    • -
    • {% trans 'Add your desired domain in the Read the Docs dashboard for your project (under Your Project >> Admin >> Domains)' %}
    • -
    -
    - -{% endblock %} diff --git a/readthedocs/templates/errors/proxito/404/include_error_message.html b/readthedocs/templates/errors/proxito/404/include_error_message.html deleted file mode 100644 index b2819a7fbbc..00000000000 --- a/readthedocs/templates/errors/proxito/404/include_error_message.html +++ /dev/null @@ -1,16 +0,0 @@ -{% load i18n %} -
    -

    - {% blocktrans trimmed with project_slug=project.slug %} - You are browsing the documentation of {{ project_slug }}. - The {{ not_found_subject }} you are looking for was not found. - {% endblocktrans %} -

    - -

    - {% blocktrans trimmed %} - Documentation changes over time and pages are moved around. - You can try to navigate to the index page of the project and use its navigation, or search for a similar page. - {% endblocktrans %} -

    -
    diff --git a/readthedocs/templates/errors/proxito/404/include_search.html b/readthedocs/templates/errors/proxito/404/include_search.html deleted file mode 100644 index db65c0c421e..00000000000 --- a/readthedocs/templates/errors/proxito/404/include_search.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load i18n %} - -

    {% trans "Try searching?" %}

    - -
    - {% if search_project %} - {% with "project:"|add:search_project as search_term %} - {% include "core/widesearchbar.html" with form_action="//"|add:PRODUCTION_DOMAIN|add:"/search/" term=search_term %} - {% endwith %} - {% else %} - {% include "core/widesearchbar.html" with form_action="//"|add:PRODUCTION_DOMAIN|add:"/search/" %} - {% endif %} -
    diff --git a/readthedocs/templates/errors/proxito/404/include_tips.html b/readthedocs/templates/errors/proxito/404/include_tips.html deleted file mode 100644 index f6a507be273..00000000000 --- a/readthedocs/templates/errors/proxito/404/include_tips.html +++ /dev/null @@ -1,11 +0,0 @@ -{% load i18n %} -
    -

    {% trans "Are you the project owner?" %}

    - -

    {% trans "Here are some tips to address 404 errors:" %}

    - - -
    diff --git a/readthedocs/templates/errors/proxito/404/no_language.html b/readthedocs/templates/errors/proxito/404/no_language.html deleted file mode 100644 index 285fe29fc0a..00000000000 --- a/readthedocs/templates/errors/proxito/404/no_language.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "errors/proxito/404/base.html" %} -{% load i18n %} - -{# project exists but not in the requested language #} - -{% block 404_error_message %} - {% include "errors/proxito/404/include_error_message.html" %} - {% include "errors/proxito/404/include_search.html" with search_project=project.slug %} - {% include "errors/proxito/404/include_tips.html" %} -{% endblock %} diff --git a/readthedocs/templates/errors/proxito/404/no_project.html b/readthedocs/templates/errors/proxito/404/no_project.html deleted file mode 100644 index e9f3d2c2743..00000000000 --- a/readthedocs/templates/errors/proxito/404/no_project.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "errors/proxito/404/base.html" %} -{% load i18n %} - -{# visiting a slug or subdomain that doesn't match a project #} - -{% block 404_error_message %} -
    -

    - {% blocktrans trimmed with domain=domain|default:_("no domain") %} - The project for {{ domain }} that you are looking for either does not exist, has been deleted or doesn't have any successful builds yet. - {% endblocktrans %} -

    -
    - - {% include "errors/proxito/404/include_search.html" %} -{% endblock %} diff --git a/readthedocs/templates/errors/proxito/404/no_project_page.html b/readthedocs/templates/errors/proxito/404/no_project_page.html deleted file mode 100644 index 52d6d456d96..00000000000 --- a/readthedocs/templates/errors/proxito/404/no_project_page.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "errors/proxito/404/base.html" %} -{% load i18n %} - -{# project exists but page doesn't #} - -{% block 404_error_message %} - {% include "errors/proxito/404/include_error_message.html" %} - {% include "errors/proxito/404/include_search.html" with search_project=project.slug %} - {% include "errors/proxito/404/include_tips.html" %} -{% endblock %} diff --git a/readthedocs/templates/errors/proxito/404/no_subproject.html b/readthedocs/templates/errors/proxito/404/no_subproject.html deleted file mode 100644 index 82d5c7538b2..00000000000 --- a/readthedocs/templates/errors/proxito/404/no_subproject.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "errors/proxito/404/base.html" %} -{% load i18n %} - -{# project exists but subproject doesn't #} - -{% block 404_error_message %} - {% include "errors/proxito/404/include_error_message.html" %} - {% include "errors/proxito/404/include_search.html" with search_project=project.slug %} - {% include "errors/proxito/404/include_tips.html" %} -{% endblock %} diff --git a/readthedocs/templates/errors/proxito/404/no_version.html b/readthedocs/templates/errors/proxito/404/no_version.html deleted file mode 100644 index 73faa38e9e5..00000000000 --- a/readthedocs/templates/errors/proxito/404/no_version.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "errors/proxito/404/base.html" %} -{% load i18n %} - -{# project exists but version doesn't #} - -{% block 404_error_message %} - {% include "errors/proxito/404/include_error_message.html" %} - {% include "errors/proxito/404/include_search.html" with search_project=project.slug %} - {% include "errors/proxito/404/include_tips.html" %} -{% endblock %} diff --git a/readthedocs/templates/errors/proxito/418.html b/readthedocs/templates/errors/proxito/418.html deleted file mode 100644 index 4d5478629aa..00000000000 --- a/readthedocs/templates/errors/proxito/418.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "errors/proxito/4xx.html" %} - -{% load core_tags %} -{% load i18n %} - -{% block title %} - {% trans "418. I'm a teapot" %} -{% endblock %} - -{% block content %} -

    {% trans "418. I'm a teapot" %}

    -{% endblock %} diff --git a/readthedocs/templates/errors/proxito/429.html b/readthedocs/templates/errors/proxito/429.html deleted file mode 120000 index 94d8439a50a..00000000000 --- a/readthedocs/templates/errors/proxito/429.html +++ /dev/null @@ -1 +0,0 @@ -../dashboard/429.html \ No newline at end of file diff --git a/readthedocs/templates/errors/proxito/4xx.html b/readthedocs/templates/errors/proxito/4xx.html deleted file mode 100644 index ec09794f0d4..00000000000 --- a/readthedocs/templates/errors/proxito/4xx.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "errors/proxito/base.html" %} - -{% load core_tags %} -{% load i18n %} - -{% block title %} - {% trans "Bad request" %} -{% endblock %} - -{% block content %} -

    {% trans "Bad request" %}

    -{% endblock %} diff --git a/readthedocs/templates/errors/proxito/500.html b/readthedocs/templates/errors/proxito/500.html deleted file mode 120000 index baae7d90a5a..00000000000 --- a/readthedocs/templates/errors/proxito/500.html +++ /dev/null @@ -1 +0,0 @@ -../dashboard/500.html \ No newline at end of file diff --git a/readthedocs/templates/errors/proxito/5xx.html b/readthedocs/templates/errors/proxito/5xx.html deleted file mode 120000 index baae7d90a5a..00000000000 --- a/readthedocs/templates/errors/proxito/5xx.html +++ /dev/null @@ -1 +0,0 @@ -../dashboard/500.html \ No newline at end of file diff --git a/readthedocs/templates/errors/proxito/base.html b/readthedocs/templates/errors/proxito/base.html deleted file mode 100644 index d6dd60f4cfa..00000000000 --- a/readthedocs/templates/errors/proxito/base.html +++ /dev/null @@ -1 +0,0 @@ -{% extends "errors/base.html" %} diff --git a/readthedocs/templates/errors/proxito/spam.html b/readthedocs/templates/errors/proxito/spam.html deleted file mode 120000 index 3fe7b9eac4d..00000000000 --- a/readthedocs/templates/errors/proxito/spam.html +++ /dev/null @@ -1 +0,0 @@ -../dashboard/spam.html \ No newline at end of file diff --git a/readthedocs/templates/flagging/flag_confirm.html b/readthedocs/templates/flagging/flag_confirm.html deleted file mode 100644 index 788b0c32d81..00000000000 --- a/readthedocs/templates/flagging/flag_confirm.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "flagging/base_flagging.html" %} - -{% load i18n %} - - -{% block title %}{% trans "Confirm flagging" %}{% endblock %} -{% block body_class %}{{ block.super }} flag_confirm{% endblock %} - - -{% block content_title %} -

    {% trans "Confirm flagging" %}

    -{% endblock %} - - -{% block content %} - {% load flagging %} -

    {% trans "What you are saying:" %}

    -

    {{ flag_type.description }}

    - -
    {% csrf_token %} -

    {% blocktrans %}Are you sure you want to flag "{{ object }}" as "{{ flag_type.title }}"?{% endblocktrans %}

    -

    - - {% trans "cancel" %} -

    -
    -{% endblock %} diff --git a/readthedocs/templates/flagging/flag_success.html b/readthedocs/templates/flagging/flag_success.html deleted file mode 100644 index e8ab7fd04be..00000000000 --- a/readthedocs/templates/flagging/flag_success.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "flagging/base_flagging.html" %} - -{% load i18n %} - - -{% block title %}{% trans "Flagging successful" %}{% endblock %} -{% block body_class %}{{ block.super }} flag_success{% endblock %} - - -{% block content_title %} -

    {% trans "Flagging successful" %}

    -{% endblock %} - - -{% block content %} -

    {% blocktrans %}You have successfully flagged "{{ object }}" as "{{ flag_type.title }}"{% endblocktrans %}

    - -

    {% trans "Thank you for contributing to the quality of this site!" %}

    -{% endblock %} diff --git a/readthedocs/templates/homepage.html b/readthedocs/templates/homepage.html deleted file mode 100644 index e8304b80a85..00000000000 --- a/readthedocs/templates/homepage.html +++ /dev/null @@ -1,173 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} -{% load humanize %} -{% load pagination_tags %} -{% load cache %} - -{% block extra_metas %} - -{% endblock extra_metas %} - -{% block title %}{% trans "Home" %}{% endblock %} - -{% block body_class %}home {% if not request.user.is_authenticated %}splash{% endif %}{% endblock %} - -{% block nav-browse %}class="active"{% endblock %} - -{% block header-wrapper %} - {% if request.user.is_authenticated %} - {% include "core/header.html" %} - {% else %} - {% include "core/home-header.html" %} - {% endif %} -{% endblock %} - -{% block extra_scripts %} - -{% endblock %} - - -{% block content %} - - -
    -

    {% trans "Technical documentation lives here" %}

    -

    - {% blocktrans trimmed %} - Read the Docs simplifies software documentation by automating building, - versioning, and hosting of your docs for you. - {% endblocktrans %} -

    -
    - - -
    -
    -

    {% trans "Free docs hosting for open source" %}

    -

    - {% blocktrans trimmed %} - We will host your documentation for free, forever. - There are no tricks. - We help over 100,000 open source projects share their docs, - including a custom domain and theme. - {% endblocktrans %} -

    -
    -
    -

    {% trans "Always up to date" %}

    -

    - {% blocktrans trimmed %} - Whenever you push code to your favorite version control service, - whether that is GitHub, Bitbucket, or GitLab, we will - automatically build your docs so your code and documentation are - never out of sync. - {% endblocktrans %} -

    -
    -
    -
    - -
    -
    -

    {% trans "Downloadable formats" %}

    -

    - {% blocktrans trimmed %} - We build and host your docs for the web, but they are - also viewable as PDFs, as single page HTML, and for eReaders. - No additional configuration is required. - {% endblocktrans %} -

    -
    -
    -

    {% trans "Multiple versions" %}

    -

    - {% blocktrans trimmed %} - We can host and build multiple versions of your docs so having a - 1.0 version of your docs and a 2.0 version of your docs is as easy - as having a separate branch or tag in your version control system. - {% endblocktrans %} -

    -
    -
    -
    - - -
    -

    - {% trans 'Read the Tutorial' %} -

    -
    - - -
    - {% url "search" as search_form_action %} - {% include "core/widesearchbar.html" with form_action=search_form_action %} -
    - -
    -

    {% trans 'About Read the Docs' %}

    - -

    - {% blocktrans trimmed %} - Read the Docs has grown substantially - since its beginning as a weekend project and is closing in on being a top-1000 site on the internet. - Today, we: - {% endblocktrans %} -

    - - - {% blocktrans trimmed %} - - {% endblocktrans %} - -
    - -
    -

    {% trans "Read the Docs is funded by the community" %}

    -

    - - {% url "donate" as donate_url %} - -

    - {% blocktrans trimmed %} - We fund our operations through advertising, - corporate-hosted documentation with Read the Docs for Business, - donations, - and we are supported by a number of generous sponsors. - {% endblocktrans %} -

    - -

    - {% blocktrans trimmed %} - Read the Docs is open source and community supported. - It depends on users like you to contribute to development, support, and operations. - You can learn more about how to contribute in our docs. - Thanks so much to our wonderful team who helps us run the site. - Read the Docs wouldn't be possible without them. - {% endblocktrans %} -

    - -

    - {% blocktrans trimmed %} - Hosting for the project is graciously provided by AWS and Cloudflare. - {% endblocktrans %} -

    -
    -{% endblock %} diff --git a/readthedocs/templates/notifications/send_notification_form.html b/readthedocs/templates/notifications/send_notification_form.html deleted file mode 100644 index 1832ff9ffde..00000000000 --- a/readthedocs/templates/notifications/send_notification_form.html +++ /dev/null @@ -1,43 +0,0 @@ -{% extends "admin/base_site.html" %} -{% load i18n %} - -{% block content %} - -

    {% trans 'Send Email' %}

    - -

    - {% blocktrans trimmed %} - An email message will be sent to the following email addresses: - {% endblocktrans %} -

    - -
      - {% for recipient in recipients|slice:":20" %} -
    • {{ recipient.email }} ({{ recipient }})
    • - {% endfor %} - {% with extra_recipients=recipients|slice:"20:" %} - {% if extra_recipients|length > 0 %} -
    • - {% blocktrans trimmed count counter=extra_recipients|length %} - And 1 other recipient. - {% plural %} - And {{ counter }} other recipients... - {% endblocktrans %} -
    • - {% endif %} - {% endwith %} -
    - -

    - {% blocktrans trimmed %} - Specify the email content you wish to send: - {% endblocktrans %} -

    - -
    - {% csrf_token %} - {{ form.as_p }} - - -
    -{% endblock %} diff --git a/readthedocs/templates/pagination/pagination.html b/readthedocs/templates/pagination/pagination.html deleted file mode 100644 index fd11e6d076c..00000000000 --- a/readthedocs/templates/pagination/pagination.html +++ /dev/null @@ -1,27 +0,0 @@ -{% load i18n %} - -{% if is_paginated %} - -{% endif %} diff --git a/readthedocs/templates/post_commit.html b/readthedocs/templates/post_commit.html deleted file mode 100644 index a29b64f4edf..00000000000 --- a/readthedocs/templates/post_commit.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Build Started" %} {% endblock %} - -{% block content %} - -{% if built %} -{% blocktrans %}{{ project }} is now building.{% endblocktrans %}

    -{# Translators: 'it' refers the current project being built. #} -{% blocktrans with project.get_absolute_url as project_url %}Check it out over here.{% endblocktrans %} -{% else %} -{% trans "This is a post-commit hook. Set it up in your project admin to POST here, for us to update your doc changes automatically." %} -{% endif %} - -{% endblock %} diff --git a/readthedocs/templates/profiles/base_profile.html b/readthedocs/templates/profiles/base_profile.html deleted file mode 100644 index 71e424fe174..00000000000 --- a/readthedocs/templates/profiles/base_profile.html +++ /dev/null @@ -1,39 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} -{% load core_tags %} -{% load gravatar %} - -{% block subnav-bar %} - -
    -
    - -
    -

    - - {% gravatar profile.user.email 30 %} - - {{ profile.user }} - {% if profile.user.get_full_name %} - ({{ profile.user.get_full_name}}) - {% endif %} -

    -
    - -
    - - -
    - -
    -
    - - -{% endblock %} diff --git a/readthedocs/templates/profiles/base_profile_edit.html b/readthedocs/templates/profiles/base_profile_edit.html deleted file mode 100644 index 422a335bd4d..00000000000 --- a/readthedocs/templates/profiles/base_profile_edit.html +++ /dev/null @@ -1,69 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} -{% load core_tags %} -{% load gravatar %} - -{% block profile-bar-admin %}active{% endblock %} - -{# This is included here instead of subclassing base_profile because we don't control all the views, and can't set the `profile` variable reliably #} -{% block subnav-bar %} - -
    -
    - -
    -

    - - {% gravatar user.email 30 %} - - {{ user }} - {% if user.get_full_name %} - ({{ user.get_full_name}}) - {% endif %} -

    -
    - - - -
    -
    - - -{% endblock %} - -{% block content %} -
    -
    - -
    -
    -{% endblock %} diff --git a/readthedocs/templates/profiles/private/advertising_profile.html b/readthedocs/templates/profiles/private/advertising_profile.html deleted file mode 100644 index e45ccefc3eb..00000000000 --- a/readthedocs/templates/profiles/private/advertising_profile.html +++ /dev/null @@ -1,51 +0,0 @@ -{% extends "profiles/base_profile_edit.html" %} - -{% load i18n %} - -{% block title %}{% trans "Set advertising preferences" %}{% endblock %} - -{% block profile-admin-advertising %}active{% endblock %} - -{% block edit_content_header %} {% trans "Set advertising preferences" %} {% endblock %} - -{% block edit_content %} - - {% if request.user.gold.exists or request.user.goldonce.exists %} -

    - {% blocktrans trimmed %} - Thank you for supporting Read the Docs! - {% endblocktrans%} -

    - {% endif %} - -

    - {% blocktrans trimmed %} - Read the Docs is an open source project. - In order to maintain service, we rely on both the - support of our users, and from sponsor support. - {% endblocktrans %} -

    - -

    - {% blocktrans trimmed %} - For more details on advertising on Read the Docs - including the privacy protections we have in place for users - and community advertising we run on behalf of the open source community, - see our documentation. - {% endblocktrans %} -

    - -

    - {% url "gold_detail" as gold_detail %} - {% url "donate" as donate_url %} - {% blocktrans trimmed %} - You can go ad-free by becoming a Gold member or Supporter of Read the Docs. - {% endblocktrans %} -

    - -
    - {% csrf_token %} - {{ form.as_p }} - -
    -{% endblock %} diff --git a/readthedocs/templates/profiles/private/delete_account.html b/readthedocs/templates/profiles/private/delete_account.html deleted file mode 100644 index ce2170e533a..00000000000 --- a/readthedocs/templates/profiles/private/delete_account.html +++ /dev/null @@ -1,70 +0,0 @@ -{% extends "profiles/base_profile_edit.html" %} - -{% load i18n %} - -{% block title %}{% trans "Delete Account" %}{% endblock %} - -{% block profile-admin-delete-account %}active{% endblock %} - -{% block edit_content_header %} {% trans "Delete Account" %} {% endblock %} - -{% block edit_content %} - {% if projects_to_be_deleted %} -
    -

    - {% blocktrans trimmed %} - All projects where you are the only owner will be deleted. - If you want to keep a project, add another owner or transfer ownership. - The following projects and all their documentation will be deleted. - {% endblocktrans %} -

    - -
    - {% endif %} - - {% if organizations_to_be_deleted %} -
    -

    - {% blocktrans trimmed %} - All organizations and its projects where you are the only owner will be deleted. - If you want to keep an organization, add another owner or transfer ownership. - The following organizations and all their projects will be deleted. - {% endblocktrans %} -

    -
      - {% for organization in organizations_to_be_deleted %} -
    • -

      - {{ organization.slug }} -

      -

      - Projects: -

        - {% for project in organization.projects.all %} -
      • - {{ project.slug }} -
      • - {% endfor %} -
      -

      -
    • - {% endfor %} -
    -
    - {% endif %} - -
    - {% csrf_token %} - {{ form }} -
    - {% trans "Be careful! This can not be undone!" %} -
    - -
    -{% endblock %} diff --git a/readthedocs/templates/profiles/private/edit_profile.html b/readthedocs/templates/profiles/private/edit_profile.html deleted file mode 100644 index da23ad74d89..00000000000 --- a/readthedocs/templates/profiles/private/edit_profile.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "profiles/base_profile_edit.html" %} - -{% load i18n %} - -{% block title %}{% trans "Edit your profile" %}{% endblock %} - -{% block profile-admin-details %}active{% endblock %} - -{% block edit_content_header %} {% trans "Edit your profile" %} {% endblock %} - -{% block edit_content %} -
    {% csrf_token %} - {{ form.as_p }} - -
    -{% endblock %} diff --git a/readthedocs/templates/profiles/private/security_log.html b/readthedocs/templates/profiles/private/security_log.html deleted file mode 100644 index 72b6884254e..00000000000 --- a/readthedocs/templates/profiles/private/security_log.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends "profiles/base_profile_edit.html" %} - -{% load i18n %} -{% load pagination_tags %} - -{% block title %}{% trans "Security Log" %}{% endblock %} - -{% block profile-admin-security-log %}active{% endblock %} - -{% block edit_content_header %} {% trans "Security Log" %} {% endblock %} - -{% block edit_content %} - -

    - {% blocktrans trimmed with days_limit=days_limit docs_url='https://docs.readthedocs.io/page/security-log.html#user-security-log'%} - The user security log allows you to see what has happened recently in your account. - Showing logs from the last {{ days_limit }} days. - {% endblocktrans %} -

    - -{% autopaginate object_list 15 %} - -
    - - - {% include "audit/list_logs.html" with omit_user=True %} -
    -{% paginate %} -{% endblock %} diff --git a/readthedocs/templates/profiles/private/token_list.html b/readthedocs/templates/profiles/private/token_list.html deleted file mode 100644 index 06cb24b5598..00000000000 --- a/readthedocs/templates/profiles/private/token_list.html +++ /dev/null @@ -1,62 +0,0 @@ -{% extends "profiles/base_profile_edit.html" %} - -{% load i18n %} - -{% block title %}{% trans "API Tokens" %}{% endblock %} - -{% block profile-admin-tokens %}active{% endblock %} - -{% block edit_content_header %} {% trans "API Tokens" %} {% endblock %} - -{% block edit_content %} -

    - {% blocktrans trimmed %} - Personal Access Token are tokens that allow you to use the Read the Docs APIv3 being authenticated as yourself. - See APIv3 documentation for more information. - {% endblocktrans %} -

    - - {% if not object_list %} -
    -
      -
    • -
      - {% csrf_token %} - -
      -
    • -
    -
    - {% endif %} - -
    -
    -
    -
      - {% for token in object_list %} -
    • -
      Created: {{ token.created }}
      -
      Token: {{ token.key }}
      - -
        -
      • -
        - {% csrf_token %} - -
        -
      • -
      - -
    • - {% empty %} -
    • -

      - {% trans 'You currently have no API tokens.' %} -

      -
    • - {% endfor %} -
    -
    -
    -
    -{% endblock %} diff --git a/readthedocs/templates/profiles/public/profile_detail.html b/readthedocs/templates/profiles/public/profile_detail.html deleted file mode 100644 index 9c1003576bf..00000000000 --- a/readthedocs/templates/profiles/public/profile_detail.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "profiles/base_profile.html" %} - -{% load i18n %} -{% load privacy_tags %} - -{% block title %}{% blocktrans with profile.user as user %}{{ user }}'s profile{% endblocktrans %}{% endblock %} - -{% block profile-bar-profile %}active{% endblock %} - -{% block content %} - -
    -
    - {% get_public_projects profile.user %} - {% with public_projects as project_list %} - -
    -
    - -
    -
    - -
      - {% include "core/project_list_detailed.html" with omit=profile.user %} -
    - -
    -
    - -
    -
    - - {% endwith %} -
    -
    -{% endblock %} diff --git a/readthedocs/templates/projects/doc_file.rst.html b/readthedocs/templates/projects/doc_file.rst.html deleted file mode 100644 index 486c69c635e..00000000000 --- a/readthedocs/templates/projects/doc_file.rst.html +++ /dev/null @@ -1,9 +0,0 @@ -{% load projects_tags %}{{ file|file_heading|safe }} - -{{ file.content|safe }} - -.. toctree:: - - {% for file in file.children.all|annotated_tree:1 %} - {{ file.denormalized_path }} - {% endfor %} diff --git a/readthedocs/templates/projects/domain_form.html b/readthedocs/templates/projects/domain_form.html deleted file mode 100644 index a35e9f2b9f0..00000000000 --- a/readthedocs/templates/projects/domain_form.html +++ /dev/null @@ -1,66 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Edit Domains" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-proj %}class="active"{% endblock %} - -{% block project-domains-active %}active{% endblock %} - -{% block project_edit_content_header %} - -{% if domain %} -{% trans "Domain Details" %} -{% else %} -{% trans "Create Domain" %} -{% endif %} - -{% endblock %} - -{% block project_edit_content %} - - {% if not enabled %} - {% include 'projects/includes/feature_disabled.html' with project=project %} - {% endif %} - - {% if domain.domainssl %} - {# This references optional code that handles certificates for custom domains. #} - -

    - {% blocktrans trimmed with cname_target=domain.domainssl.cname_target %} - To configure this domain add a CNAME record in your DNS pointing - your custom domain to {{ cname_target }}. - {% endblocktrans %} -

    - - {% if not domain.skip_validation and not domain.is_valid and domain.validation_process_expired %} -

    - {% blocktrans trimmed %} - The validation process period has ended. - Save the domain to restart the process. - {% endblocktrans %} -

    - {% endif %} - -

    - {% trans 'SSL certificate status' %}: - {{ domain.domainssl.status }} -

    - {% endif %} - - {% if domain %} - {% url 'projects_domains_edit' project.slug domain.pk as action_url %} - {% else %} - {% url 'projects_domains_create' project.slug as action_url %} - {% endif %} -
    {% csrf_token %} - {{ form.as_p }} - - {% if domain.domainssl %} -

    {% trans 'Saving the domain will revalidate the SSL certificate' %}

    - {% endif %} -
    -{% endblock %} diff --git a/readthedocs/templates/projects/domain_list.html b/readthedocs/templates/projects/domain_list.html deleted file mode 100644 index 787c7997149..00000000000 --- a/readthedocs/templates/projects/domain_list.html +++ /dev/null @@ -1,61 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Edit Domains" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-proj %}class="active"{% endblock %} - -{% block project-domains-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Domains" %}{% endblock %} - -{% block project_edit_content %} - {% if superproject %} - {% url "projects_detail" superproject.slug as superproject_url %} -

    - {% blocktrans trimmed with superproject=superproject.name superproject_url=superproject_url domain=project.subdomain %} - This project is a subproject of {{ superproject }}, - its documentation will always be served from the {{ domain }} domain. - Learn more. - {% endblocktrans %} -

    - {% else %} -

    - {% blocktrans trimmed with docs_url='https://docs.readthedocs.io/page/custom_domains.html' %} - Configuring a custom domain allows you to serve your documentation from a domain other than "{{ default_domain }}". Learn more. - {% endblocktrans %} -

    - {% endif %} - - {% if object_list %} -

    {% trans "Existing Domains" %}

    -

    -

    -

    - {% endif %} - - {% if not superproject %} -

    {% trans "Add new domain" %}

    - - {% if not enabled %} - {% include 'projects/includes/feature_disabled.html' with project=project %} - {% else %} -
    {% csrf_token %} - {{ form.as_p }} -

    - -

    -
    - {% endif %} - {% endif %} -{% endblock %} diff --git a/readthedocs/templates/projects/environmentvariable_form.html b/readthedocs/templates/projects/environmentvariable_form.html deleted file mode 100644 index 47c92883134..00000000000 --- a/readthedocs/templates/projects/environmentvariable_form.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Environment Variables" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-environment-variables %}class="active"{% endblock %} - -{% block project-environment-variables-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Environment Variables" %}{% endblock %} - -{% block project_edit_content %} -
    - {% csrf_token %} - {{ form.as_p }} - -
    -{% endblock %} diff --git a/readthedocs/templates/projects/environmentvariable_list.html b/readthedocs/templates/projects/environmentvariable_list.html deleted file mode 100644 index 71fc8ce4eb5..00000000000 --- a/readthedocs/templates/projects/environmentvariable_list.html +++ /dev/null @@ -1,60 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Environment Variables" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-environment-variables %}class="active"{% endblock %} - -{% block project-environment-variables-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Environment Variables" %}{% endblock %} - -{% block project_edit_content %} -

    {% trans "Environment variables allow you to change the way that your build behaves. Take into account that these environment variables are available to all build steps." %}

    - - - -
    -
    -
      - {% for environmentvariable in object_list %} -
    • - {{ environmentvariable.name }} - - {% if environmentvariable.public %} - {% trans "public" %} - {% else %} - {% trans "private" %} - {% endif %} - -
        -
      • -
        - {% csrf_token %} - -
        -
      • -
      -
    • - {% empty %} -
    • -

      - {% trans 'No environment variables are currently configured.' %} -

      -
    • - {% endfor %} -
    -
    -
    -{% endblock %} diff --git a/readthedocs/templates/projects/import_base.html b/readthedocs/templates/projects/import_base.html deleted file mode 100644 index e6bb9c7f6c6..00000000000 --- a/readthedocs/templates/projects/import_base.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} - -{% block title %}{% trans "Add a Project" %}{% endblock %} - -{% block content %} -
    -
    - - {% csrf_token %} - {{ wizard.management_form }} - - {% block wizard-form %} - {% if wizard.form.forms %} - {{ wizard.form.management_form }} - {% for form in wizard.form.forms %} - {{ form.as_p }} - {% endfor %} - {% else %} - {{ wizard.form.as_p }} - {% endif %} - {% endblock %} - - {% block wizard-actions %} -
    - {% if wizard.steps.next %} - - {% else %} - - {% endif %} - - {% if wizard.steps.prev %} - - {% endif %} -
    - {% endblock%} - -
    -
    -{% endblock %} diff --git a/readthedocs/templates/projects/import_basics.html b/readthedocs/templates/projects/import_basics.html deleted file mode 100644 index a53dba8c253..00000000000 --- a/readthedocs/templates/projects/import_basics.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "projects/import_base.html" %} -{% load i18n %} - -{% block content %} -

    {% trans "Project Details" %}

    - -

    - {% blocktrans trimmed %} - To import a project, start by entering a few details about your repository. - You can set additional configuration options for your documentation in a - .readthedocs.yml file. - {% endblocktrans %} -

    - - {{ block.super }} -{% endblock %} diff --git a/readthedocs/templates/projects/import_config.html b/readthedocs/templates/projects/import_config.html deleted file mode 100644 index 656919e2d66..00000000000 --- a/readthedocs/templates/projects/import_config.html +++ /dev/null @@ -1,58 +0,0 @@ -{% extends "projects/import_base.html" %} -{% load i18n %} - -{% block content %} -

    {% trans "Add a project configuration file" %}

    - -

    - {% blocktrans trimmed %} - Make sure your project has a .readthedocs.yaml configuration file at the root directory of your repository. - This file is required by Read the Docs to build your documentation. - You can read more about our configuration file in our documentation. - {% endblocktrans %} -

    - -

    - {% blocktrans trimmed %} - Here is an example configuration file for a project using Sphinx: - {% endblocktrans %} -

    - -
    -
    -# .readthedocs.yaml
    -# Read the Docs configuration file
    -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
    -
    -# Required
    -version: 2
    -
    -# Set the OS, Python version and other tools you might need
    -build:
    -  os: ubuntu-24.04
    -  tools:
    -    python: "3.13"
    -    # You can also specify other tool versions:
    -    # nodejs: "23"
    -    # rust: "1.82"
    -    # golang: "1.23"
    -
    -# Build documentation in the "docs/" directory with Sphinx
    -sphinx:
    -  configuration: docs/conf.py
    -
    -# Optionally build your docs in additional formats such as PDF and ePub
    -# formats:
    -#    - pdf
    -#    - epub
    -
    -# Optional but recommended, declare the Python requirements required
    -# to build your documentation
    -# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
    -# python:
    -#    install:
    -#    - requirements: docs/requirements.txt
    -
    - - {{ block.super }} -{% endblock %} diff --git a/readthedocs/templates/projects/import_extra.html b/readthedocs/templates/projects/import_extra.html deleted file mode 100644 index 2cd63d1447e..00000000000 --- a/readthedocs/templates/projects/import_extra.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "projects/import_base.html" %} -{% load i18n %} - -{% block content %} -

    {% trans "Project Extra Details" %}

    - -

    - {% blocktrans trimmed %} - Here are a few more project options that you may need to configure. - {% endblocktrans %} -

    - - {{ block.super }} -{% endblock %} diff --git a/readthedocs/templates/projects/includes/feature_disabled.html b/readthedocs/templates/projects/includes/feature_disabled.html deleted file mode 100644 index 9b8ff223008..00000000000 --- a/readthedocs/templates/projects/includes/feature_disabled.html +++ /dev/null @@ -1,8 +0,0 @@ -{% load i18n %} - -

    - {% url 'support' as support_url %} - {% blocktrans trimmed with support_url=support_url %} - This is a beta feature, it can be enabled by contacting support. - {% endblocktrans %} -

    diff --git a/readthedocs/templates/projects/includes/flagging.html b/readthedocs/templates/projects/includes/flagging.html deleted file mode 100644 index e3bbe3ba1c0..00000000000 --- a/readthedocs/templates/projects/includes/flagging.html +++ /dev/null @@ -1,13 +0,0 @@ -{% load flagging %} -{% load i18n %} - -{% if request.user.is_authenticated %} -

    - {# Translators: After 'Flag this project as' follows either 'Inappropriate', 'Spam' and/or 'Duplicate' #} - {% trans "Flag this project as" %} ( - {% if not project|flagged_with:"inappropriate" %}{% trans "Inappropriate" %} |{% endif %} - {% if not project|flagged_with:"spam" %}{% trans "Spam" %} |{% endif %} - {% if not project|flagged_with:"duplicate" %}{% trans "Duplicate" %}{% endif %} - ) -

    -{% endif %} diff --git a/readthedocs/templates/projects/integration_exchange_detail.html b/readthedocs/templates/projects/integration_exchange_detail.html deleted file mode 100644 index e1d26bfaec7..00000000000 --- a/readthedocs/templates/projects/integration_exchange_detail.html +++ /dev/null @@ -1,41 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Integrations" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-integrations %}class="active"{% endblock %} - -{% block project-integrations-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Exchange" %}{% endblock %} - -{% block project_edit_content %} -

    Response

    - -
    -
    -
    Status:
    -
    {{ httpexchange.status_code }}
    - - {% for header, value in httpexchange.response_headers.items %} -
    {{ header }}:
    -
    {{ value }}
    - {% endfor %} -
    - {{ httpexchange.formatted_response_body }} -
    - -

    Request

    - -
    -
    - {% for header, value in httpexchange.request_headers.items %} -
    {{ header }}:
    -
    {{ value }}
    - {% endfor %} -
    - {{ httpexchange.formatted_request_body }} -
    -{% endblock %} diff --git a/readthedocs/templates/projects/integration_form.html b/readthedocs/templates/projects/integration_form.html deleted file mode 100644 index cc46a9b0355..00000000000 --- a/readthedocs/templates/projects/integration_form.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Integrations" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-integrations %}class="active"{% endblock %} - -{% block project-integrations-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Integrations" %}{% endblock %} - -{% block project_edit_content %} -
    - {% csrf_token %} - {{ form.as_p }} - -
    -{% endblock %} diff --git a/readthedocs/templates/projects/integration_list.html b/readthedocs/templates/projects/integration_list.html deleted file mode 100644 index 089044b50a7..00000000000 --- a/readthedocs/templates/projects/integration_list.html +++ /dev/null @@ -1,45 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Integrations" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-integrations %}class="active"{% endblock %} - -{% block project-integrations-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Integrations" %}{% endblock %} - -{% block project_edit_content %} - - -
    -
    - -
    -
    -{% endblock %} diff --git a/readthedocs/templates/projects/integration_webhook_detail.html b/readthedocs/templates/projects/integration_webhook_detail.html deleted file mode 100644 index 838c0ab4048..00000000000 --- a/readthedocs/templates/projects/integration_webhook_detail.html +++ /dev/null @@ -1,134 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Integration" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-integrations %}class="active"{% endblock %} - -{% block project-integrations-active %}active{% endblock %} -{% block project_edit_content_header %} - {% blocktrans trimmed with type=integration.get_integration_type_display %} - Integration - {{ type }} - {% endblocktrans %} -{% endblock %} - -{% block project_edit_content %} - {% if integration.has_sync %} - {% if integration.can_sync %} -

    - {% blocktrans trimmed %} - This integration is being managed automatically by Read the Docs. If - it isn't functioning correctly, try re-syncing the webhook: - {% endblocktrans %} -

    - {% else %} - {% comment %} - Display information for manual webhook set up if either case is true: - - * Integration doesn't have the ability to sync - * Integration has ability to sync, but we don't have the data returned - from the provider API on webhook creation (or webhook was automatically - created on new data from an old webhook) - {% endcomment %} -

    - {% blocktrans trimmed %} - This integration is not managed by Read the Docs currently. - If this integration is not functioning correctly, - you can try re-syncing it. Otherwise you'll need to update - the configuration on your repository. - You can use the following address to manually configure this webhook. - {% endblocktrans %} -

    - {% endif %} - {% endif %} - -

    - {% blocktrans trimmed %} - To manually configure this webhook with your provider, use the - following information: - {% endblocktrans %} -

    - -
    -

    -

    - - {% url 'api_webhook' project_slug=project.slug integration_pk=integration.pk as webhook_url %} - -

    -

    - - {% if not integration.has_sync %} - {# For generic webhooks #} -

    - - -

    - {% elif integration.secret %} -

    - - -

    - {% endif %} -
    - - {% if integration.has_sync and not integration.secret %} -

    - {% blocktrans trimmed %} - This integration does not have a secret, - the authenticity of the incoming webhook cannot be verified. - Click on "Resync webhook" to generate a secret. - Read more in our blog post. - {% endblocktrans %} -

    - {% endif %} - - {% if not integration.can_sync %} -

    - {% blocktrans trimmed %} - For more information on manually configuring a webhook, refer to - - our webhook documentation. - - {% endblocktrans %} -

    - {% endif %} - - {% if integration.has_sync %} -
    - {% csrf_token %} - -
    - {% endif %} - -

    {% trans "Recent Activity" %}

    - -
    - -
    - -
    - {% csrf_token %} - -
    -{% endblock %} diff --git a/readthedocs/templates/projects/legend.html b/readthedocs/templates/projects/legend.html deleted file mode 100644 index bb38a7892cb..00000000000 --- a/readthedocs/templates/projects/legend.html +++ /dev/null @@ -1,34 +0,0 @@ -{% load i18n %} - -
    -
    {% trans "External Links" %}
    -
    `{% trans "Link text" %} <http://example.com/>`_
    - -
    {% trans "Internal Links" %}
    -
    :doc:`heading`
    - -
    {% trans "Bold" %}
    -
    **{% trans "text to bold" %}**
    - -
    {% trans "Emphasized" %}
    -
    *{% trans "text to emphasize" %}*
    - -
    {% trans "Lists" %}
    -
    -
      -
    • * {% trans "Item" %} 1
    • -
    • * {% trans "Item" %} 2
    • -
    -
      -
    • #. {% trans "Item" %} 1
    • -
    • #. {% trans "Item" %} 2
    • -
    -
    - -
    {% trans "Source Code" %}
    -
    :: -

    {% trans "e.g. Check out this code" %}::

    -
        {% trans "actual code indented" %}
    -
    -
    -

    {% trans "reStructuredText Primer" %}

    diff --git a/readthedocs/templates/projects/notifications/deprecated_build_image_used_email.html b/readthedocs/templates/projects/notifications/deprecated_build_image_used_email.html deleted file mode 100644 index 05c45695145..00000000000 --- a/readthedocs/templates/projects/notifications/deprecated_build_image_used_email.html +++ /dev/null @@ -1,35 +0,0 @@ -{% extends "core/email/common.html" %} -{% block content %} -The build.image config key on .readthedocs.yaml has been deprecated, and will be removed on October 16, 2023. -We are sending weekly notifications about this issue to all impacted users, -as well as temporary build failures (brownouts) as the date approaches for those who haven't migrated their projects. - -The timeline for this deprecation is as follows: - -
      -
    • Monday, August 28, 2023: Do the first brownout (temporarily enforce this deprecation) for 12 hours: 00:01 PST to 11:59 PST (noon)
    • -
    • Monday, September 18, 2023: Do a second brownout (temporarily enforce this deprecation) for 24 hours: 00:01 PST to 23:59 PST (midnight)
    • -
    • Monday, October 2, 2023: Do a third and final brownout (temporarily enforce this deprecation) for 48 hours: 00:01 PST to October 3, 2023 23:59 PST (midnight)
    • -
    • Monday, October 16, 2023: Fully remove support for building documentation using "build.image" on the configuration file
    • -
    - -We have identified that the following projects which you maintain, and were built in the last year, are impacted by this deprecation: - -
      -{% for project in projects|slice:":15" %} -
    • {{ project.slug }}
    • -{% endfor %} -{% if projects.count > 15 %} -
    • ... and {{ projects.count|add:"-15" }} more projects.
    • -{% endif %} -
    - -Please use build.os on your configuration file to ensure that they continue building successfully and to stop receiving these notifications. -If you want to opt-out from these emails, you can edit your preferences in your account settings. - -For more information on how to use build.os, -read our blog post - -Get in touch with us via our support -and let us know if you are unable to use a configuration file for any reason. -{% endblock %} diff --git a/readthedocs/templates/projects/notifications/deprecated_build_webhook_email.html b/readthedocs/templates/projects/notifications/deprecated_build_webhook_email.html deleted file mode 100644 index d166360c861..00000000000 --- a/readthedocs/templates/projects/notifications/deprecated_build_webhook_email.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "core/email/common.html" %} -{% block content %} -

    Your project, {{ project.name }}, is currently using a legacy incoming webhook to trigger builds on Read the Docs. Effective April 1st, 2019, Read the Docs will no longer accept incoming webhooks through these endpoints.

    - -

    To continue building your Read the Docs project on changes to your repository, you will need to configure a new webhook with your VCS provider. You can find more information on how to configure a new webhook in our documentation, at:

    - -{% comment %}Plain text link because of text version of email{% endcomment %} -

    https://docs.readthedocs.io/page/webhooks.html#webhook-deprecated-endpoints

    -{% endblock %} diff --git a/readthedocs/templates/projects/notifications/deprecated_build_webhook_site.html b/readthedocs/templates/projects/notifications/deprecated_build_webhook_site.html deleted file mode 100644 index f2fa1e63e5c..00000000000 --- a/readthedocs/templates/projects/notifications/deprecated_build_webhook_site.html +++ /dev/null @@ -1 +0,0 @@ -Your project, {{ project.name }}, needs to be reconfigured in order to continue building automatically after April 1st, 2019. For more information, see our documentation on webhook integrations. diff --git a/readthedocs/templates/projects/notifications/deprecated_config_file_used_email.html b/readthedocs/templates/projects/notifications/deprecated_config_file_used_email.html deleted file mode 100644 index 100c6c0b9ae..00000000000 --- a/readthedocs/templates/projects/notifications/deprecated_config_file_used_email.html +++ /dev/null @@ -1,35 +0,0 @@ -{% extends "core/email/common.html" %} -{% block content %} -The Read the Docs build system will start requiring a configuration file v2 (.readthedocs.yaml) starting on September 25, 2023. -We are sending weekly notifications about this issue to all impacted users, -as well as temporary build failures (brownouts) as the date approaches for those who haven't migrated their projects. - -The timeline for this deprecation is as follows: - -
      -
    • Monday, July 24, 2023: Do the first brownout (temporarily enforce this deprecation) for 12 hours: 00:01 PST to 11:59 PST (noon)
    • -
    • Monday, August 14, 2023: Do a second brownout (temporarily enforce this deprecation) for 24 hours: 00:01 PST to 23:59 PST (midnight)
    • -
    • Monday, September 4, 2023: Do a third and final brownout (temporarily enforce this deprecation) for 48 hours: 00:01 PST to September 5, 2023 23:59 PST (midnight)
    • -
    • Monday, September 25, 2023: Fully remove support for building documentation without configuration file v2.
    • -
    - -We have identified that the following projects which you maintain, and were built in the last year, are impacted by this deprecation: - -
      -{% for project in projects|slice:":15" %} -
    • {{ project.slug }}
    • -{% endfor %} -{% if projects.count > 15 %} -
    • ... and {{ projects.count|add:"-15" }} more projects.
    • -{% endif %} -
    - -Please add a configuration file to your projects to ensure that they continue building successfully and to stop receiving these notifications. -If you want to opt-out from these emails, you can edit your preferences in your account settings. - -For more information on how to create a required configuration file, -read our blog post - -Get in touch with us via our support -and let us know if you are unable to use a configuration file for any reason. -{% endblock %} diff --git a/readthedocs/templates/projects/notifications/deprecated_github_webhook_email.html b/readthedocs/templates/projects/notifications/deprecated_github_webhook_email.html deleted file mode 100644 index b55a906c932..00000000000 --- a/readthedocs/templates/projects/notifications/deprecated_github_webhook_email.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "core/email/common.html" %} -{% block content %} -

    Your project, {{ project.name }}, is still configured to use GitHub Services to trigger builds on Read the Docs. Effective January 31, 2019, GitHub stopped processing requests using the Services feature, and so Read the Docs no longer receives notifications on updates to your repository.

    - -

    To continue building your Read the Docs project on changes to your repository, you will need to add a new webhook on your GitHub repository. You can either connect your GitHub account and configure a GitHub webhook integration, or you can add a generic webhook integration.

    - -

    You can find more information on our webhook intergrations in our documentation, at:

    - -{% comment %}Plain text link because of text version of email{% endcomment %} -

    https://docs.readthedocs.io/page/webhooks.html#webhook-github-services

    -{% endblock %} diff --git a/readthedocs/templates/projects/notifications/deprecated_github_webhook_site.html b/readthedocs/templates/projects/notifications/deprecated_github_webhook_site.html deleted file mode 100644 index 44401f76424..00000000000 --- a/readthedocs/templates/projects/notifications/deprecated_github_webhook_site.html +++ /dev/null @@ -1 +0,0 @@ -Your project, {{ project.name }}, needs to be reconfigured in order to build automatically on changes to your repository. For more information, see our documentation on webhook integrations. diff --git a/readthedocs/templates/projects/notifications/new_dashboard_email.html b/readthedocs/templates/projects/notifications/new_dashboard_email.html deleted file mode 100644 index b20e451e17f..00000000000 --- a/readthedocs/templates/projects/notifications/new_dashboard_email.html +++ /dev/null @@ -1,47 +0,0 @@ -{% extends "core/email/common.html" %} -{% block content %} -

    - Earlier this month we began the last phase of a project to retire our - original user interface and replace it with a completely new dashboard. -

    -

    - Documentation hosted on Read the Docs Business - will display this new dashboard in several places where documentation - readers interact with our application: documentation authentication and our - default documentation error pages. -

    -

    - Below is a summary of what is changing, however we cover what will be - changing and when to expect these changes in more detail on our website: -

    -

    - - Rollout of our new dashboard - -

    - -
    - -

    - On Dec 10th we will make our new dashboard the default - dashboard for users logging into Read the Docs Business - from our website. This change will mainly affect project maintainers, - especially maintainers that have not yet switched to the new dashboard. -

    -

    - At this same time, we will also begin using the new dashboard for - documentation authentication and documentation error pages. Documentation - readers will notice the new dashboard as they log in to view private - documentation and might notice updated error pages if they encounter an - HTTP error. -

    -

    - There will be no changes to user generated documentation - otherwise. -

    -

    - Projects can update to use these new pages in their documentation at - any point. If you would like to update your project to use these pages - before then, contact us. -

    -{% endblock content %} diff --git a/readthedocs/templates/projects/notifications/resource_usage_email.html b/readthedocs/templates/projects/notifications/resource_usage_email.html deleted file mode 100644 index 9403df55cc3..00000000000 --- a/readthedocs/templates/projects/notifications/resource_usage_email.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "core/email/common.html" %} -{% block content %} -

    Just a heads up, builds for the project {{ project.name }} are failing -due to high resource usage.

    - -

    Common reasons for high resource usage include importing extraneous modules or modules that require a compilation step, a problem with your Sphinx configuration resulting in high memory usage or an endless loop, or having a large documentation set.

    - -

    Because Read the Docs is a free, shared resource, we must put resource limits on build processes in order to maintain fair queueing for all projects. We are happy to raise limits on your project, but please consider donating to Read the Docs, either financially or with your time.

    - -

    For more information on contributing, you can read more here:

    - -

    http://docs.readthedocs.io/page/contribute.html

    -{% endblock %} diff --git a/readthedocs/templates/projects/notifications/resource_usage_site.html b/readthedocs/templates/projects/notifications/resource_usage_site.html deleted file mode 100644 index 577f1bbc609..00000000000 --- a/readthedocs/templates/projects/notifications/resource_usage_site.html +++ /dev/null @@ -1,3 +0,0 @@ -Builds for the project {{ project.name }} are failing due to high resource -usage. Please reduce your usage or consider -donating to raise your resource limits. diff --git a/readthedocs/templates/projects/onboard_detail.html b/readthedocs/templates/projects/onboard_detail.html deleted file mode 100644 index 4ce66509653..00000000000 --- a/readthedocs/templates/projects/onboard_detail.html +++ /dev/null @@ -1,77 +0,0 @@ -{% load i18n %} - - - -{% if is_project_admin %} -
    - {% if not onboard.build %} -

    {% trans "Start building your documentation" %}

    -

    - {% blocktrans trimmed %} - This project has not been built yet. - Try building the latest version now, - or if you would like to build a specific version, - select the version below and your documentation build will be triggered. - {% endblocktrans %} -

    - -
    - {% csrf_token %} - - -
    - {% else %} - - {% if onboard.build.finished %} - {% if onboard.build.success %} - {% comment %}Last build passed{% endcomment %} -

    {% trans "Your documentation is ready to use" %}

    - -
    -

    - {% blocktrans trimmed %} - Your documentation has been built. - Ensure your documentation is kept up to date with every commit to - your repository, by - setting up a webhook. - {% endblocktrans %} -

    - - -
    - {% else %} - {% comment %}Last build failed{% endcomment %} -

    {% trans "Your documentation failed to build" %}

    - -
    -

    - {% blocktrans trimmed %} - There was a problem building your documentation, - you can see what went wrong in the build output. - If you need more help, check out some of the - problems frequently encountered - during builds. - {% endblocktrans %} -

    - - -
    - {% endif %} - {% else %} - - {% url "builds_detail" project_slug=project.slug build_pk=onboard.build.pk as latest_build_url %} -

    {% trans "Your documentation is building" %}

    - -

    - {% blocktrans trimmed %} - You'll be able to view your documentation in a minute or two, - once your project is done building. - {% endblocktrans %} -

    - {% endif %} - - {% endif %} -
    - {% endif %} - - diff --git a/readthedocs/templates/projects/onboard_import.html b/readthedocs/templates/projects/onboard_import.html deleted file mode 100644 index cb316fdbd43..00000000000 --- a/readthedocs/templates/projects/onboard_import.html +++ /dev/null @@ -1,29 +0,0 @@ -{% load i18n %} - - -
    -

    {% trans "Ready to share your documentation" %}{% if request.user.first_name %}, {{ request.user.first_name }}{% endif %}?

    - - {% with tutorial_url="https://docs.readthedocs.io/page/tutorial/" template_project_url="https://github.com/readthedocs/tutorial-template/" %} -
    -

    - {% blocktrans trimmed %} - You don't have any projects yet, but you can start building documentation by importing one. - Not sure how to start documenting your project? - Check out the Tutorial to learn how. - {% endblocktrans %} -

    - -

    - {% url "projects_import" as projects_import_url %} - {% blocktrans trimmed %} - In a hurry? Fork our template project on GitHub, - and import it. - {% endblocktrans %} -

    - - -
    - {% endwith %} -
    - diff --git a/readthedocs/templates/projects/project_advertising.html b/readthedocs/templates/projects/project_advertising.html deleted file mode 100644 index bf7da9881eb..00000000000 --- a/readthedocs/templates/projects/project_advertising.html +++ /dev/null @@ -1,125 +0,0 @@ -{% extends "projects/project_edit_base.html" %} -{% load i18n %} -{% load static %} - -{% block title %}{% trans "Documentation Advertising" %}{% endblock %} - -{% block extra_links %} - -{% endblock %} - -{% block project-ads-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Documentation Advertising" %}{% endblock %} - -{% block project_edit_content %} -

    - {% blocktrans trimmed %} - Read the Docs is an open source project. - In order to maintain service, we rely on both the - support of our users, and from sponsor support. - {% endblocktrans %} -

    - -

    - {% blocktrans trimmed %} - We will periodically run advertisements on built documentation pages for - sponsors, however we have strict guidelines on advertisements: - {% endblocktrans %} -

    - -
      -
    • - {% blocktrans trimmed %} - We don't give sponsors access to user information. - {% endblocktrans %} -
    • -
    • - {% blocktrans trimmed %} - We only report the number of impressions and number of ad clicks. - {% endblocktrans %} -
    • -
    • - {% blocktrans trimmed %} - We only allow image and text ads which we host ourselves. - There are no advertiser-supplied scripts running on Read the Docs. - {% endblocktrans %} -
    • -
    - -

    - {% blocktrans trimmed %} - For more details on advertising on Read the Docs - including the privacy protections we have in place for users - and community advertising - we run on behalf of the open source community, - see our documentation. - {% endblocktrans %} -

    - -

    {% trans "Opting out" %}

    - -

    - {% url 'account_advertising' as ads_preferences_url %} - {% blocktrans trimmed %} - In addition to the advertising preferences we have for individual users, - we have multiple ways for projects to opt out of advertising on Read the Docs. - {% endblocktrans %} -

    - -
      -
    • - {% blocktrans trimmed %} - If you are part of a company that uses Read the Docs to host documentation for a commercial product, - please consider Read the Docs for Business - which offers a completely ad-free experience, - private repositories, private documentation, additional build resources, and dedicated support. - {% endblocktrans %} -
    • - -
    • - {% url "gold_detail" as gold_detail %} - {% blocktrans trimmed %} - By becoming a Gold member to Read the Docs, - you may remove advertising from your projects for all visitors. - {% endblocktrans %} -
    • - -
    • - {% blocktrans trimmed %} - Project owners can opt out of paid advertisements - for their projects. - Readers will still see community ads for open source projects and conferences. - {% endblocktrans %} -
    • - -
    • - {% blocktrans trimmed %} - If you would like to completely remove advertising from your open source project, - but both Read the Docs for Business and our Gold memberships don't seem like the right fit, - please get in touch - to discuss alternatives to advertising. - {% endblocktrans %} -
    • -
    - - - -
    - {% csrf_token %} - {{ form.as_p }} - -

    - - {% blocktrans trimmed %} - If you are a company hosting commercial documentation on our community site, - we do not allow removing paid advertisements on your documentation. - Please consider Read the Docs for Business or a Gold membership. - {% endblocktrans %} - -

    - -

    - -

    -
    -{% endblock %} diff --git a/readthedocs/templates/projects/project_create.html b/readthedocs/templates/projects/project_create.html deleted file mode 100644 index 4d4441a5ce5..00000000000 --- a/readthedocs/templates/projects/project_create.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends "dashboard/base_dashboard.html" %} -{% load i18n %} - -{% block dash-nav-create %}active{% endblock %} - -{% block title %}{% trans "Create a new project" %}{% endblock %} - -{% block content-header %} -

    {% trans "Create a New Project" %}

    -{% endblock %} - -{% block content %} -

    - {% trans "Create new documentation here. If you already have docs in a public repository," %} - {% trans "import an existing project" %}. -

    -
    {% csrf_token %} - {{ form.as_p }} -

    -
    -{% endblock %} diff --git a/readthedocs/templates/projects/project_dashboard.html b/readthedocs/templates/projects/project_dashboard.html deleted file mode 100644 index aa1a6e768df..00000000000 --- a/readthedocs/templates/projects/project_dashboard.html +++ /dev/null @@ -1,31 +0,0 @@ -{% extends 'projects/project_dashboard_base.html' %} - -{% block dashboard-onboard-extra %} - - {% if not request.user.gold.count and request.user.projects.count > 1 %} -
    -

    Support Read the Docs

    - -

    - Read the Docs depends on users like you to help us keep the site sustainable. -

    -

    - We now offer Read the Docs Gold membership to allow folks to support us. - Gold members allow us to keep the site running, and improving all the time. - If you find value in Read the Docs, please consider becoming a member. -

    - -
    - -
    -
    - {% else %} -
    -

    Thanks!

    -

    - Your support of Read the Docs helps make the site better each and every month. -

    -
    - {% endif %} - -{% endblock %}} diff --git a/readthedocs/templates/projects/project_dashboard_base.html b/readthedocs/templates/projects/project_dashboard_base.html deleted file mode 100644 index 875c1080aed..00000000000 --- a/readthedocs/templates/projects/project_dashboard_base.html +++ /dev/null @@ -1,154 +0,0 @@ -{% extends "base.html" %} -{% load i18n %} -{% load pagination_tags %} -{% load socialaccount %} - -{% block title %}{% trans "Project Dashboard" %}{% endblock %} - -{% block dash-nav-projects %}active{% endblock %} - -{% block content %} - {% url "projects_import" as projects_import_url %} - {% url "socialaccount_connections" as social_accounts %} - - -
    - {% if project_list %} - - {% if filter.qs.count > 0 %} -
    -

    {% trans "Important Versions" %}

    -
    - -
    - {% autopaginate filter.qs 15 %} - - -
    -
    - -
    -
    -
      - {% include "core/filter_list.html" %} -
    -
    -
    - -
    -
    - - - {% paginate %} - -
    - {% endif %} - - - - {% else %} - - {% include 'projects/onboard_import.html' %} - - {% endif %} -
    - - - -
    - - - - - - - {% get_social_accounts request.user as accounts %} - {% if not accounts.github.0 %} -
    -

    {% trans "Connect your Accounts" %}

    - -

    - {% blocktrans trimmed %} - Have a GitHub account? Connect your account and import your existing projects automatically. - {% endblocktrans %} -

    - -
    - -
    -
    - {% endif %} - - - {% block dashboard-onboard-extra %} - {% endblock %} - -
    -

    {% trans "Learn More" %}

    -

    - {% blocktrans trimmed with rtd_docs_url="https://docs.readthedocs.io/" %} - Check out the documentation for Read the Docs. - It contains lots of information about how to get the most out of RTD. - {% endblocktrans %} -

    -
    -
    - -{% endblock %} diff --git a/readthedocs/templates/projects/project_delete.html b/readthedocs/templates/projects/project_delete.html deleted file mode 100644 index 150c90facff..00000000000 --- a/readthedocs/templates/projects/project_delete.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "projects/base_project.html" %} -{% load i18n %} - -{% block title %}{% blocktrans with project.name as name %}Delete {{ name }}?{% endblocktrans %}{% endblock %} - -{% block content-header %}

    {% blocktrans with project.name as name %}Delete {{ name }}?{% endblocktrans %}

    {% endblock %} - -{% block content %} - - {% if is_superproject %} - {% url "projects_subprojects" project.slug as subproject_url %} -

    - {% blocktrans trimmed %} - This project has subprojects under it. - Deleting this project will make them to become regular projects. - This will break the URLs of all its subprojects and they will be served normally as other projects. - {% endblocktrans %} -

    - {% endif %} - -

    {% trans "You sure?" %} O_o

    - -
    {% csrf_token %} - -
    -{% endblock %} diff --git a/readthedocs/templates/projects/project_detail.html b/readthedocs/templates/projects/project_detail.html deleted file mode 100644 index 00a0f1ad726..00000000000 --- a/readthedocs/templates/projects/project_detail.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "projects/base_project.html" %} - -{% block body_class %}project_detail{% endblock %} - -{% block title %}{{ project.name }}{% endblock %} - -{% block project_editing %} - {% with overview_active="active" %} - {% include "core/project_bar.html" %} - {% endwith %} -{% endblock %} - -{% block content %} - {% include "core/notifications.html" with notifications=notifications %} - {% include "core/project_details.html" %} -{% endblock %} diff --git a/readthedocs/templates/projects/project_edit.html b/readthedocs/templates/projects/project_edit.html deleted file mode 100644 index a48d7958690..00000000000 --- a/readthedocs/templates/projects/project_edit.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends "projects/project_edit_base.html" %} -{% load i18n %} - -{% block project-edit-active %}active{% endblock %} -{% block nav-dashboard %} class="active"{% endblock %} - - -{% block title %}{% trans "Edit Project" %}{% endblock %} - -{% block editing-option-edit-proj %}class="active"{% endblock %} -{% block editing-option-view %}active{% endblock %} - -{% block project_edit_content_header %}{% trans "Settings" %}{% endblock %} - -{% block project_edit_content %} -
    {% csrf_token %} - {{ form.as_p }} -

    - - {% trans "or" context "The 'or' is in between 'Save' and 'Delete project'" %} - {% trans "Delete project" %} -

    -
    -{% endblock %} diff --git a/readthedocs/templates/projects/project_edit_base.html b/readthedocs/templates/projects/project_edit_base.html deleted file mode 100644 index 1166e6379c4..00000000000 --- a/readthedocs/templates/projects/project_edit_base.html +++ /dev/null @@ -1,47 +0,0 @@ -{% extends "projects/base_project.html" %} - -{% block project_editing %} - {% with edit_active="active" %} - {% include "core/project_bar.html" %} - {% endwith %} -{% endblock %} -{% load i18n %} - -{% block body_class %}{{ block.super }} project-edit{% endblock %} - -{% block content %} - -{% endblock %} diff --git a/readthedocs/templates/projects/project_import.html b/readthedocs/templates/projects/project_import.html deleted file mode 100644 index e72fb89e065..00000000000 --- a/readthedocs/templates/projects/project_import.html +++ /dev/null @@ -1,244 +0,0 @@ -{% extends "base.html" %} -{% load static %} -{% load i18n %} -{% load socialaccount %} - -{% block title %}{% trans "Import a Remote Repository" %}{% endblock %} - -{% block extra_links %} - -{% endblock %} - -{% block extra_scripts %} - - - -{% endblock %} - - -{% block content %} - - - - {% block main_content %} -
    - - - - -

    {% trans "Import a Repository" %}

    - - {% if has_connected_accounts %} - {% block private-repo-tip %} -
    -

    - {% blocktrans trimmed %} - We're only showing public repositories. For private projects and other features, - please use Read the Docs for Business. - {% endblocktrans %} -

    -
    - {% endblock %} - {% endif %} -
    -
    -
    -
    - - - - - -
    -
    -
    -
    - - - -
    - {% endblock main_content %} - - {% block sidebar_content %} -
    - - {% block manual-import %} -
    -

    - {% blocktrans trimmed %} - You can import your project manually if it isn't listed here or - connected to one of your accounts. - {% endblocktrans %} -

    - -
    - -
    -
    - {% endblock %} - - {% block filter-repositories %} -
    -

    {% trans "Filter repositories" %}

    - -
      -
    • - - -
    • -
    -
    - {% endblock %} - -
    - {% endblock %} - -{% endblock %} diff --git a/readthedocs/templates/projects/project_list.html b/readthedocs/templates/projects/project_list.html deleted file mode 100644 index 17f0ec53078..00000000000 --- a/readthedocs/templates/projects/project_list.html +++ /dev/null @@ -1,43 +0,0 @@ -{% extends "projects/base_project.html" %} -{% load i18n %} - -{% load pagination_tags %} - -{% block title %} -{% blocktrans with tag.name as tag %}Projects tagged with {{ tag }}{% endblocktrans %} -{% endblock %} - -{% block nav-browse %}class="active"{% endblock %} - -{% block content-header %} -

    {% blocktrans with tag.name as tag %}Projects tagged with {{ tag }}{% endblocktrans %}

    -{% endblock %} - -{% block content %} - {% autopaginate project_list 15 %} - - -
    -
    - -
    -

    {% trans "Browse projects" %}

    -
    - -
    -
    - -
      - {% include "core/project_list_detailed.html" %} -
    - -
    -
    - -
    -
    - - - {% paginate %} - -{% endblock %} diff --git a/readthedocs/templates/projects/project_notifications.html b/readthedocs/templates/projects/project_notifications.html deleted file mode 100644 index a1c7e2f9141..00000000000 --- a/readthedocs/templates/projects/project_notifications.html +++ /dev/null @@ -1,83 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Email Notifications" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-proj %}class="active"{% endblock %} - -{% block project-notifications-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Email Notifications" %}{% endblock %} - -{% block project_edit_content %} -

    - {% trans "Configure email notifications to be sent on build failures." %} -

    - - {% if has_old_webhooks %} -

    - {% url 'projects_webhooks' project.slug as webhooks_url %} - {% blocktrans trimmed with webhooks_url=webhooks_url %} - Webhooks have been moved to their own page. - Go to the Webhooks page if you are looking for your webhooks. - {% endblocktrans %} -

    - {% endif %} - - {% if emails or urls %} -

    {% trans "Existing Notifications" %}

    -

    - {% if emails %} -

      -

      Emails

      - {% for email in emails %} -
    • - {{ email }} -
    • - {% endfor %} -
    - {% endif %} - - {% if urls %} -
      -

      Webhooks

      - {% for url in urls %} -
    • - {{ url }} -
    • - {% endfor %} -
    - {% endif %} - -

    {% trans "Remove Notifications" %}

    -

    -

    - {% csrf_token %} - - -
    -

    - {% endif %} - - -

    {% trans "New Email Notifications" %}

    -

    - {% trans "Add an email address to notify" %} -

    -
    - {% csrf_token %} - {{ email_form }} -

    - -

    -
    -{% endblock %} diff --git a/readthedocs/templates/projects/project_notifications_form.html b/readthedocs/templates/projects/project_notifications_form.html deleted file mode 100644 index c47b9e3ad29..00000000000 --- a/readthedocs/templates/projects/project_notifications_form.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Add Email Notification" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-proj %}class="active"{% endblock %} - -{% block project-notifications-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Add Email Notification" %}{% endblock %} - -{% block project_edit_content %} -

    - {% trans "Add an email address to notify" %} -

    -
    - {% csrf_token %} - {{ form.as_p }} -

    - -

    -
    -{% endblock %} diff --git a/readthedocs/templates/projects/project_resync_webhook.html b/readthedocs/templates/projects/project_resync_webhook.html deleted file mode 100644 index b1d1125c11b..00000000000 --- a/readthedocs/templates/projects/project_resync_webhook.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "projects/base_project.html" %} -{% load i18n %} - -{% block title %}Resync webhook{% endblock title %} - -{% block content-header %}

    Resync webhook

    {% endblock %} - -{% block content %} -

    {% trans "You sure?" %} O_o

    - -
    {% csrf_token %} - -
    -{% endblock %} diff --git a/readthedocs/templates/projects/project_traffic_analytics.html b/readthedocs/templates/projects/project_traffic_analytics.html deleted file mode 100644 index 078719a0ca9..00000000000 --- a/readthedocs/templates/projects/project_traffic_analytics.html +++ /dev/null @@ -1,116 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} -{% load static %} - -{% block title %}{% trans "Traffic Analytics" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block project-traffic-analytics-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Traffic Analytics" %}{% endblock %} - -{% block project_edit_content %} - - {% if not enabled %} - {% block disabled %} - {% include 'projects/includes/feature_disabled.html' %} - {% endblock %} - {% endif %} - -

    {% trans "Top viewed pages in the past 30 days" %}

    - -
    -
    -
      - {% for row in top_pages_200 %} -
    • - {{ row.path }} - {{ row.count }} -
    • - {% empty %} -
    • -

      - {% trans 'No data available.' %} -

      -
    • - {% endfor %} -
    -
    -
    - -
    - -

    {% trans "Daily pageview totals" %}

    - - -
    - -
    - - {% if track_404 %} -

    {% trans "Not Found (404) pages" %}

    - -
    -
    -
      - {% for row in top_pages_404 %} -
    • - {{ row.path }} - {{ row.count }} -
    • - {# TODO: Add a `Create Redirect` button here with the URL pre-filled as the `from` URL #} - {% empty %} -
    • -

      - {% trans "No data available." %} -

      -
    • - {% endfor %} -
    -
    -
    - - - {% blocktrans %} - * The way that we track 404 pages is on our backend hosting. - It's possible the number of times each page is viewed is undercounted because of caching in the browser or in a CDN. - {% endblocktrans %} - - {% endif %} - -{% endblock %} - -{% block extra_scripts %} - - -{% endblock %} - -{% block extra_links %} - - -{% endblock %} - -{% block footerjs %} - -{% endblock %} diff --git a/readthedocs/templates/projects/project_translations.html b/readthedocs/templates/projects/project_translations.html deleted file mode 100644 index c270148f553..00000000000 --- a/readthedocs/templates/projects/project_translations.html +++ /dev/null @@ -1,82 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Edit Translations" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-translations %}class="active"{% endblock %} - -{% block project-translations-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Translations" %}{% endblock %} - -{% block project_edit_content %} -

    - {% blocktrans trimmed %} - To add a translation to your project, select a project below. - {% endblocktrans %} -

    - - {% if not project.supports_translations %} - {% url 'projects_edit' project_slug=project.slug as project_settings_url %} -

    - {% blocktrans trimmed with project_settings_url=project_settings_url %} - This project is configured with a versioning scheme that doesn't support translations. - {% endblocktrans %} -

    - {% elif project.main_language_project %} -

    - {% blocktrans trimmed with language=project.get_language_display main_project=project.main_language_project.name %} - This project is already configured as the {{ language }} translation of - "{{ main_project }}". - Nested translations are not supported. - {% endblocktrans %} -

    - - - {% blocktrans trimmed with main_project=project.main_language_project.name %} - View translations of "{{ main_project }}". - {% endblocktrans %} - - {% else %} -

    {% trans "Existing Translations" %}

    -
    -
    -
    - -
    -
    -
    -

    - {% trans "Choose which project you would like to add as a translation." %} -

    -
    - {% csrf_token %} - {{ form.as_p }} - -
    - {% endif %} -{% endblock %} diff --git a/readthedocs/templates/projects/project_translations_form.html b/readthedocs/templates/projects/project_translations_form.html deleted file mode 100644 index b4718b4455b..00000000000 --- a/readthedocs/templates/projects/project_translations_form.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Add Translation" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-translations %}class="active"{% endblock %} - -{% block project-translations-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Add Translation" %}{% endblock %} - -{% block project_edit_content %} -

    - {% blocktrans trimmed %} - To add a translation to your project, select a project below. - {% endblocktrans %} -

    - - {% if not project.supports_translations %} - {% url 'projects_edit' project_slug=project.slug as project_settings_url %} -

    - {% blocktrans trimmed with project_settings_url=project_settings_url %} - This project is configured with a versioning scheme that doesn't support translations. - {% endblocktrans %} -

    - {% elif project.main_language_project %} -

    - {% blocktrans trimmed with language=project.get_language_display main_project=project.main_language_project.name %} - This project is already configured as the {{ language }} translation of - "{{ main_project }}". - Nested translations are not supported. - {% endblocktrans %} -

    - - - {% blocktrans trimmed with main_project=project.main_language_project.name %} - View translations of "{{ main_project }}". - {% endblocktrans %} - - {% else %} -
    {% csrf_token %} - {{ form.as_p }} - -
    - {% endif %} -{% endblock %} diff --git a/readthedocs/templates/projects/project_users.html b/readthedocs/templates/projects/project_users.html deleted file mode 100644 index 91eca98e12d..00000000000 --- a/readthedocs/templates/projects/project_users.html +++ /dev/null @@ -1,56 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} -{% load gravatar %} - -{% block title %}{% trans "Edit Maintainers" %}{% endblock %} - -{% block project-users-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Maintainers" %}{% endblock %} - -{% block project_edit_content %} -

    - {% trans "This allows you to add maintainers to your project. It gives them admin access to the project, so be careful!" %} -

    - -
    -
    -
    -
      - {% for user in users %} -
    • - - {% gravatar user.email 24 %} - - {{ user.get_full_name|default:user.username }} - - -
        -
      • - {% if not is_last_user %} -
        - {% csrf_token %} - - -
        - {% endif %} -
      • -
      -
    • - {% endfor %} - - {% include "invitations/includes/invitation_list.html" with invitations=invitations %} -
    -
    -
    -
    - -
    -

    {% trans "Add maintainer" %}

    -
    - {% csrf_token %} - {{ form.as_p }} - -
    -
    -{% endblock %} diff --git a/readthedocs/templates/projects/project_users_form.html b/readthedocs/templates/projects/project_users_form.html deleted file mode 100644 index 8223aaa7175..00000000000 --- a/readthedocs/templates/projects/project_users_form.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Add Maintainer" %}{% endblock %} - -{% block project-users-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Add Maintainer" %}{% endblock %} - -{% block project_edit_content %} -

    - {% trans "This allows you to add maintainers to your project. It gives them admin access to the project, so be careful!" %} -

    - -
    -
    - {% csrf_token %} - {{ form.as_p }} - -
    -
    -{% endblock %} diff --git a/readthedocs/templates/projects/project_version_detail.html b/readthedocs/templates/projects/project_version_detail.html deleted file mode 100644 index 6d0b0303e60..00000000000 --- a/readthedocs/templates/projects/project_version_detail.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends "projects/base_project.html" %} - -{% load crispy_forms_tags %} -{% load i18n %} -{% load privacy_tags %} - -{% block title %}{{ version.slug }} - {{ version.project.name }}{% endblock %} - - -{% block project_editing %} - {% with versions_active="active" %} - {% include "core/project_bar.html" %} - {% endwith %} -{% endblock %} - -{% block content-header %}

    {% blocktrans with version.name as version_name %}{{ version_name }}{% endblocktrans %}

    {% endblock %} - -{% block content %} -

    Editing {{ version.slug }}

    - - {% if request.user|is_admin:project %} - {% if not version.active and version.built %} -
    - {% csrf_token %} -
    -

    - {# We are submitting the form using javascript because it breaks the UI design if we use buttons #} - {% blocktrans trimmed %} - This version is inactive but its documentation is still available online. - You can delete this version's documentation if you want to remove it completely. - {% endblocktrans %} -

    - {% endif %} - {% endif %} - - {% crispy form %} - -{% endblock %} diff --git a/readthedocs/templates/projects/project_version_list.html b/readthedocs/templates/projects/project_version_list.html deleted file mode 100644 index 365d17d8f2b..00000000000 --- a/readthedocs/templates/projects/project_version_list.html +++ /dev/null @@ -1,153 +0,0 @@ -{% extends "projects/base_project.html" %} -{% load i18n %} -{% load projects_tags %} - -{% block title %} -Versions -{% endblock title %} - -{% block project_editing %} - {% with versions_active="active" %} - {% include "core/project_bar.html" %} - {% endwith %} -{% endblock %} - - -{% block content %} - -
    - -
    -
    - -
    -

    {% trans "Active Versions" %}

    -
    - -
    -
    -
      - {% for version in active_versions|sort_version_aware %} - {% block active-versions %} - {% with absolute_url=version.get_absolute_url %} -
    • - {# Link to the docs #} - {{ version.slug }} - - {% if is_project_admin %} - - {{ version.get_privacy_level_display }} - - {% endif %} - - {% if not version.slug in version.identifier %} - {{ version.identifier_friendly|truncatechars:24 }} - {% endif %} - - {% if is_project_admin %} - - {% else %} - - {% endif %} - -
    • - {% endwith %} - {% endblock active-versions %} - - {% empty %} -
    • -

      - {% trans "No active versions." %} -

      -
    • - {% endfor %} -
    -
    -
    - -
    -
    - - {% if is_project_admin or request.user.is_staff %} -
    -
    - - {% if inactive_versions or request.GET.version_filter %} -
    -

    {% trans "Activate a version" %}

    -

    {% trans "Active versions are built whenever new code is pushed to that branch or tag." %}

    -
    - - {# Version search #} - - -
    -
    -
      - {% for version in inactive_versions|sort_version_aware %} - - {% block inactive-versions %} -
    • - {# Link to the docs #} - {{ version.slug }} - - - {% if is_project_admin %} - - {{ version.get_privacy_level_display }} - - {% endif %} - - {% if not version.slug in version.identifier_friendly %} - {{ version.identifier_friendly|truncatechars:24 }} - {% endif %} - - {% if is_project_admin %} - - {% endif %} - -
    • - {% endblock inactive-versions %} - - {% empty %} -
    • {% trans "No versions found" %}
    • - {% endfor %} -
    -
    -
    - {% endif %} - - - -
    -
    - - {% if total_inactive_versions_count > max_inactive_versions %} -

    - {% blocktrans trimmed %} - Showing the first {{ max_inactive_versions }} of {{ total_inactive_versions_count }} inactive versions.. - {% endblocktrans %} -

    - {% endif %} - - {% endif %} - -
    -{% endblock %} diff --git a/readthedocs/templates/projects/project_version_states_help_text.html b/readthedocs/templates/projects/project_version_states_help_text.html deleted file mode 100644 index 0ba0c003ca7..00000000000 --- a/readthedocs/templates/projects/project_version_states_help_text.html +++ /dev/null @@ -1,7 +0,0 @@ -{% load i18n %} - -

    - {% blocktrans trimmed with docs_link="https://docs.readthedocs.io/page/versions.html#version-states" %} - Learn more about states here. - {% endblocktrans %} -

    diff --git a/readthedocs/templates/projects/project_version_submit.html b/readthedocs/templates/projects/project_version_submit.html deleted file mode 100644 index 027ec80f96d..00000000000 --- a/readthedocs/templates/projects/project_version_submit.html +++ /dev/null @@ -1,5 +0,0 @@ -{% load i18n %} - -

    - -

    diff --git a/readthedocs/templates/projects/projectrelationship_form.html b/readthedocs/templates/projects/projectrelationship_form.html deleted file mode 100644 index 5c8f7f17845..00000000000 --- a/readthedocs/templates/projects/projectrelationship_form.html +++ /dev/null @@ -1,48 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Subprojects" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-proj %}class="active"{% endblock %} - -{% block project-subprojects-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Subprojects" %}{% endblock %} - -{% block project_edit_content %} -

    - {% blocktrans trimmed %} - Using subprojects allows you to serve multiple projects from the same domain as your main project. Learn more. - {% endblocktrans %} -

    - - {% if object %} -
    - {% csrf_token %} - {{ form.as_p }} - -
    - -
    - {% csrf_token %} - -
    - {% else %} -
    - {% csrf_token %} - {{ form.as_p }} - -
    - {% endif %} - -{% endblock %} diff --git a/readthedocs/templates/projects/projectrelationship_list.html b/readthedocs/templates/projects/projectrelationship_list.html deleted file mode 100644 index de4e0be73ba..00000000000 --- a/readthedocs/templates/projects/projectrelationship_list.html +++ /dev/null @@ -1,88 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Subprojects" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block editing-option-edit-proj %}class="active"{% endblock %} - -{% block project-subprojects-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Subprojects" %}{% endblock %} - -{% block project_edit_content %} -

    - {% blocktrans trimmed %} - Subprojects are projects hosted from the same URL as their parent project. - This is useful for organizing multiple projects under a custom domain. - {% endblocktrans %} -

    - - {% if superproject %} -

    - {% blocktrans trimmed with project=superproject.name %} - This project is already configured as a subproject of {{ project }}. - Nested subprojects are not currently supported. - {% endblocktrans %} -

    - - - {% blocktrans trimmed with project=superproject.name %} - View subprojects of {{ project }} - {% endblocktrans %} - - {% else %} - - -
    -
    -
    - -
    -
    -
    - {% endif %} -{% endblock %} diff --git a/readthedocs/templates/projects/projects_search_analytics.html b/readthedocs/templates/projects/projects_search_analytics.html deleted file mode 100644 index de801d87103..00000000000 --- a/readthedocs/templates/projects/projects_search_analytics.html +++ /dev/null @@ -1,90 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} -{% load static %} - -{% block title %}{% trans "Search Analytics" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block project-search-analytics-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Search Analytics" %}{% endblock %} - -{% block project_edit_content %} - - {% if not enabled %} - {% block disabled %} - {% include 'projects/includes/feature_disabled.html' with project=project %} - {% endblock %} - {% endif %} - -

    {% trans "Top queries in the past 30 days" %}

    -
    -
    -
      - {% for query, count, total_results in queries %} -
    • - {{ query }} - ({{ total_results }} result{{ total_results|pluralize:"s" }}) - - {{ count }} search{{ count|pluralize:"es" }} - -
    • - {% empty %} -
    • -

      - {% trans 'No data available.' %} -

      -
    • - {% endfor %} -
    -
    -
    - -
    - {% if query_count_of_1_month.labels and query_count_of_1_month.int_data %} -

    {% trans "Daily search totals" %}

    - - {% endif %} - -
    -
    - -
    - -{% endblock %} - -{% block extra_scripts %} - - -{% endblock %} - -{% block extra_links %} - - -{% endblock %} - -{% block footerjs %} - {% if query_count_of_1_month.labels and query_count_of_1_month.int_data %} - - {% endif %} -{% endblock %} diff --git a/readthedocs/templates/projects/pull_requests_form.html b/readthedocs/templates/projects/pull_requests_form.html deleted file mode 100644 index 053d66cc909..00000000000 --- a/readthedocs/templates/projects/pull_requests_form.html +++ /dev/null @@ -1,3 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{# This is just a placeholder to satisfy tests. This template is only implemented in ext-theme #} diff --git a/readthedocs/templates/projects/samples/getting_started.rst.html b/readthedocs/templates/projects/samples/getting_started.rst.html deleted file mode 100644 index d6293e1bcb8..00000000000 --- a/readthedocs/templates/projects/samples/getting_started.rst.html +++ /dev/null @@ -1,3 +0,0 @@ -{% load i18n %} - -{% trans "Here's a place to describe how to get up and running with your project" %} diff --git a/readthedocs/templates/projects/samples/installation.rst.html b/readthedocs/templates/projects/samples/installation.rst.html deleted file mode 100644 index deb424ebe44..00000000000 --- a/readthedocs/templates/projects/samples/installation.rst.html +++ /dev/null @@ -1,3 +0,0 @@ -{% load i18n %} - -{% blocktrans with project.name as name %}Here is where you can describe how to install {{ name }}{% endblocktrans %} diff --git a/readthedocs/templates/projects/tag_list.html b/readthedocs/templates/projects/tag_list.html deleted file mode 100644 index a5be4016648..00000000000 --- a/readthedocs/templates/projects/tag_list.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends "projects/base_project.html" %} -{% load i18n %} - -{% block title %}{% trans "Popular tags" %}{% endblock %} - -{% block content-header %} -

    {% trans "Popular tags" %}

    -{% endblock %} - -{% block content %} - -{% endblock %} diff --git a/readthedocs/templates/projects/webhook_exchange_detail.html b/readthedocs/templates/projects/webhook_exchange_detail.html deleted file mode 100644 index 96363648ef5..00000000000 --- a/readthedocs/templates/projects/webhook_exchange_detail.html +++ /dev/null @@ -1,39 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Webhooks" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block project-webhooks-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Exchange" %}{% endblock %} - -{% block project_edit_content %} -

    Response

    - -
    -
    -
    Status:
    -
    {{ httpexchange.status_code }}
    - - {% for header, value in httpexchange.response_headers.items %} -
    {{ header }}:
    -
    {{ value }}
    - {% endfor %} -
    - {{ httpexchange.formatted_response_body }} -
    - -

    Request

    - -
    -
    - {% for header, value in httpexchange.request_headers.items %} -
    {{ header }}:
    -
    {{ value }}
    - {% endfor %} -
    - {{ httpexchange.formatted_request_body }} -
    -{% endblock %} diff --git a/readthedocs/templates/projects/webhook_form.html b/readthedocs/templates/projects/webhook_form.html deleted file mode 100644 index b089c3312b0..00000000000 --- a/readthedocs/templates/projects/webhook_form.html +++ /dev/null @@ -1,71 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Webhooks" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block project-webhooks-active %}active{% endblock %} - -{% block project_edit_content_header %}{% trans "Webhooks" %}{% endblock %} - -{% block project_edit_content %} - -

    - {% blocktrans trimmed with docs_url="https://docs.readthedocs.io/page/build-notifications.html#build-status-webhooks" %} - We’ll send a POST request to the URL with the JSON payload below on the selected events. - Check our docs for more information. - {% endblocktrans %} -

    - - {# If the webhook was created from the old implementation, it doesn't have a custom payload. #} - {% if object.pk and not object.payload %} -

    - {% blocktrans trimmed with docs_url="https://docs.readthedocs.io/page/build-notifications.html#legacy-webhooks" %} - This webhook was created from our old implementation and doesn't have a custom payload. - Check our docs for the payload description or edit the payload to set a custom one. - {% endblocktrans %} -

    - {% endif %} - -
    - {% csrf_token %} - {{ form.as_p }} - -
    - - {% if object.pk %} -
    - {% csrf_token %} - -
    - -

    {% trans "Recent Activity" %}

    - -
    - -
    - {% endif %} - -{% endblock %} diff --git a/readthedocs/templates/projects/webhook_list.html b/readthedocs/templates/projects/webhook_list.html deleted file mode 100644 index b7e6c63f373..00000000000 --- a/readthedocs/templates/projects/webhook_list.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends "projects/project_edit_base.html" %} - -{% load i18n %} - -{% block title %}{% trans "Webhooks" %}{% endblock %} - -{% block nav-dashboard %} class="active"{% endblock %} - -{% block project-webhooks-active %}active{% endblock %} -{% block project_edit_content_header %}{% trans "Webhooks" %}{% endblock %} - -{% block project_edit_content %} - - -
    -
    -
      - {% for webhook in object_list %} -
    • - - {{ webhook.url|truncatechars:35 }} - - - {% for event in webhook.events.all|slice:":2" %} - {{ event.name }}{% endfor %}{% if webhook.events.all|length > 2 %}...{% endif %} - - -
    • - {% empty %} -
    • -

      - {% trans "No webhooks found." %} -

      -
    • - {% endfor %} -
    -
    -
    -{% endblock %} diff --git a/readthedocs/templates/rest_framework/api.html b/readthedocs/templates/rest_framework/api.html deleted file mode 100644 index d5110d43cbe..00000000000 --- a/readthedocs/templates/rest_framework/api.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "rest_framework/base.html" %} -{% load static %} - -{% block branding %} - - Read the Docs - -{% endblock %} - -{% block userlinks %}{% endblock %} diff --git a/readthedocs/templates/search/elastic_search.html b/readthedocs/templates/search/elastic_search.html deleted file mode 100644 index 921e9f9eae4..00000000000 --- a/readthedocs/templates/search/elastic_search.html +++ /dev/null @@ -1,209 +0,0 @@ -{% extends "projects/base_project.html" %} - -{% load core_tags i18n static %} - -{% block title %} - {% blocktrans with query=query|default:"" %} - Search: {{ query }} - {% endblocktrans %} -{% endblock %} - -{% block extra_links %} - {{ super }} - -{% endblock %} - -{% block project_editing %} - {% if project_obj %} - {% with search_active="active" project=project_obj %} - {% include "core/project_bar.html" %} - {% endwith %} - {% endif %} -{% endblock %} - -{% block content %} - - -{% endblock %} diff --git a/readthedocs/templates/security.html b/readthedocs/templates/security.html deleted file mode 100644 index 131652a07c1..00000000000 --- a/readthedocs/templates/security.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} - -{% block title %}{% trans 'Security' %}{% endblock %} - -{% block content %} - -

    {% trans 'Security at Read the Docs' %}

    - -{% blocktrans trimmed %} - For more details on security at Read the Docs or to report a security issue, please see our security policy. -{% endblocktrans %} - -{% endblock %} diff --git a/readthedocs/templates/socialaccount/authentication_error.html b/readthedocs/templates/socialaccount/authentication_error.html deleted file mode 100644 index 6bec8055b6f..00000000000 --- a/readthedocs/templates/socialaccount/authentication_error.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends "socialaccount/base_entrance.html" %} - -{% load i18n %} - -{% block head_title %}{% trans "Social Network Login Failure" %}{% endblock %} - -{% block content %} -

    {% trans "Social Network Login Failure" %}

    - -

    {% trans "An error occurred while attempting to login via your social network account." %}

    - -{{ auth_error.exception }} - -{% endblock %} diff --git a/readthedocs/templates/socialaccount/connections.html b/readthedocs/templates/socialaccount/connections.html deleted file mode 100644 index a51994eeb6d..00000000000 --- a/readthedocs/templates/socialaccount/connections.html +++ /dev/null @@ -1,119 +0,0 @@ -{% extends "profiles/base_profile_edit.html" %} - -{% load i18n static %} - -{% block title %}{% trans "Connected Services" %}{% endblock %} - -{% block extra_links %} - {{ block.super }} - -{% endblock %} - -{% block edit_content_header %} {% trans "Connected Services" %} {% endblock %} - -{% block profile-admin-social-accounts %}active{% endblock %} - -{% block edit_content %} - -
    -
    - -

    - {% blocktrans trimmed %} - On this page, - you can manage the integration with your Git provider(s) that enables automatic import and configuration of your repositories. - Read our documentation page about connecting Git providers. - {% endblocktrans %} -

    - -
      - {% include "socialaccount/snippets/provider_list.html" with process="connect" next="" %} -
    - -
    -
    -
    -
    -

    {% trans "Active connections" %}

    - -

    - {% blocktrans trimmed %} - The following services are currently connected to your account: - {% endblocktrans %} -

    - - {# TODO: style this properly in the new templates #} - {% if form.non_field_errors %} - {{ form.non_field_errors }} - {% endif %} - -
    - {% if form.accounts %} -
      - - {% for base_account in form.accounts %} - {% with base_account.get_provider_account as account %} -
    • - - - - - {{ account }} - - ({{ account.get_brand.name }}) - - - -
        -
      • -
        - {% csrf_token %} - - -
        -
      • -
      - - {% if base_account.provider == 'bitbucket' %} -

      - {% blocktrans trimmed %} - The API version this connection uses is no longer - supported, please reconnect your Bitbucket account. - {% endblocktrans %} -

      - {% endif %} - -
    • - {% endwith %} - {% endfor %} - -
    - - {% else %} -
      -
    • -

      {% trans 'You currently have no social network accounts connected to this account.' %}

      -
    • -
    - {% endif %} - -
    - - {% if form.accounts %} -

    - {% blocktrans trimmed %} - Note: If you press the Disconnect button to disconnect a service, - you should also visit your Git Provider in order to - delete the OAuth connection of Read the Docs. - On GitHub, this is located in Settings > Applications > Authorized OAuth Apps. - {% endblocktrans %} -

    - {% endif %} - - {% include "socialaccount/snippets/login_extra.html" %} - -
    - -
    - -{% endblock %} diff --git a/readthedocs/templates/socialaccount/snippets/provider_list.html b/readthedocs/templates/socialaccount/snippets/provider_list.html deleted file mode 100644 index 7aa1a03d2c3..00000000000 --- a/readthedocs/templates/socialaccount/snippets/provider_list.html +++ /dev/null @@ -1,29 +0,0 @@ -{% load socialaccount %} -{% load i18n %} - -{% get_providers as socialaccount_providers %} - -{% for provider in socialaccount_providers %} - {% comment %} - - OpenID is not implemented. - - SAML is handled in another view, we don't want to list all SAML integrations here. - - GitHub App is not exposed to users yet. - {% endcomment %} - {% if provider.id != 'saml' and provider.id != 'githubapp' %} - {% if allowed_providers and provider.id in allowed_providers or not allowed_providers %} -
  • - {# Bitbucket doesn't allow more than one callback URL for their OAuth app, so we are redirecting users to the new dashboard for now. #} -
    - {% csrf_token %} - -
    -
  • - {% endif %} - {% endif %} -{% endfor %} diff --git a/readthedocs/templates/style_catalog.html b/readthedocs/templates/style_catalog.html deleted file mode 100644 index 78e2123be3c..00000000000 --- a/readthedocs/templates/style_catalog.html +++ /dev/null @@ -1,319 +0,0 @@ -{% extends "base.html" %} - -{% block content %} - -
    - -

    Header 1.

    -

    Header 2.

    -

    Header 3.

    -

    Header 4.

    -
    Header 5.
    -

    Paragraph. Aside.

    -

    Paragraph with link.

    -

    Paragraph with highlighted text.

    - -

    -Long form text. Read the Docs hosts documentation, making it -fully searchable and easy to find. You can import your docs using any major -version control system, including Mercurial, Git, Subversion, and Bazaar. -We support links so your docs get built when you commit code. -There's also support for versioning so you can build docs from tags and -branches of your code in your repository. A website is available. -

    -

    -It's free and simple. Read the Getting Started guide to get going! -

    - -
    - -
      -
    • List item
    • -
    • List item with link.
    • -
    • List item.
    • -
    - -
    - -
      -
    1. Ordered list item
    2. -
    3. Ordered list item with link.
    4. -
    5. Ordered list item.
    6. -
    - -
    - - - - - - - - - - - - - -
    Table headerTable header 2
    Table element.Table element 2.
    Table element.Table element 2.
    - -
    - -
    -

    Form Paragraph.

    -

    -

    -

    -

    - Help text for input -

    -

    - - - -

    -

    -

    -

    - -

    - - - - - Button link - -
    -
    - Fieldset. -

    Fieldset Paragraph

    -
    -
    - Fieldset Legend - Fieldset. -

    Fieldset Paragraph

    -
    -
    - -
    - - - -
    - -
    -
    -
    -

    - Module list header - Small Aside -

    -
    - -
    -
    -
      -
    • Module list item. -
    • Module item with right content. - Right-aligned-ish content. -
    • - Module list item with menu. - -
    • -
    • - Module list item with menu and right content. - Right-aligned-ish content. - -
    • - - -
    • -

      - File Search result item -

      -

      Extra search result info.

      -
    • -
    -
    -
    -
    -
    - -
    -
    -
    -

    - Col-span module list - requires each li to have one <a> tag member -

    -
    - - -
    -
    - -
    - -
    -
    -

    - Header text -

    -
    - - - -
    - -
    -
    - -
    - -
    - -
    - -
    - -
    -
    -
    project name (255)
    -
    other project name (113)
    -
    -
    - -
    - - - -
    - - - -
    - -
    -
    - -
    -
    - -
    - - - -
    - - - - Title - - - - - - - - Versions - - - - - - - -{% endblock content %} diff --git a/readthedocs/templates/support/error.html b/readthedocs/templates/support/error.html deleted file mode 100644 index 161400ab6fb..00000000000 --- a/readthedocs/templates/support/error.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} - -{% block title %}Error - Support{% endblock %} - -{% block content %} -
    -

    Support Form Error

    -

    - There has been an error submitting your support request. -

    -

    - Please try again, filling out all form fields. -

    -
    -{% endblock %} diff --git a/readthedocs/templates/support/index.html b/readthedocs/templates/support/index.html deleted file mode 100644 index a991f0b7908..00000000000 --- a/readthedocs/templates/support/index.html +++ /dev/null @@ -1,134 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} - - -{% block title %}Support{% endblock %} - -{% block content %} -
    - -

    Usage Questions

    - -

    -If you have questions about how to use Read the Docs, or have an issue that isn't related to a bug, Stack Overflow is the best place to ask. Tag questions with read-the-docs so other folks can find them easily. -

    - -

    -You might also find the answers you are looking for in our documentation guides. -These provide step-by-step solutions to common user requirements. -

    - -

    Bug Reports

    - -

    -If you have an issue with the actual functioning of the site, -you can file bug reports on our GitHub issue tracker. -You can also contribute to Read the Docs, -as the code is open source. -

    - -

    Commercial Support

    - -

    -We offer commercial support for Read the Docs -and commercial hosting with Read the Docs for Business. -We have a dedicated team that responds to support requests during business hours. -

    - -

    User Support

    - -

    -If you need a specific request for your project or account, -like more resources, change of the project's slug or username. -

    - -{% if not SUPPORT_FORM_ENDPOINT %} - -

    -Please send an email to {{ SUPPORT_EMAIL }} -and we will get back to you as soon as possible. -

    - -{% else %} - -

    -Fill out the form below, -and we will get back to you as soon as possible. -

    - -
    -
    - - -

    -
    - -
    - - -

    -
    - -
    - - -

    - Please provide as much detail as possible. -

    -
    - -
    - - -

    - Is there a specific page this happened? -

    -
    - -
    - - -

    - Anything else that would help us solve this issue? -

    -
    - -
    - - {% if request.user.gold.exists or request.user.goldonce.exists %} - - - {% endif %} - - - - - {% if request.user.gold.exists or request.user.goldonce.exists %} -

    Please rate the severity of this event.

    - {% else %} -

    This option is only enabled for Gold users.

    - {% endif %} -
    - - - - - -
    - - -{% endif %} - - - -{% endblock %} diff --git a/readthedocs/templates/support/success.html b/readthedocs/templates/support/success.html deleted file mode 100644 index bae918d6862..00000000000 --- a/readthedocs/templates/support/success.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "base.html" %} - -{% load i18n %} - -{% block title %}Success - Support{% endblock %} - -{% block content %} -
    -

    Support Form Success

    -

    - You have successfully submitted a support request. -

    -

    - While you are waiting for a response, - you might want to browse our guides which provide step-by-step solutions to common user requirements. -

    -
    -{% endblock %} diff --git a/requirements/testing.in b/requirements/testing.in index f766bd2a11c..dd5a3035103 100644 --- a/requirements/testing.in +++ b/requirements/testing.in @@ -12,3 +12,5 @@ pytest-cov pytest-mock requests-mock + +django_coverage_plugin diff --git a/requirements/testing.txt b/requirements/testing.txt index 2ef3a1b05af..725e39f8561 100644 --- a/requirements/testing.txt +++ b/requirements/testing.txt @@ -79,7 +79,9 @@ colorama==0.4.6 # -r requirements/pip.txt # bumpver coverage[toml]==7.8.0 - # via pytest-cov + # via + # django-coverage-plugin + # pytest-cov cron-descriptor==1.4.5 # via # -r requirements/pip.txt @@ -138,6 +140,8 @@ django-celery-beat==2.7.0 # via -r requirements/pip.txt django-cors-headers==4.7.0 # via -r requirements/pip.txt +django-coverage-plugin==3.1.0 + # via -r requirements/testing.in django-crispy-forms==1.14.0 # via -r requirements/pip.txt django-csp==3.8