File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/Blogifier/Views/Themes/standard/components Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 33@using Microsoft .Extensions .Localization
44@inject IStringLocalizer <Resource > _localizer
55@inject ICategoryProvider _categoryProvider
6+ @inject IAuthorProvider _authorProvider
67
78@{
89 var categories = await _categoryProvider .Categories ();
910 var catUrl = Url .Content (" ~/categories" );
11+ var currentUserAuthor = await _authorProvider .FindByEmail (User .Identity .Name );
1012}
1113
1214<nav class =" header-nav d-flex" >
8486 {
8587 <div class =" dropdown" >
8688 <button class =" header-nav-link -login ms-4" title =" @_localizer[" login " ]" id =" dropdownMenuButton" data-bs-toggle =" dropdown" aria-expanded =" false" aria-label =" Admin Menu - John" >
87- <span class =" me-1 d-none d-md-inline" >John </span >
89+ <span class =" me-1 d-none d-md-inline" >@currentUserAuthor.DisplayName </span >
8890 <svg xmlns =" http://www.w3.org/2000/svg" width =" 16" height =" 16" fill =" currentColor" class =" bi bi-chevron-down" viewBox =" 0 0 16 16" >
8991 <path fill-rule =" evenodd" d =" M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z" />
9092 </svg >
You can’t perform that action at this time.
0 commit comments