This repository has been archived by the owner on Sep 17, 2019. It is now read-only.
forked from nembrotorg/nembrot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes various HTML errors left over from the conversion to Slim.
- Loading branch information
Showing
20 changed files
with
122 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
app/views/citations/styles/default/_blockquote_with_attribution.html.slim
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
section.books | ||
|
||
header | ||
h6=t('links.title') | ||
h6=t('links.index.title') | ||
|
||
table | ||
- links.each do |link| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
nav.tags | ||
|
||
header | ||
h6 = link_to t('tags.title'), tags_path | ||
h6 = link_to t('tags.index.title'), tags_path | ||
|
||
ul | ||
- tags.each do |tag| | ||
li = link_to tag.name, tag_path(tag) | ||
li = link_to tag.name, tag_path(tag), rel: 'tag' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
- if Settings.tags.index.style == 'cloud' | ||
ul.cloud | ||
- tag_cloud(tags, %w(css1 css2 css3 css4)) do |tag, css_class| | ||
= link_to tag.name, tag_path(tag), class: css_class, title: tag.count | ||
- else | ||
ul.tags | ||
section.tags | ||
|
||
header | ||
h6 = link_to_unless_current t('tags.index.title'), tags_path | ||
|
||
ul | ||
- tags.each do |tag| | ||
li = link_to "#{ tag.name } <span class=\"count\">#{ tag.count }</span>".html_safe, tag_path(tag), rel: 'tag' | ||
li = link_to "#{ tag.name } <span class=\"count\">#{ tag.count }</span>".html_safe, tag_path(tag) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<!-- From: https://gist.github.com/mislav/398334 --> | ||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
<xsl:output method="xml" encoding="UTF-8"/> | ||
<xsl:param name="indent-increment" select="' '"/> | ||
|
||
<xsl:template name="newline"> | ||
<xsl:text disable-output-escaping="yes"> | ||
</xsl:text> | ||
</xsl:template> | ||
|
||
<xsl:template match="comment() | processing-instruction()"> | ||
<xsl:param name="indent" select="''"/> | ||
<xsl:call-template name="newline"/> | ||
<xsl:value-of select="$indent"/> | ||
<xsl:copy /> | ||
</xsl:template> | ||
|
||
<xsl:template match="text()"> | ||
<xsl:param name="indent" select="''"/> | ||
<xsl:call-template name="newline"/> | ||
<xsl:value-of select="$indent"/> | ||
<xsl:value-of select="normalize-space(.)"/> | ||
</xsl:template> | ||
|
||
<xsl:template match="text()[normalize-space(.)='']"/> | ||
|
||
<xsl:template match="*"> | ||
<xsl:param name="indent" select="''"/> | ||
<xsl:call-template name="newline"/> | ||
<xsl:value-of select="$indent"/> | ||
<xsl:choose> | ||
<xsl:when test="count(child::*) > 0"> | ||
<xsl:copy> | ||
<xsl:copy-of select="@*"/> | ||
<xsl:apply-templates select="*|text()"> | ||
<xsl:with-param name="indent" select="concat ($indent, $indent-increment)"/> | ||
</xsl:apply-templates> | ||
<xsl:call-template name="newline"/> | ||
<xsl:value-of select="$indent"/> | ||
</xsl:copy> | ||
</xsl:when> | ||
<xsl:otherwise> | ||
<xsl:copy-of select="."/> | ||
</xsl:otherwise> | ||
</xsl:choose> | ||
</xsl:template> | ||
</xsl:stylesheet> |