-
Notifications
You must be signed in to change notification settings - Fork 904
/
show.html.erb
44 lines (42 loc) · 1.17 KB
/
show.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<% content_for :heading do %>
<h1><%= @application.name %></h1>
<% end %>
<% secret = flash[:application_secret].presence || @application.plaintext_secret %>
<table class="table table-borderless">
<tr>
<th><%= t ".client_id" %></th>
<td><code><%= @application.uid %></code></td>
</tr>
<% unless secret.blank? && Doorkeeper.config.application_secret_hashed? -%>
<tr>
<th><%= t ".client_secret" %></th>
<td>
<code><%= secret %></code>
<% if Doorkeeper.config.application_secret_hashed? -%>
<br />
<small class="text-danger"><%= t ".client_secret_warning" %></small>
<% end -%>
</td>
</tr>
<% end -%>
<tr>
<th><%= t ".permissions" %></th>
<td>
<ul class="list-unstyled mb-0">
<% @application.scopes.each do |scope| -%>
<li><%= t "oauth.scopes.#{scope}" %> <code class="text-muted">(<%= scope %>)</code></li>
<% end -%>
</ul>
</td>
</tr>
<tr>
<th><%= t ".redirect_uris" %></th>
<td>
<ul class="list-unstyled mb-0">
<% @application.redirect_uri.split.each do |uri| -%>
<li><%= uri %></li>
<% end -%>
</ul>
</td>
</tr>
</table>