show the version: this is done.

This commit is contained in:
Paul Schneider 2017-09-13 22:33:40 +02:00
commit 66bb06dc85

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."]);
} }