Sha256: 2c8cf432ec629d6c2be86910dc9d6271029932c768d7004cc3429a5581905318
Contents?: true
Size: 1.99 KB
Versions: 1
Compression:
Stored size: 1.99 KB
Contents
<% content_for :stylesheets, stylesheet_link_tag('simple_forum/markitup') %> <% content_for :javascripts, javascript_include_tag("simple_forum/markitup") %> <% content_for :head do %> <script type="text/javascript"> var post_preview_path = "<%= simple_forum.preview_forum_topic_posts_path(@forum, @topic) %>"; </script> <% end %> <div id="breadcrumbs"> <%= link_to SimpleForum.root_application_name, root_path %> > <%= link_to 'Forum', simple_forum.root_path %> > <%= link_to @forum.name, simple_forum.forum_path(@forum) %> > <%= @topic.title %> </div> <% content_for :left_sidebar do %> <ul> <% if user_authenticated? && @forum.is_moderator?(authenticated_user) %> <li> <% if @topic.is_open? %> <%= link_to t('.close_topic'), simple_forum.close_forum_topic_path(@forum, @topic), :method => :post, :confirm => t('simple_forum.are_you_sure') %> <% else %> <%= link_to t('.open_topic'), simple_forum.open_forum_topic_path(@forum, @topic), :method => :post, :confirm => t('simple_forum.are_you_sure') %> <% end %> </li> <% end %> </ul> <% end %> <table class="topic-table forum-table" cellpadding="6" cellspacing="6"> <% for post in @posts do -%> <%= render :partial => 'post', :locals => {:post => post} %> <% end %> </table> <%= will_paginate @posts if respond_to?(:will_paginate) %> <% if @topic.is_open? %> <% if user_authenticated? %> <%= form_for @post, :url => simple_forum.forum_topic_posts_path(@forum, @topic), :as => :post, :html => {:id => 'new_post_form'} do |f| -%> <p> <%= f.label :body %> <%= f.text_area :body, :class => 'markitup post-body' %> </p> <p> <%= f.submit %> </p> <% end %> <% else %> <%= t('.you_have_to_be_signed_in_to_create_post') %> <% end %> <% else %> <p> <%= t('.topic_is_closed') %> </p> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_forum-0.0.2 | app/views/simple_forum/topics/show.html.erb |