From a39630674fc4cfc71eedc7794f56b293f0eb50da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Tue, 21 Feb 2017 22:05:42 +0300 Subject: [PATCH] Added a simple layout to abpdesk --- .../Views/Shared/_Layout.cshtml | 18 ++++++++++++++++++ .../AbpDesk.Web.Mvc/Views/Tickets/Index.cshtml | 7 +++++-- .../AbpDesk.Web.Mvc/Views/_ViewImports.cshtml | 1 + .../AbpDesk.Web.Mvc/Views/_ViewStart.cshtml | 3 +++ 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/AbpDesk/AbpDesk.Web.Mvc/Views/Shared/_Layout.cshtml create mode 100644 src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewImports.cshtml create mode 100644 src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewStart.cshtml diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/Views/Shared/_Layout.cshtml b/src/AbpDesk/AbpDesk.Web.Mvc/Views/Shared/_Layout.cshtml new file mode 100644 index 0000000000..40498afa95 --- /dev/null +++ b/src/AbpDesk/AbpDesk.Web.Mvc/Views/Shared/_Layout.cshtml @@ -0,0 +1,18 @@ +@{ + Layout = null; +} + + + + + + title + + @RenderSection("styles", false) + + + + @RenderBody() + + + \ No newline at end of file diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/Views/Tickets/Index.cshtml b/src/AbpDesk/AbpDesk.Web.Mvc/Views/Tickets/Index.cshtml index 9e96963ba8..e7ff73ee02 100644 --- a/src/AbpDesk/AbpDesk.Web.Mvc/Views/Tickets/Index.cshtml +++ b/src/AbpDesk/AbpDesk.Web.Mvc/Views/Tickets/Index.cshtml @@ -1,7 +1,10 @@ @using AbpDesk.Web.Mvc.Models.Tickets -@model AbpDesk.Web.Mvc.Models.Tickets.IndexViewModel +@model IndexViewModel - +@section styles +{ + +}

Tickets

diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewImports.cshtml b/src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewImports.cshtml new file mode 100644 index 0000000000..9018c7897f --- /dev/null +++ b/src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewImports.cshtml @@ -0,0 +1 @@ +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers \ No newline at end of file diff --git a/src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewStart.cshtml b/src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewStart.cshtml new file mode 100644 index 0000000000..2de62418c0 --- /dev/null +++ b/src/AbpDesk/AbpDesk.Web.Mvc/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "~/Views/Shared/_Layout.cshtml"; +}