Created
August 12, 2014 22:00
-
-
Save jacoor/341058b2f7f7fd15b17b to your computer and use it in GitHub Desktop.
Shows preloader on page load and hides when JS starts. Why hides? Because there is no showPreloader variable in $scope.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block preloader %} | |
{% if user.is_authenticated %} | |
<div data-ng-if="showPreloader"> | |
{% assign name="loadingText" %}{% trans "Loading..." %}{% endassign %} | |
{% include 'inc/preloader.html' %} | |
</div> | |
{% endif %} | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment