This commit is contained in:
2017-09-13 22:32:17 +02:00
parent c6792535e4
commit 91932e7641
3 changed files with 9 additions and 2 deletions

View File

@ -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()
{

View File

@ -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
View File

@ -0,0 +1 @@
test