From 735cdb6a4632d2a7025ca97886dea4dbfc8bd9e0 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 27 Dec 2016 10:41:28 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E5=85=AC=E5=85=B1=E8=B4=B4=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/forums/index.html.erb | 5 ++++- public/stylesheets/css/public.css | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/forums/index.html.erb b/app/views/forums/index.html.erb index 9b18070a8..46502db3a 100644 --- a/app/views/forums/index.html.erb +++ b/app/views/forums/index.html.erb @@ -130,7 +130,7 @@
-
+
+
+ dsag +
diff --git a/public/stylesheets/css/public.css b/public/stylesheets/css/public.css index c2ff5c841..84d9f634b 100644 --- a/public/stylesheets/css/public.css +++ b/public/stylesheets/css/public.css @@ -406,7 +406,8 @@ a.st_down{ display: block; width:8px; float:left; height:13px; background:url(/i .likeNum{color: #7f7f7f} /*创建贴吧样式*/ -.postContainer {width:968px; border:1px solid #dddddd; padding:15px; background-color:#ffffff;} +.postContainer {width:718px; border:1px solid #dddddd; padding:15px; background-color:#ffffff;} +.postContainer_right {width:240px; border:1px solid #dddddd; padding:15px; background-color:#ffffff;} .postBanner {height:30px; width:970px; border-bottom:1px solid #efefef;} .postSort {width:40px; float:left; margin-top:5px; padding-left:5px;} a.sortArrowDown {background:url(../images/post_image_list.png) 0px 0px no-repeat; width:7px; height:9px; float:left; margin-left:5px; margin-top:5px;} From 616e7a2a11c256e54602219aa0f61152b9897644 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 27 Dec 2016 12:12:07 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E5=85=AC=E5=85=B1=E8=B4=B4=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/forums_controller.rb | 4 +- app/views/forums/_right_bar.html.erb | 41 ++++++++++++++++ app/views/forums/index.html.erb | 4 +- app/views/layouts/base_new_forum.html.erb | 58 +++++++++++++++++++++++ public/stylesheets/css/forum.css | 17 +++++++ public/stylesheets/css/public.css | 2 +- 6 files changed, 122 insertions(+), 4 deletions(-) create mode 100644 app/views/forums/_right_bar.html.erb create mode 100644 app/views/layouts/base_new_forum.html.erb create mode 100644 public/stylesheets/css/forum.css diff --git a/app/controllers/forums_controller.rb b/app/controllers/forums_controller.rb index 3332f1207..a5176d25e 100644 --- a/app/controllers/forums_controller.rb +++ b/app/controllers/forums_controller.rb @@ -97,6 +97,8 @@ class ForumsController < ApplicationController def index @offset, @limit = api_offset_and_limit({:limit => 10}) + @forums = Memo.all + if(params[:reorder_complex]) @type="reorder_complex" @str=params[:reorder_complex] @@ -122,7 +124,7 @@ class ForumsController < ApplicationController @forums = @forums_all.offset(@offset).limit(@limit).all #@forums = Forum.all respond_to do |format| - format.html # index.html.erb + format.html{render :layout => 'base_new_forum'} format.js format.json { render json: @forums } end diff --git a/app/views/forums/_right_bar.html.erb b/app/views/forums/_right_bar.html.erb new file mode 100644 index 000000000..c1832b291 --- /dev/null +++ b/app/views/forums/_right_bar.html.erb @@ -0,0 +1,41 @@ +
+
+

问吧

+ 新建贴吧 +
+
+

新手讨论吧

+
    +
  • 798
  • +
  • 回答
  • +
+ +
+
+

新手讨论吧新手讨论吧新手讨论吧

+
    +
  • 798
  • +
  • 回答
  • +
+ +
+
+

新手讨论吧

+
    +
  • 798
  • +
  • 回答
  • +
+ +
+ 点击展开更多 + +
\ No newline at end of file diff --git a/app/views/forums/index.html.erb b/app/views/forums/index.html.erb index 46502db3a..4de6e4fab 100644 --- a/app/views/forums/index.html.erb +++ b/app/views/forums/index.html.erb @@ -130,7 +130,7 @@
-
+
- dsag + <%= render :partial => "forums/right_bar" %>
diff --git a/app/views/layouts/base_new_forum.html.erb b/app/views/layouts/base_new_forum.html.erb new file mode 100644 index 000000000..2fd6c2464 --- /dev/null +++ b/app/views/layouts/base_new_forum.html.erb @@ -0,0 +1,58 @@ + + + + + <%= h html_title %> + + + <%= csrf_meta_tag %> + <%= favicon %> + <%= javascript_heads %> + <%= heads_for_theme %> + <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2','application','prettify', :media => 'all' %> + <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> + <%= stylesheet_link_tag 'css/common','css/structure','css/public','css/forum' ,:media => 'all'%> + <%= call_hook :view_layouts_base_html_head %> + + <%= yield :header_tags -%> + + + + + +
+ +
+ + <%= render_flash_messages %> + <%= yield %> + <%= call_hook :view_layouts_base_content %> +
+
+ +
+<%= render :partial => 'layouts/footer' %> +
+<% if hidden_unproject_infos %> + <%= render :partial => 'layouts/new_feedback' %> +<% end %> + + + +<%= call_hook :view_layouts_base_body_bottom %> + + + + + +<%= javascript_include_tag('jquery-1.8.3-ui-1.9.2-ujs-2.0.3', 'application', 'jquery.colorbox-min') %> + + diff --git a/public/stylesheets/css/forum.css b/public/stylesheets/css/forum.css new file mode 100644 index 000000000..5e6984aed --- /dev/null +++ b/public/stylesheets/css/forum.css @@ -0,0 +1,17 @@ +/*问吧新增20161223*/ +.wenba-rightbar{ border: 1px solid #ddd;background-color:#fff; width: 238px;} +.wenba-h3-top{ font-size: 14px; color: #666; } +.wenba-rightbar-top{ height: 40px; line-height: 40px; border-bottom:1px solid #ddd; } +.wenba-rightbar-li{ padding:10px 0; border-bottom:1px solid #ddd; color: #666;} +.wenba-rightbar-title{ font-size: 14px; width: 140px; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;} +.right-line{ border-right:1px solid #ddd;} +.wenba-rightbar-ul{ width: 45px; text-align: center;} +.wenba-rightbar-more{ padding:10px 0 ; text-align: center; display: block;} +.wenba-tiwenbox{border: 1px solid #ddd;background-color:#fff; width: 718px; padding:15px;} +.wenba-tiwen-con{ width: 100%; } +input.wenba-tiwen-input{ width:705px; height: 30px; line-height: 30px; padding:0 5px;} +textarea.wenba-tiwen-textarea{ padding:5px;width:705px; height: 150px;} +a.wenba-tiwen-tag{background-color: #E4EFF6;border-bottom: 1px solid #B1D3EB; border-right: 1px solid #B1D3EB;-webkit-text-size-adjust: none; color: #3E6D8E; font-size:12px;line-height: 2.4; padding: 5px 10px;text-decoration: none; white-space: nowrap;} +a:hover.wenba-tiwen-tag,a.wenba-tiwen-tag-active{ background: #3b94d6; color: #fff;border-bottom: 1px solid #2e76ab; border-right: 1px solid #2e76ab;} +.wenba-tagbox li{ float: left; margin:0 5px 5px 0;} +.wenba-tagbox h3{ font-weight: normal; color: #333;} \ No newline at end of file diff --git a/public/stylesheets/css/public.css b/public/stylesheets/css/public.css index 84d9f634b..96edb2dd8 100644 --- a/public/stylesheets/css/public.css +++ b/public/stylesheets/css/public.css @@ -407,7 +407,6 @@ a.st_down{ display: block; width:8px; float:left; height:13px; background:url(/i /*创建贴吧样式*/ .postContainer {width:718px; border:1px solid #dddddd; padding:15px; background-color:#ffffff;} -.postContainer_right {width:240px; border:1px solid #dddddd; padding:15px; background-color:#ffffff;} .postBanner {height:30px; width:970px; border-bottom:1px solid #efefef;} .postSort {width:40px; float:left; margin-top:5px; padding-left:5px;} a.sortArrowDown {background:url(../images/post_image_list.png) 0px 0px no-repeat; width:7px; height:9px; float:left; margin-left:5px; margin-top:5px;} @@ -432,6 +431,7 @@ a.sortArrowActiveU {background:url(../images/post_image_list.png) -17px -20px no .postDetailContainer {padding:15px; border:1px solid #dddddd; background-color:#ffffff;} .postlabel {background-color:#edf1f2; color:#888888; padding:2px 5px; float:left; margin-bottom:5px;} .postRightContainer {width:718px; border:1px solid #dddddd; padding:15px; background-color:#ffffff; float:left; margin-bottom:10px;} +.forumRightContainer {width:718px; border:1px solid #dddddd; background-color:#ffffff; float:left; margin-bottom:10px;} .postDetailBanner {height:30px; width:720px; border-bottom:1px solid #efefef;} .postDetailRow {width:720px; border-bottom:1px solid #efefef; padding:15px 0;} .postDetailPortrait {width:50px; height:50px; float:left; margin-right:15px;} From 465b3e7b52c279c73b22749d0e40ff4e256b4085 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 27 Dec 2016 16:09:09 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E9=97=AE=E5=90=A7=20base=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/forums_controller.rb | 14 ++++++-------- app/helpers/application_helper.rb | 10 ++++++++++ app/views/forums/_new.html.erb | 23 +++++++++++++++++++++++ app/views/forums/new.js.erb | 5 +++++ app/views/forums/show.html.erb | 10 +++++++--- app/views/layouts/base_new_forum.html.erb | 2 +- public/stylesheets/css/structure.css | 1 + 7 files changed, 53 insertions(+), 12 deletions(-) create mode 100644 app/views/forums/_new.html.erb create mode 100644 app/views/forums/new.js.erb diff --git a/app/controllers/forums_controller.rb b/app/controllers/forums_controller.rb index a5176d25e..ba7b6284d 100644 --- a/app/controllers/forums_controller.rb +++ b/app/controllers/forums_controller.rb @@ -153,24 +153,22 @@ class ForumsController < ApplicationController @order_str = "reorder_time=desc" end @memo = Memo.new(:forum => @forum) - @topic_count = @forum.topics.count + @topic_count = Memo.count @topic_pages = Paginator.new @topic_count, per_page_option, params['page'] - @memos = @forum.topics. - # reorder("#{Memo.table_name}.sticky DESC"). - includes(:last_reply). + @memos = Memo.includes(:last_reply). limit(@topic_pages.per_page). offset(@topic_pages.offset). reorder(order). preload(:author, {:last_reply => :author}). all @memos - @my_topic_count = Memo.where("forum_id = #{@forum.id} and author_id = #{User.current.id} and parent_id is null").count - @my_replies_count = Memo.where("forum_id = #{@forum.id} and author_id = #{User.current.id} and parent_id is not null").count + @my_topic_count = Memo.where("author_id = #{User.current.id} and parent_id is null").count + @my_replies_count = Memo.where("author_id = #{User.current.id} and parent_id is not null").count @errors = params[:errors] respond_to do |format| format.js format.html { - render :layout => 'base_forums' + render :layout => 'base_new_forum' }# show.html.erb format.json { render json: @forum } end @@ -180,9 +178,9 @@ class ForumsController < ApplicationController # GET /forums/new.json def new @forum = Forum.new - respond_to do |format| format.html # new.html.erb + format.js format.json { render json: @forum } end end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index a2e69c846..02c591c3e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -37,6 +37,16 @@ module ApplicationHelper # super # end + # 公共分页 + def paginator_list objs, objs_count, limit, is_remote + @is_remote = is_remote + @objs_count = objs.count + @obj_pages = Paginator.new @objs_count, limit, params['page'] || 1 + @offset ||= @obj_pages.offset + @objs = paginateHelper @attachments,25 + end + + # 获取竞赛的管理人员 def contest_managers contest contest.contest_members.select{|cm| cm.roles.to_s.include?("ContestManager")} diff --git a/app/views/forums/_new.html.erb b/app/views/forums/_new.html.erb new file mode 100644 index 000000000..e70a63ff2 --- /dev/null +++ b/app/views/forums/_new.html.erb @@ -0,0 +1,23 @@ +
+
+

新建贴吧

+ +
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
+
+ + +
+
+
\ No newline at end of file diff --git a/app/views/forums/new.js.erb b/app/views/forums/new.js.erb new file mode 100644 index 000000000..1bf92b68d --- /dev/null +++ b/app/views/forums/new.js.erb @@ -0,0 +1,5 @@ +var htmlvalue = "<%= escape_javascript(render :partial => 'forums/new') %>"; +pop_box_new(htmlvalue,460,190); + + + diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb index 61ffb8b10..f5451c95a 100644 --- a/app/views/forums/show.html.erb +++ b/app/views/forums/show.html.erb @@ -1,10 +1,9 @@ <%= content_for(:header_tags) do %> <%= import_ke(enable_at: false, prettify: false, init_activity: false) %> - <%= javascript_include_tag 'new_user' %> <% end %> -
+
@@ -53,6 +55,8 @@
+
+ <%= render :partial => "forums/right_bar" %>
\ No newline at end of file diff --git a/app/views/forums/_right_bar.html.erb b/app/views/forums/_right_bar.html.erb index c1832b291..056cbd1ba 100644 --- a/app/views/forums/_right_bar.html.erb +++ b/app/views/forums/_right_bar.html.erb @@ -1,41 +1,21 @@

问吧

- 新建贴吧 -
-
-

新手讨论吧

-
    -
  • 798
  • -
  • 回答
  • -
- -
-
-

新手讨论吧新手讨论吧新手讨论吧

-
    -
  • 798
  • -
  • 回答
  • -
- -
-
-

新手讨论吧

-
    -
  • 798
  • -
  • 回答
  • -
- + <%= link_to "新建贴吧", new_forum_path, :class => "btn-blue btn fr mt5 mr5", :remote => true %>
+ <% @forums.each do |forum| %> +
+

<%= link_to forum.name, forum_path(forum), :class => "" %>

+
    +
  • <%= link_to forum.topic_count, forum_path(forum), :class => "linkGrey5" %>
  • +
  • 回答
  • +
+
    +
  • <%= link_to forum.memo_count, forum_path(forum), :class => "linkGrey5" %>
  • +
  • 帖子
  • +
+
+ <% end %> 点击展开更多
\ No newline at end of file diff --git a/app/views/forums/create.js.erb b/app/views/forums/create.js.erb index ee8172cbd..39bebe20a 100644 --- a/app/views/forums/create.js.erb +++ b/app/views/forums/create.js.erb @@ -1,7 +1,5 @@ <%if @save_flag%> -//$('#new_forum_div').slideToggle();$('#create_btn').parent().slideToggle(); -//$('#reorder_time').click(); - window.location.href= "<%= host_with_protocol %>"+"/forums/" + "<%= @forum.id%>" +$("#forum_right_bar").html('<%= escape_javascript( render :partial => 'forums/right_bar') %>'); <%else%> $("#error").html("<%= @forum.errors.full_messages[0]%>").show(); <%end %> diff --git a/app/views/forums/index.html.erb b/app/views/forums/index.html.erb index 4de6e4fab..5028f4131 100644 --- a/app/views/forums/index.html.erb +++ b/app/views/forums/index.html.erb @@ -1,179 +1,164 @@ -<%= javascript_include_tag 'new_user' %> -<%= stylesheet_link_tag 'css/common','css/public'%> - -
-
-
- -
- <%= render :partial => 'post_banner' ,:locals => {:order_type=>@type,:order_str=>@str}%> - - - - - +
+ + -
-
- <%= render :partial => 'forum_list',:locals => {:forums=>@forums}%> -
-
    - <%= pagination_links_full @forums_pages, @forums_count ,:per_page_links => true,:remote =>true,:flag=>true%> -
+ + +
+ <%= link_to "发布新帖", new_forum_path(@forums), :class => "c_white db creatPostIcon bBlue", :remote => true %> + +
-
-
- <%= render :partial => "forums/right_bar" %> -
-
+
+
+ <%= render :partial => 'show_topics',:locals => {:memos=>@memos}%> +
+ + + + + + + + + + +
+ +
+
<%= link_to image_tag(url_to_avatar(User.current),:width=>50,:height => 50,:alt=>'贴吧图像' ), user_path( User.current) %>
+
+
我在贴吧
+ +
+
+ +
发帖
+
+
+
+
+ +
+ <%= render :partial => "forums/right_bar" %> +
+ \ No newline at end of file diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb index f5451c95a..94dd52318 100644 --- a/app/views/forums/show.html.erb +++ b/app/views/forums/show.html.erb @@ -28,6 +28,9 @@
<% end %>
+ + +
@@ -55,7 +58,25 @@
-
+ +
+
<%= link_to image_tag(url_to_avatar(User.current),:width=>50,:height => 50,:alt=>'贴吧图像' ), user_path( User.current) %>
+
+
我在贴吧
+ +
+
+ +
发帖
+
+
+
+
+ +
<%= render :partial => "forums/right_bar" %>
+ +
  • + <%= kindeditor_tag 'memo[content]','', :height => 300, :editor_id => 'memo_content' %> + +
  • +
  • + <%= render :partial => 'forums/file_form', :locals => {:container => @memo} %> + + +
  • + + +
    + <%= link_to "取消", forum_path(@forum), :class => "btn fr" %> + 确定 +
    +
    + <% end %> +
    + + \ No newline at end of file diff --git a/app/views/memos/_new.html.erb b/app/views/memos/_new.html.erb new file mode 100644 index 000000000..153e93f2b --- /dev/null +++ b/app/views/memos/_new.html.erb @@ -0,0 +1,33 @@ +
    +
    +
      +
    • + +
    • +
    • + +
    • +
    • + +

      (未选择文件) 您可以上传小于50MB的文件

      +
    • +
    + +
    + + +
    +
    +
    \ No newline at end of file diff --git a/app/views/memos/new.html.erb b/app/views/memos/new.html.erb index 627fce5b4..e62ce056f 100644 --- a/app/views/memos/new.html.erb +++ b/app/views/memos/new.html.erb @@ -1,35 +1,5 @@ -<% @nav_dispaly_home_path_label = 1 - @nav_dispaly_main_course_label = 1 - @nav_dispaly_main_project_label = 1 - @nav_dispaly_main_contest_label = 1 %> -<% @nav_dispaly_forum_label = 1%> - -<%= content_for(:header_tags) do %> - <%= import_ke(enable_at: false, prettify: false, init_activity: false) %> -<% end %> + +<%= render :partial => "memos/form" %> -
    - - - - - - - - - - -
    <%= l(:label_projects_community)%><%= l(:label_user_location) %> : - -
    <%= link_to request.host()+"/forums", forums_path %>

    <%=link_to l(:label_home),home_path %> > <%=link_to l(:label_forum), :controller => 'forums', :action => 'index' %> > <%=link_to @forum.name %>

    -
    -

    <%=l(:label_memo_new)%>

    -
    -
    - <%= render :partial => 'memos/topic_form' %> -
    - - -
    +<%= render :partial => "forums/my_count_message" %> \ No newline at end of file diff --git a/app/views/memos/new.js.erb b/app/views/memos/new.js.erb new file mode 100644 index 000000000..e69de29bb diff --git a/public/stylesheets/css/forum.css b/public/stylesheets/css/forum.css index 04549526b..f1e3d4b4b 100644 --- a/public/stylesheets/css/forum.css +++ b/public/stylesheets/css/forum.css @@ -21,4 +21,6 @@ a:hover.wenba-tiwen-tag,a.wenba-tiwen-tag-active{ background: #3b94d6; color: #f .btn-green{background: #60b25e; color: #fff;} .btn-green:hover{background: #51a74f; color: #fff;} .btn-blue{background: #3b94d6; color: #fff;} -.btn-blue:hover{background: #2788d0; color: #fff;} \ No newline at end of file +.btn-blue:hover{background: #2788d0; color: #fff;} + +.banner-big {width:968px; background-color: #ffffff; padding:10px 15px; border:1px solid #dddddd;} \ No newline at end of file From a423909a711ca7c0e5c5ad1c16546edde73e2ee1 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 28 Dec 2016 16:18:47 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E5=AE=8C=E6=88=90memo=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2=E5=8F=8A=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/memos_controller.rb | 2 +- app/views/forums/show.html.erb | 2 +- app/views/memos/show.html.erb | 50 ++++++++++++++++++++++++++++- public/stylesheets/css/forum.css | 5 ++- 4 files changed, 55 insertions(+), 4 deletions(-) diff --git a/app/controllers/memos_controller.rb b/app/controllers/memos_controller.rb index 115002ae7..1306ce697 100644 --- a/app/controllers/memos_controller.rb +++ b/app/controllers/memos_controller.rb @@ -137,7 +137,7 @@ class MemosController < ApplicationController respond_to do |format| format.js - format.html {render :layout=> 'base_forums'}#:layout=> 'base_forums', + format.html {render :layout => 'base_new_forum'} format.json { render json: @memo } format.xml { render xml: @memo } end diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb index 6e98d6fa3..a99506538 100644 --- a/app/views/forums/show.html.erb +++ b/app/views/forums/show.html.erb @@ -39,7 +39,7 @@
    <%= link_to "我要提问", new_forum_memo_path(:forum_id => @forum), :class => "c_white db creatPostIcon bBlue" %> - 发布新帖 +
    diff --git a/app/views/memos/show.html.erb b/app/views/memos/show.html.erb index 1066c494d..5b42f1903 100644 --- a/app/views/memos/show.html.erb +++ b/app/views/memos/show.html.erb @@ -16,7 +16,7 @@ } } -
    +
    <%= link_to image_tag(url_to_avatar(@memo.author),:width=>50,:height => 50,:alt=>'贴吧图像' ),user_path(@memo.author) %> @@ -96,6 +96,54 @@
    + +
    +
    +
    <%= link_to image_tag(url_to_avatar(@forum.creator),:width=>75,:height => 75,:alt=>'贴吧图像' ),user_path( @forum.creator) %> + +
    +
    + <%= link_to @forum.name, forum_path(@forum), :class => "f16 fontBlue", :style => "word-break: break-all; word-wrap:break-word;white-space:pre-wrap;" %> + <% user_name = @forum.creator.show_name.empty? ? @forum.creator.name : @forum.creator.show_name %> + + +
    +
    +
    <%= @forum.description.html_safe%> + <%if @forum.creator.id == User.current.id%> + + <%= image_tag('signature_edit.png',{:width=>12,:height=>12})%> + + <%end%> +
    +
    +
    + <%= render :partial=>'forums/forum_tag_list',:locals=>{:forum=>@forum}%> +
    + <% if(@forum.creator.id == User.current.id)%> + + 添加标签 + <% end %> +
    +
    + <%if @forum.creator.id == User.current.id%> + + + 编辑贴吧 + 删除贴吧 + + + <% end %> +
    + +
    + <%= link_to "我要提问+".html_safe, new_forum_memo_path(:forum_id => @forum) %> +
    + +
    +