<template name="oauthApps">
	<div class="permissions-manager">
		{{#if hasPermission}}
			<a href="{{pathFor "admin-oauth-app"}}" class="button primary new-role">{{_ "New_Application"}}</a>

			<div class="rocket-form">
				<div class="section">
					<div class="admin-integrations-new-panel">
						{{#each applications}}
							<a href="{{pathFor "admin-oauth-app" id=_id}}">
								<div class="admin-integrations-new-item">
									<div class="admin-integrations-new-item-body">
										<div class="admin-integrations-new-item-title">
											{{name}}
										</div>
										<div class="admin-integrations-new-item-description">
											{{{_ "Created_at_s_by_s" (dateFormated _createdAt) _createdBy.username}}}
										</div>
									</div>
									<i class="icon-angle-right"></i>
								</div>
							</a>
						{{else}}
							<h1>{{_ "There_are_no_applications"}}</h1>
						{{/each}}
					</div>
				</div>
			</div>
		{{else}}
			{{_ "Not_authorized"}}
		{{/if}}
	</div>
</template>
