Nous avons procédé ce jeudi matin 08 avril 2021 à une MAJ de sécurité urgente. Nous sommes passé de la version 13.9.3 à la version 13.9.5 les releases notes correspondantes sont ici:
https://about.gitlab.com/releases/2021/03/17/security-release-gitlab-13-9-4-released/
https://about.gitlab.com/releases/2021/03/31/security-release-gitlab-13-10-1-released/

all.html 2.89 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
{{extend 'db_layout.html'}}
{{import vidjil_utils}}

{{total_file_count = 0 ; total_size = 0}}

<h3></h3>

<div class="db_block">
    <div class="db_block_left">
        search
HERBERT Ryan's avatar
HERBERT Ryan committed
11
        <input id="db_filter_input" type="text" value="{{=request.vars["filter"]}}"  onchange="db.call('sample_set/all', {'type': '{{=type}}', 'filter' : this.value} )">
12 13 14 15 16 17
    </div>
</div>

<div id="db_table_container">
    <table class="db_table" id="table">
        <thead>
18
	    <tr>
HERBERT Ryan's avatar
HERBERT Ryan committed
19
            {{ for header in fields: }}
20 21 22
	        {{if isAdmin or header['public']:}}
	            <td class="{{if header['width']:}}column_{{=header['width']}}{{pass}} pointer"
                            onclick="db.call('sample_set/all', {'sort' : '{{=header['sort']}}', 'filter' : '{{=request.vars["filter"]}}'
23
		            {{if not reverse and request.vars["sort"]==header['sort'] :}} , 'reverse' : true {{pass}} })">
24 25 26 27
                        {{=header['name']}}
                    </td>
                {{ pass }}
            {{ pass }}
28 29 30 31 32 33 34 35 36
                
                <td class="column5"> </td>
                <td class="column5"> </td>
                <td class="column5"> </td>
            </tr>
        </thead>
        
        
       {{for data in query :}}
HERBERT Ryan's avatar
HERBERT Ryan committed
37 38
           <tr class="pointer" onclick="db.call('sample_set/index', {'id' :'{{=data.sample_set_id}}' , 'config_id' : {{=data.most_used_conf}} } )" >
               {{ for field in fields: }}
39
  		   <td>
HERBERT Ryan's avatar
HERBERT Ryan committed
40
		       {{= field['call'](data)}}
41 42
                   </td>
               {{ pass }}
43 44 45 46 47
            {{ total_file_count += data.file_count ; total_size += data.size }}
               
{{if isAdmin:}} <td onclick="db.call('sample_set/permission', {'id' :'{{=data.id}}'} )" > <i class="icon-key" title="set permissions"></i> </td> {{else:}} <td></td> {{pass}}
                {{if data.has_permission:}}
		<td onclick="db.call('sample_set/edit', {'id' :'{{=data.id}}'} )" > <i class="icon-pencil-2" title="{{='edit %s information' % 'sample_set'}}"></i> </td>
48
		<td onclick="db.call('sample_set/confirm', {'id' :'{{=data.id}}'} )" > <i class="icon-erase" title="{{='delete %s' % type}}"></i> </td>
49 50 51 52 53 54 55 56 57 58 59 60
                {{else:}}  <td></td><td></td>{{pass}}
            </tr>
        {{pass}}

    </table>
    <table class="db_table" id="db_fixed_header"></table>
</div>

<div class="db_block">
    <div class="db_block_left">

{{if auth.can_create_patient():}}
61
<span class="button2" onclick="db.call('sample_set/add')"> + new {{=type}} </span>
62 63
<span class="button2" onclick="db.call('sample_set/custom', {'filter': '{{=request.vars['filter']}}' })"> compare samples/patients </span>
{{else:}}
64
<!-- <span class="button2 inactive" onclick="db.call('sample_set/add')" title="you don't have permission to create new {{=type}}"> add sample_set </span> -->
65 66 67 68 69
{{pass}}

  </div>
  <div class="db_block_right">
  <br />
70
  {{ =len(query) }} {{=type}}s, {{ =total_file_count }} files ({{ =vidjil_utils.format_size(total_size) }})
71 72
  </div>
</div>