<commit_before>﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="DOTP.RaidManager" %>
<%@ Import Namespace="DOTP.Users" %>

<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleContent" runat="server">DRM - Home</asp:Content>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">

<h2>Welcome to the Defenders of the Pass raid management site!</h2>

<p>All times are in server time (EST).</p>
<p>
 Scheduled raids:
<% if((null != Manager.GetCurrentUser()) && Manager.GetCurrentUser().IsAdmin){ %>
 (<a href="/Raid/Schedule" title="Schedule a raid"><img src="/Content/images/new-icon.png" alt="New" /></a>)
<% } %>
</p>

<table style="width: 100%" class="listTable">
 <thead>
  <tr>
   <td><b>Raid ID</b></td>
   <td><b>Name</b></td>
   <td><b>Raid</b></td>
   <td><b>Invite Time</b></td>
   <td><b>Start Time</b></td>
   <td></td>
<% if((null != Manager.GetCurrentUser()) && (Manager.GetCurrentUser().IsAdmin || Manager.GetCurrentUser().IsRaidTeam)){ %>
   <td></td>
   <td></td>
<% } %>
  </tr>
 </thead>
 <tbody>

<%
var instances = RaidInstance.Store.ReadAll(ri => !ri.Archived);
    
if( null != instances )
{
    foreach(var raid in instances)
    {
%>   

  <tr>
   <td><%: raid.ID %></td>
   <td><%: raid.Name %></td>
   <td><%: raid.Raid %></td>
   <td><%: raid.InviteTime.ToShortDateString() + " " + raid.InviteTime.ToLongTimeString() %></td>
   <td><%: raid.StartTime.ToShortDateString() + " " + raid.StartTime.ToLongTimeString() %></td>
   <td>
    <a href="/Raid/Signup?ID=<%: raid.ID %>" title="View signup details for this raid"><img src="/Content/images/calendar-icon.png" alt="Sign Up" /></a>
<% if((null != Manager.GetCurrentUser()) && Manager.GetCurrentUser().IsRaidTeam){ %>
    <a href="/Raid/Roster?ID=<%: raid.ID %>" title="Roster this raid"><img src="/Content/images/roster-icon.png" alt="Roster" /></a>
    <a href="/Raid/Edit?ID=<%: raid.ID %>" title="Edit this raid"><img src="/Content/images/edit-icon.png" alt="Edit" /></a>
    <a href="/Raid/Archive?ID=<%: raid.ID %>" title="Archive this raid"><img src="/Content/images/archive-icon.png" alt="Archive" /></a>
<% } %>
   </td>
  </tr>

<%
    }
}
else
{
%>

  <tr>
   <td colspan="5">There are no raids scheduled at this time.</td>
  </tr>

<%
}    
%>

 </tbody>
</table>

<p>Archived raids:</p>

<table style="width: 100%" class="listTable">
 <thead>
  <tr>
   <td><b>Raid ID</b></td>
   <td><b>Name</b></td>
   <td><b>Raid</b></td>
   <td><b>Invite Time</b></td>
   <td><b>Start Time</b></td>
   <td></td>
<% if((null != Manager.GetCurrentUser()) && Manager.GetCurrentUser().IsAdmin){ %>
   <td></td>
<% } %>
  </tr>
 </thead>
 <tbody>

<%
instances = RaidInstance.Store.ReadAll(ri => ri.Archived);
    
if( null != instances )
{
    foreach(var raid in instances)
    {
%>   

  <tr>
   <td><%: raid.ID %></td>
   <td><%: raid.Name %></td>
   <td><%: raid.Raid %></td>
   <td><%: raid.InviteTime.ToShortDateString() + " " + raid.InviteTime.ToLongTimeString() %></td>
   <td><%: raid.StartTime.ToShortDateString() + " " + raid.StartTime.ToLongTimeString() %></td>
   <td><a href="/Raid/Signup?ID=<%: raid.ID %>" title="View signup details for this raid"><img src="/Content/images/calendar-icon.png" alt="Sign Up" /></a></td>
<% if((null != Manager.GetCurrentUser()) && Manager.GetCurrentUser().IsAdmin){ %>
   <td><a href="/Raid/UnArchive?ID=<%: raid.ID %>" title="Un-Archive this raid"><img src="/Content/images/archive-icon.png" alt="Un-Archive" /></a></td>
<% } %>
  </tr>

<%
    }
}
else
{
%>

  <tr>
   <td colspan="5">There are no archived raids at this time.</td>
  </tr>

<%
}    
%>

 </tbody>
</table>

</asp:Content>
<commit_msg>Forgot one minor change for the last commit.<commit_after>﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="DOTP.RaidManager" %>
<%@ Import Namespace="DOTP.Users" %>

<asp:Content ID="TitleContent" ContentPlaceHolderID="TitleContent" runat="server">DRM - Home</asp:Content>

<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">

<h2>Welcome to the Defenders of the Pass raid management site!</h2>

<p>All times are in server time (EST).</p>
<p>
 Scheduled raids:
<% if((null != Manager.GetCurrentUser()) && Manager.GetCurrentUser().IsAdmin){ %>
 (<a href="/Raid/Schedule" title="Schedule a raid"><img src="/Content/images/new-icon.png" alt="New" /></a>)
<% } %>
</p>

<table style="width: 100%" class="listTable">
 <thead>
  <tr>
   <td><b>Raid ID</b></td>
   <td><b>Name</b></td>
   <td><b>Raid</b></td>
   <td><b>Invite Time</b></td>
   <td><b>Start Time</b></td>
   <td></td>
  </tr>
 </thead>
 <tbody>

<%
var instances = RaidInstance.Store.ReadAll(ri => !ri.Archived);
    
if( null != instances )
{
    foreach(var raid in instances)
    {
%>   

  <tr>
   <td><%: raid.ID %></td>
   <td><%: raid.Name %></td>
   <td><%: raid.Raid %></td>
   <td><%: raid.InviteTime.ToShortDateString() + " " + raid.InviteTime.ToLongTimeString() %></td>
   <td><%: raid.StartTime.ToShortDateString() + " " + raid.StartTime.ToLongTimeString() %></td>
   <td>
    <a href="/Raid/Signup?ID=<%: raid.ID %>" title="View signup details for this raid"><img src="/Content/images/calendar-icon.png" alt="Sign Up" /></a>
<% if((null != Manager.GetCurrentUser()) && Manager.GetCurrentUser().IsRaidTeam){ %>
    <a href="/Raid/Roster?ID=<%: raid.ID %>" title="Roster this raid"><img src="/Content/images/roster-icon.png" alt="Roster" /></a>
    <a href="/Raid/Edit?ID=<%: raid.ID %>" title="Edit this raid"><img src="/Content/images/edit-icon.png" alt="Edit" /></a>
    <a href="/Raid/Archive?ID=<%: raid.ID %>" title="Archive this raid"><img src="/Content/images/archive-icon.png" alt="Archive" /></a>
<% } %>
   </td>
  </tr>

<%
    }
}
else
{
%>

  <tr>
   <td colspan="5">There are no raids scheduled at this time.</td>
  </tr>

<%
}    
%>

 </tbody>
</table>

<p>Archived raids:</p>

<table style="width: 100%" class="listTable">
 <thead>
  <tr>
   <td><b>Raid ID</b></td>
   <td><b>Name</b></td>
   <td><b>Raid</b></td>
   <td><b>Invite Time</b></td>
   <td><b>Start Time</b></td>
   <td></td>
  </tr>
 </thead>
 <tbody>

<%
instances = RaidInstance.Store.ReadAll(ri => ri.Archived);
    
if( null != instances )
{
    foreach(var raid in instances)
    {
%>   

  <tr>
   <td><%: raid.ID %></td>
   <td><%: raid.Name %></td>
   <td><%: raid.Raid %></td>
   <td><%: raid.InviteTime.ToShortDateString() + " " + raid.InviteTime.ToLongTimeString() %></td>
   <td><%: raid.StartTime.ToShortDateString() + " " + raid.StartTime.ToLongTimeString() %></td>
   <td>
    <a href="/Raid/Signup?ID=<%: raid.ID %>" title="View signup details for this raid"><img src="/Content/images/calendar-icon.png" alt="Sign Up" /></a>
<% if((null != Manager.GetCurrentUser()) && Manager.GetCurrentUser().IsRaidTeam){ %>
    <a href="/Raid/UnArchive?ID=<%: raid.ID %>" title="Un-Archive this raid"><img src="/Content/images/archive-icon.png" alt="Un-Archive" /></a>
<% } %>
   </td>
  </tr>

<%
    }
}
else
{
%>

  <tr>
   <td colspan="5">There are no archived raids at this time.</td>
  </tr>

<%
}    
%>

 </tbody>
</table>

</asp:Content>

{'fraction_non_alphanumeric': 0.2469971006489024, 'fraction_numerical': 0.0027612867596299878, 'mean_word_length': 3.9178547182620505, 'pattern_counts': {'":': 0, '<': 335, '<?xml version=': 0, '>': 339, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3371689', 'n_tokens_mistral': 2925, 'n_tokens_neox': 2781, 'n_words': 511}