<div class="row">
	<div class="col-md-4  my-3 my-md-0" ng-hide="!content.poll.image_url">
		<img class="img-fluid" ng-src="{{ content.poll.image_url }}" />
	</div>

	<div ng-class="!content.poll.image_url ? 'col-sm-12' : 'col-md-8'">

		<div class="row">
			<div class="col-md-10">
				<h3 class="quiz-title title" ng-bind="question">[title]</h3>
				<p><span class="label label-default" lmsg="">[poll completed]</span></p>
			</div>
			<div class="col-md-2">
				<div class="float-right">
					<cla-share canonical_url="{{canonicalUrl}}"></cla-share>
				</div>
	</div>
		</div>

		<div class="row">
			<div class="col-md-12">
				<span class="survey-status-label label label-warning ng-scope" ng-if="hasEnded()" lmsg="">[ended]</span>
				<div ng-if="content.attempt.completed_date">
					<span>You've already voted</span>
				</div>

				</div>

			</div>
		</div>

		<div class="page-actions">
			<a href="" class="btn btn-secondary" ng-click="retake()" ng-if="showRetake()"><txt lmsg="">[Re-take Poll]</txt></a>
			<a href="/polls-surveys?type=poll" class="btn btn-primary"><txt lmsg="">[Done]</txt></a>
		</div>

	</div>

</div>

<div ng-if="results.show_results > 0">

	<div class="row">
		<div class="col-md-12">

			<h4 lmsg="quiz.info.review">[review]</h4>

			<p><strong><txt lmsg="quiz.statistics.date">[Date]</txt></strong>: <span>{{ results.date_completed }}</span></p>
			<p><strong><txt lmsg="quiz.statistics.time">[Time Taken]</txt></strong>: <span>{{ results.time_taken }}</span></p>

		</div>
	</div>


	<!-- answered questions -->
	<div class="row">
		<div class="col-md-12">
			<!-- ng-include, php endpoint to render cla component -->
			<ng-include src="answersTemplate()"></ng-include>
		</div>
	</div>

</div>

<!-- draw canvas for confetti -->
<canvas id="confetti"></canvas>
<!-- end of draw canvas -->
