##// END OF EJS Templates
white-list-access: improved UI.
marcink -
r2122:de425417 default
parent child Browse files
Show More
@@ -1,61 +1,64 b''
1 1
2 2
3 3 <div class="panel panel-default">
4 4 <div class="panel-heading">
5 5 <h3 class="panel-title">${_('View whitelist')}</h3>
6 6 </div>
7 7 <div class="panel-body">
8 8 <div class="">
9 9
10 10 <p class="pr-description">
11 11 View white list defines a set of views that can be accessed using auth token without the need to login.
12 12 Adding ?auth_token = SECRET_TOKEN to the url authenticates this request as if it
13 13 came from the the logged in user who owns this authentication token.
14 14
15 15 E.g. adding `RepoFilesView.repo_file_raw` allows to access a raw diff using such url:
16 16 http[s]://server.com/{repo_name}/raw/{commit_id}/{file_path}?auth_token=SECRET_TOKEN
17 17
18 18 White list can be defined inside `${c.whitelist_file}` under `${c.whitelist_key}=` setting
19
20 Currently under this settings following views are set:
19 Currently the following views are set:
21 20 </p>
22 21
23 22 <pre>
24 23 % for entry in c.whitelist_views:
25 24 ${entry}
26 25 % endfor
27 26 </pre>
28 27
29 28 </div>
30 29
31 30 </div>
32 31 </div>
33 32
34 33
35 34 <div class="panel panel-default">
36 35 <div class="panel-heading">
37 36 <h3 class="panel-title">${_('List of views available for usage in whitelist access')}</h3>
38 37 </div>
39 38 <div class="panel-body">
40 39 <div class="">
41 40
42 41
43 42 <table class="rctable ip-whitelist">
44 43 <tr>
45 44 <th>Active</th>
46 45 <th>View FQN</th>
47 46 <th>URL pattern</th>
48 47 </tr>
49 48
50 49 % for route_name, view_fqn, view_url, active in c.view_data:
51 50 <tr>
52 <td class="td-x">${h.bool2icon(active)}</td>
51 <td class="td-x">
52 % if active:
53 ${h.bool2icon(active)}
54 % endif
55 </td>
53 56 <td class="td-x">${view_fqn}</td>
54 57 <td class="td-x" title="${route_name}">${view_url}</td>
55 58 </tr>
56 59 % endfor
57 60 </table>
58 61 </div>
59 62
60 63 </div>
61 64 </div>
General Comments 0
You need to be logged in to leave comments. Login now