Minor style fix in gallery view.
[redakcja.git] / src / redakcja / static / xsl / wl2html_client.xsl
index f5a442b..c4e68ce 100644 (file)
         </div>
     </xsl:template>
 
+    <xsl:template match="ilustr">
+      <div>
+        <xsl:call-template name="standard-attributes" />
+        <img>
+          <xsl:attribute name="src">
+            <xsl:value-of select="@src" />
+          </xsl:attribute>
+        </img>
+        <p class="alt"><xsl:value-of select="@alt"/></p>
+      </div>
+    </xsl:template>
+
     <!--
         ***********************************
         Style akapitowe oraz strofy i wersy
         </span>
     </xsl:template>
 
+    <xsl:template match="ref">
+      <span x-editable="true" x-common="common" x-edit-no-format="true" x-edit-attribute="href">
+        <xsl:call-template name="standard-attributes">
+          <xsl:with-param name="extra-class" select="'reference-inline-box'" />
+        </xsl:call-template>
+        <a class="reference">📌</a>
+      </span>
+    </xsl:template>
+    
     <xsl:template match="begin">        
         <span>
             <xsl:call-template name="standard-attributes" />
     </xsl:template>
 
     <xsl:template match="motyw">
-        <span x-editable="true" x-common="common">
+        <span x-editable="true" x-edit-no-format="true" x-common="common">
             <xsl:call-template name="standard-attributes" />
             <xsl:attribute name="theme-class">
                 <xsl:value-of select="substring-after(@id, 'm')" />