Browse Source

Add GM Actions to ticket interface

master
Gregory Rudolph 3 years ago
parent
commit
8f2dafa5a7
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 1
      GMTicket.cs
  2. 6
      Pages/Account.cshtml

1
GMTicket.cs

@ -59,6 +59,7 @@ namespace NightmareCoreWeb2
{ {
try try
{ {
this.Id = rdr.GetInt32(0);
this.OpenedBy = new Account(new Character(rdr.GetInt32(0)).Username); this.OpenedBy = new Account(new Character(rdr.GetInt32(0)).Username);
this.CharacterName = rdr.GetString(1); this.CharacterName = rdr.GetString(1);
this.CreateTime = DateTimeOffset.FromUnixTimeSeconds(rdr.GetInt32(2)).UtcDateTime; this.CreateTime = DateTimeOffset.FromUnixTimeSeconds(rdr.GetInt32(2)).UtcDateTime;

6
Pages/Account.cshtml

@ -53,6 +53,12 @@
</div> </div>
<div class="card-body"> <div class="card-body">
<p class="card-text">@ticket.Description</p> <p class="card-text">@ticket.Description</p>
<br>
<a class="btn active" href="/Account?handler=CharacterAction&guid=@ticket.Id&action=1">Rename Character</a>
<a class="btn active" href="/Account?handler=CharacterAction&guid=@ticket.Id&action=8">Recustomize Character</a>
<a class="btn active" href="/Account?handler=CharacterAction&guid=@ticket.Id&action=64">Change Faction</a>
<a class="btn active" href="/Account?handler=CharacterAction&guid=@ticket.Id&action=128">Change Race</a>
</div> </div>
<div class="card-footer text-muted"> <div class="card-footer text-muted">
<p>Opened @ticket.CreateTime.ToLocalTime()</p> <p>Opened @ticket.CreateTime.ToLocalTime()</p>

Loading…
Cancel
Save