提问内容展示页面第一行改为“该代码行/块/文件 的title
This commit is contained in:
parent
5bedc532c2
commit
8c826a4e5e
|
@ -1453,7 +1453,7 @@ pre.prettyprint {
|
|||
|
||||
.mypre{
|
||||
margin: 0 0 0;
|
||||
overflow:auto;
|
||||
overflow:hidden;
|
||||
font-size: 16px;
|
||||
white-space:pre;
|
||||
}
|
||||
|
|
|
@ -1269,7 +1269,7 @@ function show_next_addnoPanel(file_id){
|
|||
|
||||
function Input_Content(item,file_id,line_num) {
|
||||
var status_value= getlocalStorage("status_value");
|
||||
if(status_value==="注释"){
|
||||
if(status_value==="注释"||!status_value){
|
||||
setlocalStorage("item_value",item.value);
|
||||
setlocalStorage("file_id",file_id);
|
||||
setlocalStorage("line_num",line_num);
|
||||
|
@ -1322,8 +1322,6 @@ function addissue(id,num) {
|
|||
|
||||
}
|
||||
function rightaddannotation(id,num){
|
||||
console.log(id)
|
||||
console.log(num)
|
||||
setlocalStorage("rightstatus_value","注释");
|
||||
var oldfile_id= Number(getlocalStorage("rightannotationid"));
|
||||
var oldline_num=Number(getlocalStorage("rightannotationnum"));
|
||||
|
@ -1337,8 +1335,6 @@ function rightaddannotation(id,num){
|
|||
|
||||
}
|
||||
function rightaddissue(id,num) {
|
||||
console.log(id)
|
||||
console.log(num)
|
||||
setlocalStorage("rightstatus_value","问题");
|
||||
var oldline_num= Number(getlocalStorage("righissuenum"));
|
||||
var oldfile_id=Number(getlocalStorage("righissuevid"));
|
||||
|
@ -1354,7 +1350,7 @@ function rightaddissue(id,num) {
|
|||
|
||||
function Input_file(item,file_id,line_num){
|
||||
var status_value= getlocalStorage("rightstatus_value");
|
||||
if(status_value==="注释"){
|
||||
if(status_value==="注释"||!status_value){
|
||||
setlocalStorage("rightannotationvalue",item.value);
|
||||
setlocalStorage("rightannotationid",file_id);
|
||||
setlocalStorage("rightannotationnum",line_num);
|
||||
|
|
|
@ -1,19 +1,15 @@
|
|||
<div class="pr">
|
||||
<div class="commentPanel" id="questionPanel">
|
||||
<p class="ques-title">
|
||||
{# {% for self_anno in self_annos%}#}
|
||||
{# {% if self_anno.linenum == 0 %}#}
|
||||
{# {% if isdir == 0 %}#}
|
||||
{# 该代码文件共有系统推送问题<i class="fa fa-star color-orange lineHeight30" ></i>{{issuenum}}个,#}
|
||||
{# {% endif %}#}
|
||||
{# {% if isdir == 1 %}#}
|
||||
{# 该代码模块共有系统推送问题<i class="fa fa-star color-orange lineHeight30" ></i>{{issuenum}}个,#}
|
||||
{# {% endif %}#}
|
||||
{# {% else %}#}
|
||||
{# 该代码行共有系统推送问题<i class="fa fa-star color-orange lineHeight30" ></i>{{issuenum}}个,#}
|
||||
{# {% endif %}#}
|
||||
{# {% endfor %}#}
|
||||
该代码行共有系统推送问题<i class="fa fa-star color-orange lineHeight30" ></i>{{issuenum}}个,
|
||||
{% if isdir == 0 %}
|
||||
{% if issuenum == 0%}
|
||||
该代码文件共有系统推送问题<i class="fa fa-star color-orange lineHeight30" ></i>{{issuenum}}个,
|
||||
{% else %}
|
||||
该代码行共有系统推送问题<i class="fa fa-star color-orange lineHeight30" ></i>{{issuenum}}个,
|
||||
{% endif %}
|
||||
{% else %}
|
||||
该代码模块共有系统推送问题<i class="fa fa-star color-orange lineHeight30" ></i>{{issuenum}}个,
|
||||
{% endif %}
|
||||
用户提问<i class="fa fa-star color-dark-blue lineHeight30"></i>{{questionnum}}个</p>
|
||||
{% include 'projects/filesub/one-choice-issue.html' %}
|
||||
{% include 'projects/filesub/muti-choice-issue.html' %}
|
||||
|
|
Loading…
Reference in New Issue