Skip to content

Commit

Permalink
Added missing link to create new topics, fixes #175.
Browse files Browse the repository at this point in the history
  • Loading branch information
remomueller committed Dec 22, 2014
1 parent a38bd93 commit 613bb13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/views/forem/forums/_forum.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Empty file added tmp/.keep
Empty file.

0 comments on commit 613bb13

Please sign in to comment.