{"action":"created","issue":{"url":"https://api.github.com/repos/orionblastar/K666/issues/13","repository_url":"https://api.github.com/repos/orionblastar/K666","labels_url":"https://api.github.com/repos/orionblastar/K666/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/orionblastar/K666/issues/13/comments","events_url":"https://api.github.com/repos/orionblastar/K666/issues/13/events","html_url":"https://github.com/orionblastar/K666/issues/13","id":156758351,"number":13,"title":"Create Template Fragments","user":{"login":"procrasti","id":4482140,"avatar_url":"https://avatars.githubusercontent.com/u/4482140?v=3","gravatar_id":"","url":"https://api.github.com/users/procrasti","html_url":"https://github.com/procrasti","followers_url":"https://api.github.com/users/procrasti/followers","following_url":"https://api.github.com/users/procrasti/following{/other_user}","gists_url":"https://api.github.com/users/procrasti/gists{/gist_id}","starred_url":"https://api.github.com/users/procrasti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/procrasti/subscriptions","organizations_url":"https://api.github.com/users/procrasti/orgs","repos_url":"https://api.github.com/users/procrasti/repos","events_url":"https://api.github.com/users/procrasti/events{/privacy}","received_events_url":"https://api.github.com/users/procrasti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"orionblastar","id":4656807,"avatar_url":"https://avatars.githubusercontent.com/u/4656807?v=3","gravatar_id":"","url":"https://api.github.com/users/orionblastar","html_url":"https://github.com/orionblastar","followers_url":"https://api.github.com/users/orionblastar/followers","following_url":"https://api.github.com/users/orionblastar/following{/other_user}","gists_url":"https://api.github.com/users/orionblastar/gists{/gist_id}","starred_url":"https://api.github.com/users/orionblastar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orionblastar/subscriptions","organizations_url":"https://api.github.com/users/orionblastar/orgs","repos_url":"https://api.github.com/users/orionblastar/repos","events_url":"https://api.github.com/users/orionblastar/events{/privacy}","received_events_url":"https://api.github.com/users/orionblastar/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-05-25T14:00:37Z","updated_at":"2016-06-03T20:30:59Z","closed_at":null,"body":"Depends: https://github.com/orionblastar/K666/issues/5\r\nBranch: fragments* (without the *, means see below)\r\n\r\nLet's bring all that stuff from the static into the dynamic page, but we'll break it into separate fragments you can include from the index.html page.\r\n\r\n1. create a file called:\r\n   ./freek666/templates/fragments/welcome_user_fragment.html\r\n\r\n2. copy all the stuff I told you to do in #5, from the templated index.html file into it.\r\n\r\n3. Replace all that in the template/index.html with one line\r\n{% include \"fragments/welcome_user_fragment.html %}\r\n\r\n4. Add all the html stuff from the static index to the template/index.html file.\r\n\r\n----- BEGIN EXAMPLE OF template/index.html -----\r\n`````\r\n<html>\r\n    <head>\r\n        <title>Welcome to K666</title>\r\n    </head>\r\n     <body>\r\n        <h1>Welcome to K666</h1>\r\n        <p>Free Speech as in Open Source.</p>\r\n        {% include \"fragments/welcome_user_fragment.html\" %}\r\n        <pre>\r\nWelcome to the K666 Open Source Generic Discussion Forum, Feel Free to Fork Anytime:\r\nGit Hub Repository: https://github.com/orionblaster/K666\r\n        </pre>\r\n        <p><a href=\"/admin\">Admin</a></p>\r\n        <p><a href=\"/index\">Index</a></p>\r\n        <p><a href=\"/login\">Accounts Login</a>: but this probably doesn't work?</p>\r\n        <img src=\"/static/images/up.jpg\" />\r\n        <img src=\"/static/images/down.jpg\" />\r\n         <img src=\"/static/images/FreeK666.png\" />\r\n         <img src=\"/static/images/FreeK666coin.jpg\" />\r\n         <div><img src=\"http://i.imgur.com/B8sO2Hd.jpg\" /></div>\r\n         <p>Donations: <a href=\"https://www.blocktrail.com/BTC/address/1Dy5rLHwt8wk79C6jfH6uRf2bpcVnJtNyQ\">bitcoin:1Dy5rLHwt8wk79C6jfH6uRf2bpcVnJtNyQ</a></p>\r\n     </body>\r\n</html>\r\n`````\r\n----- END EXAMPLE OF template/index.html -----\r\n\r\nNow probably fragment all of the other stuff out too... examples:\r\n    - fragments/intro_fragment.html\r\n    - fragments/common_links_fragment.html\r\n    - fragments/images_fragment.html\r\n    - fragments/donations_fragment.html\r\n\r\nAnd then maybe even:\r\n    - fragments/title_fragment.html (Welcome to K666)\r\n    - fragments/tagline_fragment.html (Free Speech As In Money)\r\n    - fragments/page_header.html (includes title_fragment.html and tagline_fragment.html, marked up with html)\r\n\r\n----- FINAL EXAMPLE OF templates/index.html -----\r\n`````\r\n<html>\r\n    <head>\r\n        <title>{% include \"fragments/title_fragment.html\" %}</title>\r\n    </head>\r\n    <body>\r\n        {% include \"fragments/page_header_fragment.html\" %}\r\n        {% include \"fragments/welcome_user_fragment.html\" %}\r\n        {% include \"fragments/intro_fragment.html\" %}\r\n        {% include \"fragments/common_links_fragment.html\" %}\r\n        {% include \"fragments/images_fragment.html\" %}\r\n        {% include \"fragments/donations_fragment.html\" %}\r\n     </body>\r\n</html>\r\n`````\r\n----- END FINAL EXAMPLE OF templates/index.html -----\r\n(please indent it nicely though... posting into github messes that up... how to post blocks of code with correct formatting? would be good to know for kr5ddit too... we probably use the same markup engine!)\r\n\r\nWhich would be a lot nicer, right?\r\n\r\n*: You can push branches into your github repository as follows, full example from fragments\r\n`````\r\n# Clone the repository into a working directory, and change into it\r\n$ git clone https://github.com/orionblastar/K666 k6fragments\r\n$ cd k6fragments\r\n\r\n# Branch from mergetest... it's the latest thing... we haven't merged it into master yet... anyway.\r\n$ git branch mergetest\r\n\r\n# Create the branch you are going to work on, and switch to it\r\n$ git branch fragments\r\n$ git checkout fragments\r\n\r\n# Push the new branch back to the original repository... you can do this at any time, before or after you've made commits for example.\r\n$ git push -u origin fragments\r\n\r\n# Now view that branch on github!\r\n`````"},"comment":{"url":"https://api.github.com/repos/orionblastar/K666/issues/comments/223686853","html_url":"https://github.com/orionblastar/K666/issues/13#issuecomment-223686853","issue_url":"https://api.github.com/repos/orionblastar/K666/issues/13","id":223686853,"user":{"login":"orionblastar","id":4656807,"avatar_url":"https://avatars.githubusercontent.com/u/4656807?v=3","gravatar_id":"","url":"https://api.github.com/users/orionblastar","html_url":"https://github.com/orionblastar","followers_url":"https://api.github.com/users/orionblastar/followers","following_url":"https://api.github.com/users/orionblastar/following{/other_user}","gists_url":"https://api.github.com/users/orionblastar/gists{/gist_id}","starred_url":"https://api.github.com/users/orionblastar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orionblastar/subscriptions","organizations_url":"https://api.github.com/users/orionblastar/orgs","repos_url":"https://api.github.com/users/orionblastar/repos","events_url":"https://api.github.com/users/orionblastar/events{/privacy}","received_events_url":"https://api.github.com/users/orionblastar/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T20:30:59Z","updated_at":"2016-06-03T20:30:59Z","body":"OK I am working on master and changed the branch to fragments. Haven't checked it in yet as I am going to test it out first and then see if it works."}}
{"actor":{"display_login":"orionblastar"}}