mirror of
https://github.com/Quackster/Havana.git
synced 2025-07-03 05:07:46 +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;
|
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");
|
var template = webConnection.template("groups/view_discussions");
|
||||||
template.set("group", group);
|
template.set("group", group);
|
||||||
render(webConnection, group, template, 1);
|
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");
|
var template = webConnection.template("groups/view_discussions");
|
||||||
template.set("group", group);
|
template.set("group", group);
|
||||||
render(webConnection, group, template, page);
|
render(webConnection, group, template, page);
|
||||||
|
|
Loading…
Add table
Reference in a new issue