From 72b93fa8f0c561850871ab9c5697dd9c296321c0 Mon Sep 17 00:00:00 2001 From: yutao <283765470@qq.com> Date: Sat, 23 May 2015 16:02:41 +0800 Subject: [PATCH] ... --- app/views/boards/_edit.html.erb | 16 +- app/views/boards/_form_project.html.erb | 14 +- app/views/boards/_project_new_topic.html.erb | 6 +- app/views/boards/_project_show.html.erb | 434 +++++++------------ app/views/boards/show.html.erb | 2 +- 5 files changed, 187 insertions(+), 285 deletions(-) diff --git a/app/views/boards/_edit.html.erb b/app/views/boards/_edit.html.erb index fb5adc1d6..562319e56 100644 --- a/app/views/boards/_edit.html.erb +++ b/app/views/boards/_edit.html.erb @@ -2,37 +2,37 @@ <% if topic.project %> <%#= board_breadcrumb(@message) %> -
讨论区共有<%= @topic_count %>个帖子
-<% if @topics.any? %> - <% @topics.each do |topic| %> - -<%= h(topic.subject) %>
- <% if topic.editable_by?(User.current) %> - - <%= l(:button_edit) %> - <% end %> - - <%= link_to( - l(:button_delete), - {:controller =>'messages',:action => 'destroy', :id => topic.id, :board_id => topic.board_id, :is_board=>'true'}, - :method => :post, - :data => {:confirm => l(:text_are_you_sure)}, - :class => 'talk_edit fr', - :style => ' margin-right: 10px;' - ) if topic.destroyable_by?(User.current) %> - - <% if topic.sticky? %> - <%= l(:label_board_sticky)%> - <% end %> - - -<%= h(topic.subject) %>
+ <% if topic.editable_by?(User.current) %> + <%= l(:button_edit) %> + <% end %> + <%= link_to( + l(:button_delete), + {:controller =>'messages',:action => 'destroy', :id => topic.id, :board_id => topic.board_id, :is_board=>'true'}, + :method => :post, + :data => {:confirm => l(:text_are_you_sure)}, + :class => 'talk_edit fr', + :style => ' margin-right: 10px;' + ) if topic.destroyable_by?(User.current) %> + <% if topic.sticky? %> + <%= l(:label_board_sticky)%> + <% end %> + +<%= textAreailizable message,:content,:attachments => message.attachments %>
- -<%= l(:label_no_data) %>
- <% end %> -