mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
ncp-web: alert if update is available
This commit is contained in:
parent
a0154aaee2
commit
611b5a9174
@ -42,7 +42,16 @@
|
||||
<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>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<header role="banner"><div id="header">
|
||||
|
||||
@ -344,6 +344,50 @@ input[type='checkbox'].checkbox--white:indeterminate:disabled + label:after,inpu
|
||||
box-sizing:border-box;
|
||||
justify-content:space-between
|
||||
}
|
||||
|
||||
#notification-container {
|
||||
position:absolute;
|
||||
top:0;
|
||||
width:100%;
|
||||
text-align:center
|
||||
}
|
||||
#notification {
|
||||
margin:0 auto;
|
||||
max-width:60%;
|
||||
z-index:8000;
|
||||
background-color:#fff;
|
||||
border:0;
|
||||
padding:1px 8px;
|
||||
display:none;
|
||||
position:relative;
|
||||
top:0;
|
||||
border-bottom-left-radius:3px;
|
||||
border-bottom-right-radius:3px;
|
||||
-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=90)';
|
||||
opacity:0.9;
|
||||
overflow-x:hidden;
|
||||
overflow-y:auto;
|
||||
max-height:100px
|
||||
}
|
||||
#notification span {
|
||||
cursor:pointer;
|
||||
margin-left:1em
|
||||
}
|
||||
#notification .row {
|
||||
position:relative
|
||||
}
|
||||
#notification .row .close {
|
||||
display:inline-block;
|
||||
vertical-align:middle;
|
||||
position:absolute;
|
||||
right:0;
|
||||
top:0;
|
||||
margin-top:2px
|
||||
}
|
||||
#notification .row.closeable {
|
||||
padding-right:20px
|
||||
}
|
||||
|
||||
#nextcloudpi {
|
||||
padding:5px;
|
||||
padding-bottom:0;
|
||||
@ -361,7 +405,9 @@ input[type='checkbox'].checkbox--white:indeterminate:disabled + label:after,inpu
|
||||
opacity:1
|
||||
}
|
||||
#header {
|
||||
color: white;
|
||||
}
|
||||
|
||||
#header .logo {
|
||||
background-image:url("logo.svg");
|
||||
background-repeat:no-repeat;
|
||||
@ -409,7 +455,6 @@ input[type='checkbox'].checkbox--white:indeterminate:disabled + label:after,inpu
|
||||
flex-grow:1
|
||||
}
|
||||
#header #header-right {
|
||||
color: white;
|
||||
justify-content:flex-end
|
||||
}
|
||||
.header-appname-container .header-appname {
|
||||
@ -1036,3 +1081,6 @@ select {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.icon-close {
|
||||
background-image:url('../../../core/css/../img/actions/close.svg?v=1')
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user