forked from instructure/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeveloper_key.handlebars
More file actions
68 lines (68 loc) · 2.3 KB
/
Copy pathdeveloper_key.handlebars
File metadata and controls
68 lines (68 loc) · 2.3 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<tr class='key{{#if inactive}} inactive{{/if}}'>
<td class="name">
<img class="icon" alt="" src="{{ icon_url }}">
{{name}}
{{#if inactive }}<br/><i>inactive</i>{{/if}}
</td>
<td>
<div>
{{#if user_id }}
<a href="/users/{{ user_id }}">
{{/if}}
{{ user_name }}
{{#if user_id }}
</a>
{{/if}}
</div>
<div>{{ email }}</div>
<div>
{{#if account_id }}
<a href="/accounts/{{ account_id }}">
{{/if}}
{{ account }}
{{#if account_id }}
</a>
{{/if}}
</div>
</td>
<td>
<div class="details">
<div>
{{#t}}ID: {{id}}{{/t}}
</div>
<div>
{{#t}}Key: <span class='api_key'>{{api_key}}</span>{{/t}}
</div>
<div>
{{#if redirect_uri}}
{{#t}}URI: {{redirect_uri}}{{/t}}
{{/if}}
</div>
</div>
</td>
<td>
<div>
{{#t}}Access Token Count: {{access_token_count}}{{/t}}
</div>
<div>
{{#t}}Created:{{/t}} {{datetimeFormatted created_at}}
</div>
<div>
{{#t}}Last Used:{{/t}} {{#ifExists last_used_at}}{{last_used_at}}{{else}}Never{{/ifExists}}
</div>
</td>
<td class='notes'>
<div>
{{#t}}{{notes}}{{/t}}
</div>
</td>
<td class='links'>
<a href="#" class="edit_link" aria-label="{{#t}}Edit key {{name}}{{/t}}" title="{{#t "edit_key"}}Edit this key{{/t}}"><i class="icon-edit standalone-icon"></i></a>
{{#if inactive}}
<a href="#" role="checkbox" aria-checked="false" aria-label="{{#t}}Activate key {{name}}{{/t}}" class="activate_link" title="{{#t}}Activate this key{{/t}}"><i class="icon-unlock standalone-icon"></i></a>
{{else}}
<a href="#" role="checkbox" aria-checked="true" aria-label="{{#t}}Activate key {{name}}{{/t}}" class="deactivate_link" title="{{#t}}Deactivate this key{{/t}}"><i class="icon-lock standalone-icon"></i></a>
{{/if}}
<a href="#" class="delete_link" title="{{#t}}Delete this key{{/t}}"><i class="icon-trash standalone-icon"></i></a>
</td>
</tr>