Refactoring

This commit is contained in:
2013-01-17 20:14:04 -05:00
parent dccadd3d42
commit ffb6961fe0
7 changed files with 26 additions and 54 deletions
+12
View File
@@ -0,0 +1,12 @@
@using MileageTraker.Web.Utility
@model Tuple<DateTime,string>
@if (!Model.Item1.IsSqlMinValue())
{
@Html.Encode((DateTime.Now - Model.Item1).ToVerboseStringHistoric())
<span class="muted">(@Html.Encode(Model.Item1))</span>
}
else
{
<span class='label label-info'>@Model.Item2</span>
}