Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
Merge pull request #237 from abpframework/gterdem/ui_update
Browse files Browse the repository at this point in the history
Footer enhancement
  • Loading branch information
gterdem authored Feb 20, 2024
2 parents c99310e + 94ecc7e commit b09a23e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
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>
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; }
}

0 comments on commit b09a23e

Please sign in to comment.