presentation.tx 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <div class="post <: $style :>">
  2. :if ( !$post.addpost ) {
  3. : include "post_title.tx";
  4. : include "post_tags.tx";
  5. : if ( !$post.video_href && !$post.is_image && !$post.is_video && !$post.is_profile && $post.preview ) {
  6. <img src="<: $post.preview :>" class="responsive-img" />
  7. : }
  8. <div class="reveal postData responsive-text" id="postData-<: $post.id :>">
  9. <div class="slides">
  10. <: for $post.data -> slide { :>
  11. <section>
  12. <: render_it($slide) | mark_raw :>
  13. </section>
  14. <: } :>
  15. </div>
  16. </div>
  17. <script src="scripts/reveal.js"></script>
  18. <script>
  19. Reveal.initialize();
  20. </script>
  21. : }
  22. : if ( $can_edit ) {
  23. <div class="postedit">
  24. : include "edit_head.tx";
  25. <form class="Submissions" action="/post/save" method="POST" enctype="multipart/form-data">
  26. Title *<br /><input required class="cooltext" type="text" name="title" placeholder="Iowa Man Destroys Moon" value="<: $post.title :>" />
  27. : include "preview.tx";
  28. : include "visibility.tx";
  29. : include "acls.tx";
  30. : include "tags.tx";
  31. : include "form_common.tx";
  32. </form>
  33. : include "edit_foot.tx";
  34. </div>
  35. : }
  36. </div>