File tree Expand file tree Collapse file tree 6 files changed +13
-11
lines changed
AspNetCoreTemplate.Common
AspNetCoreTemplate.Web.ViewModels/Administration/Dashboard Expand file tree Collapse file tree 6 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 2
2
{
3
3
public static class GlobalConstants
4
4
{
5
+ public const string SystemName = "AspNetCoreTemplate" ;
6
+
5
7
public const string AdministratorRoleName = "Administrator" ;
6
8
}
7
9
}
Original file line number Diff line number Diff line change 1
- namespace AspNetCoreTemplate . Web . Areas . Administration . ViewModels . Dashboard
1
+ namespace AspNetCoreTemplate . Web . ViewModels . Administration . Dashboard
2
2
{
3
3
public class IndexViewModel
4
4
{
Original file line number Diff line number Diff line change 1
1
namespace AspNetCoreTemplate . Web . Areas . Administration . Controllers
2
2
{
3
- using System . Threading . Tasks ;
4
-
5
3
using AspNetCoreTemplate . Services . Data ;
6
- using AspNetCoreTemplate . Web . Areas . Administration . ViewModels . Dashboard ;
4
+ using AspNetCoreTemplate . Web . ViewModels . Administration . Dashboard ;
7
5
8
6
using Microsoft . AspNetCore . Mvc ;
9
7
Original file line number Diff line number Diff line change 1
- @model AspNetCoreTemplate .Web .Areas .Administration . ViewModels .Dashboard .IndexViewModel
1
+ @model AspNetCoreTemplate .Web .ViewModels .Administration .Dashboard .IndexViewModel
2
2
@{
3
3
this .ViewData [" Title" ] = " Admin dashboard" ;
4
4
}
Original file line number Diff line number Diff line change 1
- @{
1
+ @using AspNetCoreTemplate .Common
2
+ @{
2
3
this .ViewData [" Title" ] = " Home Page" ;
3
4
}
4
5
5
6
<div class =" text-center" >
6
- <h1 class =" display-4" >Welcome to AspNetCoreTemplate !</h1 >
7
+ <h1 class =" display-4" >Welcome to @GlobalConstants.SystemName !</h1 >
7
8
<p >Learn about <a href =" https://docs.microsoft.com/aspnet/core" >building Web apps with ASP.NET Core</a >.</p >
8
9
</div >
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
1
+ @using AspNetCoreTemplate .Common
2
+ <!DOCTYPE html>
2
3
<html >
3
4
<head >
4
5
<meta charset =" utf-8" />
5
6
<meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
6
- <title >@this.ViewData ["Title"] - AspNetCoreTemplate </title >
7
+ <title >@this.ViewData ["Title"] - @GlobalConstants.SystemName </title >
7
8
8
9
<environment names =" Development" >
9
10
<link href =" ~/lib/bootstrap/dist/css/bootstrap.css" rel =" stylesheet" asp-append-version =" true" />
18
19
<header >
19
20
<nav class =" navbar navbar-expand-sm navbar-light bg-white border-bottom box-shadow mb-3" >
20
21
<div class =" container" >
21
- <a class =" navbar-brand" asp-area =" " asp-controller =" Home" asp-action =" Index" >AspNetCoreTemplate </a >
22
+ <a class =" navbar-brand" asp-area =" " asp-controller =" Home" asp-action =" Index" >@GlobalConstants.SystemName </a >
22
23
<button class =" navbar-toggler" type =" button" data-toggle =" collapse" data-target =" .navbar-collapse" aria-controls =" navbarSupportedContent"
23
24
aria-expanded =" false" aria-label =" Toggle navigation" >
24
25
<span class =" navbar-toggler-icon" ></span >
50
51
51
52
<footer class =" border-top footer text-muted" >
52
53
<div class =" container" >
53
- © ; @DateTime.Now.Year - AspNetCoreTemplate - <a asp-area =" " asp-controller =" Home" asp-action =" Privacy" >Privacy</a >
54
+ © ; @DateTime.Now.Year - @GlobalConstants.SystemName - <a asp-area =" " asp-controller =" Home" asp-action =" Privacy" >Privacy</a >
54
55
</div >
55
56
</footer >
56
57
You can’t perform that action at this time.
0 commit comments