~homeworkprod/byceps

93e59e2e1d82f82e7f30384e7cbaa7450065b7df — Jochen Kupperschmidt 1 year, 2 months ago 4237b3e
Move user profile blueprint into `site` subpackage
9 files changed, 13 insertions(+), 13 deletions(-)

M byceps/application.py
R byceps/blueprints/{user/profile/__init__.py => site/user/__init__.py}
A byceps/blueprints/site/user/profile/__init__.py
R byceps/blueprints/{user/profile/templates/user/profile/_attended_parties.html => site/user/profile/templates/site/user/profile/_attended_parties.html}
R byceps/blueprints/{user/profile/templates/user/profile/_badges.html => site/user/profile/templates/site/user/profile/_badges.html}
R byceps/blueprints/{user/profile/templates/user/profile/_contact.html => site/user/profile/templates/site/user/profile/_contact.html}
R byceps/blueprints/{user/profile/templates/user/profile/_current_party_attendance.html => site/user/profile/templates/site/user/profile/_current_party_attendance.html}
R byceps/blueprints/{user/profile/templates/user/profile/view.html => site/user/profile/templates/site/user/profile/view.html}
R byceps/blueprints/{user/profile/views.py => site/user/profile/views.py}
M byceps/application.py => byceps/application.py +1 -1
@@ 124,7 124,7 @@ def _get_blueprints_site() -> Iterator[BlueprintReg]:
        ('site.snippet',                None                        ),
        ('site.terms',                  '/terms'                    ),
        ('site.ticketing',              '/tickets'                  ),
        ('user.profile',                '/users'                    ),
        ('site.user.profile',           '/users'                    ),
        ('user_badge',                  '/user_badges'              ),
        ('user_group',                  '/user_groups'              ),
        ('user_message',                '/user_messages'            ),

R byceps/blueprints/user/profile/__init__.py => byceps/blueprints/site/user/__init__.py +0 -0
A byceps/blueprints/site/user/profile/__init__.py => byceps/blueprints/site/user/profile/__init__.py +0 -0
R byceps/blueprints/user/profile/templates/user/profile/_attended_parties.html => byceps/blueprints/site/user/profile/templates/site/user/profile/_attended_parties.html +0 -0
R byceps/blueprints/user/profile/templates/user/profile/_badges.html => byceps/blueprints/site/user/profile/templates/site/user/profile/_badges.html +0 -0
R byceps/blueprints/user/profile/templates/user/profile/_contact.html => byceps/blueprints/site/user/profile/templates/site/user/profile/_contact.html +0 -0
R byceps/blueprints/user/profile/templates/user/profile/_current_party_attendance.html => byceps/blueprints/site/user/profile/templates/site/user/profile/_current_party_attendance.html +0 -0
R byceps/blueprints/user/profile/templates/user/profile/view.html => byceps/blueprints/site/user/profile/templates/site/user/profile/view.html +4 -4
@@ 58,12 58,12 @@
    <div class="user-profile-layout">
      <div class="user-profile-secondary">
        <div class="user-profile-details">
{%- include 'user/profile/_current_party_attendance.html' %}
{%- include 'user/profile/_contact.html' %}
{%- include 'site/user/profile/_current_party_attendance.html' %}
{%- include 'site/user/profile/_contact.html' %}
        </div>
        <div class="user-profile-details">
{%- include 'user/profile/_attended_parties.html' %}
{%- include 'user/profile/_badges.html' %}
{%- include 'site/user/profile/_attended_parties.html' %}
{%- include 'site/user/profile/_badges.html' %}
        </div>
      </div>
    </div>

R byceps/blueprints/user/profile/views.py => byceps/blueprints/site/user/profile/views.py +8 -8
@@ 1,6 1,6 @@
"""
byceps.blueprints.user.profile.views
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
byceps.blueprints.site.user.profile.views
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.


@@ 10,12 10,12 @@ from operator import attrgetter

from flask import abort, g

from ....services.orga_team import service as orga_team_service
from ....services.ticketing import attendance_service, ticket_service
from ....services.user import service as user_service
from ....services.user_badge import awarding_service as badge_awarding_service
from ....util.framework.blueprint import create_blueprint
from ....util.framework.templating import templated
from .....services.orga_team import service as orga_team_service
from .....services.ticketing import attendance_service, ticket_service
from .....services.user import service as user_service
from .....services.user_badge import awarding_service as badge_awarding_service
from .....util.framework.blueprint import create_blueprint
from .....util.framework.templating import templated


blueprint = create_blueprint('user_profile', __name__)