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
d041b7a1
Commit
d041b7a1
authored
6 years ago
by
ThibG
Committed by
Eugen Rochko
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Do not show timeline preview or directory widgets if they are disabled (#10284)
parent
9d9b6e35
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/views/about/show.html.haml
+17
-15
17 additions, 15 deletions
app/views/about/show.html.haml
with
17 additions
and
15 deletions
app/views/about/show.html.haml
+
17
−
15
View file @
d041b7a1
...
...
@@ -17,23 +17,25 @@
=
render
'registration'
.directory
.directory__tag
{
class:
Setting
.
profile_directory
?
nil
:
'disabled'
}
=
optional_link_to
Setting
.
profile_directory
,
explore_path
do
%h4
=
fa_icon
'address-book fw'
=
t
(
'about.discover_users'
)
%small
=
t
(
'about.browse_directory'
)
-
if
Setting
.
profile_directory
.directory__tag
=
optional_link_to
Setting
.
profile_directory
,
explore_path
do
%h4
=
fa_icon
'address-book fw'
=
t
(
'about.discover_users'
)
%small
=
t
(
'about.browse_directory'
)
.avatar-stack
-
@instance_presenter
.
sample_accounts
.
each
do
|
account
|
=
image_tag
current_account
&
.
user
&
.
setting_auto_play_gif
?
account
.
avatar_original_url
:
account
.
avatar_static_url
,
width:
48
,
height:
48
,
alt:
''
,
class:
'account__avatar'
.avatar-stack
-
@instance_presenter
.
sample_accounts
.
each
do
|
account
|
=
image_tag
current_account
&
.
user
&
.
setting_auto_play_gif
?
account
.
avatar_original_url
:
account
.
avatar_static_url
,
width:
48
,
height:
48
,
alt:
''
,
class:
'account__avatar'
.directory__tag
{
class:
Setting
.
timeline_preview
?
nil
:
'disabled'
}
=
optional_link_to
Setting
.
timeline_preview
,
public_timeline_path
do
%h4
=
fa_icon
'globe fw'
=
t
(
'about.see_whats_happening'
)
%small
=
t
(
'about.browse_public_posts'
)
-
if
Setting
.
timeline_preview
.directory__tag
=
optional_link_to
Setting
.
timeline_preview
,
public_timeline_path
do
%h4
=
fa_icon
'globe fw'
=
t
(
'about.see_whats_happening'
)
%small
=
t
(
'about.browse_public_posts'
)
.directory__tag
=
link_to
'https://joinmastodon.org/apps'
,
target:
'_blank'
,
rel:
'noopener'
do
...
...
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