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