1
0
mirror of synced 2024-11-27 23:50:47 +01:00

Put MGS in alphabetical order on frontend.

This commit is contained in:
Jennifer Taylor 2021-09-10 15:20:13 +00:00
parent 1430103270
commit 80c5ea6b17

View File

@ -335,35 +335,6 @@ def navigation() -> Dict[str, Any]:
}, },
) )
if GameConstants.MGA in g.config.support:
# Metal Gear Arcade pages
mga_entries = []
if len([p for p in profiles if p[0] == GameConstants.MGA]) > 0:
mga_entries.extend([
{
'label': 'Game Options',
'uri': url_for('mga_pages.viewsettings'),
},
{
'label': 'Personal Profile',
'uri': url_for('mga_pages.viewplayer', userid=g.userID),
},
])
mga_entries.extend([
{
'label': 'All Players',
'uri': url_for('mga_pages.viewplayers'),
},
])
pages.append(
{
'label': 'Metal Gear Arcade',
'entries': mga_entries,
'base_uri': app.blueprints['mga_pages'].url_prefix,
'gamecode': GameConstants.MGA.value,
},
)
if GameConstants.DDR in g.config.support: if GameConstants.DDR in g.config.support:
# DDR pages # DDR pages
ddr_entries = [] ddr_entries = []
@ -511,6 +482,35 @@ def navigation() -> Dict[str, Any]:
}, },
) )
if GameConstants.MGA in g.config.support:
# Metal Gear Arcade pages
mga_entries = []
if len([p for p in profiles if p[0] == GameConstants.MGA]) > 0:
mga_entries.extend([
{
'label': 'Game Options',
'uri': url_for('mga_pages.viewsettings'),
},
{
'label': 'Personal Profile',
'uri': url_for('mga_pages.viewplayer', userid=g.userID),
},
])
mga_entries.extend([
{
'label': 'All Players',
'uri': url_for('mga_pages.viewplayers'),
},
])
pages.append(
{
'label': 'Metal Gear Arcade',
'entries': mga_entries,
'base_uri': app.blueprints['mga_pages'].url_prefix,
'gamecode': GameConstants.MGA.value,
},
)
if GameConstants.MUSECA in g.config.support: if GameConstants.MUSECA in g.config.support:
# Museca pages # Museca pages
museca_entries = [] museca_entries = []