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
b2912e31
Commit
b2912e31
authored
Oct 29, 2020
by
Carl Schwan
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor homepage
parent
6a738ecb
Pipeline
#39004
passed with stage
in 2 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
36 deletions
+0
-36
templates/main/index.html.twig
templates/main/index.html.twig
+0
-36
No files found.
templates/main/index.html.twig
View file @
b2912e31
...
...
@@ -12,46 +12,10 @@ SPDX-License-Identifier: AGPL-3.0-or-later
{%
block
canonical
%}
https://apps.kde.org
{{
path
(
'app_main_index'
,
{
'_locale'
:
locale
}
)
}}{%
endblock
%}
{%
block
imageSize
%}
summary
{%
endblock
%}
{%
block
hreflang
%}
<link
rel=
"alternate"
href=
"https://kde.org
{{
path
(
'app_main_index'
,
{
'_locale'
:
"en"
}
)
}}
"
hreflang=
"en"
/>
{%
for
translation
in
translations
%}
<link
rel=
"alternate"
href=
"https://kde.org
{{
path
(
'app_main_index'
,
{
'_locale'
:
translation
}
)
}}
"
hreflang=
"
{{
translation
}}
"
/>
{%
endfor
%}
{%
endblock
%}
{%
block
body
%}
<main
class=
"container"
>
<h1>
{{
block
(
'title'
)
}}
</h1>
<nav
class=
"mb-2"
aria-label=
"
{%
trans
%}
Language selector
{%
endtrans
%}
"
>
<ul
class=
"list-inline"
>
<li
class=
"list-inline-item"
>
{%
if
locale
==
"en"
%}
<span
aria-label=
"
{%
trans
%}
Selected language: English
{%
endtrans
%}
"
>
English
</span>
{%
else
%}
<a
href=
"
{{
path
(
'app_main_index'
,
{
'_locale'
:
"en"
}
)
}}
"
>
English
</a>
{%
endif
%}
<span
aria-hidden=
"true"
>
|
</span>
</li>
{%
for
translation
in
translations
%}
<li
class=
"list-inline-item"
>
{%
set
lang
=
translation
|
language_name
(
translation
)
|
capitalize
%}
{%
if
translation
==
"ca_valencia"
%}
{%
set
lang
=
"Valencià"
%}
{%
endif
%}
{%
if
locale
==
translation
%}
<span
aria-label=
"
{%
trans
%}
Selected language: %lang%
{%
endtrans
%}
"
>
{{
lang
}}
</span>
{%
else
%}
<a
href=
"
{{
path
(
'app_main_index'
,
{
'_locale'
:
translation
}
)
}}
"
>
{{
lang
}}
</a>
{%
endif
%}
{%
if
not
loop.last
%}
<span
aria-hidden=
"true"
>
|
</span>
{%
endif
%}
</li>
{%
endfor
%}
</ul>
</nav>
<p>
{{
block
(
'description'
)
}}
</p>
<div
class=
"form-group"
>
...
...
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