Fixes the contact page
This commit is contained in:
parent
20713eef64
commit
1054deaebf
4 changed files with 19 additions and 15 deletions
|
|
@ -1,17 +1,10 @@
|
|||
@using Microsoft.IdentityModel.Protocols.Configuration
|
||||
@model SiteSettings
|
||||
@{
|
||||
ViewBag.Title = "Contact";
|
||||
if (Model.Owner==null)
|
||||
throw new InvalidConfigurationException("no owner");
|
||||
}
|
||||
<h2>Contact</h2>
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
<h3>@ViewBag.Message</h3>
|
||||
<p>@Model.Owner.Name </p>
|
||||
|
||||
<p>
|
||||
@Model.Owner.Name <br>
|
||||
@Html.DisplayFor(m=>m.Owner.PostalAddress)</p>
|
||||
@Html.DisplayFor(m=>m.Owner.PostalAddress)
|
||||
|
||||
<address>
|
||||
<strong>Support:</strong> <a href="mailto:@Model.Admin.EMail">@(Model.Admin.Name)<@(Model.Admin.EMail)></a><br />
|
||||
|
|
|
|||
|
|
@ -1,8 +1,14 @@
|
|||
@model PostalAddress
|
||||
|
||||
@if (Model==null)
|
||||
{
|
||||
<i>⚠ Pas d'adresse postale renseignée ⚠</i>
|
||||
}
|
||||
else {
|
||||
<address>
|
||||
@Model.Street1<br />
|
||||
@Model.Street2<br />
|
||||
@Model.PostalCode, @Model.City<br />
|
||||
@Model.Province @Model.State @Model.Country
|
||||
</address>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue