-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from TYPO3-Documentation/94-update-templates
94 update templates
- Loading branch information
Showing
9 changed files
with
118 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
{#TODO: Replace hardcoded breadcrumbs with custom twig-function for generating breadcrumbs#} | ||
{%- set gitHubLink = getEditOnGitHubLink() -%} | ||
{%- set reportIssueLink = getReportIssueLink() -%} | ||
|
||
|
||
<div class="breadcrumb-bar" aria-label="breadcrumbs navigation" role="navigation"> | ||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item"><a href="/">Start</a></li> | ||
<li class="breadcrumb-item"><a href="#">Search results</a></li> | ||
{% if breadcrumb_title is defined %} | ||
<li aria-current="page" class="breadcrumb-item active"> | ||
{{ breadcrumb_title }} | ||
</li> | ||
<li aria-current="page" class="breadcrumb-item active"> | ||
{{ breadcrumb_title }} | ||
</li> | ||
{% endif %} | ||
</ol> | ||
<div class="breadcrumb-additions"> | ||
<a class="btn btn-sm btn-primary" | ||
href="https://github.com/TYPO3-Documentation/t3docs-search-indexer/" | ||
rel="nofollow noopener" target="_blank"> | ||
{%- if (reportIssueLink or gitHubLink) %} | ||
{%- if reportIssueLink %} | ||
<a class="btn btn-sm btn-light" href="{{ reportIssueLink }}" | ||
id="btnReportIssue" rel="nofollow noopener" target="_blank"> | ||
<span class="btn-icon"><i class="fas fa-bug"></i></span> | ||
<span class="btn-text">Report issue</span> | ||
</a> | ||
{% endif %} | ||
{%- if gitHubLink %} | ||
<a class="btn btn-sm btn-secondary" href="{{ gitHubLink }}" id="btnEditOnGitHub" rel="nofollow noopener" target="_blank"> | ||
<span class="btn-icon"><span class="fab fa-github"></span></span> | ||
<span class="btn-text">Edit on GitHub</span> | ||
</a> | ||
{% endif %} | ||
{% endif %} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
{%- set howtoEditButton = getHowToEditLink() -%} | ||
{%- set gitHubLink = getEditOnGitHubLink() -%} | ||
{%- set reportIssueLink = getReportIssueLink() -%} | ||
|
||
{%- if (reportIssueLink or howtoEditButton or gitHubLink) %} | ||
<div aria-label="Meta navigation" class="main_menu d-block d-lg-none" role="navigation"> | ||
<hr/> | ||
<p class="caption">Contributors Corner</p> | ||
<ul class="menu-level-1"> | ||
{%- if (reportIssueLink) %} | ||
<li><a href="{{ reportIssueLink }}" rel="nofollow noopener" target="_blank"> | ||
Report issue | ||
</a></li> | ||
{% endif -%} | ||
{%- if (howtoEditButton) %} | ||
<li><a href="{{ howtoEditButton }}" rel="nofollow noopener" target="_blank"> | ||
How to edit | ||
</a></li> | ||
{% endif -%} | ||
{%- if (gitHubLink) %} | ||
<li><a href="{{ gitHubLink }}" rel="nofollow noopener" target="_blank"> | ||
Edit current document on GitHub | ||
</a></li> | ||
{% endif -%} | ||
</ul> | ||
</div> | ||
{% endif -%} |
Oops, something went wrong.