github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/templates/sidebar.html (about) 1 <div id="sidebar" class="col-lg-3"> 2 {% block infobox %} 3 {% include "infobox.html" %} 4 {% endblock infobox %} 5 {% comment %} 6 {% if topics_sidebar_10 %} 7 <div class="box"> 8 <div class="cell first"> 9 <strong>{{ i18n.Tr("hot-topics") }}</strong> 10 </div> 11 <div class="cell last"> 12 <ul class="sidebar-list"> 13 {% for topic in topics_sidebar_10 %} 14 <li> 15 <a href="/topic/{{topic.Id}}/">{{ topic.Title|truncatechars:38|safe }}</a> 16 </li> 17 {% endfor %} 18 </ul> 19 </div> 20 </div> 21 {% endif %} 22 {% endcomment %} 23 {% if topics_sidebar_10 %} 24 <div class="box"> 25 <div class="cell first"> 26 {% if catpage=="BestGetHandler" %} 27 <strong>{{ i18n.Tr("optimal-topics") }}</strong> 28 {%else%} 29 {% if tab=="hotness" %} 30 <strong>{{ i18n.Tr("latest-topics") }}</strong> 31 {% else %} 32 <strong>{{ i18n.Tr("hot-topics") }}</strong> 33 {% endif %} 34 {% endif %} 35 </div> 36 {% include "adlist.html" %} 37 <div class="cell last sidebar-avatar-list"> 38 <ul> 39 {% for topic in topics_sidebar_10 %} 40 <li{% if forloop.Last %} class="last"{% endif %}> 41 <span class="avatar"> 42 <a href="/user/{{ topic.Author }}/" title="{{ topic.Author }}"> 43 <img src="{% if topic.AvatarSmall %}{{File(topic.AvatarSmall)}}{% else %}/identicon/{{ topic.Author }}/32/default.png{% endif %}" alt="{{topic.Author}}" style="height: 32px;width: 32px;" class="middle"/> 44 </a> 45 </span> 46 {% with s=Htm2Str(topic.Title) %} 47 <a href="/topic/{{topic.Id}}/"> 48 {%if not s %} 49 {{ topic.Author }} {{TimeSince(topic.Created)}}在{{topic.Node}}节点发布了话题#{{topic.Id}} 50 {%else%} 51 {{Cropword(s,0,24,"...")}} 52 {%endif%} 53 </a> 54 {% endwith %} 55 </li> 56 {% endfor %} 57 </ul> 58 </div> 59 </div> 60 {% endif %} 61 62 {% if nodes_sidebar_confidence_10 %} 63 <div class="box"> 64 <div class="cell first"> 65 <strong>{{ i18n.Tr("optimal-nodes") }}</strong> 66 </div> 67 <div class="cell last sidebar-avatar-list" style="padding:10px;"> 68 {% for node in nodes_sidebar_confidence_10 %} 69 {%if forloop.Counter<=10 %} 70 <a href="/node/{{node.Id}}/" class="btn btn-mini btn-default btn-rounded" style="margin:2px;"{% if node.Content %} data-toggle="tooltip" data-placement="right" data-original-title="{% with s=Htm2Str(node.Content) %}{%if not s %}{{ node.Title }}{%else%}{{Cropword(s,0,48,"...")}}{%endif%}{% endwith %}"{% endif %}>{{ node.Title }}</a> 71 {%endif%} 72 {% endfor %} 73 </div> 74 </div> 75 {% endif %} 76 77 {% comment %} 78 {% if replys %} 79 <div class="box"> 80 <div class="cell first"> 81 <strong>{{ i18n.Tr("recent-comments") }}</strong> 82 </div> 83 <div class="cell last"> 84 <ul class="sidebar-list"> 85 {% for reply in replys %} 86 <li> 87 <a href="/topic/{{reply.Tid}}/#reply{{reply.Id}}"> 88 {% with s=Htm2Str(reply.Content) %} 89 {%if not s %} 90 {{ reply.Author }} {{TimeSince(reply.Created)}} 回应了话题#{{reply.Tid}} 91 {%else%} 92 {{Cropword(s,0,24,"...")}} 93 {%endif%} 94 {% endwith %} 95 </a> 96 </li> 97 {% endfor %} 98 </ul> 99 </div> 100 </div> 101 {% endif %} 102 {% endcomment %} 103 104 {% comment %} 105 <div class="box"> 106 <div class="cell first"> 107 <strong>友情链接</strong> 108 </div> 109 <div class="cell last"> 110 <ul class="sidebar-list"> 111 <li> 112 <a href="http://www.yougam.com">YOUGAM</a> 113 </li> 114 </ul> 115 </div> 116 </div> 117 {% endcomment %} 118 119 <div class="box cell"> 120 <div class="cell first"><strong>{{ i18n.Tr("statistics") }}</strong></div> 121 <ul class="cell" style="padding-left:2em;"> 122 <li>在线人数: {{UsersOnline}} 人在线</li> 123 <li>社区会员: {{userscount}} 个成员</li> 124 <li>帖子数量: {{topicscount}} 个话题</li> 125 <li>节点数量: {{nodescount}} 个节点</li> 126 <li>回帖数量: {{ReplysCount}} 个回复</li> 127 </ul> 128 </div> 129 </div>