News: Add author to entry headers

This commit is contained in:
zzz
2015-09-16 17:26:03 +00:00
parent 3d533a406d
commit 0f6176b7bf

View File

@ -74,6 +74,11 @@ public class NewsFeedHelper extends HelperBase {
buf.append(entry.title);
if (entry.link != null)
buf.append("</a>");
if (entry.authorName != null) {
buf.append(" <font size=\"-2\">(<i>")
.append(Messages.getString("by {0}", DataHelper.escapeHTML(entry.authorName), ctx))
.append("</i>)</font>\n");
}
buf.append("</h3>\n<div class=\"newscontent\">\n")
.append(entry.content)
.append("\n</div></div>\n");