Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
34fc1418
Commit
34fc1418
authored
Dec 02, 2019
by
Francesc Guasch
Browse files
wip(frontend): show alerts
issue #1196
parent
a9b9a23f
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Request.pm
View file @
34fc1418
...
...
@@ -678,6 +678,11 @@ sub _send_message {
$uid
=
$self
->
args
('
id_owner
')
if
$self
->
defined_arg
('
id_owner
');
$uid
=
$self
->
args
('
uid
')
if
!
$uid
&&
$self
->
defined_arg
('
uid
');
if
(
!
$uid
)
{
my
$user
=
$self
->
defined_arg
('
user
');
$uid
=
$user
->
id
if
$user
;
}
return
if
!
$uid
;
my
$domain_name
=
$self
->
defined_arg
('
name
');
...
...
rvd_front.pl
View file @
34fc1418
...
...
@@ -4,6 +4,8 @@ use strict;
#####
use
locale
'
:not_characters
';
#####
use
lib
'
lib
';
use
Carp
qw(confess)
;
use
Data::
Dumper
;
use
Digest::
SHA
qw(sha256_hex)
;
...
...
@@ -23,7 +25,6 @@ use I18N::LangTags::Detect;
no
warnings
"
experimental::signatures
";
use
feature
qw(signatures)
;
use
lib
'
lib
';
use
Ravada::
Front
;
use
Ravada::Front::
Domain
;
...
...
templates/bootstrap/messages.html.ep
View file @
34fc1418
<div id="overNotifications" class="notifications" ng-controller="notifCrtl" ng-cloak>
<div id="overNotifications" class="notifications" ng-controller="notifCrtl"
ng-init="subscribe_alerts('<%= url_for('ws_subscribe')->to_abs %>')"
ng-cloak>
<script type="text/ng-template" id="alert.html">
<div ng-transclude></div>
</script>
<div uib-alert ng-repeat="alert in alerts"
<div uib-alert ng-repeat="alert in alerts
_ws
"
ng-class="'alert-' + (alert.type || 'warning')"
ng-click="closeAlert($index)"
ng-mouseover="alert.showMessage = false"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment