From b8a95536ef9d91c6df5d0121ba02c8867f4e3343 Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Fri, 2 Feb 2018 17:28:59 -0800 Subject: [PATCH] Improve the sample website --- .../AspNetCoreMvc/Views/Home/Index.cshtml | 25 ++++++++++++------- .../AspNetCoreMvc/Views/Shared/_Layout.cshtml | 2 +- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/PlatformSamples/AspNetCoreMvc/Views/Home/Index.cshtml b/PlatformSamples/AspNetCoreMvc/Views/Home/Index.cshtml index a2cc879..a114823 100644 --- a/PlatformSamples/AspNetCoreMvc/Views/Home/Index.cshtml +++ b/PlatformSamples/AspNetCoreMvc/Views/Home/Index.cshtml @@ -1,5 +1,7 @@ @{ ViewData["Title"] = "Ooui"; + var formsSamples = SamplesController.Samples.Where(x => x.Title.StartsWith("Xamarin.Forms ")); + var otherSamples = SamplesController.Samples.Where(x => !x.Title.StartsWith("Xamarin.Forms ")); }
@@ -9,15 +11,26 @@

Ooui

Write interactive web apps in C# and F#

-

Source Code

+

Source Code on GitHub

-

Samples

+

Xamarin.Forms Samples

+
+
+

Plain Web Samples

+
    + @foreach (var s in otherSamples) {
  • @s.Title (Shared) @@ -25,10 +38,4 @@ }
-
-

Get it

- -
diff --git a/PlatformSamples/AspNetCoreMvc/Views/Shared/_Layout.cshtml b/PlatformSamples/AspNetCoreMvc/Views/Shared/_Layout.cshtml index ae68cea..efe8f47 100644 --- a/PlatformSamples/AspNetCoreMvc/Views/Shared/_Layout.cshtml +++ b/PlatformSamples/AspNetCoreMvc/Views/Shared/_Layout.cshtml @@ -40,7 +40,7 @@ @RenderBody()