Skip to content

Commit 1a2c5db

Browse files
committed
About page added to admin
1 parent 4307eba commit 1a2c5db

File tree

6 files changed

+57
-3
lines changed

6 files changed

+57
-3
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
@page
2+
@inject IViewLocalizer Localizer
3+
@inject Core.Services.IDataService _data
4+
@inject Core.Data.AppDbContext _context
5+
@{
6+
ViewData["Title"] = Localizer["about"];
7+
var blog = await _data.CustomFields.GetBlogSettings();
8+
}
9+
10+
<div id="app" class="bf-content">
11+
<div id="about-page" class="bf-posts-grid d-flex">
12+
13+
<h4>Blogifier v.@AppSettings.Version</h4>
14+
15+
<table class="table">
16+
<tbody>
17+
<tr>
18+
<td width="20%">Language</td>
19+
<td width="80%">@blog.Culture</td>
20+
</tr>
21+
<tr>
22+
<td>Theme</td>
23+
<td>@blog.Theme</td>
24+
</tr>
25+
<tr>
26+
<td>Database</td>
27+
<td>@_context.Database.ProviderName</td>
28+
</tr>
29+
<tr>
30+
<td>Root</td>
31+
<td>@AppSettings.ContentRootPath</td>
32+
</tr>
33+
<tr>
34+
<td>OS</td>
35+
<td>@AppSettings.OSDescription</td>
36+
</tr>
37+
<tr>
38+
<td>APIs</td>
39+
<td><a href="~/swagger" target="_blank">Swagger API page</a></td>
40+
</tr>
41+
</tbody>
42+
</table>
43+
44+
</div>
45+
</div>

src/App/Pages/Admin/Shared/_Layout.cshtml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777
<i class="taskbar-item-icon fas fa-palette"></i>
7878
</a>
7979
</li>
80+
<li is-active-route asp-controller="about" class="taskbar-item">
81+
<a href="~/admin/about" class="taskbar-item-link" title="About">
82+
<i class="taskbar-item-icon fas fa-info-circle"></i>
83+
</a>
84+
</li>
8085
}
8186
else
8287
{

src/App/Resources/admin.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,5 +446,11 @@
446446
"zh-cn": "已创建",
447447
"zh-tw": "已創建"
448448
}
449+
},
450+
"about": {
451+
"Values": {
452+
"en-US": "About",
453+
"ru-RU": "Информация"
454+
}
449455
}
450456
}

src/Core/Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.2</TargetFramework>
5-
<Version>2.3.1.4</Version>
5+
<Version>2.3.1.5</Version>
66
</PropertyGroup>
77

88
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

src/Core/CoreAPI.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Core/Extensions/StringExtensions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public static string ExtractTitle(this string str)
4040
/// <summary>
4141
/// Converts title to valid URL slug
4242
/// </summary>
43-
/// <param name="str">Title</param>
4443
/// <returns>Slug</returns>
4544
public static string ToSlug(this string title)
4645
{

0 commit comments

Comments
 (0)