diff --git a/app/views/attachments/_form_project.html.erb b/app/views/attachments/_form_project.html.erb
index a3d30bd45..9778d3242 100644
--- a/app/views/attachments/_form_project.html.erb
+++ b/app/views/attachments/_form_project.html.erb
@@ -1,4 +1,4 @@
-
+
<% if defined?(container) && container && container.saved_attachments %>
<% if isReply %>
<% container.saved_attachments.each_with_index do |attachment, i| %>
@@ -38,12 +38,12 @@
<%#= button_tag "浏览", :type=>"button", :onclick=>"CompatibleSend();" %>
- <%= button_tag "文件浏览", :type=>"button", :onclick=>"file#{container.id}.click()", :class =>"sub_btn",:style => ie8? ? 'display:none' : '' %>
+ <%= button_tag "文件浏览", :type=>"button", :onclick=>"_file.click()", :class =>"sub_btn",:style => ie8? ? 'display:none' : '' %>
<%= file_field_tag 'attachments[dummy][file]',
- :id => "file#{container.id}",
+ :id => '_file',
:class => 'file_selector',
:multiple => true,
- :onchange => "addInputFiles_board(this, '#{container.id}');",
+ :onchange => 'addInputFiles(this);',
:style => 'display:none',
:data => {
:max_file_size => Setting.attachment_max_size.to_i.kilobytes,
@@ -56,7 +56,7 @@
:file_count => l(:label_file_count),
:delete_all_files => l(:text_are_you_sure_all)
} %>
- <%= l(:label_no_file_uploaded)%>
+ <%= l(:label_no_file_uploaded)%>
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
diff --git a/app/views/boards/_course_show.html.erb b/app/views/boards/_course_show.html.erb
index ce3dd2091..5dde6c460 100644
--- a/app/views/boards/_course_show.html.erb
+++ b/app/views/boards/_course_show.html.erb
@@ -58,18 +58,23 @@
-
- <%= topic.content %>
-
- <% if topic.content.size > 300 %>
-
-
+
+
+
+ <%= topic.content %>
+
+
+
+
+
+
-
- <% end %>
+
<%= link_to_attachments_course topic, :author => false %>
<%= l(:label_activity_time)%>: <%= format_time topic.created_on %>
diff --git a/app/views/boards/_project_show.html.erb b/app/views/boards/_project_show.html.erb
index a20bed3fd..8a9ffd990 100644
--- a/app/views/boards/_project_show.html.erb
+++ b/app/views/boards/_project_show.html.erb
@@ -32,6 +32,7 @@
讨论区共有<%= @topic_count %>个帖子
<% if @topics.any? %>
<% @topics.each do |topic| %>
+
<%= link_to image_tag(url_to_avatar(topic.author), :width=>"42",:height=>"42"), user_path(topic.author),:class =>'talkmain_pic fl' %>
@@ -57,19 +58,24 @@
<%= l(:label_board_sticky)%>
<% end %>
+
+
+
+ <%= topic.content %>
+
+
-
- <%= topic.content %>
-
- <% if topic.content.size > 300 %>
-
-
+
+
+
- <% end %>
+
<%= link_to_attachments_course topic, :author => false %>
<%= l(:label_activity_time)%>: <%= format_time topic.created_on %>
@@ -177,6 +183,7 @@
<% end %>
<% end %>
+
<% end %>
<% else %>
<%= l(:label_no_data) %>
diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb
index 9faf07b9a..2e736bdf7 100644
--- a/app/views/boards/show.html.erb
+++ b/app/views/boards/show.html.erb
@@ -24,7 +24,14 @@