Commit 8452b61e authored by Roman Ondráček's avatar Roman Ondráček

Core: add link to docs (fix #223)

Signed-off-by: Roman Ondráček's avatarRoman Ondráček <ondracek.roman@centrum.cz>
parent 231d29f4
Pipeline #2311 passed with stages
in 13 minutes and 47 seconds
......@@ -47,6 +47,7 @@ abstract class BasePresenter extends Presenter {
parent::afterRender();
$this->template->newVersion = null;
$this->template->offlineMode = false;
$this->template->docs = $this->context->parameters['docs'];
$this->template->features = $this->context->parameters['features'];
}
......@@ -60,7 +61,7 @@ abstract class BasePresenter extends Presenter {
/**
* Returns the translator
* @return ITranslator Transtalor
* @return ITranslator Translator
*/
public function getTranslator(): ITranslator {
return $this->translator;
......
......@@ -50,4 +50,8 @@
<header class='list-group-item-heading'>{_core.supervisor.title}</header>
<p class='list-group-item-text'>{_core.supervisor.description}</p>
</a>
<a n:if='$features["docs"]' n:ifset='$docs' href='{$docs}' target='_blank' class='list-group-item'>
<header class='list-group-item-heading'>{_core.documentation.title}</header>
<p class='list-group-item-text'>{_core.documentation.description}</p>
</a>
</div>
parameters:
docs: https://docs.iqrf.org/iqrf-gateway/
features:
# Show documentation
docs: true
# IQRF TR native upload
trUpload: false
# Node-RED
......
......@@ -2,6 +2,10 @@ title: IQRF Gateway
dashboard: Dashboard
documentation:
title: Documentation
description: Opens the documentation in a new tab.
navigation:
toogle: Toggle navigation
......
......@@ -217,6 +217,12 @@
<span>{_core.supervisor.title}</span>
</a>
</li>
<li n:if='$features["docs"]' n:ifset='$docs'>
<a href='{$docs}' target='_blank'>
<i class='glyphicon glyphicon-book'></i>
<span>{_core.documentation.title}</span>
</a>
</li>
</ul>
</section>
</aside>
--- a/app/config/features.neon
+++ b/app/config/features.neon
@@ -1,16 +1,16 @@
@@ -1,14 +1,14 @@
parameters:
- docs: https://docs.iqrf.org/iqrf-gateway/
+ docs: https://docs.iqrf.org/iqd-gw-01/
features:
# Show documentation
docs: true
# IQRF TR native upload
- trUpload: false
+ trUpload: true
......@@ -14,7 +18,7 @@
# Network manager
networkManager: false
# Supervisord dashboard
supervisord: false
@@ -16,4 +16,4 @@
# System updater
updater: false
# Unattended upgrades
......
......@@ -3,11 +3,9 @@ Fixes log directory path
app/Kernel.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: iqrf-gateway-webapp/app/Kernel.php
===================================================================
--- iqrf-gateway-webapp.orig/app/Kernel.php
+++ iqrf-gateway-webapp/app/Kernel.php
@@ -37,7 +37,7 @@ class Kernel {
--- a/app/Kernel.php
+++ b/app/Kernel.php
@@ -37,7 +37,7 @@
*/
public static function boot(): Configurator {
$configurator = new Configurator();
......
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