Skip to content

Commit

Permalink
UX - Review help about lizmap_user_groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Oct 17, 2023
1 parent ce116e6 commit 59bee7b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lizmap/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,17 +1186,20 @@ def initGui(self):
if qgis_version() >= 32200:
QgsExpression.addVariableHelpText(
"lizmap_user",
"{}<br/>{}<br/>{}".format(
"{}<br/><br/>{}<br/><br/>{}".format(
tr("The current Lizmap login as a string."),
tr("It might be an empty string if the user is not connected."),
server_side,
)
)
QgsExpression.addVariableHelpText(
"lizmap_user_groups",
"{}<br/>{}<br/>{}".format(
tr("The current groups of the logged user as an array."),
"{}<br/><br/>{}<br/><br/>{}<br/><br/>{}".format(
tr("The current groups of the logged user as an <strong>array</strong>."),
tr("It might be an empty array if the user is not connected."),
tr(
"You might need to use functions in the <strong>Array</strong> expression category, such as "
"<pre>array_to_string</pre> to convert it to a string."),
server_side,
)
)
Expand Down

0 comments on commit 59bee7b

Please sign in to comment.