2013-08-01 10:33:49 +08:00
|
|
|
<%= error_messages_for @board %>
|
|
|
|
|
|
|
|
<div class="box tabular">
|
2015-08-15 10:45:56 +08:00
|
|
|
<p style="width:666px;">
|
2014-10-27 14:20:59 +08:00
|
|
|
<%= f.text_field :name, :required => true %>
|
|
|
|
</p><!--by young-->
|
|
|
|
<p>
|
|
|
|
<%= f.text_field :description, :required => true, :size => 30 %>
|
|
|
|
</p><!--by young-->
|
2013-08-01 10:33:49 +08:00
|
|
|
<% if @board.valid_parents.any? %>
|
2014-10-27 14:20:59 +08:00
|
|
|
<p>
|
|
|
|
<%= f.select :parent_id, boards_options_for_select(@board.valid_parents), :include_blank => true, :label => :field_board_parent %>
|
|
|
|
</p>
|
2013-08-01 10:33:49 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2015-04-16 11:17:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="talk_txt fl">
|
|
|
|
<%= link_to h(topic.subject), board_message_path(@board, topic), title:topic.subject.to_s, :class =>"problem_tit fl" %>
|
|
|
|
<% if topic.sticky? %>
|
|
|
|
<a href="javascript:void(0)" class="talk_up fr c_red"><%= l(:label_board_sticky)%></a>
|
|
|
|
<% end %>
|
|
|
|
<br/>
|
|
|
|
<%= l(:label_post_by)%><%= link_to topic.author, user_path(topic.author), :class =>"problem_name" %>
|
|
|
|
<%= l(:label_post_by_time)%><%= format_time topic.created_on %>
|
|
|
|
</div>
|
|
|
|
<span class="talk_btn fr"><%= link_to (l(:label_short_reply) + " "+topic.replies_count.to_s), board_message_path(@board, topic), :style =>"color:#fff;line-height: 18px;" %></span>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div><!--讨论主类容 end-->
|