Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE.org Applications Subsite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Websites
KDE.org Applications Subsite
Commits
a07e0606
Commit
a07e0606
authored
Jun 27, 2020
by
Carl Schwan
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lazy load images
parent
64ba20c8
Pipeline
#25150
passed with stage
in 2 minutes and 53 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
templates/category.html.twig
templates/category.html.twig
+4
-0
templates/main/category.html.twig
templates/main/category.html.twig
+1
-1
templates/main/index.html.twig
templates/main/index.html.twig
+1
-1
No files found.
templates/category.html.twig
View file @
a07e0606
...
...
@@ -11,6 +11,9 @@ SPDX-License-Identifier: AGPL-3.0-or-later
</a>
{%
if
category.icon
is
not
null
%}
<img
width=
"36"
height=
"36"
src=
"
{{
asset
(
'icons/categories/'
~
category.icon
)
}}
"
{%
if
lazy
%}
loading=
"lazy"
{%
endif
%}
alt=
"
{{
category.name
}}
"
title=
"
{{
category.name
}}
"
/>
{%
endif
%}
{%
else
%}
...
...
@@ -30,6 +33,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
<div>
<a
href=
"
{{
path
(
'app_main_application_intl'
,
{
'_locale'
:
locale
,
'category'
:
category.name
|
lower
,
'application'
:
application.id
}
)
}}
"
>
<img
width=
"48"
height=
"48"
src=
"
{{
asset
(
'icons/'
~
application.icon
)
}}
"
loading=
"lazy"
alt=
"
{{
application.name
|
l10n
(
locale
)
}}
"
title=
"
{{
application.name
|
l10n
(
locale
)
}}
"
/>
</a>
</div>
...
...
templates/main/category.html.twig
View file @
a07e0606
...
...
@@ -18,6 +18,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
KDE's Applications
</a>
{{
category.name
|
capitalize
|
trans
}}
</h1>
{%
include
'category.html.twig'
%}
{%
include
'category.html.twig'
with
{
'lazy'
:
false
}
%}
</main>
{%
endblock
%}
templates/main/index.html.twig
View file @
a07e0606
...
...
@@ -33,7 +33,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
</div>
{%
for
category
in
categories
%}
{%
include
'category.html.twig'
%}
{%
include
'category.html.twig'
with
{
'lazy'
:
(
not
loop.first
)
}
%}
{%
endfor
%}
</main>
{%
endblock
%}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment