2015-12-29 11:04:20 +08:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
$("#RSide").removeAttr("id");
|
|
|
|
$("#Container").css("width","1000px");
|
|
|
|
});
|
|
|
|
function reset_topic(){
|
|
|
|
$("#message_subject").val("");
|
|
|
|
$("#subjectmsg").text("");
|
|
|
|
document.getElementById("message_sticky").checked=false;
|
|
|
|
document.getElementById("message_locked").checked=false;
|
|
|
|
$("#topic_attachments").html("<%= escape_javascript(render :partial => 'attachments/form_project_new', :locals => {:container => Message.new, :isReply => @isReply})%>");
|
|
|
|
message_content_editor.html("");
|
|
|
|
$("#topic_editor").toggle();
|
|
|
|
}
|
|
|
|
<% if @is_new%>
|
|
|
|
$(function(){
|
|
|
|
$("#message_subject").focus();
|
|
|
|
});
|
|
|
|
<%end%>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="homepageRight mt0 ml10">
|
|
|
|
<div class="homepageRightBanner">
|
2015-12-29 11:29:43 +08:00
|
|
|
<div class="NewsBannerName"><%= l(:label_borad_project) %></div>
|
2015-05-23 16:02:41 +08:00
|
|
|
</div>
|
2015-12-29 11:04:20 +08:00
|
|
|
<% if User.current.logged? %>
|
|
|
|
<%= labelled_form_for @message, :url =>{:controller=>'messages',:action => 'new', :board_id => @board.id, :is_board => 'true'},
|
2015-12-29 11:29:43 +08:00
|
|
|
:html => {:nhname=>'form',:multipart => true, :id => 'message-form-project'} do |f| %>
|
|
|
|
<%= render :partial => 'project_new', :locals => {:f => f, :topic => @message, :edit_mode => false, :project => @board.project} %>
|
2015-07-10 10:37:34 +08:00
|
|
|
<% end %>
|
2015-05-23 16:02:41 +08:00
|
|
|
<% end %>
|
2015-12-29 11:04:20 +08:00
|
|
|
<%= render :partial=> 'project_show_detail',:locals =>{:topics => @topics, :page => 0} %>
|
2015-04-07 17:45:00 +08:00
|
|
|
</div>
|