* Fix categories for badge icons, company names

* Company names had a misspelled filter and weren't being displayed
* Add some conditional logic so that company names don't get shown for
  hobbyists or students
This commit is contained in:
James Polley 2017-12-27 02:51:57 +11:00
parent f6768e19d8
commit d4ca04bada

View file

@ -5,9 +5,9 @@
{% items_purchased as purchased %}
{% items_pending as pending %}
{% items_purchased 1 as ticket %}
{% total_items_purchased 2 as penguin_dinner_count %}
{% total_items_purchased 3 as speakers_dinner_count %}
{% total_items_purchased 4 as pdns_count %}
{% total_items_purchased 3 as penguin_dinner_count %}
{% total_items_purchased 4 as speakers_dinner_count %}
{% total_items_purchased 5 as pdns_count %}
{% ticket_type as ticket_type %}
-->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
@ -1053,14 +1053,17 @@ style="font-family:'Roboto-Regular', 'Roboto';font-size:144.577px;" filter="url(
<g transform="matrix(0.607846,0,0,0.607922,138.923,449.05)">
<text x="0px" y="0px"
style="font-family:'Roboto-Regular', 'Roboto';font-size:96.385px;" filter="url(grayscale)">
{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}</text>
style="font-family:'Roboto-Regular', 'Roboto';font-size:96.385px;" filter="url(#grayscale)">
{% if ticket_type == "Hobbyist" or ticket_type == "Student" %}
{% else %}
{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}
{% endif %}</text>
</g>
<g transform="matrix(0.607846,0,0,0.607922,140.5,504.582)" filter="url(#grayscale)">
<text x="0px" y="0px"
style="font-family:'Roboto-Regular', 'Roboto';font-size:60.24px;">
style="font-family:'Roboto-Regular', 'Roboto';font-size:60.24px;" filter="url(#grayscale)">
{{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1 }}</text>
</g>

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB