diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-09-10 19:33:03 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-09-11 18:16:43 +0300 |
commit | 16304252ee1918bb7a8c62ccc6431a864475131d (patch) | |
tree | add8b8b6a278512e5df2164d9a7cc92d63a17f10 | |
parent | cdad339d13f71da4a043942c098add188f33f8f7 (diff) |
ncp-web: link to wiki info for each extrav0.26.27
-rw-r--r-- | ncp-web/index.php | 3 | ||||
-rw-r--r-- | ncp-web/info.svg | 1 | ||||
-rw-r--r-- | ncp-web/ncp.css | 7 | ||||
-rw-r--r-- | ncp-web/ncp.js | 2 |
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() |