diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-03-08 10:09:39 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-03-08 10:09:39 +0100 |
commit | 807037884f0085cd39fe4b41cacd82be14e309d9 (patch) | |
tree | a0e01ec2268faa2415e814c38549ae065e32bb7c /src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/index.html.twig | |
parent | 1e5a4b36ab9e50047e48f247b84733bdf9417844 (diff) | |
parent | d11eb2e461a3ea2b74e5a1c686c9fa9bbcb9e103 (diff) | |
download | wallabag-807037884f0085cd39fe4b41cacd82be14e309d9.tar.gz wallabag-807037884f0085cd39fe4b41cacd82be14e309d9.tar.zst wallabag-807037884f0085cd39fe4b41cacd82be14e309d9.zip |
Merge pull request #1675 from wallabag/v2-create-api-client
Ability to create new client for the API
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/index.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/index.html.twig | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/index.html.twig new file mode 100644 index 00000000..2e7dbcab --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Developer/index.html.twig | |||
@@ -0,0 +1,68 @@ | |||
1 | {% extends "WallabagCoreBundle::layout.html.twig" %} | ||
2 | |||
3 | {% block title %}{% trans %}Developer{% endtrans %}{% endblock %} | ||
4 | |||
5 | {% block content %} | ||
6 | <div class="row"> | ||
7 | <div class="col s12"> | ||
8 | <div class="card-panel settings"> | ||
9 | |||
10 | <div class="row"> | ||
11 | <h3>{% trans %}Welcome to the wallabag API{% endtrans %}</h3> | ||
12 | |||
13 | <h4>{% trans %}Documentation{% endtrans %}</h4> | ||
14 | |||
15 | <ul> | ||
16 | <li><a href="{{ path('developer_howto_firstapp') }}">{% trans %}How to create my first application{% endtrans %}</a></li> | ||
17 | <li><a href="{{ path('nelmio_api_doc_index') }}">{% trans %}View full API documentation{% endtrans %}</a></li> | ||
18 | </ul> | ||
19 | |||
20 | <h4>{% trans %}Clients{% endtrans %}</h4> | ||
21 | <ul> | ||
22 | <li><a href="{{ path('developer_create_client') }}">{% trans %}Create a new client{% endtrans %}</a></li> | ||
23 | </ul> | ||
24 | |||
25 | <h4>{% trans %}Existing clients{% endtrans %}</h4> | ||
26 | {% if clients %} | ||
27 | <ul class="collapsible" data-collapsible="expandable"> | ||
28 | {% for client in clients %} | ||
29 | <li> | ||
30 | <div class="collapsible-header">#{{ client.id }}</div> | ||
31 | <div class="collapsible-body"> | ||
32 | <table class="striped"> | ||
33 | <tr> | ||
34 | <td>{% trans %}Client ID{% endtrans %}</td> | ||
35 | <td><strong><code>{{ client.id }}_{{ client.randomId }}</code></strong></td> | ||
36 | </tr> | ||
37 | <tr> | ||
38 | <td>{% trans %}Client secret{% endtrans %}</td> | ||
39 | <td><strong><code>{{ client.secret }}</code></strong></td> | ||
40 | </tr> | ||
41 | <tr> | ||
42 | <td>{% trans %}Redirect URIs{% endtrans %}</td> | ||
43 | <td><strong><code>{{ client.redirectUris|json_encode() }}</code></strong></td> | ||
44 | </tr> | ||
45 | <tr> | ||
46 | <td>{% trans %}Grant type allowed{% endtrans %}</td> | ||
47 | <td><strong><code>{{ client.allowedGrantTypes|json_encode() }}</code></strong></td> | ||
48 | </tr> | ||
49 | </table> | ||
50 | <p> | ||
51 | {% trans %}You have the ability to remove this client. This action is IRREVERSIBLE !{% endtrans %}<br/> | ||
52 | {% trans %}If you remove it, every app configured with that client won't be able to auth on your wallabag.{% endtrans %}<br/> | ||
53 | <a class="waves-effect waves-light red btn" href="{{ path('developer_delete_client', {'id': client.id}) }}">{% trans %}Remove this client{% endtrans %}</a> | ||
54 | </p> | ||
55 | </div> | ||
56 | </li> | ||
57 | {% endfor %} | ||
58 | </ul> | ||
59 | {% else %} | ||
60 | {% trans %}No client yet.{% endtrans %} | ||
61 | {% endif %} | ||
62 | </div> | ||
63 | |||
64 | </div> | ||
65 | </div> | ||
66 | </div> | ||
67 | |||
68 | {% endblock %} | ||