Преглед на файлове

[spark] Fix session close button position

This also adds a message to the modal when there are no active sessions.
Johan Ahlen преди 10 години
родител
ревизия
c896ee4
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      apps/spark/src/spark/templates/editor_components.mako

+ 4 - 1
apps/spark/src/spark/templates/editor_components.mako

@@ -763,6 +763,9 @@ from django.utils.translation import ugettext as _
         <form class="form-horizontal">
           <fieldset>
             <legend><i class="fa fa-cloud"></i> ${ _('Sessions') }</legend>
+            <!-- ko ifnot: sessions().length -->
+            <p>${ _('There are currently no active sessions.') }</p>
+            <!-- /ko -->
             <!-- ko foreach: sessions -->
             <!-- ko with: $data.properties -->
             <h4 data-bind="text: $root.getSnippetName($parent.type())" style="clear:left;"></h4>
@@ -819,7 +822,7 @@ from django.utils.translation import ugettext as _
     </div>
 
   </div>
-  <div><a class="pointer demi-modal-chevron" data-dismiss="modal"><i class="fa fa-chevron-up"></i></a></div>
+  <div style="position:absolute; width:100%; bottom: 0;"><a class="pointer demi-modal-chevron" data-dismiss="modal"><i class="fa fa-chevron-up"></i></a></div>
 </div>
 </%def>