Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-09-10 19:33:03 +0300
committernachoparker <nacho@ownyourbits.com>2017-09-11 18:16:43 +0300
commit16304252ee1918bb7a8c62ccc6431a864475131d (patch)
treeadd8b8b6a278512e5df2164d9a7cc92d63a17f10
parentcdad339d13f71da4a043942c098add188f33f8f7 (diff)
ncp-web: link to wiki info for each extrav0.26.27
-rw-r--r--ncp-web/index.php3
-rw-r--r--ncp-web/info.svg1
-rw-r--r--ncp-web/ncp.css7
-rw-r--r--ncp-web/ncp.js2
4 files changed, 13 insertions, 0 deletions
diff --git a/ncp-web/index.php b/ncp-web/index.php
index 5b43c034..5a7d5478 100644
--- a/ncp-web/index.php
+++ b/ncp-web/index.php
@@ -116,6 +116,9 @@
<div id="app-content">
<h2 id="config-box-title">Configure NextCloudPi features</h2>
+ <a href="#" target="_blank">
+ <div id="config-extra-info" class="icon-info"></div>
+ </a>
<div id="config-box-info"></div>
<br/>
<div id="config-box-wrapper" class="hidden">
diff --git a/ncp-web/info.svg b/ncp-web/info.svg
new file mode 100644
index 00000000..f6438ed7
--- /dev/null
+++ b/ncp-web/info.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1"><path color="#000" fill="none" d="M-62.897-32.993h163.31v97.986h-163.31z"/><path opacity=".5" d="M5 7.474c.155.382.325.69.644.246.407-.268 1.76-1.427 1.662-.342-.368 2.017-.834 4.017-1.17 6.04-.393 1.114.634 2.067 1.637 1.31 1.078-.502 1.99-1.287 2.927-2.01-.144-.323-.25-.79-.596-.347-.468.24-1.47 1.318-1.696.472.315-2.18.975-4.295 1.365-6.462.397-1.005-.364-2.223-1.4-1.363C7.117 5.634 6.083 6.6 5 7.474zM9.46.005C8.15-.017 7.553 2.147 8.815 2.68c1.023.378 2.077-.714 1.79-1.75-.098-.542-.598-.97-1.147-.93z"/></svg> \ No newline at end of file
diff --git a/ncp-web/ncp.css b/ncp-web/ncp.css
index c04f8790..121d43b5 100644
--- a/ncp-web/ncp.css
+++ b/ncp-web/ncp.css
@@ -1129,6 +1129,13 @@ select {
padding: 8px;
}
+.icon-info {
+ background-image: url('info.svg');
+ padding: 8px;
+ float: right;
+ display: none;
+}
+
#expand #expandDisplayName {
padding: 8px;
opacity: 0.6;
diff --git a/ncp-web/ncp.js b/ncp-web/ncp.js
index 1597a67e..226dbe13 100644
--- a/ncp-web/ncp.js
+++ b/ncp-web/ncp.js
@@ -27,6 +27,8 @@ function cfgreqReceive( result )
$('#config-box-title').fill( $( '#' + selectedID + '-desc' ).get( '.value' ) );
$('#config-box-info' ).fill( $( '#' + selectedID + '-info' ).get( '.value' ) );
$('#config-box-wrapper').show();
+ $('#config-extra-info').set( { $display: 'inline-block' } );
+ $('#config-extra-info').up().set( '@href', 'https://github.com/nextcloud/nextcloudpi/wiki/Configuration-Reference#' + selectedID );
}
$(function()