Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

Commit 77ef29ab authored by HERBERT Ryan's avatar HERBERT Ryan

First draft of direct link to graphs on patient page

parent 5484bf72
......@@ -380,7 +380,8 @@ def index():
)
for i, row in enumerate(query3) :
if row.patient.id in keys :
result[row.patient.id]['conf_list'].append(row.config.name)
result[row.patient.id]['conf_list'].append({'id': row.config.id, 'name': row.config.name})
#result[row.patient.id]['conf_list'].append(row.config.name)
result[row.patient.id]['conf_id_list'].append(row.config.id)
query4 = db(
......@@ -411,7 +412,7 @@ def index():
for key, row in result.iteritems():
row['most_used_conf'] = max(set(row['conf_id_list']), key=row['conf_id_list'].count)
row['confs'] = ", ".join(list(set(row['conf_list'])))
#row['confs'] = ", ".join(list(set(row['conf_list'])))
row['groups'] = ", ".join(filter(lambda g: g != 'admin', set(row['group_list'])))
result = result.values()
......
......@@ -47,7 +47,11 @@
</td>
<td> {{ if row['birth'] is not None: }} {{=row['birth'] }} {{ pass }} </td>
<td> {{=row['info'] }} </td>
<td> {{=row['confs']}}</td>
<td>
{{for conf in row['conf_list'] :}}
<a href="index.html?patient={{=row['id']}}&config={{=conf['id']}}">{{=conf['name']}}</a>
{{pass}}
</td>
{{if isAdmin:}} <td> {{=row['groups']}}</td>{{pass}}
{{if isAdmin:}} <td> {{=row['creator']}}</td>{{pass}}
<td> {{=row['file_count']}} ({{=vidjil_utils.format_size(row['size'])}}) </td>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment