Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
60287a58
Commit
60287a58
authored
Nov 10, 2020
by
Ryan Herbert
Browse files
my account: use display_names
parent
ac9beb83
Pipeline
#185415
failed with stages
in 12 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/views/my_account/index.html
View file @
60287a58
...
...
@@ -36,7 +36,13 @@
{{ for fuse in result[role]['fuses']: }}
<div
class=
"analysis_button"
>
<span
class=
"button button_token {{=fuse[3]}}_token"
>
<a
href=
"https://localhost/?sample_set_id={{=fuse[1]}}&config={{=fuse[2]}}"
>
{{=fuse[4]}}: {{=fuse[0]}}
</a>
{{ if fuse[3] == 'patient': }}
{{ split_name = fuse[4].split(' ') }}
{{ name = vidjil_utils.display_names(fuse[1], split_name[0], split_name[1]) }}
{{else:}}
{{ name = fuse[4] }}
{{ pass }}
<a
href=
"https://localhost/?sample_set_id={{=fuse[1]}}&config={{=fuse[2]}}"
>
{{=name}}: {{=fuse[0]}}
</a>
</span>
</div>
{{pass}}
...
...
@@ -46,7 +52,14 @@
{{ for analysis in result[role]['analyses']: }}
<div
class=
"analysis_button"
>
<span
class=
"button button_token {{=analysis[1]}}_token"
>
<span
onclick=
"db.call('sample_set/index', {'id': {{=analysis[0]}}, 'config_id': -1})"
>
{{=analysis[2]}}
</span>
{{ if analysis[1] == 'patient': }}
{{ split_name = analysis[2].split(' ') }}
{{ name = vidjil_utils.display_names(analysis[0], split_name[0], split_name[1]) }}
{{ else: }}
{{ name = analysis[2] }}
{{pass}}
<span
onclick=
"db.call('sample_set/index', {'id': {{=analysis[0]}}, 'config_id': -1})"
>
{{=name}}
</span>
</span>
</div>
{{pass}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment