Browse Source

Moving threadview forward

Rafał Pitoń 10 years ago
parent
commit
b7520ab3ef

+ 20 - 0
misago/static/misago/css/misago/posts.less

@@ -114,10 +114,30 @@
           text-decoration: underline;
         }
       }
+
+      .label {
+      	position: relative;
+      	bottom: 2px;
+      }
     }
   }
 }
 
+// Post alert
+//
+//==
+.posts-list {
+  .panel {
+  	.alert {
+  		border: none;
+  		border-radius: 0px;
+      margin-top: @line-height-computed / 2;
+      margin-bottom: 0;
+
+  		text-align: center;
+  	}
+  }
+}
 
 // Post body
 //

+ 33 - 3
misago/templates/misago/thread/post.html

@@ -30,12 +30,39 @@
           {{ post.posted_on|date }}
         </a>
 
-        {% if not post.is_read %}
-        <span class="text-warning">{% trans "New" %}</span>
+        {% if post.is_read %}
+        <span class="label label-success">
+          <span class="fa fa-plus-circle"></span>
+          {% trans "New" %}
+        </span>
         {% endif %}
 
+        <a href="{{ post.get_absolute_url }}" class="pull-right post-date tooltip-top" title="{% trans "Link to this post" %}">
+          #{{ page.start_index|add:forloop.counter0 }}
+        </a>
+
+      </div>
+
+      {% if post.is_moderated %}
+      <div class="alert alert-info">
+        <span class="fa fa-question-circle fa-fw fa-lg"></span>
+        {% if post.id == thread.first_post_id %}
+        {% trans "This thread won't be visible to other users until its approved by moderator." %}
+        {% else %}
+        {% trans "This post won't be visible to other users until its approved by moderator." %}
+        {% endif %}
       </div>
+      {% endif %}
+
+      {% if post.is_reported %}
+      <div class="alert alert-danger">
+        <span class="fa fa-exclamation-triangle fa-fw fa-lg"></span>
+        {% trans "This post was reported to moderators." %}
+      </div>
+      {% endif %}
+
       <div class="panel-body">
+
         {% if post.is_valid %}
         <article class="post-body misago-markup">
           {{ post.parsed|safe }}
@@ -46,9 +73,12 @@
           {% trans "Post can't be displayed due to invalid message checksum." %}
         </p>
         {% endif %}
+
       </div>
+
       <div class="panel-footer">
-        le footer
+        Like Report
+        Approve Hide Delete Reply
       </div>
     </div>
 

+ 1 - 1
misago/templates/misago/thread/replies.html

@@ -104,7 +104,7 @@
       {% else %}
       <button type="button" class="btn btn-success btn-lg">
         <span class="fa fa-plus-circle fa-fw fa-lg"></span>
-        {% trans "Reply thread" %}
+        {% trans "Reply to thread" %}
       </button>
       {% endif %}