Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
e3bda4a4
Commit
e3bda4a4
authored
Mar 17, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
display affiliation in profile and reflect fact that position is optional
parent
4c949fc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
profile.html
templates/profile.html
+21
-0
No files found.
templates/profile.html
View file @
e3bda4a4
...
...
@@ -76,11 +76,32 @@
</li>
<li>
<b>
Country:
</b>
{{ current_user.info.country }}
<br>
{% if current_user.info.position %}
<b>
Position:
</b>
{{ current_user.info.position }}
<br>
{% endif %}
{% set n_affs = (current_user.info.labs | length) + (current_user.info.insts | length) %}
{% if n_affs == 1 %}
<b>
Affiliation:
</b>
{% for lab in current_user.info.labs %}
<i>
{{ lab.label }}
</i>
{% endfor %}
{% for inst in current_user.info.insts %}{{ inst.label }}{% endfor %}
{% elif n_affs > 1 %}
<b>
Affiliations:
</b>
{% for lab in current_user.info.labs %}
<br>
-
<i>
{{ lab.label }}
</i>
{% endfor %}
{% for inst in current_user.info.insts %}
<br>
- {{ inst.label }}
{% endfor %}
{% endif %}
<br>
<b>
Keywords:
</b>
{{ current_user.info.keywords|join(', ') }}
<br>
{% if current_user.info.home_url %}
[
<a
href=
"{{ current_user.info.home_url }}"
target=
"blank"
>
View homepage
</a>
]
{% endif %}
<br>
</li>
</ul>
...
...
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