From 613bb1327cbfca06cfa3ac2f1ebdd15b72ce8fff Mon Sep 17 00:00:00 2001 From: Remo Mueller Date: Sun, 21 Dec 2014 22:56:04 -0500 Subject: [PATCH] Added missing link to create new topics, fixes myapnea/www_myapnea_org#175. --- app/views/forem/forums/_forum.html.haml | 7 +++++++ tmp/.keep | 0 2 files changed, 7 insertions(+) create mode 100644 tmp/.keep diff --git a/app/views/forem/forums/_forum.html.haml b/app/views/forem/forums/_forum.html.haml index c7daecdd3..54673a4ef 100644 --- a/app/views/forem/forums/_forum.html.haml +++ b/app/views/forem/forums/_forum.html.haml @@ -14,6 +14,13 @@ = forem_format(forum.description) %hr/ + - if current_user + .row{ style: 'margin-bottom:20px'} + .col-xs-1 + .col-md-11.col-xs-10.col-xs-offset-1.col-md-offset-0{ style: 'border-left: 1px solid transparent;' } + = link_to forem.new_forum_topic_path(forum), class: 'btn btn-primary btn-sm', :id => "new-topic" do + .fa.fa-plus + Start a new conversation - if forum.last_visible_post(forem_user) - topic_scope = forum.topics.where(state: 'approved').order(last_post_at: :desc) - topic_scope = topic_scope.limit(3) if location == 'home' diff --git a/tmp/.keep b/tmp/.keep new file mode 100644 index 000000000..e69de29bb