%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/news/public/views/modals/
Upload File :
Create Path :
Current File : /var/www/html/news/public/views/modals/comments.html

<div>
    <div class="modal-header">
        <h3 class="modal-title">Comments for #{{article.id}} - {{article.title}}</h3>
    </div>
    <div class="modal-body">
        <div class="row">
            <div class="col-sm-12">
                <table class="table table-bordered table-hover">
                    <thead>
                    <th>Content</th>
                    <th>Author</th>
                    <th>Approved</th>
                    <th>Actions</th>
                    </thead>
                    <tbody>
                    <tr ng-repeat="comment in article.comments" ng-class="comment.is_appropriate ? '' : 'bg-danger'">
                        <td ng-bind="comment.content"></td>
                        <td ng-bind="comment.user.fullname"></td>
                        <td>
                            <span class="fa"
                                  ng-class="comment.is_approved ? 'fa-check text-success' : 'fa-times text-danger'"></span>
                        </td>
                        <td>
                            <button ng-if="!comment.is_approved" class="btn btn-sm btn-success"
                                    ng-click="approve(comment)" uib-tooltip="Approve">
                                <span class="fa fa-check"></span>
                            </button>
                            <button class="btn btn-sm btn-danger" ng-click="delete(comment)" uib-tooltip="Delete">
                                <span class="fa fa-trash-o"></span>
                            </button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-warning" type="button" ng-click="cancel()">Cancel</button>
    </div>
</div>

Zerion Mini Shell 1.0