@*
TicketDesk - Attribution notice
Contributor(s):
Stephen Redd (stephen@reddnet.net, http://www.reddnet.net)
This file is distributed under the terms of the Microsoft Public
License (Ms-PL). See http://opensource.org/licenses/MS-PL
for the complete terms of use.
For any distribution that contains code from this file, this notice of
attribution must remain intact, and a copy of the license must be
provided to the recipient.
*@
@using TicketDesk.Domain
@using TicketDesk.Domain.Model
@model TicketDesk.Web.Client.Models.TicketEmail
Content-Type: text/html; charset=utf-8
Ticket #@Model.Ticket.TicketId
@if (!string.IsNullOrEmpty(Model.Ticket.TagList))
{
@foreach (var tag in Model.Ticket.TagList.Split(','))
{
@tag
}
|
}
@Model.Ticket.Priority Priority @Model.Ticket.Category @Model.Ticket.TicketType
|
@if (Model.IsMultiProject)
{
Project: @Model.Ticket.Project.ProjectName
|
}
@if (string.IsNullOrEmpty(Model.Ticket.AssignedTo))
{
@:Assigned To: Unassigned
}
else
{
@:Assigned To: @Model.Ticket.GetAssignedToInfo().DisplayName
}
|
Owner: @Model.Ticket.GetOwnerInfo().DisplayName
|
Updated by: @Model.Ticket.GetLastUpdatedByInfo().DisplayName at @Model.Ticket.LastUpdateDate.DateTime.ToShortDateString() @Model.Ticket.LastUpdateDate.DateTime.ToShortTimeString()
|
@Model.Ticket.HtmlDetails()
|
@foreach (var evt in Model.Ticket.TicketEvents.OrderByDescending(c => c.EventDate))
{
@evt.GetEventByInfo().DisplayName @evt.EventDescription |
@evt.EventDate.Date.ToLongDateString()
@evt.EventDate.Date.ToShortTimeString()
|
@{
var cmt = evt.HtmlComment();
if (!string.IsNullOrEmpty(cmt.ToString()))
{
}
}
}