|
|
@ -1,11 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="project_r_h">
|
|
|
|
<div class="project_r_h">
|
|
|
|
<h2 class="project_h2">
|
|
|
|
<h2 class="project_h2 fl">
|
|
|
|
<% if User.current.language == "zh"%>
|
|
|
|
<% if User.current.language == "zh"%>
|
|
|
|
<%= h @board.name %>
|
|
|
|
<%= h @board.name %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<%= l(:project_module_boards) %>
|
|
|
|
<%= l(:project_module_boards) %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
</h2>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" class="green_btn fr newtalk " onclick="show_newtalk();"><%= l(:label_message_new) %></a>
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!--display the board-->
|
|
|
|
<!--display the board-->
|
|
|
@ -16,34 +20,37 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 内容显示部分 -->
|
|
|
|
<!-- 发布新帖部分 -->
|
|
|
|
<div class="talk_top">
|
|
|
|
<div class="cl"></div>
|
|
|
|
<div class="fl"><span><%= l(:label_project_board_count , :count => @topic_count)%></span></div>
|
|
|
|
<div class=" talklist_box" >
|
|
|
|
<% if @project.enabled_modules.where("name = 'boards'").count > 0 && User.current.member_of?(@project) %>
|
|
|
|
<div class="talk_new ml15 mb10" id="about_newtalk" >
|
|
|
|
<span><%= link_to l(:project_module_boards_post), new_board_message_path(@board),
|
|
|
|
<ul>
|
|
|
|
:class => 'problem_new_btn fl c_dorange',
|
|
|
|
<%= render :partial => 'project_new_topic' %>
|
|
|
|
:onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' if User.current.logged? %></span>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
</div><!--talknew end-->、
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 帖子内容显示 -->
|
|
|
|
<!-- 帖子内容显示 -->
|
|
|
|
|
|
|
|
|
|
|
|
<% if @topics.any? %>
|
|
|
|
<% if @topics.any? %>
|
|
|
|
<% @topics.each do |topic| %>
|
|
|
|
<% @topics.each do |topic| %>
|
|
|
|
<div class="problem_main">
|
|
|
|
<div class="talkmain_box" style="border:none; margin-bottom:0;">
|
|
|
|
<%= link_to image_tag(url_to_avatar(topic.author), :width=>"32",:height=>"32"), user_path(topic.author),:class => 'problem_pic talk_pic fl' %>
|
|
|
|
<%= link_to image_tag(url_to_avatar(topic.author), :width=>"42",:height=>"42"), user_path(topic.author),:class =>'talkmain_pic fl' %>
|
|
|
|
<div class="talk_txt fl">
|
|
|
|
<div class="talkmain_txt fl mt5">
|
|
|
|
<%= link_to h(topic.subject), board_message_path(@board, topic), title:topic.subject.to_s, :class =>"problem_tit fl" %>
|
|
|
|
<% author = topic.author.to_s + ":" %>
|
|
|
|
|
|
|
|
<%= link_to author, user_path(topic.author), :class =>"talkmain_name fl " %>
|
|
|
|
|
|
|
|
<p class="talkmain_tit fl fb"> <%= h(topic.subject) %></p>
|
|
|
|
<% if topic.sticky? %>
|
|
|
|
<% if topic.sticky? %>
|
|
|
|
<a href="javascript:void(0)" class="talk_up fr c_red"><%= l(:label_board_sticky)%></a>
|
|
|
|
<a href="javascript:void(0)" class="talk_up fr c_red"><%= l(:label_board_sticky)%></a>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
<%= link_to topic.author, user_path(topic.author), :class =>"problem_name" %>
|
|
|
|
|
|
|
|
<%= format_time topic.created_on %>
|
|
|
|
<p class="mt5 mb5">
|
|
|
|
|
|
|
|
<%= topic.content %><a href="javascript:void(0)" class="c_dblue"> [展开]</a> </p>
|
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="problem_tit fl fb" style="word-break:break-all;" >
|
|
|
|
<%= l(:label_activity_time)%>: <%= format_time topic.created_on %>na
|
|
|
|
<%= topic.content %></p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<%= link_to (l(:label_short_reply) + " "+topic.replies_count.to_s), board_message_path(@board, topic), :class => "talk_btn fr c_white" %>
|
|
|
|
<%= link_to (l(:label_short_reply) + " "+topic.replies_count.to_s), board_message_path(@board, topic), :class => "talk_btn fr c_white" %>
|
|
|
|
|
|
|
|
|
|
|
|