Files
Disco/Disco.Web/Views/Shared/_CustomDetailValueRender.generated.cs
T

226 lines
6.5 KiB
C#

#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Disco.Web.Views.Shared
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using System.Web.Mvc.Html;
using System.Web.Routing;
using System.Web.Security;
using System.Web.UI;
using System.Web.WebPages;
using Disco;
using Disco.Models.Repository;
#line 2 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
using Disco.Models.Services.Users.Contact;
#line default
#line hidden
using Disco.Services;
using Disco.Services.Authorization;
using Disco.Services.Web;
using Disco.Web;
using Disco.Web.Extensions;
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
[System.Web.WebPages.PageVirtualPathAttribute("~/Views/Shared/_CustomDetailValueRender.cshtml")]
public partial class _CustomDetailValueRender : Disco.Services.Web.WebViewPage<System.Collections.Generic.KeyValuePair<string, string>>
{
public _CustomDetailValueRender()
{
}
public override void Execute()
{
#line 3 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
UserContactEmail email;
if (UserContactEmail.TryParse(null, null, Model.Value, out email))
{
#line default
#line hidden
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 230), Tuple.Create("\"", 263)
, Tuple.Create(Tuple.Create("", 237), Tuple.Create("mailto:", 237), true)
#line 7 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
, Tuple.Create(Tuple.Create("", 244), Tuple.Create<System.Object, System.Int32>(email.EmailAddress
#line default
#line hidden
, 244), false)
);
WriteLiteral(" data-clipboard=\"");
#line 7 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
Write(email.ToString());
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(">");
#line 7 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
Write(string.IsNullOrWhiteSpace(email.Name) ? email.EmailAddress : email.Name);
#line default
#line hidden
WriteLiteral("</a>\r\n");
#line 8 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
}
else
{
UserContactAustralianPhone phone;
if (UserContactAustralianPhone.TryParse(null, null, Model.Value, out phone))
{
#line default
#line hidden
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 558), Tuple.Create("\"", 587)
, Tuple.Create(Tuple.Create("", 565), Tuple.Create("tel:", 565), true)
#line 14 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
, Tuple.Create(Tuple.Create("", 569), Tuple.Create<System.Object, System.Int32>(phone.PhoneNumber
#line default
#line hidden
, 569), false)
);
WriteLiteral(" data-clipboard=\"");
#line 14 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
Write(phone.ToString());
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(">");
#line 14 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
Write(string.IsNullOrWhiteSpace(phone.Name) ? phone.PhoneNumber : phone.Name);
#line default
#line hidden
WriteLiteral("</a>\r\n");
#line 15 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
}
else
{
UserContactAustralianPhone mobile;
if (UserContactAustralianPhone.TryParse(null, null, Model.Value, out mobile))
{
#line default
#line hidden
WriteLiteral(" <a");
WriteAttribute("href", Tuple.Create(" href=\"", 911), Tuple.Create("\"", 941)
, Tuple.Create(Tuple.Create("", 918), Tuple.Create("tel:", 918), true)
#line 21 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
, Tuple.Create(Tuple.Create("", 922), Tuple.Create<System.Object, System.Int32>(mobile.PhoneNumber
#line default
#line hidden
, 922), false)
);
WriteLiteral(" data-clipboard=\"");
#line 21 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
Write(mobile.ToString());
#line default
#line hidden
WriteLiteral("\"");
WriteLiteral(">");
#line 21 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
Write(string.IsNullOrWhiteSpace(mobile.Name) ? mobile.PhoneNumber : mobile.Name);
#line default
#line hidden
WriteLiteral("</a>\r\n");
#line 22 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
}
else
{
#line default
#line hidden
WriteLiteral(" <span data-clipboard>");
#line 25 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
Write(Model.Value);
#line default
#line hidden
WriteLiteral("</span>\r\n");
#line 26 "..\..\Views\Shared\_CustomDetailValueRender.cshtml"
}
}
}
#line default
#line hidden
WriteLiteral("\r\n");
}
}
}
#pragma warning restore 1591