A platform for community discussion. Free, open, simple.
FIX: Do not try to show logo if it does not exist (#12968)
Bianca Nenciu05ac4f409189
diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/advanced_user.svg.erb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/advanced_user.svg.erbindex 9c06ce3e856..000fba0d09b 100644--- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/advanced_user.svg.erb+++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/advanced_user.svg.erb@@ -46,9 +46,11 @@<text x="<%= @width / 2 %>" y="270" text-anchor="middle" fill="#020403" font-family="'Tangerine'" font-size="34.8841px"><%= @name %></text>- <g transform="translate(<%= @logo_group[:width] / 2 - (@logo_group[:size] / 2) %> <%= @logo_group[:height] %>)">- <image height="<%= @logo_group[:size] %>px" width="<%= @logo_group[:size] %>px" href="<%= @logo_group[:logo_uri] %>"/>- </g>+ <% if @logo_group.present? %>+ <g transform="translate(<%= @logo_group[:width] / 2 - (@logo_group[:size] / 2) %> <%= @logo_group[:height] %>)">+ <image height="<%= @logo_group[:size] %>px" width="<%= @logo_group[:size] %>px" href="<%= @logo_group[:logo_uri] %>"/>+ </g>+ <% end %><g><g fill="#8CC63F"><path d="M309.08 149.42v-.7l1.84.01c.05 0 .07-.01.08-.04.01-.03.01-.06-.01-.1l-1.83-5.24c-.03-.08-.05-.14-.08-.17l.01-2.66.02-.03c.05-.11.09-.18.13-.22.04-.04.07-.06.11-.05.04 0 .07.01.11.05.04.03.08.1.13.2s.11.25.19.45c.04.1.11.29.23.59.12.3.26.68.43 1.13.17.46.37.96.58 1.52.21.56.44 1.15.68 1.77.23.62.47 1.25.71 1.88.24.63.47 1.24.7 1.83.23.59.44 1.14.64 1.65s.37.95.52 1.32c.17.43.34.78.49 1.05.16.27.31.48.44.63.14.15.27.26.39.33s.23.12.33.14c.15.05.29.08.42.09.14.02.25.02.35.02.06 0 .11.01.14.02.03.02.05.05.05.09 0 .06-.04.1-.11.12-.07.03-.16.04-.27.04h-.41c-.2 0-.44 0-.72-.01-.28 0-.59 0-.92-.01-.33-.01-.66-.01-1-.03-.18-.01-.33-.02-.43-.03-.1-.01-.15-.05-.15-.1 0-.04.01-.07.04-.09.03-.02.06-.04.1-.05.06-.02.11-.07.15-.16.04-.09.03-.21-.03-.37l-1.79-4.78c-.02-.04-.04-.07-.06-.09-.03-.02-.06-.03-.11-.03l-2.09.03zm15.9 5.99c.37 0 .75-.01 1.13-.03.38-.02.75-.06 1.09-.11.34-.05.63-.12.86-.21.1-.04.17-.07.22-.11.05-.04.09-.08.12-.14.03-.06.06-.14.09-.24.04-.12.07-.25.11-.42.04-.17.08-.35.11-.53.04-.18.07-.36.1-.53.03-.17.05-.31.07-.42.02-.11.03-.18.03-.21 0-.06-.02-.11-.05-.16-.03-.05-.06-.07-.11-.07s-.09.02-.12.05c-.02.04-.04.09-.06.18-.02.11-.06.25-.11.41-.06.17-.13.34-.22.51-.1.17-.2.33-.32.45-.22.22-.47.39-.75.5-.27.11-.58.18-.92.22-.34.03-.72.05-1.15.04-.73-.01-1.41-.11-2.04-.32-.63-.21-1.19-.5-1.7-.88-.5-.38-.93-.81-1.29-1.32-.36-.5-.63-1.05-.82-1.63-.19-.59-.28-1.2-.28-1.84 0-.56.04-1.09.12-1.6.09-.51.24-.99.46-1.44.22-.46.54-.87.96-1.26.2-.19.46-.37.78-.54.32-.17.73-.31 1.23-.42.5-.11 1.11-.16 1.84-.17.51 0 .98.05 1.41.13.43.08.81.19 1.14.33.33.14.6.29.8.46.15.12.28.27.38.44.11.18.19.37.24.58.06.21.09.42.08.63 0 .12.01.2.02.26.02.06.05.09.11.09.05 0 .09-.03.13-.08.04-.05.06-.15.07-.27.01-.06.01-.16.01-.28 0-.13 0-.28.01-.44 0-.16.01-.33.01-.5 0-.17.01-.32.01-.46.01-.2.03-.36.04-.48.01-.12.02-.22.03-.28.01-.07.01-.13.01-.17 0-.05-.01-.09-.04-.12-.03-.04-.09-.05-.17-.05-.28-.01-.56-.04-.84-.09-.28-.05-.59-.1-.9-.16-.28-.05-.57-.08-.86-.11-.29-.03-.58-.05-.86-.07-.28-.01-.53-.02-.76-.02-.87 0-1.63.08-2.28.23-.65.15-1.22.36-1.7.63-.48.26-.88.56-1.22.89-.38.37-.69.76-.94 1.17-.25.41-.45.81-.59 1.22-.15.4-.25.78-.31 1.15-.06.36-.09.68-.09.96-.01.53.05 1.08.16 1.65.11.57.32 1.13.62 1.69.3.55.73 1.08 1.27 1.56.44.39.93.72 1.48.98.55.26 1.16.46 1.84.59.7.11 1.46.18 2.31.18zm18.41-7.85v-1.3c0-.36 0-.66.01-.9 0-.24 0-.45.01-.61 0-.16.01-.3.01-.41.01-.11.01-.22.02-.32.01-.19.04-.35.07-.47.04-.12.09-.22.18-.29.08-.07.19-.12.34-.15.1-.02.19-.03.25-.03h.18c.04 0 .08-.02.11-.04.03-.03.05-.06.05-.09 0-.05-.02-.08-.07-.1-.05-.02-.12-.03-.22-.03h-.46c-.18 0-.36.01-.53.01-.18.01-.33.01-.46.01s-.21.01-.24.01c-.02 0-.1 0-.23-.01-.13 0-.29-.01-.49-.01-.19-.01-.4-.01-.61-.02-.21 0-.42-.01-.61-.01-.1 0-.17.01-.21.03-.05.02-.06.05-.07.1 0 .03.01.06.04.09s.06.04.1.05c.06 0 .12 0 .19.01.07 0 .15.01.21.01.07.01.13.01.18.02.18.03.32.08.42.15.09.07.16.17.19.3.04.13.06.28.07.47 0 .1.01.21.01.33 0 .12.01.26.01.42 0 .17.01.37.01.62V147.97c0 .05-.01.07-.03.08-.02.01-.04.02-.07.01l-7.12-.02c-.03 0-.05 0-.07-.01-.02-.01-.03-.04-.03-.08v-.35-1.31-.91c0-.25.01-.45.01-.62 0-.17 0-.3.01-.42 0-.12.01-.23.01-.33.01-.19.04-.35.07-.47.04-.12.1-.22.18-.29.08-.07.2-.12.36-.15.1-.02.18-.03.24-.03h.18c.03 0 .06-.02.09-.04.03-.03.04-.06.05-.09 0-.05-.02-.08-.06-.1-.05-.02-.11-.03-.21-.03h-.47c-.18 0-.36.01-.54.01-.18.01-.33.01-.45.01-.13 0-.2.01-.22.01-.03 0-.11 0-.24-.01-.13 0-.29-.01-.48-.01-.19-.01-.4-.01-.61-.02-.22 0-.42-.01-.62-.01-.1 0-.16.01-.21.03-.05.02-.06.05-.06.1 0 .03.02.06.05.09.03.03.06.04.09.05.05 0 .12 0 .19.01.07 0 .15.01.21.01.07.01.13.01.18.02.18.03.33.08.42.15.1.07.16.17.2.3.04.13.06.28.07.47.01.1.01.21.02.32 0 .12.01.25.01.41 0 .16.01.36.01.61v2.2l-.01 2.91c0 .53 0 1.02-.01 1.48 0 .46-.02.86-.03 1.21-.01.35-.04.64-.07.87-.02.16-.05.3-.08.42s-.07.22-.12.3c-.06.07-.14.13-.25.15-.08.02-.17.04-.26.05-.09.01-.18.02-.26.02-.05 0-.08.02-.1.04-.02.03-.03.06-.03.09 0 .05.02.08.07.1.05.02.11.03.2.03.14 0 .29 0 .48-.01.18-.01.36-.01.54-.02.18-.01.33-.01.46-.02s.2-.01.23-.01c.02 0 .1 0 .23.01s.3.01.5.02.42.01.66.02c.24.01.48.01.72.01.1 0 .16-.01.21-.04.04-.03.06-.06.06-.1 0-.03-.01-.06-.03-.09-.02-.03-.06-.04-.1-.05-.05 0-.13 0-.21-.01l-.28-.03c-.1-.01-.19-.03-.28-.04-.16-.03-.29-.08-.37-.15-.08-.08-.14-.18-.17-.3s-.06-.26-.07-.42c-.04-.35-.06-.82-.06-1.42-.01-.6-.01-1.31 0-2.11l.01-1.65c0-.04.01-.06.03-.08.02-.01.04-.02.07-.02l7.12.02c.03 0 .05.01.07.02.02.01.03.04.03.08l-.01 1.65c0 .8 0 1.5-.02 2.1-.01.6-.03 1.07-.07 1.41-.02.16-.04.31-.07.43-.03.12-.08.23-.13.3-.06.08-.15.13-.27.16-.08.02-.16.04-.25.05-.09.01-.17.02-.25.02-.05 0-.08.02-.1.04-.02.03-.03.06-.03.09 0 .05.02.08.06.1.04.02.11.03.21.03.13 0 .29 0 .47-.01s.36-.01.54-.02c.18-.01.33-.01.46-.02s.2-.01.23-.01.11 0 .24.01.3.01.5.02.42.01.66.02c.24.01.47.01.71.01.1 0 .17-.01.22-.04.05-.03.07-.06.07-.1 0-.03-.01-.06-.03-.09-.03-.03-.06-.04-.12-.05-.05 0-.12 0-.2-.01l-.28-.03c-.1-.01-.19-.03-.27-.04-.17-.03-.3-.08-.38-.15-.08-.08-.14-.18-.17-.3s-.05-.26-.07-.42c-.03-.23-.04-.52-.06-.87-.01-.36-.02-.76-.03-1.21 0-.46-.01-.95 0-1.48l-.08-2.87zm-64.73 7.7c.79-.01 1.52-.12 2.2-.34.7-.23 1.34-.54 1.9-.96.56-.41 1.04-.89 1.44-1.46.4-.56.7-1.17.91-1.84.21-.67.32-1.37.32-2.11 0-.96-.17-1.83-.51-2.59-.34-.76-.81-1.42-1.41-1.95-.61-.54-1.32-.95-2.14-1.23-.82-.28-1.71-.43-2.67-.44v.62c.51.01 1 .09 1.47.25.5.17.97.41 1.39.74.43.33.8.73 1.12 1.22.32.49.57 1.05.74 1.69.18.64.26 1.36.26 2.15-.01.79-.09 1.48-.24 2.07-.15.59-.36 1.09-.63 1.5-.26.41-.56.75-.88 1.01-.32.26-.66.47-1.01.61s-.68.25-1.01.3c-.32.05-.61.08-.87.08-.13 0-.26-.01-.39-.02l.01.7zm30.45-14.74l-.01 2.66c-.07-.1-.14-.04-.21.17l-1.72 5.23c-.02.05-.02.08-.01.1.01.02.04.03.06.03l1.86.01v.7l-2.07-.01c-.05 0-.09.01-.12.04s-.06.06-.07.11l-1.17 3.43c-.09.25-.16.48-.2.7-.05.22-.07.42-.07.6 0 .13.04.24.12.32.07.08.17.15.28.19.11.04.22.06.34.06h.19c.07 0 .12.01.15.03.03.02.05.05.05.09 0 .06-.03.1-.08.12-.05.03-.12.04-.21.04-.12 0-.25 0-.4-.01-.15-.01-.3-.01-.45-.02-.15-.01-.28-.01-.4-.02s-.21-.01-.26-.01c-.05 0-.16 0-.3.01-.15.01-.32.01-.53.02-.21.01-.43.01-.66.02-.24.01-.47.01-.7.01-.13 0-.22-.01-.28-.04-.06-.02-.09-.06-.09-.12 0-.04.02-.07.05-.09.03-.02.07-.03.12-.03.07 0 .17 0 .27-.01.11-.01.2-.02.29-.02.29-.04.54-.14.74-.31.2-.16.37-.37.51-.63s.27-.55.38-.88l4.44-12.03c.06-.2.11-.35.16-.46zm-20.12 9.77c0 .53 0 1.02-.01 1.48 0 .46-.02.86-.03 1.21-.01.35-.04.64-.07.87-.02.16-.05.3-.08.43-.03.12-.07.22-.12.3-.06.08-.14.13-.25.14-.08.01-.17.03-.26.04-.09.02-.18.03-.26.03-.05 0-.08.02-.1.04-.02.03-.03.06-.03.09 0 .05.02.08.07.1.05.02.11.03.2.03.14 0 .29 0 .47-.01s.36-.01.53-.02c.17-.01.33-.01.45-.02.13-.01.2-.01.23-.01.02 0 .1 0 .23.01s.3.01.51.02c.2.01.43.01.67.02.24.01.48.01.72.01.1 0 .16-.01.21-.04.04-.03.06-.06.06-.1 0-.03-.01-.06-.03-.09-.02-.03-.05-.04-.1-.05-.05 0-.13 0-.21-.01l-.28-.03c-.1-.01-.19-.03-.28-.04-.15-.03-.27-.08-.36-.15-.08-.08-.14-.18-.18-.3-.04-.12-.07-.26-.08-.42-.03-.22-.04-.5-.05-.85-.01-.35-.01-.76-.02-1.22v-2.83c0-.06.01-.1.02-.12.02-.02.05-.03.09-.03h.97c.23 0 .47 0 .7.01.24 0 .45.01.64.01.19.01.33.01.42.03.26.04.46.11.6.21.14.09.23.2.27.32.04.1.06.2.08.31.02.11.03.2.03.29 0 .04.01.07.02.11.02.03.04.05.09.05.06 0 .1-.04.12-.11.02-.07.03-.14.03-.22v-.17c0-.09.01-.19.01-.3 0-.11.01-.23.02-.34.01-.11.02-.21.03-.29.02-.27.06-.48.1-.62.04-.15.06-.24.06-.29 0-.04-.01-.07-.02-.1s-.04-.04-.08-.04c-.03 0-.06.02-.1.05-.04.03-.07.07-.11.12-.07.09-.18.16-.3.2-.13.04-.29.07-.49.09-.12.01-.24.02-.36.01h-.41l-2.33.01c-.05 0-.09-.01-.1-.04-.01-.03-.02-.06-.01-.11l.01-4.5c0-.07.01-.11.03-.14.02-.03.06-.04.1-.04l2.79.05c.22 0 .41.03.57.08.16.05.29.11.39.19.1.07.16.15.2.22.05.11.09.22.11.34.03.12.04.21.04.28 0 .06.01.11.04.14.03.04.06.06.1.06.04 0 .07-.02.1-.06.03-.04.05-.07.06-.12.01-.05.02-.13.03-.23.01-.1.01-.21.02-.33.01-.12.01-.22.02-.32s.01-.16.02-.21c.03-.23.06-.4.09-.52s.04-.2.05-.26c0-.04-.01-.08-.03-.11-.02-.03-.05-.05-.09-.05-.03 0-.06.02-.1.04-.04.02-.08.04-.13.05-.08.03-.19.04-.32.05-.14.01-.28.02-.45.02-.07 0-.22.01-.44 0h-.81c-.32 0-.64-.01-.99-.01-.34 0-.67 0-.98-.01-.31 0-.57 0-.79-.01h-.41c-.03 0-.11 0-.24-.01-.13 0-.29-.01-.48-.01-.19-.01-.39-.01-.61-.02-.21 0-.42-.01-.62-.01-.1 0-.16.01-.21.03-.05.02-.07.05-.07.1 0 .03.02.06.05.09.03.03.06.04.09.05.05 0 .12 0 .19.01.07 0 .15.01.21.01.07.01.13.01.18.02.18.03.33.08.42.15.1.07.16.17.2.3.04.13.06.28.07.47.01.1.01.21.02.32 0 .12.01.25.01.41 0 .16.01.36 0 .61v2.2l.02 3.01zm-17.08-1.53c0 .5.05 1 .17 1.51.11.51.28 1.01.52 1.49.23.48.53.94.89 1.35.36.42.79.79 1.28 1.11.49.32 1.05.57 1.69.75.63.18 1.34.28 2.12.28h.1v-.69c-.63-.04-1.21-.19-1.75-.43-.65-.29-1.22-.71-1.71-1.25-.48-.55-.86-1.2-1.12-1.97-.27-.77-.4-1.63-.4-2.6.01-.9.13-1.68.37-2.35.24-.67.59-1.23 1.02-1.67.44-.45.96-.78 1.56-1 .6-.22 1.26-.33 1.97-.33h.1v-.62c-.78 0-1.5.1-2.14.28-.64.19-1.21.45-1.72.78-.5.33-.94.71-1.31 1.14-.37.43-.67.88-.91 1.36-.24.48-.42.96-.54 1.45-.13.5-.19.96-.19 1.41zM350.56 147.58v-1.3-.9-.61c0-.16 0-.3.01-.41 0-.11.01-.22.01-.32.01-.19.04-.35.07-.47.03-.12.09-.22.18-.29.08-.07.2-.12.36-.15.09-.02.17-.03.24-.03h.18c.03 0 .06-.02.09-.04.03-.03.04-.06.05-.09 0-.05-.02-.08-.06-.1-.04-.02-.11-.03-.21-.03h-.47c-.18 0-.37.01-.55.01-.18.01-.33.01-.46.01s-.2.01-.23.01-.1 0-.23-.01c-.13 0-.28-.01-.46-.01-.18-.01-.36-.01-.54-.01-.18 0-.35-.01-.49-.01-.1 0-.16.01-.21.03-.05.02-.06.05-.06.1 0 .03.01.06.04.09s.06.04.1.05c.06 0 .14 0 .23.01s.19.03.29.05c.18.04.31.12.39.27.08.14.13.35.15.63.01.1.01.21.02.32 0 .12.01.25.01.41 0 .16.01.36.01.61v2.2l-.01 2.91c0 .53-.01 1.02-.01 1.48-.01.46-.02.86-.03 1.21-.02.35-.04.64-.06.87-.02.16-.04.3-.07.42-.03.12-.07.22-.13.3-.06.07-.14.13-.25.15-.08.02-.17.04-.26.05-.09.01-.18.02-.26.02-.05 0-.08.02-.1.04-.02.03-.03.06-.03.09 0 .05.02.08.07.1.05.02.11.03.2.03.14 0 .29 0 .47-.01s.36-.01.53-.02c.17-.01.33-.01.45-.02.13-.01.2-.01.23-.01.02 0 .1 0 .23.01s.3.01.51.02c.2.01.43.01.67.02.24.01.49.01.72.01.1 0 .16-.01.21-.04.05-.03.06-.06.06-.1 0-.03-.01-.06-.03-.09-.02-.03-.05-.04-.1-.05-.05 0-.13 0-.21-.01l-.28-.03c-.1-.01-.19-.03-.28-.04-.17-.03-.29-.08-.37-.15-.08-.08-.14-.18-.17-.3s-.06-.26-.07-.42c-.03-.23-.04-.52-.05-.87-.01-.36-.01-.76-.02-1.21v-1.48l-.02-2.9zm5.6 2.93c0 .53 0 1.02-.01 1.48 0 .46-.02.86-.03 1.21-.01.35-.04.64-.07.87-.02.16-.05.3-.08.43-.03.12-.07.22-.12.3-.06.08-.14.13-.25.14-.08.01-.17.03-.26.04-.09.02-.18.03-.26.03-.05 0-.08.02-.1.04-.02.03-.03.06-.03.09 0 .05.02.08.07.1.05.02.11.03.2.03.14 0 .3 0 .47-.01.18-.01.35-.01.52-.02.19-.01.35-.01.49-.01h.25c.13 0 .3 0 .53.01.23.01.52.02.88.04.35.01.77.02 1.27.04.49.01 1.06.03 1.7.03.22 0 .39 0 .51-.01.13-.01.22-.05.29-.11.06-.06.12-.16.15-.3.03-.09.05-.22.08-.38s.05-.33.08-.5c.03-.17.04-.33.06-.46.02-.13.02-.22.02-.25 0-.06-.01-.12-.02-.17-.02-.05-.05-.08-.09-.08-.05 0-.08.02-.11.05-.03.04-.04.1-.06.2-.03.22-.08.4-.15.55-.06.15-.15.27-.25.36-.1.09-.23.17-.38.23s-.33.1-.54.12c-.21.03-.42.04-.62.04-.21.01-.39.01-.54.01-.42 0-.76-.02-1.02-.06-.26-.04-.47-.1-.61-.2-.15-.09-.25-.23-.3-.4-.06-.17-.09-.4-.09-.67 0-.07-.01-.19-.01-.36v-.6-.7c0-.24 0-.46.01-.66 0-.2.01-.36.01-.47v-1.38c0-.03.01-.06.02-.08.02-.02.04-.04.09-.04h.34c.16 0 .35 0 .56.01.22 0 .43.01.66.02.22.01.42.01.6.02s.32.02.42.03c.22.03.39.07.51.11.12.05.21.11.26.18.05.06.09.14.11.22.04.11.06.2.07.29.01.09.01.17.01.25 0 .05.01.09.03.11.02.03.05.04.09.04.06 0 .1-.04.12-.1.02-.06.03-.14.03-.21 0-.05 0-.13.01-.26l.03-.41c.01-.15.03-.28.04-.4.02-.27.05-.48.09-.62.03-.15.05-.24.05-.29 0-.05-.01-.08-.03-.1-.02-.02-.04-.03-.07-.03-.03 0-.06.02-.1.06l-.15.15c-.08.08-.19.14-.33.17-.13.03-.3.05-.5.06-.08.01-.22.01-.42.02-.2 0-.43.01-.69.01h-1.74c-.04 0-.07-.02-.08-.05-.01-.03-.02-.07-.01-.13l.01-4.48c0-.06.01-.1.02-.13s.04-.04.08-.04h.3c.16 0 .35 0 .56.01.22 0 .44.01.66.01.22.01.42.01.59.02.17.01.29.01.35.02.31.04.54.08.7.12.17.04.28.09.36.16.07.06.12.14.16.23.04.1.06.21.08.32.01.11.02.2.02.26 0 .07.01.12.03.16.02.04.06.06.1.06.04 0 .07-.02.1-.06.03-.04.05-.07.06-.12.01-.05.02-.13.03-.23l.03-.33c.01-.12.02-.22.02-.32.01-.1.02-.16.02-.21.02-.23.05-.4.09-.52.03-.12.05-.2.05-.25 0-.04-.01-.08-.01-.11-.01-.03-.03-.05-.06-.05-.04 0-.08.01-.12.03-.04.02-.08.03-.12.04-.07.01-.17.03-.31.05-.14.02-.29.03-.46.05-.07 0-.21.01-.43 0h-.78c-.3 0-.61-.01-.93-.01-.33 0-.63 0-.91-.01-.28 0-.52 0-.7-.01h-.32c-.03 0-.11 0-.24-.01-.14 0-.3-.01-.49-.01-.2-.01-.4-.01-.62-.02-.22 0-.43-.01-.62-.01-.1 0-.16.01-.21.03-.05.02-.06.05-.06.1 0 .03.02.06.05.09.03.03.06.04.09.05.05 0 .12 0 .19.01.07 0 .15.01.21.01.07.01.13.01.18.02.18.03.33.08.42.15.1.07.16.17.2.3.04.13.06.28.07.47.01.1.01.21.02.32 0 .12.01.25.01.41 0 .16.01.36.01.61v2.2l-.09 2.95zm11.67-5.63c-.13-.33-.24-.62-.32-.86-.09-.24-.13-.41-.14-.52 0-.06.01-.11.03-.16.02-.05.08-.09.16-.13.08-.03.18-.05.3-.06.11-.01.22-.02.32-.02.06 0 .1-.02.13-.05.03-.03.04-.07.04-.11 0-.08-.16-.12-.47-.12-.22 0-.45 0-.67.01-.22.01-.41.01-.58.02-.17.01-.28.01-.34.01-.05 0-.15 0-.29-.01-.14 0-.3-.01-.49-.01-.19-.01-.39-.01-.6-.02-.21 0-.42-.01-.63-.01-.13 0-.25.01-.32.02-.08.02-.12.04-.12.09 0 .03.01.06.03.1.02.03.05.05.1.06.05 0 .14 0 .27.01.12.01.25.02.39.05.18.04.34.1.47.18.13.08.25.2.36.36.11.16.22.4.35.71l4.16 10.12c.11.26.2.47.27.62.07.15.14.25.19.31.06.06.12.09.18.09s.11-.03.17-.1c.05-.07.13-.2.21-.38.09-.18.21-.43.36-.76.13-.27.3-.65.51-1.12.21-.47.46-1.04.74-1.69.28-.65.6-1.38.95-2.18.22-.51.44-1 .64-1.48.21-.48.4-.92.57-1.33.17-.41.32-.75.44-1.04.12-.28.21-.49.26-.61.15-.37.28-.66.4-.86.11-.2.22-.35.31-.44.09-.09.17-.16.25-.21.11-.07.21-.11.32-.14.11-.03.21-.04.3-.05.09-.01.15-.01.19-.01.07 0 .12-.02.15-.05.03-.03.04-.07.04-.11 0-.04-.02-.07-.07-.09-.04-.02-.11-.03-.2-.03h-.41c-.15 0-.28.01-.41.01-.13.01-.25.01-.34.01-.09 0-.16.01-.18.01-.08 0-.2 0-.38-.01s-.38-.01-.6-.02c-.23-.01-.46-.01-.69-.01-.13 0-.23.01-.29.03-.07.02-.09.05-.09.1 0 .04.02.07.06.1.04.03.08.04.13.04.1 0 .19 0 .29.01.1.01.19.02.29.05.09.03.15.08.18.15.04.06.05.13.05.2s-.02.16-.05.27c-.03.11-.07.23-.11.35-.05.17-.14.42-.26.76-.12.33-.27.72-.44 1.16-.17.45-.36.92-.56 1.43-.2.51-.41 1.03-.63 1.56-.22.53-.43 1.05-.64 1.56-.21.5-.41.97-.59 1.41-.18.44-.35.81-.49 1.13l-3.16-8.3zm12.12 5.71c0 .53 0 1.02-.01 1.48-.01.46-.02.86-.03 1.21-.01.35-.04.64-.07.87-.02.16-.05.3-.08.43-.03.12-.07.22-.12.3-.05.08-.14.13-.25.14-.08.01-.17.03-.26.04-.09.02-.18.03-.26.03-.05 0-.08.02-.1.04-.02.03-.03.06-.03.09 0 .05.02.08.07.1.05.02.11.03.2.03.14 0 .3 0 .47-.01.18-.01.35-.01.52-.02.19-.01.35-.01.49-.01h.25c.13 0 .3 0 .53.01.23.01.52.02.88.04.35.01.77.02 1.27.04.49.01 1.06.03 1.7.03.22 0 .39 0 .51-.01.13-.01.22-.05.29-.11.06-.06.12-.16.15-.3.03-.09.05-.22.08-.38s.05-.33.08-.5c.03-.17.04-.33.06-.46.02-.13.02-.22.02-.25 0-.06-.01-.12-.02-.17-.02-.05-.05-.08-.09-.08-.05 0-.08.02-.11.05-.03.04-.04.1-.06.2-.03.22-.08.4-.15.55-.06.15-.15.27-.25.36-.1.09-.23.17-.38.23s-.33.1-.54.12c-.21.03-.42.04-.62.04-.21.01-.39.01-.54.01-.42 0-.76-.02-1.02-.06-.26-.04-.47-.1-.61-.2-.15-.09-.25-.23-.3-.4-.06-.17-.09-.4-.09-.67 0-.07-.01-.19-.01-.36v-.6c0-.23 0-.47.01-.7v-.66c0-.2.01-.36.01-.47v-1.38c0-.03.01-.06.02-.08.02-.02.04-.04.09-.04h.34c.16 0 .35 0 .56.01.22 0 .43.01.66.02.22.01.42.01.6.02s.32.02.42.03c.22.03.39.07.51.11.12.05.21.11.26.18.05.06.09.14.11.22.04.11.06.2.07.29.01.09.01.17.01.25 0 .05.01.09.03.11.02.03.05.04.09.04.06 0 .1-.04.12-.1.02-.06.03-.14.03-.21 0-.05 0-.13.01-.26l.03-.41c.01-.15.03-.28.04-.4.02-.27.05-.48.09-.62.03-.15.05-.24.05-.29 0-.05-.01-.08-.03-.1-.02-.02-.04-.03-.07-.03-.03 0-.06.02-.1.06l-.15.15c-.08.08-.2.14-.33.17s-.3.05-.5.06c-.08.01-.22.01-.42.02-.2 0-.43.01-.69.01h-1.74c-.04 0-.07-.02-.08-.05-.01-.03-.02-.07-.01-.13l.01-4.48c0-.06.01-.1.02-.13s.04-.04.08-.04h.3c.16 0 .35 0 .56.01.22 0 .44.01.66.01.22.01.42.01.59.02.17.01.29.01.35.02.31.04.54.08.7.12.17.04.28.09.36.16.07.06.12.14.16.23.04.1.06.21.08.32.01.11.02.2.02.26 0 .07.01.12.03.16.02.04.05.05.1.06.04 0 .07-.02.1-.06.03-.04.05-.07.06-.12.01-.05.02-.13.03-.23l.03-.33c.01-.12.02-.22.02-.32.01-.1.02-.16.02-.21.02-.23.05-.4.09-.52.03-.12.05-.2.05-.25 0-.04-.01-.08-.02-.11s-.03-.05-.06-.05c-.04 0-.08.01-.12.03-.04.02-.08.03-.12.04-.07.01-.17.03-.31.05-.14.02-.29.03-.46.05-.07 0-.21.01-.43 0h-.78c-.3 0-.61-.01-.93-.01-.33 0-.63 0-.91-.01-.28 0-.52 0-.7-.01h-.32c-.03 0-.11 0-.24-.01-.14 0-.3-.01-.49-.01-.2-.01-.4-.01-.62-.02-.22 0-.43-.01-.62-.01-.1 0-.16.01-.21.03-.05.02-.07.05-.07.1 0 .03.02.06.05.09.03.03.06.04.09.05.05 0 .12 0 .19.01.07 0 .14.01.21.01.07.01.13.01.18.02.18.03.33.08.42.15.1.07.16.17.2.3.04.13.06.28.07.47.01.1.01.21.02.32 0 .12.01.25.01.41 0 .16.01.36.01.61v2.2l-.07 2.95zm22.32-7.4c-.02-.16-.05-.27-.1-.34-.04-.07-.1-.11-.15-.11s-.11.03-.15.08c-.05.05-.09.11-.12.19l-5 10.2-5.13-10.25c-.05-.1-.11-.16-.17-.2-.06-.04-.12-.06-.18-.05-.05 0-.09.03-.13.08-.04.05-.06.12-.07.21l-1.28 10.76c-.02.21-.05.41-.08.59-.03.19-.09.35-.18.48s-.22.21-.41.24c-.12.02-.22.03-.29.04-.08.01-.15.01-.21.01-.05 0-.09.01-.12.04-.03.02-.05.05-.05.08 0 .06.03.1.08.12.05.03.12.04.21.04.12 0 .25 0 .4-.01.15-.01.29-.01.44-.02.14-.01.27-.01.38-.02.11-.01.18-.01.22-.01.05 0 .16.01.33.02s.37.02.59.03c.23.01.45.02.67.02.1 0 .17-.01.23-.04.05-.02.08-.06.08-.12 0-.03-.02-.06-.05-.08-.03-.02-.06-.04-.09-.04-.06 0-.15-.01-.26-.02-.12-.01-.25-.04-.39-.08-.13-.03-.22-.08-.3-.16-.07-.08-.11-.18-.11-.31 0-.14 0-.28.01-.42 0-.15.01-.28.02-.41l.68-7.44h.08c.06.14.16.35.29.63.13.28.28.6.45.95.17.36.34.72.52 1.09.18.37.35.71.5 1.04.16.32.29.59.39.81l.33.66c.13.26.27.54.43.84.15.3.31.59.46.89.15.29.3.56.43.82.14.25.25.46.34.62.11.2.2.35.26.46.07.11.12.19.17.23.05.04.1.06.15.06.05 0 .1-.02.15-.07.05-.04.11-.13.18-.26.07-.13.16-.31.28-.54l4.14-8.4h.04l.79 8.34c.02.16.02.29.01.4-.01.11-.04.17-.09.18-.04.01-.07.03-.09.05-.02.02-.03.05-.03.08-.01.04.03.07.09.1s.2.05.39.07c.13.01.3.02.5.03l.67.03c.25.01.48.02.72.02.23 0 .44.01.62.02h.39c.1 0 .18-.01.25-.04s.1-.06.1-.11c0-.04-.01-.07-.04-.09-.02-.02-.06-.03-.1-.03-.09 0-.23 0-.44-.02-.2-.02-.42-.06-.67-.14-.17-.06-.31-.16-.42-.29-.11-.13-.19-.27-.25-.44-.06-.17-.11-.34-.13-.51-.03-.17-.05-.33-.06-.48l-1.12-10.1zM408.55 150.68c0 .53 0 1.02-.01 1.48 0 .46-.02.86-.03 1.21-.02.35-.04.64-.07.87-.02.16-.05.3-.08.43-.03.12-.07.22-.12.3-.06.08-.14.13-.25.14-.08.01-.17.03-.26.04-.09.02-.18.03-.26.03-.05 0-.08.02-.1.04-.02.03-.03.06-.03.09 0 .05.02.08.07.1.05.02.11.03.2.03.14 0 .3 0 .47-.01.18-.01.35-.01.52-.02.19-.01.35-.01.49-.01h.24c.13 0 .3 0 .53.01.23.01.52.02.88.04.35.01.77.02 1.27.04.5.01 1.06.03 1.7.03.22 0 .39 0 .51-.01.13-.01.22-.05.29-.11.06-.06.12-.16.15-.3.03-.09.05-.22.08-.38s.05-.33.08-.5c.03-.17.04-.33.06-.46.02-.13.02-.22.02-.25 0-.06-.01-.12-.02-.17-.02-.05-.04-.08-.09-.08-.05 0-.08.02-.11.05-.03.04-.05.1-.07.2-.03.22-.08.4-.15.55-.07.15-.15.27-.25.36-.1.09-.23.17-.38.23s-.33.1-.54.12c-.21.03-.42.04-.62.04-.21.01-.39.01-.54.01-.42 0-.76-.02-1.02-.06-.27-.04-.47-.1-.61-.2-.14-.09-.24-.23-.3-.4s-.09-.4-.1-.67c0-.07-.01-.19-.01-.36v-.6c0-.23 0-.47.01-.7 0-.24.01-.46.01-.66V149.32c0-.03.01-.06.02-.08.02-.02.05-.04.09-.04h.34c.16 0 .35 0 .56.01.22 0 .43.01.66.02.22.01.42.01.6.02s.32.02.42.03c.22.03.39.07.51.11.12.05.21.11.26.18.06.06.09.14.11.22.04.11.06.2.07.29.01.09.01.17.01.25 0 .05.01.09.03.11.02.03.05.04.09.04.06 0 .1-.04.12-.1.02-.06.03-.14.03-.21 0-.05 0-.13.01-.26l.03-.41c.01-.15.03-.28.04-.4.02-.27.05-.48.09-.62.03-.15.05-.24.05-.29 0-.05-.01-.08-.02-.1-.02-.02-.04-.03-.07-.03-.03 0-.07.02-.1.06l-.15.15c-.08.08-.19.14-.33.17-.13.03-.3.05-.5.06-.08.01-.22.01-.42.02-.2 0-.43.01-.68.01h-1.74c-.05 0-.07-.02-.08-.05-.01-.03-.02-.07-.01-.13l.01-4.48c0-.06.01-.1.02-.13s.04-.04.08-.04h.3c.16 0 .35 0 .56.01.22 0 .44.01.66.01.22.01.42.01.59.02.17.01.29.01.35.02.31.04.54.08.7.12.16.04.28.09.35.16.07.06.13.14.16.23.04.1.06.21.08.32.01.11.02.2.02.26 0 .07.01.12.03.16.02.04.05.05.1.06.04 0 .07-.02.1-.06.03-.04.04-.07.05-.12.01-.05.02-.13.03-.23l.03-.33c.01-.12.02-.22.02-.32.01-.1.02-.16.02-.21.02-.23.05-.4.09-.52.03-.12.05-.2.05-.25 0-.04-.01-.08-.02-.11s-.03-.05-.06-.05c-.04 0-.08.01-.12.03-.04.02-.08.03-.12.04-.07.01-.18.03-.31.05-.14.02-.29.03-.46.05-.07 0-.21.01-.43 0h-.78c-.3 0-.61-.01-.93-.01-.33 0-.63 0-.91-.01-.29 0-.52 0-.7-.01h-.32c-.03 0-.11 0-.24-.01-.13 0-.3-.01-.49-.01-.2-.01-.4-.01-.62-.02-.22 0-.43-.01-.62-.01-.1 0-.17.01-.21.03-.05.02-.06.05-.06.1 0 .03.02.06.04.09.03.03.06.04.09.05.06 0 .12 0 .19.01.07 0 .15.01.21.01.07.01.13.01.18.02.18.03.33.08.42.15.1.07.16.17.2.3.04.13.06.28.07.47.01.1.01.21.02.32 0 .12.01.25.01.41v2.81l-.03 2.95zm11.23-5.2c.14.15.35.38.63.68.29.31.63.67 1.03 1.1.4.42.83.88 1.3 1.37.47.5.95 1 1.45 1.53.36.38.74.77 1.13 1.17.39.4.78.79 1.15 1.17l1.03 1.03.76.76c.2.19.32.31.35.34.31.29.55.51.72.65.17.15.29.24.37.29.08.05.15.07.2.07.03 0 .05-.01.07-.03.02-.02.03-.07.04-.15.01-.08.02-.2.02-.36v-.64l.07-9.66c0-.33.01-.59.03-.78.02-.2.08-.35.17-.45.08-.1.22-.17.4-.2.1-.02.18-.03.25-.03h.16c.06 0 .11-.02.14-.05.03-.04.05-.07.05-.1 0-.05-.03-.08-.09-.09-.06-.02-.13-.02-.22-.02-.35 0-.66 0-.91.02-.26.01-.44.02-.54.02-.07 0-.19 0-.37-.01s-.4-.01-.64-.02c-.25-.01-.5-.01-.76-.01-.1 0-.18.01-.24.02-.06.02-.09.04-.09.09 0 .03.01.06.03.1.02.03.06.05.11.06.05 0 .12 0 .21.01s.19.01.3.03c.11.01.22.03.32.05.17.03.3.1.39.21.09.1.15.27.19.48.04.21.05.5.06.85l.15 8.26c-.13-.14-.34-.36-.61-.65-.27-.29-.59-.64-.96-1.03s-.76-.81-1.18-1.25l-1.27-1.33c-.53-.55-1.04-1.08-1.54-1.61-.5-.52-.97-1.01-1.4-1.47-.44-.46-.83-.88-1.18-1.24-.34-.36-.62-.66-.84-.89-.22-.23-.35-.37-.41-.43l-.21-.21c-.08-.08-.15-.15-.23-.21-.08-.06-.16-.09-.22-.09-.05 0-.08.02-.12.07-.04.05-.06.14-.09.25-.02.12-.03.29-.03.51l-.03 9.44c0 .49-.01.88-.03 1.17-.02.29-.07.5-.14.63s-.18.22-.32.25c-.13.04-.26.06-.39.08-.13.01-.23.02-.31.02-.04 0-.07.01-.1.04s-.04.06-.04.1c0 .06.02.09.07.11.05.02.11.03.2.03.26 0 .51-.01.74-.01.23-.01.43-.01.59-.02.16-.01.27-.02.32-.01.08 0 .28.01.6.03.31.02.72.03 1.21.03.1 0 .17-.01.23-.03.05-.02.08-.05.08-.1 0-.04-.01-.07-.04-.1s-.06-.04-.1-.04c-.05 0-.13 0-.22-.01s-.2-.02-.31-.03c-.11-.02-.22-.04-.32-.06-.16-.04-.28-.11-.37-.24-.09-.13-.16-.32-.21-.58-.04-.26-.07-.62-.08-1.07l-.16-7.81zm19.35-1.62l2.13.05c.4.01.74.04 1 .09s.47.11.61.2c.15.08.26.18.32.28.06.11.1.22.12.35l.02.18c.01.11.02.19.04.23.02.04.05.06.09.06.04 0 .08-.02.11-.06.03-.04.05-.09.05-.16 0-.05 0-.16.01-.3.01-.15.01-.32.02-.52s.01-.39.02-.58c.01-.19.01-.35.01-.48 0-.05 0-.09-.01-.13-.01-.04-.03-.06-.07-.06-.04 0-.1.01-.18.02-.08.02-.18.03-.31.05-.13.02-.3.04-.5.05-.2.02-.44.02-.72.02l-6.44-.02c-.07 0-.18 0-.33-.01-.14-.01-.31-.01-.49-.03-.18-.01-.36-.03-.52-.05-.23-.03-.4-.08-.51-.12-.11-.05-.19-.07-.25-.08-.02 0-.04.02-.06.06-.02.04-.04.08-.07.13-.02.05-.04.09-.05.12 0 .03-.02.1-.05.22-.03.12-.06.25-.1.42-.04.16-.07.32-.1.48-.04.16-.07.3-.09.43-.02.12-.04.2-.04.24 0 .05.02.08.05.1.02.02.05.03.07.03.04 0 .07-.01.1-.03.03-.02.05-.06.07-.13.03-.06.05-.12.08-.2.03-.08.09-.18.19-.33.08-.13.19-.23.32-.3.13-.07.31-.13.54-.16.23-.03.51-.05.87-.06l2.46-.03-.02 6.92c0 .53 0 1.02-.01 1.48 0 .46-.01.86-.02 1.21s-.03.64-.06.87c-.03.25-.07.44-.14.6-.07.15-.19.25-.36.29-.08.02-.16.04-.25.05-.09.01-.17.02-.25.02-.05 0-.08.01-.1.04-.02.02-.03.05-.03.08 0 .05.02.08.07.1.04.02.11.03.21.03.13 0 .29 0 .48-.01s.38-.01.57-.02c.19-.01.35-.01.49-.02.13-.01.21-.01.24-.01s.11 0 .24.01.3.01.5.02.42.01.66.02c.24.01.47.01.71.01.1 0 .16-.01.21-.04.04-.03.06-.06.06-.1 0-.03-.01-.06-.02-.09-.02-.03-.06-.04-.11-.05-.05 0-.13 0-.22-.01l-.28-.03c-.1-.01-.19-.03-.27-.04-.17-.03-.3-.08-.39-.15-.09-.08-.15-.18-.19-.3-.04-.12-.06-.26-.08-.42-.02-.23-.04-.52-.05-.87-.01-.36-.01-.76-.02-1.21v-1.48l.02-6.87z"/>diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/new_user.svg.erb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/new_user.svg.erbindex cc87e83814e..de84656e921 100644--- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/new_user.svg.erb+++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/templates/new_user.svg.erb@@ -457,9 +457,11 @@<text x="<%= @width / 2 %>" y="240.94" text-anchor="middle" font-size="24" fill="#020403" font-family="Tangerine, Tangerine"><%= @name %></text>- <g transform="translate(<%= @logo_group[:width] / 2 - (@logo_group[:size] / 2) %> <%= @logo_group[:height] %>)">- <image height="<%= @logo_group[:size] %>px" width="<%= @logo_group[:size] %>px" href="<%= @logo_group[:logo_uri] %>"/>- </g>+ <% if @logo_group.present? %>+ <g transform="translate(<%= @logo_group[:width] / 2 - (@logo_group[:size] / 2) %> <%= @logo_group[:height] %>)">+ <image height="<%= @logo_group[:size] %>px" width="<%= @logo_group[:size] %>px" href="<%= @logo_group[:logo_uri] %>"/>+ </g>+ <% end %></g><g id="Layer_1-2" data-name="Layer 1"><path d="M339.328 47.187c-.034 1.193 3.25 2.2 6.51 3.383 5.5 1.994 13.1 3.73 17.68 3.112 5.05-.55 4.982-2.217 4.054-4.8-.1-4.647.258-9.493.156-14.142l-27.128-.458c.5 4.698-1.778 8.207-1.272 12.905z" transform="translate(-.108)" fill-rule="evenodd" fill="url(#GradientFill_24)"/>