<img class="loading" src="images/loading.svg" ng-show="loading" />
<div class="panel panel-default" ng-init="getDownloadInfo()">
  <div class="panel-heading">
    <h3 class="panel-title">{{app.title}}</h3>
  </div>
  <div class="panel-body">
    <div class="row">
    	<div class="col-md-6">
            <b>Summary: </b>{{app.summary}}
        </div>
        <div class="col-md-6">
            <b>Genre: </b>{{app.genre}}
        </div>
    </div>
    <div class="row">
    	<div class="col-md-6">
            <b>Total # of Ratings: </b>{{app.reviewsCount}}
        </div>
        <div class="col-md-6">
            <b>Star Rating: </b>{{app.score}}
        </div>
    </div>
    <div class="row">
    	<div class="col-md-6">
            <b>Android Version: </b>{{app.androidVersion}}
        </div>
        <div class="col-md-6">
            <b>Min # of Installs: </b>{{app.minInstalls}}
        </div>
    </div>
    <div class="row">
    	<div class="col-md-6">
           <b>Max # of Installs: </b>{{app.maxInstalls}}
        </div>
        <div class="col-md-6">
            <b>Play Store URL: </b><a href="{{app.playstoreUrl}}">{{app.playstoreUrl}}</a>
        </div>
    </div>
    <div class="row">
    	<div class="col-md-6">
           <b>Is Reviews Downloaded: </b><span ng-if="app.reviews.length" >Yes</span> <button class="btn" ng-if="!app.reviews.length" ng-click="getReviews()">Download</button>
        </div>
        <div class="col-md-6">
           <b>Is Permissions Downloaded: </b><span ng-if="app.permissions.length" >Yes</span> <button class="btn" ng-if="!app.permissions.length" ng-click="getPermissions()">Download</button>
        </div>
    </div>
    <div class="row">
    	<div class="col-md-6">
           <b>Is Appicaptor Result Inserted: </b><span ng-if="app.appicaptor" >Yes</span> <button class="btn" ng-if="!app.appicaptor" ng-click="getAppicaptorResult()">Insert</button>
        </div>
        <div class="col-md-6">
           
        </div>
    </div>
  </div>
</div>