socialforge/app/views/open_source_projects/allbug.html.erb

89 lines
2.8 KiB
Plaintext
Raw Normal View History

2014-05-29 21:42:56 +08:00
<!-- added by fq -->
2014-05-29 22:25:53 +08:00
<div style="width: 940px">
2014-05-29 21:42:56 +08:00
2014-05-29 22:25:53 +08:00
<div class="borad-topic-count" style="margin-top:10px; width: 600px">
2014-05-29 21:42:56 +08:00
<span>共有 <%= link_to @bug_count %> 个安全贴子 </span>
</div>
2014-05-29 22:25:53 +08:00
<div style="padding-top: 10px ;width: 940px">
2014-05-29 21:42:56 +08:00
<% if @bugs.any? %>
<% @bugs.each do |bug| %>
<% topic = bug.bug %>
2014-05-29 22:25:53 +08:00
<table style="width: 940px" class="content-text-list">
2014-05-29 21:42:56 +08:00
<tr>
<td colspan="2" valign="top" width="50" ><%= 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%> </td>
<td>
2014-05-29 22:25:53 +08:00
<table border="0">
2014-05-29 21:42:56 +08:00
<tr>
2014-05-29 22:25:53 +08:00
<td valign="top" width="700px" class="<%= topic.sticky ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
2014-05-29 21:42:56 +08:00
<% if topic.url.nil? || topic.url == '' %>
<%= link_to h(topic.subject), open_source_project_relative_memo_path(bug.open_source_project, topic) %>
<% else %>
<%= link_to h(topic.subject), topic.url, :target => '_blank' %>
<% end %></td>
<td align="right" rowspan="3">
<table class="borad-count">
<tr>
<td align="center" class="borad-count-digit"><%= link_to (topic.replies_count), topic.url, :target => '_blank' %></td>
</tr>
<tr>
<td align="center">回帖</td>
</tr>
</table></td>
<td align="right" rowspan="3">
<table class="borad-count">
<tr>
<td align="center" class="borad-count-digit"><%= link_to (topic.viewed_count_crawl+topic.viewed_count_local), topic.url, :target => '_blank' %></td>
</tr>
<tr>
<td align="center">关注</td>
</tr>
</table></td>
<td align="right" rowspan="3">
<table class="borad-count">
<tr>
<td align="center" class="borad-count-digit"><%= link_to (topic.viewed_count_crawl+topic.viewed_count_local), topic.url, :target => '_blank' %></td>
</tr>
<tr>
<td align="center">浏览</td>
</tr>
</table></td>
</tr>
<tr>
<td><span class="font_description"> <%= topic.short_content(100) %></span></td>
</tr>
<tr>
<td align="left"><span class="font_lighter"><%= user_url_and_time topic.username, topic.userhomeurl, topic.created_at %>
<br />
</span></td>
</tr>
<tr>
<td align="left">帖子来源:<span class="font_lighter" style="color: #068d9c"><%=link_to topic.topic_resource, topic.url, :target => '_blank' %>
</span></td>
</tr>
</table></td>
</tr>
</table>
<% end %>
<div class="pagination">
<%= pagination_links_full @bug_pages, @bug_count %>
</div>
<% else %>
<p class="nodata">
<%= l(:label_no_data) %>
</p>
<% end %>
</div>
<%#= render :partial => 'open_source_projects/show_memo', :locals => {:memos => @memos, :open_source_project => @open_source_project} %>
</div>