version
This commit is contained in:
@ -13,6 +13,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Yavsc.Controllers
|
||||
{
|
||||
using System.IO;
|
||||
using Models;
|
||||
using Yavsc;
|
||||
|
||||
@ -78,9 +79,11 @@ namespace Yavsc.Controllers
|
||||
.Where(a=> a.ParentCode==id).OrderByDescending(a=>a.Rate));
|
||||
}
|
||||
}
|
||||
public IActionResult About()
|
||||
public async Task<IActionResult> About()
|
||||
{
|
||||
return View();
|
||||
// TODO show the version tag
|
||||
FileInfo fi = new FileInfo("wwwroot/version");
|
||||
return View("About",fi.Exists ? _localizer["Version logicielle: "] + await fi.OpenText().ReadToEndAsync() : _localizer["Aucune information sur la version logicielle n'est publiée."]);
|
||||
}
|
||||
public IActionResult Privacy()
|
||||
{
|
||||
|
@ -158,6 +158,9 @@ La "pré-production" affiche les sites suivants:
|
||||
* [Lua](https://lua.pschneider.fr)
|
||||
|
||||
</markdown>
|
||||
<p>
|
||||
@Model
|
||||
</p>
|
||||
</environment>
|
||||
|
||||
|
||||
|
1
Yavsc/wwwroot/version
Normal file
1
Yavsc/wwwroot/version
Normal file
@ -0,0 +1 @@
|
||||
test
|
Reference in New Issue
Block a user