SBAdmin2.Template 1.0.1

dotnet add package SBAdmin2.Template --version 1.0.1
NuGet\Install-Package SBAdmin2.Template -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SBAdmin2.Template" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SBAdmin2.Template --version 1.0.1
#r "nuget: SBAdmin2.Template, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SBAdmin2.Template as a Cake Addin
#addin nuget:?package=SBAdmin2.Template&version=1.0.1

// Install SBAdmin2.Template as a Cake Tool
#tool nuget:?package=SBAdmin2.Template&version=1.0.1

SB Admin 2

SB Admin 2 is an open source template project created by David Miller for Bootstrap 4+.

Installation

Use the package manager to install this package or use the console.

Install-Package SBAdmin2.Template 

Change Tracking

The following files will be replaced by this package:

~/Views/Shared/_Layout.cshtml
~/Views/Content/Site.css

The following files will be added:

~/Views/Shared/_AdminLayout.cshtml
~/Content/sb-admin.css
~/Content/sb-admin.min.css
~/Scritps/vendor
~/Scripts/sb-admin.js
~/Scripts/sb-admin.min.js

Usage

This package should work out of the box, however you must make some additional changes to your project.

To utilize the Admin Dashboard using _AdminLayout.cshtml you must perform this change in _ViewStart.cshtml file located in the Views folder.

Layout = "~/Views/Shared/_AdminLayout.cshtml";

OPTIONAL: SB Admin CSS and JS files can be added to BundleConfig.cs

bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/sb-admin.css",
                      "~/Content/site.css"));
bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/sb-admin.css",
                      "~/Content/site.css"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/sb-admin.js",
                      "~/Scripts/respond.js"));

If you add these lines to the BundleConfig you must remove them from the _AdminLayout.cshtml

NOTE: All Bootstrap 4 navigation links must include the css class "nav-link"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 7,850 12/17/2018
1.0.0 2,556 12/17/2018

Update 1.0.1 release