Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Web
community
Commits
cc5ad113
Commit
cc5ad113
authored
Jun 13, 2019
by
Pili Guerra
Browse files
Update two-columns-page to add a link back to the parent page
parent
ebdb4658
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/two-columns-page.html
View file @
cc5ad113
...
...
@@ -2,5 +2,19 @@
{% include 'sidenav.html' %}
<div
class=
"col-sm-12 col-xs-12 ml-sm-auto col-md-9 col-lg-9 {{ bag('alternatives', this.alt, 'order') }}"
>
{{ this.body }}
<div
class=
"row"
>
{% for child in this.children|sort(attribute='key') %}
<div
class=
"col-sm-6 col-md-6 col-sm-12 col-xl-6 py-3"
>
<div
class=
"card h-100"
>
<div
class=
"card-body"
>
<h4
class=
"card-title text-primary"
><a
href=
"{{ child.path|url }}"
>
{{ child.title }}
</a></h4>
<p
class=
"card-text"
>
{{ child.subtitle }}
</p>
</div>
</div>
</div>
{% endfor %}
</div>
<a
href=
"{{ this.parent|url }}"
>
Back to {{ this.parent.title }}
</a>
</div>
</div>
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment