1
+ < html>
2
+ < head>
3
+ < meta charset = " UTF-8" >
4
+ < link href = " https://unpkg.com/tabulator-tables/dist/css/tabulator.min.css" rel = " stylesheet" >
5
+ < script type = " text/javascript" src = " https://unpkg.com/tabulator-tables/dist/js/tabulator.min.js" >< / script>
6
+ < link href = " https://unpkg.com/tabulator-tables/dist/css/tabulator_${ tabulator_theme } .min.css" rel = " stylesheet" >
7
+ < style>
8
+ . tabulator , h1 {
9
+ font- family: ${html_font_family};
10
+ }
11
+ < / style>
12
+ < / head>
13
+ < div id = " gitlab-groups" >< / div>
14
+ < script>
15
+ var tabledata = [
16
+ % { for group in groups ~}
17
+ {
18
+ full_path: " ${ group . full_path } " ,
19
+ description: " ${ group . description } " ,
20
+ visibility_level: " ${ group . visibility_level } " ,
21
+ request_access_enabled: " ${ group . request_access_enabled } " ,
22
+ branch_protection_text: " ${ branch_protection_text [group . default_branch_protection ]} " ,
23
+ prevent_forking_outside_group: " ${ group . prevent_forking_outside_group } " ,
24
+ },
25
+ % { endfor ~}
26
+ ];
27
+ var table = new Tabulator(" #gitlab-groups" , {
28
+ data : tabledata,
29
+ columns: [
30
+ { title: " Full path" , field: " full_path" },
31
+ { title: " Description" , field: " description" },
32
+ { title: " Visibility" , field: " visibility_level" , headerVertical: " true" },
33
+ { title: " Request access enabled" , field: " request_access_enabled" , headerVertical: " true" },
34
+ { title: " Default branch protection" , field: " branch_protection_text" , headerVertical: " true" },
35
+ { title: " Prevent forking outside group" , field: " prevent_forking_outside_group" , headerVertical: " true" },
36
+ ],
37
+ initialSort: [
38
+ { column: " full_path" , dir: " ${ groups_sort } " },
39
+ ]
40
+ });
41
+ < / script>
42
+ < / body>
43
+ < / html>
0 commit comments