Skip to content

Commit

Permalink
make method of redress options a navigable link
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-funk committed Nov 20, 2023
1 parent b6bdc40 commit af3b376
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,17 @@ const NotificationsPaginator: FunctionComponent<Props> = (props) => {
vars={{
email: props.query.settings.dsa.methodOfRedress.email,
}}
elems={{
a: (
<a
href={`mailto: ${props.query.settings.dsa.methodOfRedress.email}`}
>
{props.query.settings.dsa.methodOfRedress.email}
</a>
),
}}
>
{`To appeal a decision that appears here please contact ${props.query.settings.dsa.methodOfRedress.email}`}
<span>{`To appeal a decision that appears here please contact ${props.query.settings.dsa.methodOfRedress.email}`}</span>
</Localized>
)}
{props.query.settings.dsa.methodOfRedress.method ===
Expand All @@ -92,8 +101,15 @@ const NotificationsPaginator: FunctionComponent<Props> = (props) => {
vars={{
url: props.query.settings.dsa.methodOfRedress.url,
}}
elems={{
a: (
<a href={`${props.query.settings.dsa.methodOfRedress.url}`}>
{props.query.settings.dsa.methodOfRedress.url}
</a>
),
}}
>
{`To appeal a decision that appears here please visit ${props.query.settings.dsa.methodOfRedress.url}`}
<span>{`To appeal a decision that appears here please visit ${props.query.settings.dsa.methodOfRedress.url}`}</span>
</Localized>
)}
</div>
Expand Down
4 changes: 2 additions & 2 deletions locales/en-US/stream.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -1082,8 +1082,8 @@ notifications-reportDecisionMade-illegal =
notifications-methodOfRedress-none =
All moderation decisions are final and cannot be appealed
notifications-methodOfRedress-email =
To appeal a decision that appears here please contact { $email }
To appeal a decision that appears here please contact <a>{ $email }</a>
notifications-methodOfRedress-url =
To appeal a decision that appears here please visit { $url }
To appeal a decision that appears here please visit <a>{ $url }</a>
notifications-youDoNotCurrentlyHaveAny = You do not currently have any notifications

0 comments on commit af3b376

Please sign in to comment.