roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r507144 - /incubator/roller/branches/roller_4.0/web/WEB-INF/velocity/weblog.vm
Date Tue, 13 Feb 2007 18:30:26 GMT
Author: snoopdave
Date: Tue Feb 13 10:30:25 2007
New Revision: 507144

URL: http://svn.apache.org/viewvc?view=rev&rev=507144
Log:
Comment fix, don't show null remoteHost, merged from trunk 

Modified:
    incubator/roller/branches/roller_4.0/web/WEB-INF/velocity/weblog.vm

Modified: incubator/roller/branches/roller_4.0/web/WEB-INF/velocity/weblog.vm
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_4.0/web/WEB-INF/velocity/weblog.vm?view=diff&rev=507144&r1=507143&r2=507144
==============================================================================
--- incubator/roller/branches/roller_4.0/web/WEB-INF/velocity/weblog.vm (original)
+++ incubator/roller/branches/roller_4.0/web/WEB-INF/velocity/weblog.vm Tue Feb 13 10:30:25
2007
@@ -187,6 +187,7 @@
             #end
             #set($content = $utils.addNofollow($content))
 
+            <a name="comment-$comment.timestamp" id="comment-$comment.timestamp"></a>
             <div class="comment#if($velocityCount % 2 == 0) even#else odd#end" id="comment${velocityCount}">
                 ${content}
 
@@ -196,8 +197,10 @@
                     <a rel="nofollow" href="$comment.url"><b>$comment.name</b></a>
                 #elseif (!$utils.isEmpty($comment.name))
                     <b>$comment.name</b>
-                #else
+                #elseif ($comment.remoteHost)
                     <b>$comment.remoteHost</b>
+                #else
+                    <b>$text.get("macro.weblog.comment.unknown")</b>
                 #end
 
                 $text.get("macro.weblog.on") $utils.formatDate($comment.postTime, $text.get(
"macro.weblog.datepattern" ))



Mime
View raw message