diff --git a/boards/models.py b/boards/models.py
--- a/boards/models.py
+++ b/boards/models.py
@@ -195,8 +195,8 @@ class Post(models.Model):
# TODO Compile regexes
id_str = str(self.id)
- pretty = re.match(r'\d0+', id_str)
- same_digits = re.match(r'^(.)\1{1,}$', id_str)
+ pretty = re.match(r'^\d(0)+$', id_str)
+ same_digits = re.match(r'^(.)\1+$', id_str)
return first or pretty or same_digits
diff --git a/boards/static/css/md/base_page.css b/boards/static/css/md/base_page.css
--- a/boards/static/css/md/base_page.css
+++ b/boards/static/css/md/base_page.css
@@ -51,11 +51,12 @@ html {
}
.metadata {
- padding: 2px;
+ padding: 5px;
margin-top: 10px;
border: solid 1px #666;
font-size: 0.9em;
color: #ddd;
+ display: table;
}
#navigation_panel {
@@ -159,4 +160,9 @@ blockquote {
.post > .metadata {
clear: left;
+}
+
+.get {
+ font-weight: bold;
+ color: #d55;
}
\ No newline at end of file
diff --git a/boards/static/css/sw/base_page.css b/boards/static/css/sw/base_page.css
--- a/boards/static/css/sw/base_page.css
+++ b/boards/static/css/sw/base_page.css
@@ -169,6 +169,11 @@ a {
.post > .metadata {
clear: left;
}
+
.post {
clear: left;
}
+
+.post > .message .get {
+ color: #182F6F; font-weight: bold;
+}
\ No newline at end of file
diff --git a/templates/thread.html b/templates/thread.html
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -25,6 +25,11 @@
(#{{ post.id }})
[{{ post.pub_time }}]
+ {% if post.is_get %}
+
+ {% trans "Get!" %}
+
+ {% endif %}
{% autoescape off %}
{{ post.text.rendered }}
{% endautoescape %}