Remove unused portfolio route
The activity was moved into the admin page, so this separate route is not necessary anymore.
This commit is contained in:
parent
c9ca22899d
commit
ae1b208709
@ -98,19 +98,3 @@ def portfolio_reports(portfolio_id):
|
|||||||
expiration_date=expiration_date,
|
expiration_date=expiration_date,
|
||||||
remaining_days=remaining_days,
|
remaining_days=remaining_days,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@portfolios_bp.route("/portfolios/<portfolio_id>/activity")
|
|
||||||
def portfolio_activity(portfolio_id):
|
|
||||||
portfolio = Portfolios.get(g.current_user, portfolio_id)
|
|
||||||
pagination_opts = Paginator.get_pagination_opts(http_request)
|
|
||||||
audit_events = AuditLog.get_portfolio_events(
|
|
||||||
g.current_user, portfolio, pagination_opts
|
|
||||||
)
|
|
||||||
|
|
||||||
return render_template(
|
|
||||||
"portfolios/activity/index.html",
|
|
||||||
portfolio_name=portfolio.name,
|
|
||||||
portfolio_id=portfolio_id,
|
|
||||||
audit_events=audit_events,
|
|
||||||
)
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
{% extends "portfolios/base.html" %}
|
|
||||||
{% from "components/pagination.html" import Pagination %}
|
|
||||||
|
|
||||||
{% set secondary_breadcrumb = "navigation.portfolio_navigation.breadcrumbs.admin" | translate %}
|
|
||||||
|
|
||||||
{% block portfolio_content %}
|
|
||||||
<div v-cloak>
|
|
||||||
{% include "fragments/audit_events_log.html" %}
|
|
||||||
{{ Pagination(audit_events, 'portfolios.portfolio_activity', portfolio_id=portfolio_id) }}
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
Loading…
x
Reference in New Issue
Block a user