Commit 2a64f5c13fed501c6921ccb7ffee7ba0e2813c31

  • avatar
  • asmanur
  • Sat May 07 13:09:24 CEST 2011
  • Tree SHA1: 14840f8
  • Parent SHA1: 276c59d (modified compact view so that the link sends to the last non read post, for authentificated user.)
  • raw diff | raw patch
Uses word-wrapping for <pre> tags.
  
101101 topics = Topic.objects.annotate(models.Count('post'))
102102 if not private:
103103 topics = topics.filter(forum__staff_only = False)
104
104105 return topics.order_by('-last_post__creation')[:nb]
105106
106107def set_last_post(forum_id):
  
148148.clear { clear: both; }
149149.codehilite { padding : 1px 12px; }
150150
151/* fixes the bug when a long code
152 prevents good word-wrapping */
153pre {
154 white-space: pre-wrap; /* css-3 */
155 white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
156 white-space: -pre-wrap; /* Opera 4-6 */
157 white-space: -o-pre-wrap; /* Opera 7 */
158 word-wrap: break-word; /* Internet Explorer 5.5+ */
159}
160
151161a
152162{
153163 color: #ff3a3a;