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
SRCT
roomlist
Commits
7382899b
Commit
7382899b
authored
Oct 04, 2016
by
Daniel W Bond
Browse files
created template snippet for rendering two majors
parent
6d3d50bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/templates/double_major.html
0 → 100644
View file @
7382899b
{% if student.major.all|length > 0 %}
<a
href=
"{{ student.major.all.0.get_absolute_url }}"
>
{{ student.major.all.0.name }}
</a>
{% if student.major.all|length == 2 %}
&
<a
href=
"{{ student.major.all.1.get_absolute_url }}"
>
{{ student.major.all.1.name }}
</a>
{% endif %}
{% else %}
—
{% endif %}
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