diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-08-11 01:17:18 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-08-11 01:17:18 +0300 |
commit | 20fea7025440d4cce037bd52ffb884e1ba644864 (patch) | |
tree | b0345b06b9b29a8ed486250b2013eb091c67e5df | |
parent | 611b5a91741698013114035a2357b37897abef09 (diff) |
alert of updatesv0.19.10
-rw-r--r-- | ncp-web/close.svg | 1 | ||||
-rw-r--r-- | ncp-web/index.php | 22 | ||||
-rw-r--r-- | ncp-web/ncp.css | 4 |
3 files changed, 15 insertions, 12 deletions
diff --git a/ncp-web/close.svg b/ncp-web/close.svg new file mode 100644 index 00000000..012c3484 --- /dev/null +++ b/ncp-web/close.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"><defs><filter id="a" height="1.599" width="1.601" y="-.3" x="-.3" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="1.239"/></filter></defs><path filter="url(#a)" stroke="#fff" stroke-width="2" d="M12.95 11.536l-1.414 1.414L8 9.414 4.465 12.95 3.05 11.536 6.586 8 3.05 4.464 4.465 3.05 8 6.586l3.516-3.555 1.434 1.434L9.414 8z" fill="#fff"/><path d="M12.95 11.536l-1.414 1.414L8 9.414 4.465 12.95 3.05 11.536 6.586 8 3.05 4.464 4.465 3.05 8 6.586l3.516-3.555 1.434 1.434L9.414 8z"/></svg>
\ No newline at end of file diff --git a/ncp-web/index.php b/ncp-web/index.php index ba62ae56..85bea26d 100644 --- a/ncp-web/index.php +++ b/ncp-web/index.php @@ -42,16 +42,18 @@ <div id="nojavascript"> <div>This application requires JavaScript for correct operation. Please <a href="http://enable-javascript.com/" target="_blank" rel="noreferrer">enable JavaScript</a> and reload the page. </div> </div> </noscript> <div id="notification-container"> - <div id="notification"> - <div class="row type-error closeable"> - <?php - exec( "ncp-test-updates" , $output, $ret ); - if ( $ret == 0 ) - echo "version " . file_get_contents( "/var/run/.ncp-latest-version" ) . "is available"; - ?> - <a class="action close icon-close" href="#" alt="Dismiss"></a> - </div> - </div> + <?php + exec( "ncp-test-updates" , $output, $ret ); + if ( $ret == 0 ) + { + echo '<div id="notification">'; + echo '<div class="row type-error closeable">'; + echo "version " . file_get_contents( "/var/run/.ncp-latest-version" ) . " is available"; + echo '<a class="action close icon-close" href="#" alt="Dismiss"></a>'; + echo '</div>'; + echo '</div>'; + } + ?> </div> <header role="banner"><div id="header"> diff --git a/ncp-web/ncp.css b/ncp-web/ncp.css index 28254a0c..253a0f71 100644 --- a/ncp-web/ncp.css +++ b/ncp-web/ncp.css @@ -358,7 +358,7 @@ input[type='checkbox'].checkbox--white:indeterminate:disabled + label:after,inpu background-color:#fff; border:0; padding:1px 8px; - display:none; + display:inline-block; position:relative; top:0; border-bottom-left-radius:3px; @@ -1082,5 +1082,5 @@ select { } .icon-close { - background-image:url('../../../core/css/../img/actions/close.svg?v=1') + background-image:url('close.svg') } |