diff --git a/app/views/forums/_forum_list.html.erb b/app/views/forums/_forum_list.html.erb index 671bb3a0e..faf1cbe5e 100644 --- a/app/views/forums/_forum_list.html.erb +++ b/app/views/forums/_forum_list.html.erb @@ -2,47 +2,17 @@
<% if forums.any? %> <% forums.each do |forum| %> - - - - - -
<%= link_to image_tag(url_to_avatar(forum.creator), :class => "avatar"), user_path(forum.creator) %> - - - - - - - - - - - - - - -
<%= link_to h(forum.name), forum_path(forum) %> - - - - - - - - - -
<%= link_to (forum.topic_count), forum_path(forum) %><%= link_to (forum.memo_count), forum_path(forum) %>
帖子回答
<%= forum.description%>
-
-
- <%= image_tag( "/images/sidebar/tags.png") %> - <%= render :partial => 'tags/tag_name', :locals => {:obj => forum,:object_flag => "5",:non_list_all => true }%> -
-
-
<%= authoring forum.created_at, forum.creator %> -
-
- <% end %> +
+
<%= link_to image_tag(url_to_avatar(forum.creator), :class => "avatar"), user_path(forum.creator) %>
+
+

<%= link_to h(forum.name), forum_path(forum) %>

+

<%= forum.description%>

+

<%= authoring forum.created_at, forum.creator %>

+
+ +
<%= link_to (forum.memo_count), forum_path(forum) %><%= link_to (forum.topic_count), forum_path(forum) %>
回答帖子
+
+ <% end %> <% else %> <% end %> diff --git a/app/views/layouts/base_forums.html.erb b/app/views/layouts/base_forums.html.erb index 25d9b5d59..782a940c3 100644 --- a/app/views/layouts/base_forums.html.erb +++ b/app/views/layouts/base_forums.html.erb @@ -55,7 +55,7 @@
创建人信息
- <%= image_tag(url_to_avatar(@forum.creator), :class => 'avatar2') %> + <%= image_tag(url_to_avatar(@forum.creator), :class =>'vatar-size') %> <%=link_to @forum.creator.show_name, user_path(@forum.creator) %>
<%= link_to l(:label_user_watcher)+"("+User.watched_by(@forum.creator.id).count.to_s+")" ,:controller=>"users", :action=>"user_watchlist", :id => @forum.creator.id %> diff --git a/app/views/layouts/base_memos.html.erb b/app/views/layouts/base_memos.html.erb index f1b4258ec..37d58c145 100644 --- a/app/views/layouts/base_memos.html.erb +++ b/app/views/layouts/base_memos.html.erb @@ -57,7 +57,7 @@
创建人信息
- <%= image_tag(url_to_avatar(@forum.creator), :class => 'avatar2') %> + <%= image_tag(url_to_avatar(@forum.creator), :class => 'vatar-size') %> <%=link_to @forum.creator.show_name, user_path(@forum.creator) %>
<%= link_to l(:label_user_watcher)+"("+User.watched_by(@forum.creator.id).count.to_s+")" ,:controller=>"users", :action=>"user_watchlist", :id => @forum.creator.id %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 96333e2d1..72da67599 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -7,46 +7,70 @@ h2, .wiki h1 {font-size: 20px;} h3, .wiki h2 {font-size: 15px;} h4, .wiki h3 {font-size: 13px;} h4 {border-bottom: 1px dotted #bbb;} +/*huang*/ +/*current position*/ +div.positon-f{ + float: left; +} - -/*new by huang*/ -/**/ -/*new code reconstruction*/ -/*div.forums-welcome{ - width: 30%; +div.position-s{ + } -.forums-welcome-title{ - font-weight: bold; - margin-bottom:10px; - border-bottom: solid 1px rgb(204, 204, 204); +div.position-t{ + +} +/*end current position*/ +/*forums-index*/ +div.forums-index{ + padding-left: 10px; + padding-top: 10px; + float: left; + width: 100%; + border-bottom: 1px dashed rgb(204, 204, 204); +} +div.forums-inex-avatar{ + padding-left: 15px; + float: left; + width: 7%; } -span.forums-welcome-massage{ - display: block; - height: 30px; - border: 1px solid #15bccf; - border-bottom: 1px solid #15bccf; - border-right: 1px solid #15bccf; - background: white; - position: relative; +div.forums-index-content{ float: left; - width: 80%; + width: 72%; + line-height: 1em; } -span.forums-welcome-massage-right{ - display: block; - height: 30px; - border: 1px solid #15bccf; - border-bottom: 1px solid #15bccf; - border-right: 1px solid #15bccf; - background: white; - position: relative; - float: right; - width: 18.5%; - background-color: #15bccf; - height: 30px; -}*/ +div.forums-index-count{ + padding-top: 10px; + float: right; + padding-right: 40px; + +} +table.forums-count-color{ + width: 80px; + height: 60px; + background-color: #e5e2e2; + +} + +table.forums-count-color tr{ + font-weight: bold; + font-size: 14px; + background-color: #e5e2e2; + vertical-align: middle; + alignment-adjust: middle; + +} +/*forums-index end*/ +.vatar-size{ + height: 70px; + width: 70px; +} + +div.position-title{ + line-height: 0.5em; +} div.sidebar-forums{ padding-left: 8px; @@ -86,12 +110,12 @@ div.forums-description{ span.forums-avatar-left{ float:left; - width: 23%; + width: 27%; } span.forums-avatar-right{ float: right; - width: 70%; + width: 65%; } .formus-first-title{ @@ -584,16 +608,15 @@ ul.tool li{list-style-type:none; .spaceright{float:left; width:620px;} .welcome_left{ - margin-top: 70px; - margin-left: -20px; + margin-top: 70px; float:left; - width: 30%; + width: 49%; } .welcome_right{ - float:right; + float:left; width: 49%; - padding-left: 30px; + } .inf_user_motto{ @@ -1060,6 +1083,7 @@ html>body #content { min-height: 600px; } #main.nosidebar #sidebar{ display: none; } #main.nosidebar #content{ width: auto; border-right: 0; } + #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;} #login-form table {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #FDBF3B; background-color:#FFEBC1; }