mirror of
https://github.com/Quackster/Havana.git
synced 2025-07-02 04:37:47 +00:00
Update GroupDiscussionsController.java
Fixed navbar for official games to display them in the correct "games" tab - especially the game-groups "discussions" page
This commit is contained in:
parent
3f2f44d05c
commit
40232bda55
1 changed files with 36 additions and 0 deletions
|
@ -50,6 +50,24 @@ public class GroupDiscussionsController {
|
|||
return;
|
||||
}
|
||||
|
||||
if (group.getAlias() != null) {
|
||||
if (group.getAlias().equalsIgnoreCase("battleball_rebound")) {
|
||||
webConnection.session().set("page", "games");
|
||||
}
|
||||
|
||||
if (group.getAlias().equalsIgnoreCase("lido")) {
|
||||
webConnection.session().set("page", "games");
|
||||
}
|
||||
|
||||
if (group.getAlias().equalsIgnoreCase("snow_storm")) {
|
||||
webConnection.session().set("page", "games");
|
||||
}
|
||||
|
||||
if (group.getAlias().equalsIgnoreCase("wobble_squabble")) {
|
||||
webConnection.session().set("page", "games");
|
||||
}
|
||||
}
|
||||
|
||||
var template = webConnection.template("groups/view_discussions");
|
||||
template.set("group", group);
|
||||
render(webConnection, group, template, 1);
|
||||
|
@ -97,6 +115,24 @@ public class GroupDiscussionsController {
|
|||
|
||||
}
|
||||
|
||||
if (group.getAlias() != null) {
|
||||
if (group.getAlias().equalsIgnoreCase("battleball_rebound")) {
|
||||
webConnection.session().set("page", "games");
|
||||
}
|
||||
|
||||
if (group.getAlias().equalsIgnoreCase("lido")) {
|
||||
webConnection.session().set("page", "games");
|
||||
}
|
||||
|
||||
if (group.getAlias().equalsIgnoreCase("snow_storm")) {
|
||||
webConnection.session().set("page", "games");
|
||||
}
|
||||
|
||||
if (group.getAlias().equalsIgnoreCase("wobble_squabble")) {
|
||||
webConnection.session().set("page", "games");
|
||||
}
|
||||
}
|
||||
|
||||
var template = webConnection.template("groups/view_discussions");
|
||||
template.set("group", group);
|
||||
render(webConnection, group, template, page);
|
||||
|
|
Loading…
Add table
Reference in a new issue