[FIX] runbot: correct svg template

use `t-attf-xmlns` to avoid `xmlns` being handled by qweb xml parser itself
This commit is contained in:
Christophe Simonis 2014-07-31 17:05:54 +02:00
parent 0705e42557
commit b360ab6de4

View File

@ -587,9 +587,9 @@ http {
} }
</template> </template>
<template id="runbot.badge_default"> <template id="runbot.badge_default">&lt;?xml version="1.0"?&gt;
<!-- from https://github.com/badges/shields/tree/master/templates --> <svg t-attf-xmlns="http://www.w3.org/2000/svg" t-attf-width="{{left.width + right.width}}" height="18">
<svg xmlns="http://www.w3.org/2000/svg" t-attf-width="{{left.width + right.width}}" height="18"> <!-- from https://github.com/badges/shields/tree/master/templates -->
<linearGradient id="smooth" x2="0" y2="100%"> <linearGradient id="smooth" x2="0" y2="100%">
<stop offset="0" stop-color="#fff" stop-opacity=".7"/> <stop offset="0" stop-color="#fff" stop-opacity=".7"/>
<stop offset=".1" stop-color="#aaa" stop-opacity=".1"/> <stop offset=".1" stop-color="#aaa" stop-opacity=".1"/>
@ -608,9 +608,9 @@ http {
</g> </g>
</svg> </svg>
</template> </template>
<template id="runbot.badge_flat"> <template id="runbot.badge_flat">&lt;?xml version="1.0"?&gt;
<!-- from https://github.com/badges/shields/tree/master/templates --> <svg t-attf-xmlns="http://www.w3.org/2000/svg" t-attf-width="{{left.width + right.width}}" height="20">
<svg xmlns="http://www.w3.org/2000/svg" t-attf-width="{{left.width + right.width}}" height="20"> <!-- from https://github.com/badges/shields/tree/master/templates -->
<linearGradient id="smooth" x2="0" y2="100%"> <linearGradient id="smooth" x2="0" y2="100%">
<stop offset="0" stop-color="#fff" stop-opacity=".1"/> <stop offset="0" stop-color="#fff" stop-opacity=".1"/>
<stop offset=".1" stop-color="#fff" stop-opacity=".1"/> <stop offset=".1" stop-color="#fff" stop-opacity=".1"/>