This repository was archived by the owner on Jan 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from abpframework/gterdem/ui_update
Footer enhancement
- Loading branch information
Showing
2 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
7 changes: 6 additions & 1 deletion
7
apps/public-web/src/EShopOnAbp.PublicWeb/Components/Toolbar/Footer/Default.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
<div class="lpx-footbar-container" style="z-index: 10000; background: none !important;"> | ||
@model EShopOnAbp.PublicWeb.Components.Toolbar.Footer.FooterModel | ||
|
||
<div class="lpx-footbar-container" style="z-index: 10000; background: none !important;"> | ||
<div class="lpx-footbar"> | ||
<div class="lpx-footbar-copyright"> | ||
<span>This website is built on top of the </span> | ||
<a href="https://abp.io/" target="_blank">ABP Framework</a> | ||
<span> and the source code is available at </span> | ||
<a href="https://github.com/abpframework/eShopOnAbp" target="_blank">github.com/abpframework/eShopOnAbp</a> | ||
</div> | ||
<div class="lpx-footbar-solo-links"> | ||
<a href="javascript:void(0)">ABP @Model.AbpVersion</a> | ||
</div> | ||
</div> | ||
</div> |
24 changes: 18 additions & 6 deletions
24
apps/public-web/src/EShopOnAbp.PublicWeb/Components/Toolbar/Footer/FooterComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
using Microsoft.AspNetCore.Mvc; | ||
using Volo.Abp.AspNetCore.Mvc; | ||
|
||
namespace EShopOnAbp.PublicWeb.Components.Toolbar.Footer | ||
namespace EShopOnAbp.PublicWeb.Components.Toolbar.Footer; | ||
|
||
public class FooterComponent : AbpViewComponent | ||
{ | ||
public class FooterComponent : AbpViewComponent | ||
private readonly FooterModel _model = new(); | ||
|
||
public FooterComponent() | ||
{ | ||
public virtual IViewComponentResult Invoke() | ||
{ | ||
return View("~/Components/Toolbar/Footer/Default.cshtml"); | ||
} | ||
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(typeof(AbpViewComponent).Assembly.Location); | ||
_model.AbpVersion = fvi.FileVersion; | ||
} | ||
|
||
public virtual IViewComponentResult Invoke() | ||
{ | ||
return View("~/Components/Toolbar/Footer/Default.cshtml", _model); | ||
} | ||
} | ||
|
||
public class FooterModel | ||
{ | ||
public string AbpVersion { get; set; } | ||
} |