Author: gsaini
Date: Sun Jul 20 18:20:17 2014
New Revision: 1612143
URL: http://svn.apache.org/r1612143
Log:
Fixed full blog entry on home page if summary not there ROL-2041
Modified:
roller/trunk/app/src/main/webapp/themes/gaurav/day.vm
Modified: roller/trunk/app/src/main/webapp/themes/gaurav/day.vm
URL:
http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/themes/gaurav/day.vm?rev=1612143&r1=1612142&r2=1612143&view=diff
==============================================================================
--- roller/trunk/app/src/main/webapp/themes/gaurav/day.vm (original)
+++ roller/trunk/app/src/main/webapp/themes/gaurav/day.vm Sun Jul 20 18:20:17
2014
@@ -20,10 +20,14 @@
<div class="entryContent">
#if($model.permalink)
- <p>$entry.displayContent</p>
+ <p>$entry.displayContent</p>
#else
- <p>$entry.summary</p>
- <a class="btn btn-primary"
href="$url.entry($entry.anchor)">Read More <i class="icon-angle-right"></i></a>
+ #if($entry.summary != "")
+ <p>$entry.summary</p>
+ <a class="btn btn-primary"
href="$url.entry($entry.anchor)">Read More <i class="icon-angle-right"></i></a>
+ #else
+ <p>$entry.displayContent</p>
+ #end
#end
</div>