Skip to content

Commit dc4a744

Browse files
committed
template for profile page
1 parent 2943afd commit dc4a744

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

templates/pages/profile.html.twig

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{% extends '@W3CWebsiteTemplates/base.html.twig' %}
2+
3+
{% set body_classes = 'profile' %}
4+
5+
{% block main %}
6+
<div class="content">
7+
<h1>{% block title %}{{ page.title|default('W3C') }}{% endblock %}</h1>
8+
9+
{% block disclosure_button %}{% endblock %}
10+
11+
{% block profile_nav %}
12+
{% if page.related_pages|length > 0 %}
13+
<nav id="profile-nav" aria-label="{{ profile_nav_title|default('profile_page.nav.title'|trans({}, 'w3c_website_templates_bundle')) }}">
14+
<div class="profile-nav__inner">
15+
<ul class="clean-list" role="list">
16+
{% block profile_nav_entries %}
17+
{% for link in page.related_pages %}
18+
{% if link.current is defined and link.current %}
19+
<li><a href="{{ link.url }}" aria-current="page">{{ link.title }}</a></li>
20+
{% else %}
21+
<li><a href="{{ link.url }}">{{ link.title }}</a></li>
22+
{% endif %}
23+
{% endfor %}
24+
{% endblock %}
25+
</ul>
26+
</div>
27+
</nav>
28+
{% endif %}
29+
{% endblock %}
30+
31+
<div class="details">
32+
{% block profile_details %}{% endblock %}
33+
</div>
34+
</div>
35+
{% endblock %}

translations/w3c_website_templates_bundle+intl-icu.en.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ events:
215215
website: Website
216216
alumni:
217217
date_range: "{start} to {end}"
218+
profile_page:
219+
nav:
220+
title: Related pages
218221
error:
219222
title: Error {status_code} - {status_text}
220223
intro: >-

translations/w3c_website_templates_bundle+intl-icu.ja.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ events:
198198
website: __events.website
199199
alumni:
200200
date_range: __alumni.date_range {start} {end}
201+
profile_page:
202+
nav:
203+
title: __profile_page.nav.title
201204
error:
202205
title: __error.title {status_code} {status_text}
203206
# intro: __error.intro {status_code} {status_text}

translations/w3c_website_templates_bundle+intl-icu.zh-hans.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ events:
211211
website: 网站
212212
alumni:
213213
date_range: "{start} 到 {end}"
214+
profile_page:
215+
nav:
216+
title: __profile_page.nav.title
214217
error:
215218
title: 错误{status_code} - {status_text}
216219
intro: >-

0 commit comments

Comments
 (0)