##// END OF EJS Templates
Fixed get computing. Visually differing get posts in thread.
neko259 -
r42:37e52c98 default
parent child Browse files
Show More
@@ -195,8 +195,8 b' class Post(models.Model):'
195 195 # TODO Compile regexes
196 196
197 197 id_str = str(self.id)
198 pretty = re.match(r'\d0+', id_str)
199 same_digits = re.match(r'^(.)\1{1,}$', id_str)
198 pretty = re.match(r'^\d(0)+$', id_str)
199 same_digits = re.match(r'^(.)\1+$', id_str)
200 200 return first or pretty or same_digits
201 201
202 202
@@ -51,11 +51,12 b' html {'
51 51 }
52 52
53 53 .metadata {
54 padding: 2px;
54 padding: 5px;
55 55 margin-top: 10px;
56 56 border: solid 1px #666;
57 57 font-size: 0.9em;
58 58 color: #ddd;
59 display: table;
59 60 }
60 61
61 62 #navigation_panel {
@@ -159,4 +160,9 b' blockquote {'
159 160
160 161 .post > .metadata {
161 162 clear: left;
163 }
164
165 .get {
166 font-weight: bold;
167 color: #d55;
162 168 } No newline at end of file
@@ -169,6 +169,11 b' a {'
169 169 .post > .metadata {
170 170 clear: left;
171 171 }
172
172 173 .post {
173 174 clear: left;
174 175 }
176
177 .post > .message .get {
178 color: #182F6F; font-weight: bold;
179 } No newline at end of file
@@ -25,6 +25,11 b''
25 25 <a class="post_id" href="#{{ post.id }}">
26 26 (#{{ post.id }})</a>
27 27 [{{ post.pub_time }}]
28 {% if post.is_get %}
29 <span class="get">
30 {% trans "Get!" %}
31 </span>
32 {% endif %}
28 33 {% autoescape off %}
29 34 {{ post.text.rendered }}
30 35 {% endautoescape %}
General Comments 0
You need to be logged in to leave comments. Login now