fix: display commit info properly
This commit is contained in:
@@ -36,11 +36,11 @@ def getCommit() -> str | None:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def getCommitInFormattedHTML():
|
def getCommitInFormattedHTML():
|
||||||
repo = "<p>Brak informacji o wersji skryptu</p>"
|
repo = "<center><p style=\"color: white;\">Brak informacji o wersji skryptu</p></center>"
|
||||||
commit = getCommit()
|
commit = getCommit()
|
||||||
|
|
||||||
if commit is not None:
|
if commit is not None:
|
||||||
repo = f"<p>Commit: <a href='https://gitea.7o7.cx/roberteam/lewangoalski/commit/{commit}'>{commit[:11]}</a></p>"
|
repo = f"<center><p style=\"color: white;\">Commit: <a href='https://gitea.7o7.cx/roberteam/lewangoalski/commit/{commit}'>{commit[:11]}</a></p></center>"
|
||||||
|
|
||||||
return repo
|
return repo
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user