diff --git a/app/views/open_source_projects/allbug.html.erb b/app/views/open_source_projects/allbug.html.erb index 1f7142866..d5c0c2e55 100644 --- a/app/views/open_source_projects/allbug.html.erb +++ b/app/views/open_source_projects/allbug.html.erb @@ -2,23 +2,23 @@ -
+
-
+
共有 <%= link_to @bug_count %> 个安全贴子
-
+
<% if @bugs.any? %> <% @bugs.each do |bug| %> <% topic = bug.bug %> - +
<%= link_to image_tag(url_to_avatar(topic.author), :class => "avatar"), user_path(topic.author) if topic.author%> <%= image_tag('../images/avatars/User/0', :class => "avatar") unless topic.author%> - +
-
+ <% if topic.url.nil? || topic.url == '' %> <%= link_to h(topic.subject), open_source_project_relative_memo_path(bug.open_source_project, topic) %> <% else %> diff --git a/app/views/open_source_projects/index.html.erb b/app/views/open_source_projects/index.html.erb index 04df580b2..18ee8533c 100644 --- a/app/views/open_source_projects/index.html.erb +++ b/app/views/open_source_projects/index.html.erb @@ -146,30 +146,11 @@ li {

软件安全态势

<%= link_to '更多 >>', allbug_open_source_projects_path %>
-
+
    <% @bugs.each do |bug| %> -
  • [<%= show_description_of_bug(bug) %>]<%= link_to bug.bug.subject, bug.bug.url, :target => '_blank' %> - Cobbler 2.4.x - 2.6.x 本地文件包含
  • +
  • [<%= show_description_of_bug(bug) %>]<%= link_to bug.bug.subject, bug.bug.url, :target => '_blank' %>
  • <% end %> - -
diff --git a/public/stylesheets/buglist-div-use.css b/public/stylesheets/buglist-div-use.css index 33c9d8f91..de0c7c4ad 100644 --- a/public/stylesheets/buglist-div-use.css +++ b/public/stylesheets/buglist-div-use.css @@ -4,6 +4,7 @@ margin: 0px 0 0 0; width: 970px; + } .header2{ float: left; @@ -15,6 +16,7 @@ width: 100%; right: 50%; background-color: #000000 + } .col1{ position: relative; @@ -28,13 +30,15 @@ position: relative; overflow: hidden; float: left; - width: 470px; + width: 440px; left: 3%; + } a:hover, a:active { color: #c61a1a; text-decoration: underline; + } #tag { @@ -49,3 +53,13 @@ text-decoration: underline; text-decoration: none; } +#buglist +{ + overflow: hidden; +overflow-x: hidden; +overflow-y: hidden; +white-space: nowrap; +text-overflow: ellipsis; +-o-text-overflow: ellipsis; +} + diff --git a/public/stylesheets/buglist.css b/public/stylesheets/buglist.css index 494fc9f46..4bc9267f7 100644 --- a/public/stylesheets/buglist.css +++ b/public/stylesheets/buglist.css @@ -4,7 +4,6 @@ clear:both; padding:0 0 0 0px; - } @@ -34,6 +33,7 @@ padding:0; background-color:#105DB5; color:#FFF; text-decoration:none; + } .li_list li,.na_list li {