Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pretix Matrix Inviter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIF
Pretix Matrix Inviter
Commits
cdd44b36
Commit
cdd44b36
authored
3 years ago
by
Felix Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
More consistent locale strings
parent
88536c84
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pretix_matrix_inviter/__init__.py
+2
-2
2 additions, 2 deletions
pretix_matrix_inviter/__init__.py
pretix_matrix_inviter/forms.py
+8
-6
8 additions, 6 deletions
pretix_matrix_inviter/forms.py
with
10 additions
and
8 deletions
pretix_matrix_inviter/__init__.py
+
2
−
2
View file @
cdd44b36
...
...
@@ -10,10 +10,10 @@ __version__ = "1.1.0"
class
PluginApp
(
PluginConfig
):
name
=
"
pretix_matrix_inviter
"
verbose_name
=
"
Matrix
I
nviter
"
verbose_name
=
"
Matrix
i
nviter
"
class
PretixPluginMeta
:
name
=
gettext_lazy
(
"
Matrix
I
nviter
"
)
name
=
gettext_lazy
(
"
Matrix
i
nviter
"
)
author
=
"
Felix Schäfer
"
description
=
gettext_lazy
(
"
Ask participants for their Matrix ID and invite them to a Matrix Room or Space.
"
...
...
This diff is collapsed.
Click to expand it.
pretix_matrix_inviter/forms.py
+
8
−
6
View file @
cdd44b36
...
...
@@ -20,10 +20,10 @@ class MatrixInviterForm(SettingsForm):
help_text
=
_
(
"
These products will ask for a Matrix ID.
"
),
)
matrix_inviter_authorization_token
=
CharField
(
label
=
_
(
"
A
uthorization
token
"
),
label
=
_
(
"
A
ccess
token
"
),
strip
=
True
,
help_text
=
_
(
"
This should be the a
uthorization
token of a user that can invite attendees to the target Room or Space.
"
"
This should be the a
ccess
token of a user that can invite attendees to the target Room or Space.
"
"
Please note that other administrators of this event will be able to see this token, it should not be from
"
"
your own Matrix account but from a dedicated Matrix account.
"
),
...
...
@@ -31,14 +31,14 @@ class MatrixInviterForm(SettingsForm):
matrix_inviter_matrix_server
=
CharField
(
label
=
_
(
"
Matrix server
"
),
strip
=
True
,
help_text
=
_
(
"
The matrix server the above a
uthorization
token is valid for.
"
),
help_text
=
_
(
"
The matrix server the above a
ccess
token is valid for.
"
),
)
matrix_inviter_hint
=
I18nFormField
(
widget
=
I18nTextInput
,
label
=
_
(
"
Matrix ID field help text
"
),
required
=
True
,
help_text
=
_
(
"
This will be shown as help text on the Matrix ID field. It is recommended to inform your attendees
to
"
"
This will be shown as help text on the Matrix ID field. It is recommended to inform your attendees
"
"
which room they will be invited to and what that room will be used for.
"
),
)
...
...
@@ -63,13 +63,15 @@ class MatrixInviterForm(SettingsForm):
room_info
=
matrix_room_info_for_event
(
self
.
obj
)
if
self
.
obj
.
settings
.
matrix_inviter_matrix_room
.
startswith
(
"
!
"
):
if
room_info
[
"
canonical_alias
"
]:
room_help_text
=
_
(
'"
{name}
"
(<code>{canonical_alias}</code>)
'
)
room_help_text
=
_
(
'"
{name}
"
(main address: <code>{canonical_alias}</code>)
'
)
else
:
room_help_text
=
_
(
'"
{name}
"'
)
else
:
if
room_info
[
"
canonical_alias
"
]:
room_help_text
=
_
(
'"
{name}
"
(<code>{room_id}</code>, main a
lia
s: <code>{canonical_alias}</code>)
'
'"
{name}
"
(<code>{room_id}</code>, main a
ddres
s: <code>{canonical_alias}</code>)
'
)
else
:
room_help_text
=
_
(
'"
{name}
"
(<code>{room_id}</code>)
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment