Migrated RenderNoContentController + related (#9309)

* Migrated RenderNoContentController + related

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Fix after MSDI

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Update src/Umbraco.Web.UI/Umbraco.Web.UI.csproj

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

* Removing connection string

* Fixed tests after moving endpoint registration

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
This commit is contained in:
Bjarke Berg
2020-11-03 18:55:55 +01:00
committed by GitHub
parent 3cf45c9e88
commit dae6e2b8ee
20 changed files with 115 additions and 58 deletions

View File

@@ -49,6 +49,7 @@ namespace Umbraco.Web.UI.NetCore
}
app.UseUmbraco();
app.UseUmbracoWebsite();
}
}
}

View File

@@ -24,7 +24,6 @@
<ItemGroup>
<Folder Include="Views" />
<Folder Include="wwwroot\Media" />
<Folder Include="umbraco" />
<Folder Include="Views" />
<Folder Include="wwwroot\Media" />
</ItemGroup>
@@ -55,6 +54,7 @@
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
</None>
<None Remove="App_Data\**" />
<None Include="umbraco\UmbracoWebsite\NoNodes.cshtml" />
</ItemGroup>
<!-- We don't want to include the generated files, they will throw a lot of errors -->

View File

@@ -38,8 +38,8 @@
"ConvertUrlsToAscii": "try"
},
"RuntimeMinification": {
"dataFolder": "App_Data/TEMP/Smidge",
"version": "1"
"dataFolder": "App_Data/TEMP/Smidge",
"version": "637395756047165417"
},
"Security": {
"KeepUserLoggedIn": false,

View File

@@ -0,0 +1,49 @@
@model Umbraco.Web.Website.Models.NoNodesViewModel
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Umbraco: No Published Content</title>
<link rel="stylesheet" href="../../umbraco/assets/css/nonodes.style.min.css" />
</head>
<body>
<section>
<article>
<div>
<div class="logo"></div>
<h1>Welcome to your Umbraco installation</h1>
<h3>You're seeing this wonderful page because your website doesn't contain any published content yet.</h3>
<div class="cta">
<a href="@Model.UmbracoPath" class="button">Open Umbraco</a>
</div>
<div class="row">
<div class="col">
<h2>Easy start with Umbraco.tv</h2>
<p>We have created a bunch of 'how-to' videos, to get you easily started with Umbraco. Learn how to build projects in just a couple of minutes. Easiest CMS in the world.</p>
<a href="https://umbraco.tv?ref=tvFromInstaller" target="_blank">Umbraco.tv &rarr;</a>
</div>
<div class="col">
<h2>Be a part of the community</h2>
<p>The Umbraco community is the best of its kind, be sure to visit, and if you have any questions, we're sure that you can get your answers from the community.</p>
<a href="https://our.umbraco.com/?ref=ourFromInstaller" target="_blank">our.Umbraco &rarr;</a>
</div>
</div>
</div>
</article>
</section>
</body>
</html>