mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-04 19:08:42 +00:00
Optimize GameServer /announce and add website announcements (#810)
* Improve game server announce by using StringBuilder * Implement web announcements (condensed commit) * Implement discord webhook support * Display a separate message if there are no announcements * Fix announcement string unit tests * Fix header admin button unit test * Clarify announcement id variable name * Increase webhook truncation limit to 250 chars * Convert announce text to string when returning 200 * Fix announcement unit tests ... again * Make announcement text input a textarea rather than a simple input * Fix styling discrepancy * Clarify submission button * Improve announcement webhook & set default textarea row amount
This commit is contained in:
parent
0fd8759f3f
commit
689ebd3791
12 changed files with 256 additions and 20 deletions
|
@ -33,6 +33,8 @@ public class BaseLayout : PageModel
|
|||
this.NavigationItems.Add(new PageNavigationItem(BaseLayoutStrings.HeaderUsers, "/users/0", "user friends"));
|
||||
this.NavigationItems.Add(new PageNavigationItem(BaseLayoutStrings.HeaderPhotos, "/photos/0", "camera"));
|
||||
this.NavigationItems.Add(new PageNavigationItem(BaseLayoutStrings.HeaderSlots, "/slots/0", "globe americas"));
|
||||
|
||||
this.NavigationItemsRight.Add(new PageNavigationItem(GeneralStrings.Announcements, "/announce", "bullhorn"));
|
||||
}
|
||||
|
||||
public new UserEntity? User {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue