<!-- The viewer: -->
<div ng-show="!editing" ng-bind-html="concept.html"></div>

<!-- The editor: -->
<div ng-show="editing">

  <div class="alert alert-warning">
    <span class="pficon pficon-warning-triangle-o"></span>
    <strong>Warning!</strong>
    Changes made with this editor aren't saved in any place, it is just
    a test of the mechanism that will be added in the future. In order
    to do real edits you will have to checkout the source code from
    <a href='https://gerrit.ovirt.org'>gerrit</a> and submit a patch.
  </div>

  <textarea ng-model="concept.doc" class='form-control' rows='10'></textarea>

</div>

<!-- Buttons: -->
<div class="btn-group btn-group-xs">
  <button ng-click="view()" type="button" class="btn btn-default">View</button>
  <button ng-click="edit()" type="button" class="btn btn-default">Edit</button>
</div>

<!-- The viewer: -->
<div ng-if="!editing" ng-bind-html="concept.html"></div>

<!-- The editor: -->
<div ng-if="editing">

  <div class="alert alert-warning">
    <span class="pficon pficon-warning-triangle-o"></span>
    <strong>Warning!</strong>
    Changes made with this editor aren't saved in any place, it is just
    a test of the mechanism that will be added in the future. In order
    to do real edits you will have to checkout the source code from
    <a href='https://gerrit.ovirt.org'>gerrit</a> and submit a patch.
  </div>

  <textarea ng-model="concept.doc" class='form-control' rows='10'></textarea>

</div>

<!-- Buttons: -->
<div class="btn-group btn-group-xs">
  <button ng-click="view()" type="button" class="btn btn-default">View</button>
  <button ng-click="edit()" type="button" class="btn btn-default">Edit</button>
</div>

Use "ng-if" instead of "ng-show" to hide/show the editor
Use "ng-if" instead of "ng-show" to hide/show the editor

This patch changes the documentation viewer/editor so that it uses the
"ng-if" directive to hide/show the viewer and the editor. This should
require less resources than using "ng-show", as it reduces the number of
elements in the DOM tree.

Signed-off-by: Juan Hernandez <59e5b8140de97cc91c3fb6c5342dce948469af8c@redhat.com>
