diff --git a/templates/listings.html b/templates/listings.html index e2b4cb2..6b08f71 100644 --- a/templates/listings.html +++ b/templates/listings.html @@ -5,10 +5,10 @@ Remote Party Finder {%- endblock %} {% block head %} - - - -{% endblock %} + + + +{%- endblock %} {% block body %}
@@ -17,19 +17,19 @@ Remote Party Finder
- {% for container in containers %} - {% let listing = container.listing.borrow() %} + {%- for container in containers %} + {%- let listing = container.listing.borrow() %}
- {% let duty_class %} - {% if listing.is_cross_world() %} - {% let duty_class = " cross" %} - {% else %} - {% let duty_class = " local" %} - {% endif %} + {%- let duty_class %} + {%- if listing.is_cross_world() %} + {%- let duty_class = " cross" %} + {%- else %} + {%- let duty_class = " local" %} + {%- endif %}
{{ listing.duty_name() }}
{%- let desc = listing.description.full_text() %} @@ -42,33 +42,33 @@ Remote Party Finder {%- endif -%}
- {% for slot in listing.slots() %} - {% let filled %} - {% let title %} - {% let role_class %} - {% match slot %} - {% when Ok with (slot) %} - {% let filled = " filled" %} - {% match slot.role() %} - {% when Some with (role) %} - {% let role_class = " {}"|format(role.as_str().to_lowercase()) %} - {% when None %} - {% let role_class = "".to_string() %} - {% endmatch %} - {% let title = slot.code().to_string() %} - {% when Err with (tuple) %} - {% let filled = "" %} - {% let title = tuple.1.clone() %} - {% let role_class = " {}"|format(tuple.0) %} - {% endmatch %} + {%- for slot in listing.slots() %} + {%- let filled %} + {%- let title %} + {%- let role_class %} + {%- match slot %} + {%- when Ok with (slot) %} + {%- let filled = " filled" %} + {%- match slot.role() %} + {%- when Some with (role) %} + {%- let role_class = " {}"|format(role.as_str().to_lowercase()) %} + {%- when None %} + {%- let role_class = "".to_string() %} + {%- endmatch %} + {%- let title = slot.code().to_string() %} + {%- when Err with (tuple) %} + {%- let filled = "" %} + {%- let title = tuple.1.clone() %} + {%- let role_class = " {}"|format(tuple.0) %} + {%- endmatch %}
- {% if !filled.is_empty() %} + {%- if !filled.is_empty() %} - {% endif %} + {%- endif %}
- {% endfor %} + {%- endfor %}
{{ listing.slots_filled() }}/{{ listing.slots_available }}
@@ -113,7 +113,7 @@ Remote Party Finder
- {% endfor %} + {%- endfor %} {% endblock %}