1.右边栏调整

2.详情页面调整
This commit is contained in:
杨树明775174143 2018-08-24 19:14:34 +08:00
parent 2c4bc731cd
commit 44d6be3ff1
3 changed files with 86 additions and 77 deletions

View File

@ -493,9 +493,9 @@ a:hover {
.panel-leftfontnew { .panel-leftfontnew {
display: block; display: block;
float: left; float: left;
width: 56px; width: 90px;
text-align: left; text-align: left;
color: #FEFEFE; color: #EAEAEA;
font-size: 13px; font-size: 13px;
overflow:hidden; overflow:hidden;
text-overflow:ellipsis; text-overflow:ellipsis;
@ -507,7 +507,7 @@ a:hover {
float: left; float: left;
width: 90px; width: 90px;
text-align: left; text-align: left;
color: #FEFEFE; color: #EAEAEA;
font-size: 13px; font-size: 13px;
overflow:hidden; overflow:hidden;
text-overflow:ellipsis; text-overflow:ellipsis;
@ -534,12 +534,10 @@ a:hover {
font-size: 13px; font-size: 13px;
} }
.panel-right { .panel-right {
color: #EBEBEB; color: #EBEBEB;
font-size:13px; font-size:13px;
display: block; display: block;
float: left; float: left;
flex: 1;
padding-left: 10px; padding-left: 10px;
} }
@ -1570,8 +1568,17 @@ color: #FFF !important;
background-color: transparent !important; background-color: transparent !important;
} }
.width120{ .width120{
width: 120px; width: 300px;
height: 30px;
} }
.width130{ .width130{
width: 130px; width: 300px;
height: 30px;
}
.pdding{
padding-top:0px;
padding-bottom: 0px;
}
.filePathInfomarbootom{
margin-bottom: 0px;
} }

View File

@ -1,36 +1,36 @@
<div class="path_info"> <div class="path_info">
<div class="clearfix mb10 path_infonav"> <div class="clearfix path_infonav">
<span class="fl font-20 colorFFF">Module Information</span> <span class="fl font-20 colorFFF">Module Information</span>
<p class="fr"> {# <p class="fr">#}
<span class="fl mr15 mt7"> {# <span class="fl mr15 mt7">#}
<img src="/static/image/annotation.png" onclick="show_dir_annotation({{file_id}})" class="mr3"> {# <img src="/static/image/annotation.png" onclick="show_dir_annotation({{file_id}})" class="mr3">#}
<span class="font-12 fontcolor-white" id="dir_anno_{{file_id}}">{{anno_num}}</span> {# <span class="font-12 fontcolor-white" id="dir_anno_{{file_id}}">{{anno_num}}</span>#}
</span> {# </span>#}
<span class="fl mr15 mt7"> {# <span class="fl mr15 mt7">#}
<img src="/static/image/question.png" onclick="show_dir_issue_question({{file_id}})" class="mr3"> {# <img src="/static/image/question.png" onclick="show_dir_issue_question({{file_id}})" class="mr3">#}
<span class="font-12 fontcolor-white" id="dir_question_{{file_id}}">{{question_num}}</span> {# <span class="font-12 fontcolor-white" id="dir_question_{{file_id}}">{{question_num}}</span>#}
</span> {# </span>#}
{##}
<span class="fl mt7" onclick="show_next_addnoPanel({{file_id}})"> {# <span class="fl mt7" onclick="show_next_addnoPanel({{file_id}})">#}
{# <i class="fa fa-plus-circle color-grey-c"></i>#} {# <i class="fa fa-plus-circle color-grey-c"></i>#}
<img src="/static/image/newadd.png" class="mr3 rightimgcommentblue"> {# <img src="/static/image/newadd.png" class="mr3 rightimgcommentblue">#}
</span> {# </span>#}
{##}
<div class="addno-panel" id="addno-panel-{{file_id}}" style="top: 100px; right: 392px;"> {# <div class="addno-panel" id="addno-panel-{{file_id}}" style="top: 100px; right: 392px;">#}
<div class="trangle-op"></div> {# <div class="trangle-op"></div>#}
<div class="put-content"> {# <div class="put-content">#}
<p class="put-select clearfix" id="addno-select-0"> {# <p class="put-select clearfix" id="addno-select-0">#}
<span class="active put-selectspanactive" onclick='$(this).siblings("span").removeClass("active"); $(this).addClass("active");'>注释</span> {# <span class="active put-selectspanactive" onclick='$(this).siblings("span").removeClass("active"); $(this).addClass("active");'>注释</span>#}
<span class="put-selectspanactive" onclick='$(this).siblings("span").removeClass("active"); $(this).addClass("active");'>问题</span> {# <span class="put-selectspanactive" onclick='$(this).siblings("span").removeClass("active"); $(this).addClass("active");'>问题</span>#}
</p> {# </p>#}
<textarea id="addno-text-{{file_id}}-0" class="put-text" placeholder="输入注释或者问题"> </textarea> {# <textarea id="addno-text-{{file_id}}-0" class="put-text" placeholder="输入注释或者问题"> </textarea>#}
<a href="#" onclick="add_dir_annotation(this,{{file_id}},0)" class="submit fr" id="submit">提交</a> {# <a href="#" onclick="add_dir_annotation(this,{{file_id}},0)" class="submit fr" id="submit">提交</a>#}
</div> {# </div>#}
</div> {# </div>#}
</p> {# </p>#}
</div> </div>
<div class="filePathInfo"> <div class="filePathInfo pdding">
<div class="clearfix filePathline"> <div class="clearfix filePathline filePathInfomarbootom">
<span> <span>
<label>Num.of Files:</label> <label>Num.of Files:</label>
<label>{{file_sum}}</label> <label>{{file_sum}}</label>
@ -45,7 +45,7 @@
<label>{{line_sum}}</label> <label>{{line_sum}}</label>
</span> </span>
</div> </div>
<div class="clearfix filePathline"> <div class="clearfix filePathline filePathInfomarbootom">
<span> <span>
<label>Involved Users:</label> <label>Involved Users:</label>
<label>{{usersum}}</label> <label>{{usersum}}</label>
@ -59,7 +59,7 @@
<label>{{annoted_method_num}}</label> <label>{{annoted_method_num}}</label>
</span> </span>
</div> </div>
<div class="clearfix filePathline"> <div class="clearfix filePathline filePathInfomarbootom">
<span> <span>
<label>Num.of Questions:</label> <label>Num.of Questions:</label>
<label>{{ issue_question_sum }}</label> <label>{{ issue_question_sum }}</label>

View File

@ -6,17 +6,55 @@
<p class="right-item-title">File Summary</p> <p class="right-item-title">File Summary</p>
{% endif %} {% endif %}
<p class="clearfix">
<span class="panel-leftfontnew">Created:</span>
<span class="panel-right">{{create_time}}</span>
</p>
<p class="clearfix">
<div class="clearfix">
<span class="panel-leftfontnew">Lines:</span>
<span class="panel-right">{{filelinenum}}</span>
</div>
{% if isdir %}
<div class="clearfix">
<span class="panel-leftfont">Files:</span>
<span class="panel-right">{{file_num}}</span>
</div>
{% else %}
<div class="clearfix">
<span class="panel-leftfont">Methods:</span>
<span class="panel-right">{{method_num}}</span>
</div>
{% endif %}
<div class="clearfix">
<span class="panel-leftfontnew">Views:</span>
<span class="panel-right">{{view_num}}</span>
</div>
<div class="clearfix">
<span class="panel-leftfont">Annotations:</span>
<span class="panel-right">{{anno_num}}</span>
</div>
<div class="clearfix">
<span class="panel-leftfontnew">Questions:</span>
<span class="panel-right">{{ issue_question_num}}</span>
</div>
<div class="both"></div>
</p>
<p class="fr"> <p class="fr">
<span class="fl mr15 mt7"> <span class="fl mr15">
<img src="/static/image/annotation.png" onclick="show_file_annotation({{file_id}})" class="mr3 rightimgcomment"> <img src="/static/image/annotation.png" onclick="show_file_annotation({{file_id}})" class="mr3 rightimgcomment">
<span class="font-12 fontcolor-white" id="dir_anno_{{file_id}}"></span> <span class="font-12 fontcolor-white" id="dir_anno_{{file_id}}"></span>
</span> </span>
<span class="fl mr15 mt7"> <span class="fl mr15">
<img src="/static/image/question.png" onclick="show_file_issue_question({{file_id}})" class="mr3 rightimgcomment"> <img src="/static/image/question.png" onclick="show_file_issue_question({{file_id}})" class="mr3 rightimgcomment">
<span class="font-12 fontcolor-white" id="dir_question_{{file_id}}"></span> <span class="font-12 fontcolor-white" id="dir_question_{{file_id}}"></span>
</span> </span>
<span class="fl mt7" onclick="show_next_addnoPanel({{file_id}})"> <span class="fl" onclick="show_next_addnoPanel({{file_id}})">
{# <i class="fa fa-plus-circle color-grey-c"></i>#} {# <i class="fa fa-plus-circle color-grey-c"></i>#}
<img src="/static/image/newadd.png" class="mr3 rightimgcommentblue"> <img src="/static/image/newadd.png" class="mr3 rightimgcommentblue">
</span> </span>
@ -33,43 +71,7 @@
</div> </div>
</div> </div>
</p> </p>
<p class="clearfix">
<span class="panel-leftfontnew">Created:</span>
<span class="panel-right">{{create_time}}</span>
</p>
<p class="clearfix">
<div class="width120" style="float:left">
<span class="panel-leftfontnew">Lines:</span>
<span class="panel-right">{{filelinenum}}</span>
</div>
{% if isdir %}
<div class="width130" style="float:left">
<span class="panel-leftfont">Files:</span>
<span class="panel-right">{{file_num}}</span>
</div>
{% else %}
<div class="width130" style="float:left">
<span class="panel-leftfont">Methods:</span>
<span class="panel-right">{{method_num}}</span>
</div>
{% endif %}
<div class="width120" style="float:left">
<span class="panel-leftfontnew">Views:</span>
<span class="panel-right">{{view_num}}</span>
</div>
<div class="width130" style="float:left">
<span class="panel-leftfont">Annotations:</span>
<span class="panel-right">{{anno_num}}</span>
</div>
<div class="width120" style="float:left">
<span class="panel-leftfontnew">Ques:</span>
<span class="panel-right">{{ issue_question_num}}</span>
</div>
<div class="both"></div> <div class="both"></div>
</p>
</div> </div>