Skip to content

Commit

Permalink
alert of updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Aug 10, 2017
1 parent 611b5a9 commit 20fea70
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
1 change: 1 addition & 0 deletions ncp-web/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 12 additions & 10 deletions ncp-web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
4 changes: 2 additions & 2 deletions ncp-web/ncp.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1082,5 +1082,5 @@ select {
}

.icon-close {
background-image:url('../../../core/css/../img/actions/close.svg?v=1')
background-image:url('close.svg')
}

0 comments on commit 20fea70

Please sign in to comment.