Skip to content

Instantly share code, notes, and snippets.

@vijedi
Last active March 15, 2016 20:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijedi/0bc3c44635c60b987f35 to your computer and use it in GitHub Desktop.
Save vijedi/0bc3c44635c60b987f35 to your computer and use it in GitHub Desktop.
Code that renders nothing witin the alert box
<!-- 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