Commit cecb8d29 by Oláh István Gergely

templates: create crosslinks

parent f92abb9b
......@@ -527,3 +527,11 @@ function replaceTag(tag) {
function safe_tags_replace(str) {
return str.replace(/[&<>]/g, replaceTag);
}
$('.crosslink').click(function(e) {
// Don't follow the link
event.preventDefault();
var menu = $(this).attr("menu");
$(menu).click();
window.location = this.href;
});
......@@ -1420,7 +1420,7 @@ height: calc(100% - 130px);
}
@media only screen and (max-width: 600px) {
#sidebar-wrapper {
#wrapper {
-webkit-transform: translateX(-250px);
-moz-transform: translateX(-250px);
-o-transform: translateX(-250px);
......@@ -1428,6 +1428,7 @@ height: calc(100% - 130px);
transform: translateX(-250px);
}
#page-content {
margin-left: 0px;
-webkit-transition: background .5s;
......@@ -1438,3 +1439,6 @@ height: calc(100% - 130px);
}
}
.overview_href {
cursor: pointer;
}
......@@ -24,12 +24,12 @@
<ul class="help-tabs nav nav-tabs">
<li class="active">
<a href="#" data-toggle="pill" data-target="._faq" class="text-center" >
<a id="faq_menu" href="#" data-toggle="pill" data-target="._faq" class="text-center" >
<i class="fa fa-comments-o fa-2x"></i><br>
{% trans "FAQ" %}</a>
</li>
<li>
<a href="#" data-toggle="pill" data-target="._overview" class="text-center" >
<a id="overview_menu" href="#" data-toggle="pill" data-target="._overview" class="text-center" >
<i class="fa fa-book fa-2x"></i><br>
{% trans "Overview" %}</a>
</li>
......
......@@ -11,7 +11,7 @@
<li>{% trans "Customize this machine - install and remove softwares, etc." %}</li>
<li>{% trans "Click on ‘Save as Template’ icon on operations." %}</li>
<li>{% trans "On the dashboard, select this template to go to the ‘Edit template page’." %}</li>
<li>{% trans "On the ‘Manage access’ box, add the specified user or user group with ‘user’ access level." %} ({% trans "You can easily create groups if you need" %})</li>
<li>{% trans "On the ‘Manage access’ box, add the specified user or user group with ‘user’ access level." %} (<a class="crosslink" menu="#overview_menu" href="#how-can-i-create-groups">{% trans "You can easily create groups if you need" %}</a>)</li>
</ol>
</blockquote>
......
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 sign in to comment