Skip to content

Commit

Permalink
Remove unused views
Browse files Browse the repository at this point in the history
  • Loading branch information
ba11b0y committed Oct 12, 2018
1 parent 8c7e18d commit 4b4e770
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 203 deletions.
5 changes: 0 additions & 5 deletions readthedocs/locale/ar/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2400,11 +2400,6 @@ msgstr "أضف كنية لإصدار المشروع"
msgid "Create"
msgstr "إنشاء"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "أسماء كنية"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "تصفّح المشاريع"
Expand Down
12 changes: 0 additions & 12 deletions readthedocs/locale/ca/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2415,24 +2415,12 @@ msgstr "D'acord, desa'l"
msgid "%(user)s's profile"
msgstr "Perfil de %(user)s"

#: templates/projects/alias_edit.html:4 templates/projects/alias_edit.html:7
msgid "Project Alias"
msgstr "Àlies del projecte"

#: templates/projects/alias_edit.html:12
msgid "Add an alias for a project version."
msgstr "Afegiu un àlies a la versió del projecte."

#: templates/projects/alias_edit.html:16
#: templates/projects/project_create.html:19
msgid "Create"
msgstr "Crea"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "Àlies"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "Navega pels projectes"
Expand Down
4 changes: 0 additions & 4 deletions readthedocs/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2430,11 +2430,7 @@ msgstr "Alternativer Name für eine Projektversion hinzufügen"
msgid "Create"
msgstr "Erstellen"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "Alternativer Name"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "Projekte durchsuchen"
Expand Down
14 changes: 0 additions & 14 deletions readthedocs/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2375,24 +2375,10 @@ msgstr ""
msgid "%(user)s's profile"
msgstr ""

#: templates/projects/alias_edit.html:4 templates/projects/alias_edit.html:7
msgid "Project Alias"
msgstr ""

#: templates/projects/alias_edit.html:12
msgid "Add an alias for a project version."
msgstr ""

#: templates/projects/alias_edit.html:16
#: templates/projects/project_create.html:19
msgid "Create"
msgstr ""

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr ""

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr ""
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/eu/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2390,11 +2390,6 @@ msgstr ""
msgid "Create"
msgstr ""

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr ""

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "Arakatu proiektuak"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2843,11 +2843,6 @@ msgstr "Ajouter un alias pour une version de projet."
msgid "Create"
msgstr "Créer"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "Alias"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "Parcourir les projets"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/gl/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2393,11 +2393,6 @@ msgstr "Engadir un alias para unha versión de proxecto."
msgid "Create"
msgstr "Crear"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "Alias"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr ""
Expand Down
14 changes: 0 additions & 14 deletions readthedocs/locale/it/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2666,24 +2666,10 @@ msgstr "OK, salvalo!"
msgid "%(user)s's profile"
msgstr "profilo di %(user)s"

#: templates/projects/alias_edit.html:4 templates/projects/alias_edit.html:7
msgid "Project Alias"
msgstr "Alias per Progetto"

#: templates/projects/alias_edit.html:12
msgid "Add an alias for a project version."
msgstr "Aggiungi un alias per una versione di progetto"

#: templates/projects/alias_edit.html:16
#: templates/projects/project_create.html:19
msgid "Create"
msgstr "Crea"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "Alias"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "Sfoglia progetti"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/ja/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2481,11 +2481,6 @@ msgstr "プロジェクトのバージョンに対する別名を追加"
msgid "Create"
msgstr "作成"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "別名"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "プロジェクトを見る"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/nb/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2425,11 +2425,6 @@ msgstr "Legg til et alias for en prosjektversjon."
msgid "Create"
msgstr "Opprett"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "Alias"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "Finn prosjekter"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/pl/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2400,11 +2400,6 @@ msgstr "Dodaj inną nazwę dla wersji projektu."
msgid "Create"
msgstr "Utwórz"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "Inne nazwy"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "Przeglądaj projekty"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/pt_BR/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2504,11 +2504,6 @@ msgstr "Adic alias para versão projeto"
msgid "Create"
msgstr "Criar"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "Apelidos"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "Navegar em projetos"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/ru/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2454,11 +2454,6 @@ msgstr "Добавить для версии проекта другое наз
msgid "Create"
msgstr "Создать"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "Другие названия"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "Просмотреть пректы"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/sk/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2400,11 +2400,6 @@ msgstr ""
msgid "Create"
msgstr "Vytvoriť"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr ""

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr ""
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/uk/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2414,11 +2414,6 @@ msgstr "Додайте псевдонім для версії проекту."
msgid "Create"
msgstr "Створити"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "Псевдоніми"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "Перегляд проектів"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/vi_VN/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2409,11 +2409,6 @@ msgstr "Thêm tên khác cho một phiên bản của dự án."
msgid "Create"
msgstr ""

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "Các tên phụ"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "Xem qua các dự án"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/zh_CN/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2589,11 +2589,6 @@ msgstr "给项目版本添加别名"
msgid "Create"
msgstr "创建"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "别名"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "浏览项目"
Expand Down
5 changes: 0 additions & 5 deletions readthedocs/locale/zh_TW/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -2523,11 +2523,6 @@ msgstr "新增專案版本別名"
msgid "Create"
msgstr "建立"

#: templates/projects/alias_list.html:6 templates/projects/alias_list.html:11
msgid "Aliases"
msgstr "別名"

#: templates/projects/alias_list.html:20
#: templates/projects/project_list.html:48
msgid "Browse projects"
msgstr "瀏覽專案"
Expand Down
33 changes: 0 additions & 33 deletions readthedocs/projects/views/private.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,39 +372,6 @@ def get_context_data(self, **kwargs):
return context


@login_required
def edit_alias(request, project_slug, alias_id=None):
"""Edit project alias form view."""
proj = get_object_or_404(
Project.objects.for_admin_user(request.user), slug=project_slug)
if alias_id:
alias = proj.aliases.get(pk=alias_id)
form = AliasForm(instance=alias, data=request.POST or None)
else:
form = AliasForm(request.POST or None)

if request.method == 'POST' and form.is_valid():
alias = form.save()
return HttpResponseRedirect(alias.project.get_absolute_url())
return render(
request,
'projects/alias_edit.html',
{'form': form},
)


class AliasList(PrivateViewMixin, ListView):
model = VersionAlias
template_context_name = 'alias'
template_name = 'projects/alias_list.html'

def get_queryset(self):
self.project = get_object_or_404(
Project.objects.for_admin_user(self.request.user),
slug=self.kwargs.get('project_slug'))
return self.project.aliases.all()


class ProjectRelationshipMixin(ProjectAdminMixin, PrivateViewMixin):

model = ProjectRelationship
Expand Down
18 changes: 0 additions & 18 deletions readthedocs/templates/projects/alias_edit.html

This file was deleted.

38 changes: 0 additions & 38 deletions readthedocs/templates/projects/alias_list.html

This file was deleted.

0 comments on commit 4b4e770

Please sign in to comment.