Commit a4b51d64 by Kálmán Viktor

dashboard: design fixes

- fix template box height if there is an alert in it
- don't close notifications if we missclick
parent 8b3c49e3
...@@ -369,6 +369,11 @@ $(function () { ...@@ -369,6 +369,11 @@ $(function () {
return false; return false;
}); });
/* don't close notifications window on missclick */
$(document).on("click", ".notification-messages", function() {
return false;
});
$("#notification-button a").click(function() { $("#notification-button a").click(function() {
$('.notification-messages').load("/dashboard/notifications/"); $('.notification-messages').load("/dashboard/notifications/");
$('#notification-button a span[class*="badge-pulse"]').remove(); $('#notification-button a span[class*="badge-pulse"]').remove();
......
...@@ -20,11 +20,13 @@ ...@@ -20,11 +20,13 @@
<div class="clearfix"></div> <div class="clearfix"></div>
</a> </a>
{% empty %} {% empty %}
<div class="list-group-item">
<div class="alert alert-warning" style="margin: 10px;"> <div class="alert alert-warning" style="margin: 10px;">
<p> <p>
{% trans "You don't have any templates, however you can still start virtual machines and even save them as new templates!" %} {% trans "You don't have any templates, however you can still start virtual machines and even save them as new templates!" %}
</p> </p>
</div> </div>
</div>
{% endfor %} {% endfor %}
</div> </div>
<div href="#" class="list-group-item list-group-footer text-right"> <div href="#" class="list-group-item list-group-footer text-right">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment