61 lines
2.7 KiB
HTML
61 lines
2.7 KiB
HTML
{% extends 'users/user_center_base.html' %}
|
|
{% block right_content %}
|
|
|
|
<div class="right">
|
|
<div class="personal_des ">
|
|
|
|
<div class="head">
|
|
<h1>标注</h1>
|
|
</div>
|
|
<div style="height: 50px;">
|
|
<div id="tabs" class="fr" style="margin-left:80%;">
|
|
<a href="?sort=latest">最近更新</a>
|
|
<a href="?sort=hot">最多点赞</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="userinfo_anno_body">
|
|
<!-- -->
|
|
<!-- 全部放在不同的数组 -->
|
|
<!-- <p alt="{{file_path}}">{{file_name}}</p>
|
|
<p>{{linenum}}:{{code}}</p>
|
|
<p>{{anno}}</p> -->
|
|
{% for x in list %}
|
|
<div class="userinfo_anno_div">
|
|
<div class="leftcontainer" style="width: 15%;float: left;">
|
|
<div class="userinfo_views">
|
|
<span class="views_num">{{ x.anno.voteup }}</span>
|
|
<span class="views_item">voteup</span>
|
|
</div>
|
|
<div class="userinfo_views">
|
|
<span class="views_num">{{ x.anno.votedown }}</span>
|
|
<span class="views_item">votedown</span>
|
|
</div>
|
|
<div class="userinfo_views">
|
|
<span class="views_num">{{ x.comment_num }}</span>
|
|
<span class="views_item">comments</span>
|
|
</div>
|
|
</div>
|
|
<div class="rightcontainer" style="width:85%;float: left;">
|
|
<p>
|
|
<span style="margin-right:20px">文件名:</span>
|
|
<span style="color:black">{{ x.anno.file.name }}</span>
|
|
</p>
|
|
<p>
|
|
<span style="margin-right:20px">代码:</span>
|
|
<span style="color:black">{{ x.code }}</span>
|
|
</p>
|
|
<p>
|
|
<span style="margin-right:20px">您的标注:</span>
|
|
<span style="color:black"> {{ x.anno.content }} </span>
|
|
<a href="/projects/{{anno.project.name}}{{anno.file.path}}" class="fr">查看详情</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
<!-- 一个超链接:跳转 头+路径+#L_ -->
|
|
<!-- 点击展开,还可以查看自己的注释信息 -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |