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,10 +20,12 @@ ...@@ -20,10 +20,12 @@
<div class="clearfix"></div> <div class="clearfix"></div>
</a> </a>
{% empty %} {% empty %}
<div class="alert alert-warning" style="margin: 10px;"> <div class="list-group-item">
<p> <div class="alert alert-warning" style="margin: 10px;">
{% trans "You don't have any templates, however you can still start virtual machines and even save them as new templates!" %} <p>
</p> {% trans "You don't have any templates, however you can still start virtual machines and even save them as new templates!" %}
</p>
</div>
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
......
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