Commits

Yang Zhang committed 3734013

add read message widget

Comments (0)

Files changed (3)

templates/widgets.html

 <div class='container-box'>
-
 {%include "widgets/user.html"%}
-{#{%include "widgets/hot_topic.html"%}#}
+{%include "widgets/unread_message.html"%}
 {%include "widgets/website_counter.html"%}
-
 </div>

templates/widgets/unread_message.html

+<div class='widget container-box'>
+    <h5>1 条未读消息</h5>
+    <div class='row-fluid'>
+        <div></div>
+        <div class='span12'>
+            <div class='span12'><small>谁谁谁回复了你</small></div>
+        </div>
+        <div class='span12'>
+            <div class='span12'><small>谁谁谁回复了你谁谁谁回复了你谁谁谁回复了你</small></div>
+        </div>
+        <div class='span12' style='margin-top:10px;text-align: center;'>
+            <small><a href=''>查看更多</a></small>
+        </div>
+        
+    </div>
+</div>

templates/widgets/user.html

 {%if user%}
-<div class='widget container-box' style='min-height:140px;'>
+<div class='widget container-box' style='min-height:140px;margin-bottom: 15px;'>
     <h5>用户信息</h5>
     <div class='span3'>
         <a href="/user/{{user.id}}" class="thumbnail" >
         <a href="/user/{{user.id}}" title='用户名'><i class="icon-user"></i>
         <small>{{user.nickname}}</small>
         </a>
-        
+
         <div class='span2 pull-right'>
             <a class='pull-right'href="/ua/setting" title='设置'><i class="icon-cog"></i></a>
         </div>
-        
+
         <br/>
         <a href="#" title='收藏主题数'><i class="icon-star"></i> <small>{{user.star_counter}}</small></a>
         <span style='padding:0 3px'></span>