# This file is part of Indico.
# Copyright (C) 2002 - 2026 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.

from indico.modules.admin.views import WPAdmin
from indico.util.i18n import _
from indico.web.views import WPDecorated, WPJinjaMixin


class WPNews(WPJinjaMixin, WPDecorated):
    template_prefix = 'news/'
    title = _('News')

    def _get_body(self, params):
        return self._get_page_content(params)


class WPManageNews(WPAdmin):
    template_prefix = 'news/'
