Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(299)

Side by Side Diff: services/auth_service/frontend/templates/services.html

Issue 106310043: Protocol, UI and smoke test for Primary <-> Replica linking process. (Closed) Base URL: https://code.google.com/p/swarming/@master
Patch Set: Created 10 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 {% extends 'auth/base.html' %} 1 {% extends 'auth/base.html' %}
2 {% block content %} 2 {% block content %}
3 3
4
5 {# BEWARE: The following templates in 'raw' section are handled by handlebars
6 javascript library and not jinja2. #}
7
8 {% raw %}
9
10 <script id="services-list-template" type="text/x-handlebars-template">
11 <table class="table">
12 <thead>
13 <tr>
14 <th>Service</th>
15 <th style="width:100px;" class="text-center">Status</th>
16 </tr>
17 </thead>
18 <tbody>
19 {{#each services}}
20 <tr>
21 <td>
22 <a target="_blank" href="{{this.replica_url}}">{{this.app_id}}</a>
23 </td>
24 <td style="width:100px;" class="text-center">
25 <span class="label label-{{status_label}}">{{status_text}}</span>
26 </td>
27 </tr>
28 {{/each}}
29 </tbody>
30 </table>
31 </script>
32
33 <script id="present-link-template" type="text/x-handlebars-template">
34 <div class="alert alert-success">
35 <strong>Linking URL:</strong> <a target="_blank" href="{{url}}">link</a>.
M-A 2014/07/01 01:06:34 s/link/{{url}}/ ?
vadimsh 2014/07/01 03:07:34 It's freaking huge :) And I don't know enough CSS
36 <p style="margin-top: 10px;">
37 GAE administrator of <strong>{{app_id}}</strong> can follow this link
38 to make <strong>{{app_id}}</strong> use this authentication service
39 as a primary one. It is safe to share the link.
40 </p>
41 </div>
42 </script>
43
44 {% endraw %}
45
46
47 <!-- List of registered services. !-->
M-A 2014/07/01 01:06:34 Replace <!-- with {# #} everywhere.
vadimsh 2014/07/01 03:07:34 Done.
4 <div class="row"> 48 <div class="row">
5 <div class="col-md-12"> 49 <div class="col-md-12">
6 <p>Yo!</p> 50 <div class="panel panel-default">
51 <div class="panel-heading">
52 <h3 class="panel-title">Linked services</h3>
53 </div>
54 <div class="panel-body">
55 <div id="services-list-alerts"></div>
56 <!-- Populated by JS. !-->
57 <div id="services-list"></div>
58 </div>
59 </div>
7 </div> 60 </div>
8 </div> 61 </div>
9 62
63
64 <!-- Form to generate a link to register a new service. !-->
65 <div class="row">
66 <div class="col-md-12">
67 <div class="panel panel-default">
68 <div class="panel-heading">
69 <h3 class="panel-title">Add service</h3>
70 </div>
71 <div class="panel-body">
72 <div id="add-service-form-alerts"></div>
73 <form class="form" role="form" id="add-service-form">
74 <div class="form-group">
75 <label class="control-label">GAE application id</label>
76 <input type="text" class="form-control" name="serviсe_app_id">
77 </div>
78 <div class="form-group">
79 <button type="submit" class="btn btn-primary">
80 Generate linking URL
81 </button>
82 </div>
83 </form>
84 </div>
85 </div>
86 </div>
87 </div>
88
89
10 {% endblock content %} 90 {% endblock content %}
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b