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