From: David ‘Bombe’ Roden Date: Tue, 21 Jun 2011 10:22:08 +0000 (+0200) Subject: Use option value for cutting off posts. X-Git-Tag: 0.6.6^2~56 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=aae07418c55086725b2ee50417e51d769baae9c3;p=Sone.git Use option value for cutting off posts. --- diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 62df741..43e9ea4 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -23,7 +23,7 @@ <%/if> <% post.text|html|store key=originalText text=true> <% post.text|parse sone=post.sone|store key=parsedText text=true> - <% post.text|parse sone=post.sone length=200|store key=shortText text=true> + <% post.text|parse sone=post.sone length=core.preferences.charactersPerPost|store key=shortText text=true>
<% originalText>
<% parsedText>
<% shortText>
diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index 4ec2e29..63957d5 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -11,7 +11,7 @@ <% reply.text|html|store key=originalText text=true> <% reply.text|parse sone=reply.sone|store key=parsedText text=true> - <% reply.text|parse sone=reply.sone length=200|store key=shortText text=true> + <% reply.text|parse sone=reply.sone length=core.preferences.charactersPerPost|store key=shortText text=true>
<% originalText>
<% parsedText>
<% shortText>