Skip to content

Commit 3dc4e53

Browse files
committed
global: update templates
Signed-off-by: Pamfilos Fokianos <pamfilosf@gmail.com>
1 parent 9b81fe2 commit 3dc4e53

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

cap/factory.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ def config_loader(app, **kwargs_config):
3737
# mail templates
3838
app.jinja_loader = ChoiceLoader([
3939
FileSystemLoader('cap/modules/mail/templates'),
40-
app.jinja_loader,
41-
])
42-
43-
# auth templates
44-
app.jinja_loader = ChoiceLoader([
4540
FileSystemLoader('cap/modules/auth/templates'),
4641
app.jinja_loader,
4742
])

cap/modules/auth/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
'cap_auth',
4848
__name__,
4949
url_prefix='/auth',
50+
template_folder='templates',
51+
5052
)
5153

5254

File renamed without changes.

cap/views.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232
from cap.modules.records.serializers import record_json_v1
3333
from cap.modules.workflows.utils import get_user_workflows
3434

35-
blueprint = Blueprint('cap', __name__, )
35+
blueprint = Blueprint(
36+
'cap',
37+
__name__,
38+
template_folder='templates',
39+
)
3640

3741

3842
@blueprint.route('/ping', methods=['GET'])

0 commit comments

Comments
 (0)