2016-03-25 00:16:27 +00:00
|
|
|
<div id="yield">
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="centerContent">
|
|
|
|
<header className="page-header">
|
2018-03-04 02:25:42 +00:00
|
|
|
<h2>{ t('doorkeeper.authorized_applications.index.title') }</h2>
|
2016-03-25 00:16:27 +00:00
|
|
|
</header>
|
|
|
|
|
|
|
|
<main role="main">
|
2016-10-22 08:46:39 +00:00
|
|
|
<div>
|
|
|
|
Coming soon!<br />
|
|
|
|
There are a number of apps being worked on for Metamaps currently, including the playful Metamapper Slack Bot. Check back here for updates.<br />
|
|
|
|
If you're a developer interested in building an app for Metamaps, check out <a href="https://metamaps.cc/api" target="_blank">the API docs</a>.
|
|
|
|
</div><br />
|
2018-03-04 02:25:42 +00:00
|
|
|
{ if @applications.count > 0 }
|
2018-03-05 17:33:16 +00:00
|
|
|
<table className="table table-striped">
|
2016-03-25 00:16:27 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-03-04 02:25:42 +00:00
|
|
|
<th>{ t('doorkeeper.authorized_applications.index.application') }</th>
|
|
|
|
<th>{ t('doorkeeper.authorized_applications.index.created_at') }</th>
|
2016-03-25 00:16:27 +00:00
|
|
|
<th></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-03-04 02:25:42 +00:00
|
|
|
{ @applications.each do |application| }
|
2016-03-25 00:16:27 +00:00
|
|
|
<tr>
|
2018-03-04 02:25:42 +00:00
|
|
|
<td>{ application.name }</td>
|
|
|
|
<td>{ application.created_at.strftime(t('doorkeeper.authorized_applications.index.date_format')) }</td>
|
|
|
|
<td>{ render 'delete_form', application: application }</td>
|
2016-03-25 00:16:27 +00:00
|
|
|
</tr>
|
2018-03-04 02:25:42 +00:00
|
|
|
{ end }
|
2016-03-25 00:16:27 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-03-04 02:25:42 +00:00
|
|
|
{ end }
|
2016-03-25 00:16:27 +00:00
|
|
|
</main>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-04 02:25:42 +00:00
|
|
|
{ render 'script' }
|