Commit 6c85c8c1 authored by David Hrbáč's avatar David Hrbáč

Page actions refactor

parent adf98a01
.md-icon--edit:before {
content: "edit";
}
.md-icon--check:before {
content: "check";
}
.md-icon--help:before {
content: "help";
}
a:not([href*="//"]) {
/* CSS for internal links */
}
......@@ -6,7 +18,7 @@ a.md-footer-social__link.fa.fa-globe {
!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 */
background: transparent url("/img/external.png") no-repeat right 0px top 1px;
background-size: 12px;
......
......@@ -4,5 +4,5 @@
"footer.next": "Next",
"search.placeholder": "Search",
"source.link.title": "Go to repository",
"toc.title": "Table of contents"
"toc.title": "On this page"
}[key] }}{% endmacro %}
......@@ -5,6 +5,29 @@
{% set toc_ = (toc_ | first).children %}
{% endif %}
{% 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>
<ul class="md-nav__list" data-md-scrollfix>
{% for toc_item in toc_ %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment