Skip to content

Commit

Permalink
favicon added
Browse files Browse the repository at this point in the history
  • Loading branch information
Sailesh Rijal committed May 21, 2023
1 parent 962427c commit 434fe92
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/LibraryManagementSystem/bin/Debug/net7.0/LibraryManagementSystem.dll",
"args": [],
"cwd": "${workspaceFolder}/LibraryManagementSystem",
"stopAtEntry": false,
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}
41 changes: 41 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/LibraryManagementSystem/LibraryManagementSystem.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/LibraryManagementSystem/LibraryManagementSystem.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/LibraryManagementSystem/LibraryManagementSystem.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
1 change: 1 addition & 0 deletions LibraryManagementSystem/Views/Account/Login.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<meta name="author" content="" />
<title>Login - @AppConstants.Name</title>
<link href="~/theme/css/styles.css" rel="stylesheet" />
<link rel="shortcut icon" href="/img/logo.png" type="image/x-icon">
<script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
</head>

Expand Down
10 changes: 6 additions & 4 deletions LibraryManagementSystem/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
var currentController = ViewContext.RouteData.Values["controller"] as string;
var currentAction = ViewContext.RouteData.Values["action"] as string;

var image = loggedInUser?.ImageUrl == null ? "/defaultImage/avatar.png" : "/uploads/user/"+loggedInUser.ImageUrl;
var image = loggedInUser?.ImageUrl == null ? "/defaultImage/avatar.png" : "/uploads/user/" + loggedInUser.ImageUrl;
}

<!DOCTYPE html>
Expand All @@ -20,6 +20,7 @@
<meta name="description" content="" />
<meta name="author" content="" />
<title>@ViewData["Title"] - @AppConstants.Name</title>
<link rel="shortcut icon" href="/img/logo.png" type="image/x-icon">
<link href="https://cdn.jsdelivr.net/npm/simple-datatables@7.1.2/dist/style.min.css" rel="stylesheet" />
<link href="~/theme/css/styles.css" rel="stylesheet" />
<script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script>
Expand All @@ -33,7 +34,7 @@
<a class="navbar-brand ps-3 d-flex align-items-center gap-2" asp-controller="Home" asp-action="Index">
<img src="/img/logo.png" width="30px" height="30" alt="@AppConstants.Name">
@AppConstants.Name
</a>
</a>
<!-- Sidebar Toggle-->
<button class="btn btn-link btn-sm order-1 order-lg-0 me-4 me-lg-0" id="sidebarToggle" href="#!"><i
class="fas fa-bars"></i></button>
Expand All @@ -44,8 +45,9 @@
<ul class="navbar-nav ms-auto ms-md-0 me-3 me-lg-4">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="navbarDropdown" href="#" role="button" data-bs-toggle="dropdown"
aria-expanded="false"><img src="@image" height="30px" width="30px" class="rounded bg-white" style="object-fit: cover; object-position: center;">
</a>
aria-expanded="false"><img src="@image" height="30px" width="30px" class="rounded bg-white"
style="object-fit: cover; object-position: center;">
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" asp-controller="Profile" asp-action="Index">My Profile</a></li>
<li>
Expand Down

0 comments on commit 434fe92

Please sign in to comment.