Merge branch 'develop' of http://git.trustie.net/wrm1995/codepedia2 into develop
This commit is contained in:
commit
a3282dd9ff
|
@ -833,7 +833,7 @@ pre.prettyprint {
|
|||
|
||||
.put-select span.active {
|
||||
color: #05101a;
|
||||
border: 1px solid #05101a;
|
||||
border: 1px solid #989898;
|
||||
text-align: center;
|
||||
margin: 10px 10px 10px 0px;
|
||||
}
|
||||
|
@ -1442,7 +1442,7 @@ color: #FFF !important;
|
|||
.codelinebox{
|
||||
line-height: 19px;
|
||||
min-height: 19px;
|
||||
margin-bottom: -5px;
|
||||
margin-bottom: -16px;
|
||||
}
|
||||
.newmypre{
|
||||
margin: 0 0 16px 28px;
|
||||
|
@ -1524,4 +1524,19 @@ color: #FFF !important;
|
|||
.panel-leffont{
|
||||
fonr-size:24px;
|
||||
color:#C3BDBD;
|
||||
}
|
||||
.newcodeline{
|
||||
min-width: 910px;
|
||||
width: 100%;
|
||||
height: 23px;
|
||||
/* background: #f1efec; */
|
||||
display: flex;
|
||||
}
|
||||
.newcodelinebox{
|
||||
line-height: 25px;
|
||||
min-height: 25px;
|
||||
margin-bottom: 0px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
|
@ -98,7 +98,6 @@ function modify_anno(file_id,line_num){
|
|||
}
|
||||
});
|
||||
$("."+file_id+line_num).text("//"+content)
|
||||
console.log(content);
|
||||
}
|
||||
|
||||
// FIXME
|
||||
|
@ -324,7 +323,7 @@ function submit_annotation(file_id, line_num, content) {
|
|||
//将注释添加到当前行的上一行
|
||||
console.log(data.anno_content)
|
||||
var contenthtml ='<div class="linenum"></div>'+'<div class="sourcecode">'+'<pre class="mypre newaddmypre hljs-comment ' + file_id+line_num + '">'+data.anno_content+'</pre>'+'</div>'+'<div class="linestatus"></div>';
|
||||
var html = '<div class="codeline codelinebox">'+contenthtml+'</div>';
|
||||
var html = '<div class="newcodeline newcodelinebox">'+contenthtml+'</div>';
|
||||
var id=file_id+'_'+"L"+line_num;
|
||||
console.log(html)
|
||||
$("#"+id).before(html);
|
||||
|
@ -694,9 +693,9 @@ function generate_codereading_content(lines,self_annos,fileid,annos_count,issues
|
|||
|
||||
function generate_codereading_anno_line(linenum,self_annos){
|
||||
var htmlstr = ''
|
||||
htmlstr += '<div class="codeline codelinebox">'
|
||||
htmlstr += '<div class="newcodeline newcodelinebox">'
|
||||
htmlstr += '<div class="sourcecode">'
|
||||
htmlstr += '<pre class="mypre mypre newmypre hljs-comment}">'
|
||||
htmlstr += '<pre class="mypre mypre newmypre hljs-comment">'
|
||||
htmlstr += self_annos[linenum]
|
||||
htmlstr += '</pre>'
|
||||
htmlstr += '</div>'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{% load base_filter %}
|
||||
<div class="code_file">
|
||||
{% formatText2Line project.name file.path as lines %}
|
||||
{% formatText2Line project.name file.path as lines %}
|
||||
{% for linenum,line in lines.items %}
|
||||
|
||||
{% if linenum in self_annos %}
|
||||
|
@ -14,7 +14,7 @@
|
|||
|
||||
<!-- <div id="linestatus_{{fileid}}_{{ linenum }}" class="linestatus"> -->
|
||||
<div class="linestatus">
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue