Skip to content
Snippets Groups Projects
Commit 6c85c8c1 authored by David Hrbáč's avatar David Hrbáč
Browse files

Page actions refactor

parent adf98a01
No related branches found
No related tags found
7 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section,!196Master,!170Master,!168Add page actions
.md-icon--edit:before {
content: "edit";
}
.md-icon--check:before {
content: "check";
}
.md-icon--help:before {
content: "help";
}
a:not([href*="//"]) { a:not([href*="//"]) {
/* CSS for internal links */ /* CSS for internal links */
} }
...@@ -6,7 +18,7 @@ a.md-footer-social__link.fa.fa-globe { ...@@ -6,7 +18,7 @@ a.md-footer-social__link.fa.fa-globe {
!background: none; !background: none;
} }
a[href*="//"]:not( [href*='gitlab.it4i.cz'] ):not( [href*='code.it4i.cz'] ):not( [href*='https://www.it4i.cz'] ) { a[href*="//"]:not( [href*='gitlab.it4i.cz'] ):not( [href*='code.it4i.cz'] ):not( [href*='https://www.it4i.cz'] ):not( [href*='https://support.it4i.cz'] ) {
/*CSS for external links */ /*CSS for external links */
background: transparent url("/img/external.png") no-repeat right 0px top 1px; background: transparent url("/img/external.png") no-repeat right 0px top 1px;
background-size: 12px; background-size: 12px;
......
...@@ -4,5 +4,5 @@ ...@@ -4,5 +4,5 @@
"footer.next": "Next", "footer.next": "Next",
"search.placeholder": "Search", "search.placeholder": "Search",
"source.link.title": "Go to repository", "source.link.title": "Go to repository",
"toc.title": "Table of contents" "toc.title": "On this page"
}[key] }}{% endmacro %} }[key] }}{% endmacro %}
...@@ -5,6 +5,29 @@ ...@@ -5,6 +5,29 @@
{% set toc_ = (toc_ | first).children %} {% set toc_ = (toc_ | first).children %}
{% endif %} {% endif %}
{% if toc_ | first is defined %} {% if toc_ | first is defined %}
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="https://code.it4i.cz/" title="Edit This Page" class="md-nav__link">
<i class="md-icon md-icon--edit">
</i>
Edit This Page
</a>
</li>
<li class="md-nav__item">
<a href="https://code.it4i.cz/sccs/docs.it4i.cz/issues/new?issue%5Bdescription%5D=Change page" title="Request Change" class="md-nav__link">
<i class="md-icon md-icon--check">
</i>
Request Change
</a>
</li>
<li class="md-nav__item">
<a href="https://support.it4i.cz/rt" title="Get Support" class="md-nav__link">
<i class="md-icon md-icon--help">
</i>
Get Support
</a>
</li>
</ul>
<label class="md-nav__title" for="toc">{{ lang.t('toc.title') }}</label> <label class="md-nav__title" for="toc">{{ lang.t('toc.title') }}</label>
<ul class="md-nav__list" data-md-scrollfix> <ul class="md-nav__list" data-md-scrollfix>
{% for toc_item in toc_ %} {% for toc_item in toc_ %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment