templates/oauth_tokens.str in rodauth-oauth-0.7.1 vs templates/oauth_tokens.str in rodauth-oauth-0.7.2
- old
+ new
@@ -8,26 +8,28 @@
<thead>
<tr>
<th scope="col">Token</th>
<th scope="col">Refresh Token</th>
<th scope="col">Expires in</th>
- <th scope="col">Revoke</th>
+ <th scope="col">Revoked at</th>
+ <th scope="col">Scopes</th>
<th scope="col"><span class="badge badge-pill badge-dark">#{@oauth_tokens.count}</span>
</tr>
</thead>
<tbody>
#{
@oauth_tokens.map do |oauth_token|
<<-HTML
<tr>
- <td>#{oauth_token[rodauth.oauth_tokens_token_column]}</td>
- <td>#{oauth_token[rodauth.oauth_tokens_refresh_token_column]}</td>
+ <td><code class="token">#{oauth_token[rodauth.oauth_tokens_token_column]}</code></td>
+ <td><code class="token">#{oauth_token[rodauth.oauth_tokens_refresh_token_column]}</code></td>
<td>#{oauth_token[rodauth.oauth_tokens_expires_in_column]}</td>
<td>#{oauth_token[rodauth.oauth_tokens_revoked_at_column]}</td>
+ <td>#{oauth_token[rodauth.oauth_tokens_scopes_column]}</td>
<td>
#{
- if !oauth_token[rodauth.oauth_tokens_revoked_at_param] && !oauth_token[rodauth.oauth_tokens_token_hash_column]
+ if !oauth_token[rodauth.oauth_tokens_revoked_at_column] && !oauth_token[rodauth.oauth_tokens_token_hash_column]
<<-HTML
<form method="post" action="#{rodauth.revoke_path}" class="form-horizontal" role="form" id="revoke-form">
#{csrf_tag(rodauth.revoke_path) if respond_to?(:csrf_tag)}
#{rodauth.input_field_string("token_type_hint", "revoke-token-type-hint", :value => "access_token", :type=>"hidden")}
#{rodauth.input_field_string("token", "revoke-token", :value => oauth_token[rodauth.oauth_tokens_token_column], :type=>"hidden")}
@@ -44,6 +46,6 @@
</tbody>
</table>
HTML
end
}
-</div>
\ No newline at end of file
+</div>