diff --git a/app/views/boards/_form_project.html.erb b/app/views/boards/_form_project.html.erb index 58bb5501c..ca23193b4 100644 --- a/app/views/boards/_form_project.html.erb +++ b/app/views/boards/_form_project.html.erb @@ -15,7 +15,7 @@ <% replying ||= false %> <% extra_option = replying ? { readonly: true} : { maxlength: 200 } %> <% if replying %> -
  • +
  • <%= f.text_field :subject, { size: 60, id: "message_subject#{f.object.id}",:class=>"talk_input w585", :nhname=>'inputsubject' }.merge(extra_option) %> @@ -47,11 +47,11 @@
  • -
    +
    <% unless replying %> <% end %> - <%= text_area :quote,:quote,:style => 'display:none' %> + <%= text_area :quote,:quote,:style => 'display:none',:nhname=>"quote_input" %>
    <% if replying%> diff --git a/app/views/boards/_project_show.html.erb b/app/views/boards/_project_show.html.erb index dc1cff634..b0fd4049f 100644 --- a/app/views/boards/_project_show.html.erb +++ b/app/views/boards/_project_show.html.erb @@ -79,7 +79,7 @@
    - <% reply = Message.new(:subject => "RE: #{@message.subject}")%> + <% reply = Message.new(:subject => "RE: #{topic.subject}")%> <% if !topic.locked? && authorize_for('messages', 'reply') %>
    @@ -97,39 +97,107 @@ <% end %>
    + <% replies_all = topic.children.includes(:author, :attachments, {:board => :project}). + reorder("#{Message.table_name}.id asc").all %> + <% unless replies_all.empty? %> +
    + +
    + <%if topic.replies_count>2 %> +
    + 展开回复(<%= topic.replies_count.to_s%>) +
    + <% end %> + <% end %> <% end %> + <% else %> +

    <%= l(:label_no_data) %>

    + <% end %> + + + +<%# other_formats_links do |f| %> + <%#= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> +<%# end %> + <% html_title @board.name %> + <% content_for :header_tags do %> + <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %> <% end %> +