Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mastodon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre Boudes
mastodon
Commits
71db616f
Unverified
Commit
71db616f
authored
1 year ago
by
Claire
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Change “About” and “Privacy policy” links to open in a new tab in advanced interface (#25973)
parent
5fad7bd5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/javascript/mastodon/features/getting_started/index.jsx
+1
-1
1 addition, 1 deletion
app/javascript/mastodon/features/getting_started/index.jsx
app/javascript/mastodon/features/ui/components/link_footer.jsx
+4
-2
4 additions, 2 deletions
...avascript/mastodon/features/ui/components/link_footer.jsx
with
5 additions
and
3 deletions
app/javascript/mastodon/features/getting_started/index.jsx
+
1
−
1
View file @
71db616f
...
...
@@ -142,7 +142,7 @@ class GettingStarted extends ImmutablePureComponent {
{
!
multiColumn
&&
<
div
className
=
'flex-spacer'
/>
}
<
LinkFooter
/>
<
LinkFooter
multiColumn
/>
</
div
>
{
(
multiColumn
&&
showTrends
)
&&
<
TrendsContainer
/>
}
...
...
This diff is collapsed.
Click to expand it.
app/javascript/mastodon/features/ui/components/link_footer.jsx
+
4
−
2
View file @
71db616f
...
...
@@ -38,6 +38,7 @@ class LinkFooter extends PureComponent {
};
static
propTypes
=
{
multiColumn
:
PropTypes
.
bool
,
onLogout
:
PropTypes
.
func
.
isRequired
,
intl
:
PropTypes
.
object
.
isRequired
,
};
...
...
@@ -53,6 +54,7 @@ class LinkFooter extends PureComponent {
render
()
{
const
{
signedIn
,
permissions
}
=
this
.
context
.
identity
;
const
{
multiColumn
}
=
this
.
props
;
const
canInvite
=
signedIn
&&
((
permissions
&
PERMISSION_INVITE_USERS
)
===
PERMISSION_INVITE_USERS
);
const
canProfileDirectory
=
profileDirectory
;
...
...
@@ -64,7 +66,7 @@ class LinkFooter extends PureComponent {
<
p
>
<
strong
>
{
domain
}
</
strong
>
:
{
'
'
}
<
Link
to
=
'/about'
><
FormattedMessage
id
=
'footer.about'
defaultMessage
=
'About'
/></
Link
>
<
Link
to
=
'/about'
target
=
{
multiColumn
?
'
_blank
'
:
undefined
}
><
FormattedMessage
id
=
'footer.about'
defaultMessage
=
'About'
/></
Link
>
{
statusPageUrl
&&
(
<>
{
DividingCircle
}
...
...
@@ -84,7 +86,7 @@ class LinkFooter extends PureComponent {
</>
)
}
{
DividingCircle
}
<
Link
to
=
'/privacy-policy'
><
FormattedMessage
id
=
'footer.privacy_policy'
defaultMessage
=
'Privacy policy'
/></
Link
>
<
Link
to
=
'/privacy-policy'
target
=
{
multiColumn
?
'
_blank
'
:
undefined
}
><
FormattedMessage
id
=
'footer.privacy_policy'
defaultMessage
=
'Privacy policy'
/></
Link
>
</
p
>
<
p
>
...
...
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