Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
work.w
Commits
96f7477c
Commit
96f7477c
authored
May 20, 2020
by
alexandre
Browse files
Fix issue with flatpage base url
parent
ef65eabe
Changes
3
Hide whitespace changes
Inline
Side-by-side
playground/templates/playground/underscore/about.mtpl
View file @
96f7477c
{% load flatpages %}
{% get_flatpages '/la-notation-w/' as about_pages_fr %}
{% get_flatpages '/la-notation-w/
en/
' as about_pages_en %}
{% get_flatpages '/
fr/
la-notation-w/' as about_pages_fr %}
{% get_flatpages '/
en/
la-notation-w/' as about_pages_en %}
<div class="is-en">
{% for page in about_pages %}
...
...
playground/templates/playground/underscore/credits.mtpl
View file @
96f7477c
{% load flatpages %}
{% get_flatpages '/credits/' as credits_pages_fr %}
{% get_flatpages '/credits/
en/
' as credits_pages_en %}
{% get_flatpages '/
fr/
credits/' as credits_pages_fr %}
{% get_flatpages '/
en/
credits/' as credits_pages_en %}
<div class="is-fr">
{% for page in credits_pages_fr %}
...
...
playground/templates/playground/underscore/home.mtpl
View file @
96f7477c
{% load flatpages %}
{% get_flatpages '/introduction/' as intro_pages_fr %}
{% get_flatpages '/introduction/
en/
' as intro_pages_en %}
{% get_flatpages '/
fr/
introduction/' as intro_pages_fr %}
{% get_flatpages '/
en/
introduction/' as intro_pages_en %}
<div class="intro body-text body-text--about">
{# Poor man translation: only show selected language using CSS #}
...
...
Write
Preview
Supports
Markdown
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