app/views/thredded/theme_previews/show.html.erb in thredded-0.11.1 vs app/views/thredded/theme_previews/show.html.erb in thredded-0.12.0

- old
+ new

@@ -17,13 +17,11 @@ <%= render 'section_title', label: 'topics#index', href: messageboard_topics_path(@messageboard) %> <%= content_tag :section, class: 'thredded--thredded--main-section topics' do %> <%= render 'thredded/topics/form', - messageboard: @messageboard, topic: @new_topic, - preview_url: preview_new_messageboard_topic_path(@messageboard), css_class: 'thredded--is-compact', placeholder: 'Start a New Topic' %> <%= render @topics %> <% end %> <footer> @@ -35,34 +33,26 @@ <%= render 'section_title', label: 'topics#show', href: @topic.path %> <%= content_tag :section, id: dom_id(@topic), class: ['thredded--thredded--main-section', topic_css_classes(@topic)] do %> <%= render 'thredded/topics/header', topic: @topic %> <%= render @posts %> <%= render 'thredded/posts/form', - messageboard: @messageboard, - topic: @topic, post: @new_post, - preview_url: @topic.new_post_preview_path, button_text: t('thredded.posts.form.create_btn') %> <% end %> <%= render 'section_title', label: 'topics#new', href: new_messageboard_topic_path(@messageboard) %> <%= render 'thredded/topics/form', - messageboard: @messageboard, topic: @new_topic, - preview_url: preview_new_messageboard_topic_path(@messageboard), placeholder: 'Start a New Topic' %> <%= render 'section_title', label: 'posts#edit', href: edit_messageboard_topic_post_path(@messageboard, @post.postable, @post) %> <%= content_tag :section, class: 'thredded--thredded--main-section posts-form' do %> <h3 class="thredded--post-form--title">Edit Post</h3> <%= render 'thredded/posts/form', - messageboard: @messageboard, - topic: @topic, - post: @post, - preview_url: @topic.new_post_preview_path, + post: @post_form, button_text: t('thredded.posts.form.update_btn') %> <% end %> <%= render 'section_title', label: 'private_topics#index', href: private_topics_path %> @@ -74,37 +64,33 @@ <p><em>If the user has private topics:</em></p> <%= render 'thredded/private_topics/form', private_topic: @new_private_topic, css_class: 'thredded--is-compact', - preview_url: preview_new_private_topic_path, placeholder: t('thredded.private_topics.form.title_placeholder_start') %> <%= render @private_topics %> <% end %> <%= render 'section_title', label: 'private_topics#new', href: new_private_topic_path %> <section class="thredded--thredded--main-section"> <%= render 'thredded/private_topics/form', private_topic: @new_private_topic, - preview_url: preview_new_private_topic_path, placeholder: t('thredded.private_topics.form.title_placeholder_new') %> </section> <%= render 'section_title', label: 'private_topics#show', href: private_topic_path(@private_topic) %> <section class="thredded--thredded--main-section"> <%= render 'thredded/private_topics/header', topic: @private_topic %> <%= render @private_posts %> <%= render 'thredded/private_posts/form', - topic: @private_topic, - post: @private_post, - preview_url: @private_topic.new_post_preview_path, + post: @private_post_form, button_text: t('thredded.private_posts.form.create_btn') %> </section> <%= render 'section_title', label: 'preferences#edit', href: edit_messageboard_preferences_path(@messageboard) %> <%= content_tag :section, class: 'thredded--thredded--main-section preferences' do %> - <%= render 'thredded/preferences/header' %> + <h2 class="thredded--preferences-header--title"><%= t 'thredded.preferences.global_preferences_title' %></h2> <%= render 'thredded/preferences/form', preferences: @preferences %> <% end %> <%= render 'thredded/shared/currently_online' %> <% end %>