Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roomlist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
roomlist
Commits
7382899b
Commit
7382899b
authored
Oct 04, 2016
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
created template snippet for rendering two majors
parent
6d3d50bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
roomlist/accounts/templates/double_major.html
roomlist/accounts/templates/double_major.html
+10
-0
No files found.
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