Skip to content

Commit 3db3d2e

Browse files
Joshua-Lester3BenjaminMichaelis
authored andcommitted
save changes
1 parent 4260042 commit 3db3d2e

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

EssentialCSharp.Web/Controllers/HomeController.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public IActionResult Index()
4444
}
4545
}
4646

47+
48+
4749
[Route("/TermsOfService",
4850
Name = "TermsOfService")]
4951
public IActionResult TermsOfService()

EssentialCSharp.Web/Views/Shared/_Layout.cshtml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@
125125
<span v-cloak>{{chapterParentPage.title}}</span>
126126
</a>
127127
<div class="menu-chapter-title text-light">
128-
{{currentPageCount}} / {{totalPageCount}}
128+
<form
129+
<span v-cloak>{{currentPageCount}} / {{totalPageCount}}</span>
129130
</div>
130131

131132
<div class="d-flex align-items-center">
@@ -274,6 +275,7 @@
274275
}
275276
CURRENT_PAGE_COUNT = @Json.Serialize(currentPageCount)
276277
TOTAL_PAGE_COUNT = @Json.Serialize(overallCount)
278+
KEY_LIST = @Json.Serialize(keyList)
277279
PREVIOUS_PAGE = @Json.Serialize(ViewBag.PreviousPage)
278280
NEXT_PAGE = @Json.Serialize(ViewBag.NextPage)
279281
TOC_DATA = @Json.Serialize(tocData)

EssentialCSharp.Web/wwwroot/js/site.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ const app = createApp({
213213

214214
const currentPageCount = CURRENT_PAGE_COUNT;
215215
const totalPageCount = TOTAL_PAGE_COUNT;
216+
const keyList = KEY_LIST
216217

217218
const chapterParentPage = currentPage.find((parent) => parent.level === 0);
218219

@@ -340,6 +341,7 @@ const app = createApp({
340341
currentPage,
341342
currentPageCount,
342343
totalPageCount,
344+
keyList,
343345
chapterParentPage,
344346

345347
searchQuery,

0 commit comments

Comments
 (0)