From cb9af1f6e86e8310b787da682ea35bd5ccb497c4 Mon Sep 17 00:00:00 2001 From: robo-bo Date: Thu, 8 Sep 2022 11:07:16 +0300 Subject: [PATCH] orc add version label --- Sources/pyOpenRPA/Orchestrator/ServerSettings.py | 4 ++-- Sources/pyOpenRPA/Resources/Web/orpa/header.xhtml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Sources/pyOpenRPA/Orchestrator/ServerSettings.py b/Sources/pyOpenRPA/Orchestrator/ServerSettings.py index b9d24958..ca2f5081 100755 --- a/Sources/pyOpenRPA/Orchestrator/ServerSettings.py +++ b/Sources/pyOpenRPA/Orchestrator/ServerSettings.py @@ -468,11 +468,11 @@ def pyOpenRPA_Agent_A2O(inRequest:Request, inAuthTokenStr:str = Depends(Identify from pyOpenRPA.Utils.Render import Render lFileStr = CrossOS.PathJoinList(CrossOS.PathSplitList(__file__)[:-2] + ["Resources","Web","orpa","orc.xhtml"]) gRender = Render(inTemplatePathStr=lFileStr,inTemplateRefreshBool=True) - +from pyOpenRPA import __version__ def pyOpenRPA_Index(): # Пример использования global gRender - lStr = gRender.Generate(inDataDict={"title":"ОРКЕСТРАТОР PYOPENRPA", "subtitle":"ПАНЕЛЬ УПРАВЛЕНИЯ"}) + lStr = gRender.Generate(inDataDict={"title":"ОРКЕСТРАТОР PYOPENRPA", "subtitle":"ПАНЕЛЬ УПРАВЛЕНИЯ", "version":__version__}) __Orchestrator__.WebRequestResponseSend(inResponeStr=lStr,inContentTypeStr="text/html") def SettingsUpdate(): diff --git a/Sources/pyOpenRPA/Resources/Web/orpa/header.xhtml b/Sources/pyOpenRPA/Resources/Web/orpa/header.xhtml index d9c7cec6..bf933b79 100755 --- a/Sources/pyOpenRPA/Resources/Web/orpa/header.xhtml +++ b/Sources/pyOpenRPA/Resources/Web/orpa/header.xhtml @@ -87,7 +87,8 @@

{{title}} -

+
{{version}}
+

{{subtitle}}