Sha256: 59c89a41fb2d279ea588dcc88d5ebfc7c9e4620d9c953e0bf1815514b229a21e

Contents?: true

Size: 837 Bytes

Versions: 2

Compression:

Stored size: 837 Bytes

Contents

%h1 Viewing Topic "#{@topic.name}"
- if mongoid_forums_admin?
  = link_to t("mongoid_forums.topics.actions.hide.#{@topic.hidden}"), toggle_hide_admin_topic_path(@forum, @topic), :class => "btn"
  |
  = link_to t("mongoid_forums.topics.actions.lock.#{@topic.locked}"), toggle_lock_admin_topic_path(@forum, @topic), :class => "btn"
  |
  = link_to t("mongoid_forums.topics.actions.pin.#{@topic.pinned}"), toggle_pin_admin_topic_path(@forum, @topic), :class => "btn"

- if @topic.can_be_replied_to? && can?(:reply, @topic)
  |
  = link_to "Reply to topic", new_topic_post_path(@topic)
|
- if mongoid_forums_user && @topic.subscriber?(mongoid_forums_user.id)
  = link_to "Unsubscribe", unsubscribe_topic_path(@topic)
- elsif mongoid_forums_user
  = link_to "Subscribe", subscribe_topic_path(@topic)
%br
= paginate @posts
%br
= render @posts

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ack-mongoid-forums-1.0.6.1 app/views/mongoid_forums/topics/show.haml
ack-mongoid-forums-1.0.6 app/views/mongoid_forums/topics/show.haml