<h3>Deployed Artifacts</h3>

<div class="container artifact">
	<div class="deployed_artifact" ng-repeat="(env, artifact) in artifacts.deployed">
		<div class="row">
			<div class="col-md-12 env_branch">
				<h2>{{ env }}</h2> is running the <span class="octicon octicon-git-branch"></span> <h2><a href="https://git-aws.internal.justin.tv/{{owner}}/{{repo}}/compare/master...{{artifact.deployment.sha}}">{{ artifact.deployment.branch }}</a></h2> branch. <a ui-sref="repo.history({env: env})">View recent deploys</a>
			</div>
		</div>
		<div class="row">
			<div class="col-md-8">
				<img class="avatar deployer_avatar" ng-src="{{artifact.deployment.github_creator.avatar_url}}">

				<h3><a ui-sref="repo.deploy({owner: artifact.deployment.owner, repo: artifact.deployment.repository, id: artifact.deployment.id})">{{artifact.deployment.description || '(no description)'}}</a></h3>
				<p>Deployed <span am-time-ago="artifact.deployment.created_at" title="{{artifact.deployment.created_at}}"></span> by {{artifact.deployment.github_creator.login}}</p>
			</div>
		</div>
		<div class="row">
			<div class="col-md-8">
				<img class="avatar deployer_avatar" ng-src="{{artifact.github_commit.author.avatar_url}}">
				<span class="octicon octicon-git-commit"></span>
				<h3><a href="https://git-aws.internal.justin.tv/{{owner}}/{{repo}}/commit/{{artifact.github_commit.sha}}">{{artifact.github_commit.commit.message | first_line}}</a></h3>
				<p>Committed <span am-time-ago="artifact.github_commit.commit.committer.date" title="{{artifact.github_commit.commit.committer.date}}"></span> by {{artifact.github_commit.committer.login}}</p>
			</div>
		</div>
	</div>
</div>