Jump to bottom of page  |  會員註冊 / 登入

Developer Forum

Code problem on trunk with template mobile/user_posts_show.htm
發表人: davetcc,
2019/03/01 19:26:55
Hi there,

I'm not sure if this belongs in the development section, but certainly did not seem to fit in the other cataegories. Firstly, thanks for this forum, I've got it up and running pretty quickly at thecoderscorner.com.

However, I noticed a bug in the default/mobile/user_posts_show.htm template. It refers to the post.time field that is not available and throws an exception on page rendering.

I changed the template as follows and it appears to work correctly now.

Removed:

${I18n.getMessage("ModerationLog.date")}: ${post.time}


Added:

<div class="postbody">${post.text}</div>


The change seems very minor and probably not worth a patch, but if you prefer a patch I will provide it as a patch.

發表人: udittmer,
2019/03/01 20:17:22
Thanks for alerting us to that. It should read "${post.formattedTime}" rather than "${post.time}". That has actually led me to a couple more issues with the handling of relative dates - I just checked in a patch for those.

To keep the mobile view light, the post text isn't included on purpose.




搜尋 | 最新主題

Jump to top of page  |  電腦版