show the version: this is done.

This commit is contained in:
2017-09-13 22:33:40 +02:00
parent 91932e7641
commit 22a6c66e0d

View File

@ -81,7 +81,6 @@ namespace Yavsc.Controllers
} }
public async Task<IActionResult> About() public async Task<IActionResult> About()
{ {
// TODO show the version tag
FileInfo fi = new FileInfo("wwwroot/version"); 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."]); return View("About",fi.Exists ? _localizer["Version logicielle: "] + await fi.OpenText().ReadToEndAsync() : _localizer["Aucune information sur la version logicielle n'est publiée."]);
} }