video.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {% extends "/html/base.html" %}
  2. {%block subtitle %}: {{post.title}} on {{post.date|date:"MM.dd"}}{% endblock %}
  3. {% block head %}
  4. {% include "/html/partials/video-head.html" %}
  5. <style type="text/css">
  6. #steemit-login-container {display: none;}
  7. </style>
  8. {% endblock %}
  9. {% block content %}
  10. <div id="custom-page">
  11. <div id="page-header">
  12. <h2>{{post.title}}</h2>
  13. </div>
  14. {% include "/html/partials/video-player.html" %}
  15. {% if all steemit? post.steemit-permlink %}
  16. <button id="steemit-login-button" onclick="$('#steemit-login-container').show(); $(this).hide();" title="We encourage you to VIEW SOURCE, or vote on SteemIt">STEEM Login</button>
  17. <span class="view-on-steemit"><a href="https://steemit.com/@{{ post.steemit-author }}/{{ post.steemit-permlink }}">View on SteemIt</a></span>
  18. {% include "/html/partials/steem-login.html" with form-id="steemit-login" login-function="loginUser" cancel-function="cancelLoginUser" logout-function="logoutUser" %}
  19. <script>
  20. var STEEMIT_API_URL = '{{ steemit-api-url }}';
  21. var STEEMIT_AUTHOR = '{{ post.steemit-author }}';
  22. var STEEMIT_PERMLINK = '{{ post.steemit-permlink }}';
  23. </script>
  24. {% script "js/steem-login.js" %}
  25. <div id="vote-video">
  26. STEEM Vote:
  27. <button class="vote-up" onclick="voteUp()">UP <span class="count"></span></button>
  28. <button class="vote-down" onclick="voteDown()">DOWN <span class="count"></span></button>
  29. </div>
  30. {% endif %}
  31. {{post.content|safe}}
  32. {% include "/html/partials/post-pagination.html" %}
  33. </div>
  34. {% endblock %}