Commit 2a64f5c13fed501c6921ccb7ffee7ba0e2813c31
- Diff rendering mode:
- inline
- side by side
pm/forum/models.py
(1 / 0)
|   | |||
| 101 | 101 | topics = Topic.objects.annotate(models.Count('post')) | |
| 102 | 102 | if not private: | |
| 103 | 103 | topics = topics.filter(forum__staff_only = False) | |
| 104 | |||
| 104 | 105 | return topics.order_by('-last_post__creation')[:nb] | |
| 105 | 106 | ||
| 106 | 107 | def set_last_post(forum_id): |
public/assets/css/style.css
(10 / 0)
|   | |||
| 148 | 148 | .clear { clear: both; } | |
| 149 | 149 | .codehilite { padding : 1px 12px; } | |
| 150 | 150 | ||
| 151 | /* fixes the bug when a long code | ||
| 152 | prevents good word-wrapping */ | ||
| 153 | pre { | ||
| 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 | |||
| 151 | 161 | a | |
| 152 | 162 | { | |
| 153 | 163 | color: #ff3a3a; |

