Skip to content

Commit

Permalink
remove tela para ver article_files (legado)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelpezzuto committed Nov 11, 2021
1 parent 5fe1fc8 commit 4a17522
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 93 deletions.
2 changes: 1 addition & 1 deletion app/core/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h1 class="h4 pt-5">{% trans 'Home' %}</h1>
</div>
<div class="list-group list-group-flush">
<a class="list-group-item" href="{% url 'ingress_package_list' %}?scope=all_users">{% trans 'All deposited packages' %}</a>
<a class="list-group-item" href="{% url 'ingress_article_files_list' %}">{% trans "Articles' files" %}</a>
<a class="list-group-item disabled" href="">{% trans "Articles' files" %}</a>
</div>
</div>
</div>
Expand Down
79 changes: 0 additions & 79 deletions app/core/templates/ingress/article_files_list.html

This file was deleted.

1 change: 0 additions & 1 deletion app/core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
path('ingress/package_upload/', views.ingress_package_upload_page, name='ingress_package_upload'),
path('ingress/package_download/', views.ingress_package_download_page, name='ingress_package_download'),
path('ingress/package_list/', views.ingress_package_list_page, name='ingress_package_list'),
path('ingress/articles_files/', views.ingress_articles_files_page, name='ingress_article_files_list'),
]

journal = [
Expand Down
12 changes: 0 additions & 12 deletions app/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,18 +288,6 @@ def ingress_package_list_page(request):
return render(request, 'ingress/package_list.html', context={'deposited_package_obj': deposited_package_obj, 'scope': request_scope})


@login_required(login_url='login')
@allowed_users(allowed_groups=['manager', 'operator_ingress'])
def ingress_articles_files_page(request):
article_files_list = dsm_ingress._docs_manager.get_articles_files()

paginator = Paginator(article_files_list, 25)
page_number = request.GET.get('page')
article_files_obj = paginator.get_page(page_number)

return render(request, 'ingress/article_files_list.html', context={'article_files_obj': article_files_obj})


#################
# journal views #
#################
Expand Down

0 comments on commit 4a17522

Please sign in to comment.