Last active
March 15, 2016 20:40
-
-
Save vijedi/0bc3c44635c60b987f35 to your computer and use it in GitHub Desktop.
Code that renders nothing witin the alert box
This file contains 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
<!-- has_alerts is true and view_opts.state is set to 'expired' --> | |
<div id='BriefAlert' class='alert alert-info' ng-if='has_alerts'> | |
<span ng-switch='view_opts.state'> | |
<span ng-switch-when='expired'>Brief closed -- Not completed before expiration date</span> | |
<span ng-switch-when='reassigend'>Brief closed -- Reassignment of {{reassignmentPhrase()}}</span> | |
<span ng-switch-when='view_only'>You only have permissions to view the questions of this brief</span> | |
</span> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment