Fixes the contact page
This commit is contained in:
parent
20713eef64
commit
1054deaebf
4 changed files with 19 additions and 15 deletions
8
.vscode/launch.json
vendored
8
.vscode/launch.json
vendored
|
|
@ -4,11 +4,17 @@
|
||||||
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
|
// Pour plus d'informations, visitez : https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "C#: Yavsc.Org Debug",
|
||||||
|
"type": "dotnet",
|
||||||
|
"request": "launch",
|
||||||
|
"projectPath": "${workspaceFolder}/src/Yavsc.Org/Yavsc.Org.csproj"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Yavsc.Org",
|
"name": "Yavsc.Org",
|
||||||
"type": "coreclr",
|
"type": "coreclr",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"preLaunchTask": "build",
|
"preLaunchTask": "build-web",
|
||||||
"program": "${workspaceFolder}/src/Yavsc.Org/bin/Debug/net10.0/Yavsc.Org.dll",
|
"program": "${workspaceFolder}/src/Yavsc.Org/bin/Debug/net10.0/Yavsc.Org.dll",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${workspaceFolder}/src/Yavsc.Org",
|
"cwd": "${workspaceFolder}/src/Yavsc.Org",
|
||||||
|
|
|
||||||
5
.vscode/tasks.json
vendored
5
.vscode/tasks.json
vendored
|
|
@ -19,12 +19,11 @@
|
||||||
"command": "dotnet",
|
"command": "dotnet",
|
||||||
"args": ["build"],
|
"args": ["build"],
|
||||||
"options": {
|
"options": {
|
||||||
"cwd": "src/Yavsc"
|
"cwd": "src/Yavsc.Org"
|
||||||
},
|
},
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build"
|
"kind": "build"
|
||||||
},
|
}
|
||||||
"isBackground": true
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "build-webapi",
|
"label": "build-webapi",
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,10 @@
|
||||||
@using Microsoft.IdentityModel.Protocols.Configuration
|
@using Microsoft.IdentityModel.Protocols.Configuration
|
||||||
@model SiteSettings
|
@model SiteSettings
|
||||||
@{
|
<h2>Contact</h2>
|
||||||
ViewBag.Title = "Contact";
|
|
||||||
if (Model.Owner==null)
|
|
||||||
throw new InvalidConfigurationException("no owner");
|
|
||||||
}
|
|
||||||
|
|
||||||
<h2>@ViewBag.Title</h2>
|
<p>@Model.Owner.Name </p>
|
||||||
<h3>@ViewBag.Message</h3>
|
|
||||||
|
|
||||||
<p>
|
@Html.DisplayFor(m=>m.Owner.PostalAddress)
|
||||||
@Model.Owner.Name <br>
|
|
||||||
@Html.DisplayFor(m=>m.Owner.PostalAddress)</p>
|
|
||||||
|
|
||||||
<address>
|
<address>
|
||||||
<strong>Support:</strong> <a href="mailto:@Model.Admin.EMail">@(Model.Admin.Name)<@(Model.Admin.EMail)></a><br />
|
<strong>Support:</strong> <a href="mailto:@Model.Admin.EMail">@(Model.Admin.Name)<@(Model.Admin.EMail)></a><br />
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,14 @@
|
||||||
@model PostalAddress
|
@model PostalAddress
|
||||||
|
@if (Model==null)
|
||||||
|
{
|
||||||
|
<i>⚠ Pas d'adresse postale renseignée ⚠</i>
|
||||||
|
}
|
||||||
|
else {
|
||||||
<address>
|
<address>
|
||||||
@Model.Street1<br />
|
@Model.Street1<br />
|
||||||
@Model.Street2<br />
|
@Model.Street2<br />
|
||||||
@Model.PostalCode, @Model.City<br />
|
@Model.PostalCode, @Model.City<br />
|
||||||
@Model.Province @Model.State @Model.Country
|
@Model.Province @Model.State @Model.Country
|
||||||
</address>
|
</address>
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue