2018-03-05 18:18:51 +00:00
|
|
|
import React, { Component } from react
|
|
|
|
|
|
|
|
class MyComponent extends Component {
|
|
|
|
render = () => {
|
|
|
|
return (
|
2016-03-25 00:16:27 +00:00
|
|
|
<div id="yield">
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="centerContent">
|
|
|
|
<div className="page-header">
|
2018-03-04 02:25:42 +00:00
|
|
|
<h2>{ t('.title') }</h2>
|
2016-03-25 00:16:27 +00:00
|
|
|
</div>
|
|
|
|
|
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('.name') }</th>
|
|
|
|
<th>{ t('.callback_url') }</th>
|
2016-03-25 00:16:27 +00:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-03-04 02:25:42 +00:00
|
|
|
{ @applications.each do |application| }
|
|
|
|
<tr id="application_{ application.id }">
|
|
|
|
<td>{ link_to application.name, oauth_application_path(application) }</td>
|
|
|
|
<td>{ application.redirect_uri }</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-05 17:33:16 +00:00
|
|
|
{ link_to t('.new'), new_oauth_application_path, className: 'button link-button' }
|
2016-03-25 00:16:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-05 18:18:51 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MyComponent
|
2018-03-04 02:25:42 +00:00
|
|
|
{ render 'script' }
|