{% for item in items %}
	<tr class="current-tr">
		<th class="item-th" scope="row" rowspan="{{ previousSessionData and includePreviousScores ? 2 : 1 }}">
			<div class="item-title">{{ item.title }}</div>
		</th>
		{% if previousSessionData and includePreviousScores %}
		<td class="previous-td">&nbsp;</td>
		{% endif %}

		{% for joint in joints %}
		<td>
			<div class="cell score-side">
				{% if sessionData.ne[joint][item.slug].right is defined and sessionData.ne[joint][item.slug].right and sessionData.attributes[joint][item.slug].ne.right.reason is defined %}
					NE
				{% elseif sessionData.ne[joint][item.slug].right is defined and sessionData.ne[joint][item.slug].right and sessionData.attributes[joint][item.slug].ne.right.reason is not defined %}
					-
				{% else %}
					{{ sessionScoresData[joint][item.slug].score.right|default('-') }}
				{% endif %}
				{# {{ sessionData.ne[joint][item.slug].right is defined ? 'NE' : sessionScoresData[joint][item.slug].score.right|default('-') }} #}
			</div>
		</td>
		<td>
			<div class="cell score-side">
				{% if sessionData.ne[joint][item.slug].left is defined and sessionData.ne[joint][item.slug].left and sessionData.attributes[joint][item.slug].ne.left.reason is defined %}
					NE
				{% elseif sessionData.ne[joint][item.slug].left is defined and sessionData.ne[joint][item.slug].left and sessionData.attributes[joint][item.slug].ne.left.reason is not defined %}
					-
				{% else %}
					{{ sessionScoresData[joint][item.slug].score.left|default('-') }}
				{% endif %}
				{# {{ sessionData.ne[joint][item.slug].left is defined ? 'NE' : sessionScoresData[joint][item.slug].score.left|default('-') }} #}
			</div>
		</td>
		{% endfor %}

		<td class="total-td">
			<div class="total">{{ sessionScoresData.total[item.slug].score|default('-') }}</div>
		</td>

	</tr>

	{% if previousSessionData and includePreviousScores %}
	<tr class="previous-tr">
		<th scope="row" class="previous-td">Previous</th>
		{% for joint in joints %}
		<td>
			<div class="cell score-side">
				{% if previousSessionData.ne[joint][item.slug].right is defined and previousSessionData.ne[joint][item.slug].right and previousSessionData.attributes[joint][item.slug].ne.right.reason is defined %}
					NE
				{% elseif previousSessionData.ne[joint][item.slug].right is defined and previousSessionData.ne[joint][item.slug].right and previousSessionData.attributes[joint][item.slug].ne.right.reason is not defined %}
					-
				{% else %}
					{{ previousSessionScoresData[joint][item.slug].score.right|default('-') }}
				{% endif %}
				{# {{ previousSessionData.ne[joint][item.slug].right is defined ? 'NE' : previousSessionScoresData[joint][item.slug].score.right }} #}
			</div>
		</td>
		<td>
			<div class="cell score-side">
				{% if previousSessionData.ne[joint][item.slug].left is defined and previousSessionData.ne[joint][item.slug].left and previousSessionData.attributes[joint][item.slug].ne.left.reason is defined %}
					NE
				{% elseif previousSessionData.ne[joint][item.slug].left is defined and previousSessionData.ne[joint][item.slug].left and previousSessionData.attributes[joint][item.slug].ne.left.reason is not defined %}
					-
				{% else %}
					{{ previousSessionScoresData[joint][item.slug].score.left|default('-') }}
				{% endif %}
				{# {{ previousSessionData.ne[joint][item.slug].left is defined ? 'NE' : previousSessionScoresData[joint][item.slug].score.left }} #}
			</div>
		</td>
		{% endfor %}

		<td class="total-td">
			{{ previousSessionScoresData.total[item.slug].score }}
		</td>
	</tr>
	{% endif %}

{% endfor %}