<div class="content-header">
    <div class="row">
        <div class="col-md-8">
            <h2>{{::vm.translate.get('Theme Details')}}</h2>
        </div>
        <div class="col-md-4 text-right">
            <a ui-sref="themes" class="btn btn-success">{{::vm.translate.get('View Installed Themes')}}</a>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-md-2">
        <img class="img-responsive" ng-src="{{vm.theme.thumbnailUrl}}" />
    </div>
    <div class="col-md-8">
        <h3>{{vm.theme.name}}</h3>
        <p>{{::vm.translate.get('Publisher:')}} {{vm.theme.publisher}}</p>
        <p>{{::vm.translate.get('Price: Free')}}</p>
        <p>{{::vm.translate.get('Package size:')}} {{(vm.theme.packageSize / 1024 /1024).toFixed(2)}} MB</p>
        <p>{{::vm.translate.get('Target IzWebs version:')}} {{vm.theme.IzWebsVersion}}</p>
        <p ng-if="!vm.theme.isInstalled"><button type="button" ng-click="vm.installTheme(vm.theme.name)" class="btn btn-success">{{::vm.translate.get('Install')}}</button></p>
        <p ng-if="vm.theme.isInstalled"><button type="button" disabled="disabled" class="btn btn-success">{{::vm.translate.get('Installed')}}</button></p>
    </div>
</div>

<h4 class="mt-3" ng-if="vm.theme.description">{{::vm.translate.get('Description')}}</h4>
<p ng-if="vm.theme.description">{{vm.theme.description}}</p>

<h4 class="mt-3">{{::vm.translate.get('Screenshots')}}</h4>
<div class="row">
    <div ng-repeat="imgUrl in vm.theme.screenshotUrls" class="col-md-4">
        <img class="img-responsive" ng-src="{{imgUrl}}" />
    </div>
</div>
