<!--
    AngularJS template. Created by fran lopez on 14/12/15.

    This is the view to show a list of tv serie reviews as a result of a
    search using one route parameter:

        -> TVSerieId: Is a tv serie identifier, used to find all
        tv serie reviews associated to a tv serie identified by this
        identifier.
-->

    <section data-ng-controller="TVSerieReviewsController"
             data-ng-init="find()">
        <h1>Listado de críticas de una serie</h1><hr>
        <ul>
            <li data-ng-repeat="tvSerieReview in tvSerieReviews">
                <label class="labelWithReviewRating">
                    Valoración: </label>
                <label class="labelWithReviewRating labelWithRating"
                       data-ng-bind="tvSerieReview.rating"></label><br><br>
                <label class="labelWithReview"
                       data-ng-bind="tvSerieReview.review"></label>
                <br><br><br><br>
            </li>
        </ul>
        <label id="errorLabel" data-ng-hide="!tvSerieReviews
        || tvSerieReviews.length">No existen críticas para esta serie</label>
        <hr><br>
        <a data-ng-href="#!/tvSeries/{{TVSerieId}}">
            Volver a los detalles de la serie</a>
    </section>