新增osp项目“聚焦”标签 (演示用)

This commit is contained in:
ganyiang 2014-05-29 21:43:50 +08:00
parent 0b430cb11d
commit c8ca5277a6
3 changed files with 72 additions and 2 deletions

View File

@ -22,6 +22,59 @@
<div class="col2" style="margin-left:0px">
<div style="margin-left:0px" > <span> <h1 style="fontsize:19px;color:orange;font-weight:900">项目安全态势 </h1></span><span style="margin-top: -30px; margin-right:70px;float: right; display: block;"><%= link_to "更多 >>", :controller => "open_source_projects",:action => "showbug", :id => @open_source_project.id %></span></div>
<% if @open_source_project.id ==42 then %>
<div>
<span>
<img src="/images/version_marker.png" alt="Tags">
</span>
<span class="tag_fouse">聚焦:</span>
<div id="tag"><a>栈溢出</a></div>
<div id="tag"><a>远程权限</a></div>
<div id="tag"><a>框架安全</a></div>
</div>
<% elsif @open_source_project.id ==70 then %>
<div>
<span>
<img src="/images/version_marker.png" alt="Tags">
</span>
<span class="tag_fouse">聚焦:</span>
<div id="tag"><a>Kernel安全</a></div>
<div id="tag"><a>函数漏洞</a></div>
<div id="tag"><a>ping_init_sock()</a></div>
</div>
<% elsif @open_source_project.id ==17 then %>
<div>
<span>
<img src="/images/version_marker.png" alt="Tags">
</span>
<span class="tag_fouse">聚焦:</span>
<div id="tag"><a>Heartblood</a></div>
<div id="tag"><a>致命漏洞</a></div>
</div>
<% elsif @open_source_project.id ==55 then %>
<div>
<span>
<img src="/images/version_marker.png" alt="Tags">
</span>
<span class="tag_fouse">聚焦:</span>
<div id="tag"><a>DDos攻击</a></div>
<div id="tag"><a>信息泄露</a></div>
</div>
<%end if %>
<div class="fixed"></div>
<div class="li_list" style="margin-top:10px;margin-left:10px">
<ul style="list-style-type: square;">
@ -174,7 +227,6 @@
line.draw();
});
//]]>
</script>
<!--我是分割线1===================================================================================================-->

View File

@ -37,5 +37,15 @@ color: #c61a1a;
text-decoration: underline;
}
#tag {
background: url("../images/issue_tag.png") no-repeat scroll right -19px rgba(0, 0, 0, 0);
border-radius: 3px;
color: #3A587D !important;
cursor: pointer;
display: inline-block;
font-size: 13px;
margin: 3px;
padding: 1px 4px 2px;
text-decoration: none;
}

View File

@ -62,3 +62,11 @@ font-size:18px;
div.pages .break,.created a {
color:#999;
}
.tag_fouse {
font-family: "Microsoft YaHei";
font-size: 15px;
font-weight: bold;
padding-bottom: 3px;
padding-top: 3px;
}