Logo
Explore Help
Sign In
darkhelm/notifications-admin
1
0
Fork 0
You've already forked notifications-admin
mirror of https://github.com/GSA/notifications-admin.git synced 2026-09-05 19:28:25 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
acd7e79c1a7233e72dc0cf5b4d186b33ffa79624
notifications-admin/app/main/views/choose_service.py

10 lines
220 B
Python
Raw Normal View History

Add page to choose services Because a user can have multiple services, they need a way to navigate between them. Normally they can use the ▶ Switcher to do this, except when: - they first sign in - they are on a page which isn’t associated with a service (eg user profile) in which case we can’t use the switcher because it won’t know what the ‘current’ service is So this commit adds a new page with a (fake) list of services.
2016-01-13 14:43:21 +00:00
from flask import render_template
from flask_login import login_required
from app.main import main
@main.route("/services")
@login_required
Use 🐍 case in function names
2016-01-14 11:12:03 +00:00
def choose_service():
Add page to choose services Because a user can have multiple services, they need a way to navigate between them. Normally they can use the ▶ Switcher to do this, except when: - they first sign in - they are on a page which isn’t associated with a service (eg user profile) in which case we can’t use the switcher because it won’t know what the ‘current’ service is So this commit adds a new page with a (fake) list of services.
2016-01-13 14:43:21 +00:00
return render_template('views/choose-service.html')
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 1005ms Template: 64ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API