diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index 3fd5065d0..fbe77d00a 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -24,9 +24,9 @@
<%=h @board.name %>
-
<%=h @board.description %>
+
共有 <%=link_to @topics.count %> 个贴子
- +
<% if @topics.any? %> <% end %> +
diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erb index 0529de844..cfbc31f21 100644 --- a/app/views/messages/show.html.erb +++ b/app/views/messages/show.html.erb @@ -23,13 +23,11 @@ ) if @message.destroyable_by?(User.current) %> -

<%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %>

+
<%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %>
-
-

<%= authoring @topic.created_on, @topic.author %>

-
+
<%= textilizable(@topic, :content) %> -
+<%= authoring @topic.created_on, @topic.author %> <%= link_to_attachments @topic, :author => false %>

@@ -38,7 +36,7 @@

<%= l(:label_reply_plural) %> (<%= @reply_count %>)

<% @replies.each do |message| %>
"> -
+
<%= link_to( image_tag('comment.png'), {:action => 'quote', :id => message}, @@ -58,15 +56,25 @@ :title => l(:button_delete) ) if message.destroyable_by?(User.current) %>
-

+ + + + + + +
<%= link_to image_tag(url_to_avatar(message.author), :class => "avatar"), user_path(message.author) %>
<%= textilizable message, :content, :attachments => message.attachments %>
+ <%= link_to_attachments message, :author => false %> +
<%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
<%= authoring message.created_on, message.author %>
+ + +

<% end %> <% end %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index c3bbe0e7e..f52947f34 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -11,6 +11,20 @@ h4 {border-bottom: 1px dotted #bbb;} /*new by huang*/ /**/ +/*new code reconstruction*/ +div.sidebar-content{ + padding-left: 8px; + padding-right: 8px; +} +div.sidebar-content div.info-course{ + font-family: 微软雅黑; + + font-size: 16px; + color: #4d4d4d; + word-wrap: break-word; + word-break: break-all; +} +/*end*/ .welcome-index{ width: 290px; white-space: nowrap;