Skip to content

Commit

Permalink
fix typo (#434)
Browse files Browse the repository at this point in the history
* fix typo

* explain url parameters in survey url hint

* extend german hint

---------

Co-authored-by: Timo Huber <[email protected]>
  • Loading branch information
timohuber and timohuber authored Sep 16, 2024
1 parent 849fef1 commit 97f05b1
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pool/app/message_template/message_template.ml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ let public_experiment_params layout experiment =
|> Public.online_experiment
|> function
| Some online ->
[ "experumentSurveyRedirectUrl", experiment_url ^ "/start"
[ "experimentSurveyRedirectUrl", experiment_url ^ "/start"
; "experimentSurveyUrl", SurveyUrl.value online.survey_url
]
| None -> []
Expand Down
2 changes: 1 addition & 1 deletion pool/app/pool_common/entity_i18n.ml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ type hint =
| ExperimentStatisticsRegistrationPossible
| ExperimentStatisticsSendingInvitations
| ExperimentWaitingList
| ExperumentSurveyRedirectUrl
| ExperimentSurveyRedirectUrl
| ExperimentSurveyUrl
| ExternalDataRequired
| FileUploadAcceptMime of string list
Expand Down
5 changes: 3 additions & 2 deletions pool/app/pool_common/locales/i18n_de.ml
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ Scheduled: Es läuft kein Mailing, aber zukünftige Mailings sind geplant|}
"Kontakte, die zu diesem Experiment eingeladen wurden, und sich auf die \
Warteliste gesetzt haben. Sie müssen manuell einer Session zugewiesen \
werden."
| ExperumentSurveyRedirectUrl ->
| ExperimentSurveyRedirectUrl ->
"<strong>Nur für Online-Umfragen verwenden.</strong> Diese URL erstellt \
eine Anmeldung zum Experiment und leitet den Kontakt direkt auf die URL \
der Onlineumfrage weiter. Alternativ kann {experimentUrl} verwendet \
Expand All @@ -416,7 +416,8 @@ Scheduled: Es läuft kein Mailing, aber zukünftige Mailings sind geplant|}
Onlineumfrage. Wird die URL der Umfrage in der Einladung verschickt, \
können eingeladene Kontakte diese starten, ohne dass eine Anmeldung \
erstellt wird. Sie können im Pool nicht einsehen, wer an der Umfrage \
teilgenommen hat."
teilgenommen hat.<br/>Dynamische URL Parameter, wie die \
<code>callbackUrl</code>, werden nicht mit effektiven Werten ersetzt."
| ExternalDataRequired ->
"Pro Anmeldung ist ein Identifikator für externe Daten obligatorisch \
(spätestens wenn eine Session abgeschlossen wird)."
Expand Down
6 changes: 4 additions & 2 deletions pool/app/pool_common/locales/i18n_en.ml
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ Scheduled: No mailing is running, but future mailings are scheduled.|}
"Contacts that have been invited to this experiment and have placed \
themselves on the waiting list. They have to be manually assigned to a \
session."
| ExperumentSurveyRedirectUrl ->
| ExperimentSurveyRedirectUrl ->
"<strong>Use for online surveys only.</strong> This URL creates an \
assignment for the experiment and forwards the contact directly to the \
URL of the online survey. Alternatively, {experimentUrl} can be used, \
Expand All @@ -408,7 +408,9 @@ Scheduled: No mailing is running, but future mailings are scheduled.|}
"<strong>Use for online surveys only.</strong> The external URL of the \
online survey. If the URL of the survey is sent in the invitation, \
invited contacts can start it without creating an assignment. You cannot \
see who participated in the survey in the assignment overview."
see who participated in the survey in the assignment \
overview.<br/>Dynamic URL parameters in your survey URL, like the \
<code>callbackUrl</code>, will not be replaced by actual values."
| ExternalDataRequired ->
"An external data identifier is required for every assignement (latest \
when a session is closed)."
Expand Down
2 changes: 1 addition & 1 deletion pool/web/view/component/component_message_text_elements.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let message_template_hints =
let open Pool_common.I18n in
function
| ExperimentInvitation ->
[ "experumentSurveyRedirectUrl", ExperumentSurveyRedirectUrl
[ "experimentSurveyRedirectUrl", ExperimentSurveyRedirectUrl
; "experimentSurveyUrl", ExperimentSurveyUrl
]
| AccountSuspensionNotification
Expand Down
4 changes: 4 additions & 0 deletions resources/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ h1,
word-wrap: break-word;
}

code {
font-size: inherit;
}

@include mobile {
*+h1, h1+*, *+h2, *+.heading-1, .heading-1+*, *+.heading-2{
margin-top: $space-md;
Expand Down

0 comments on commit 97f05b1

Please sign in to comment.