{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core/issues/7599","labels_url":"https://api.github.com/repos/contao/core/issues/7599/labels{/name}","comments_url":"https://api.github.com/repos/contao/core/issues/7599/comments","events_url":"https://api.github.com/repos/contao/core/issues/7599/events","html_url":"https://github.com/contao/core/pull/7599","id":55649274,"number":7599,"title":"Implemented diff view for templates","user":{"login":"Toflar","id":481937,"avatar_url":"https://avatars.githubusercontent.com/u/481937?v=3","gravatar_id":"","url":"https://api.github.com/users/Toflar","html_url":"https://github.com/Toflar","followers_url":"https://api.github.com/users/Toflar/followers","following_url":"https://api.github.com/users/Toflar/following{/other_user}","gists_url":"https://api.github.com/users/Toflar/gists{/gist_id}","starred_url":"https://api.github.com/users/Toflar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toflar/subscriptions","organizations_url":"https://api.github.com/users/Toflar/orgs","repos_url":"https://api.github.com/users/Toflar/repos","events_url":"https://api.github.com/users/Toflar/events{/privacy}","received_events_url":"https://api.github.com/users/Toflar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-01-27T17:38:22Z","updated_at":"2015-01-28T11:23:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/contao/core/pulls/7599","html_url":"https://github.com/contao/core/pull/7599","diff_url":"https://github.com/contao/core/pull/7599.diff","patch_url":"https://github.com/contao/core/pull/7599.patch"},"body":"This is very helpful to easily diff templates against the original one in the back end. One can see where the differences are with one click only. I often diff when I update Contao installations to see if the changes are still necessary after the update or to know if there is even a difference or I can just delete the template.\r\n\r\nThis small feature makes it really easy to do so right from within the back end. See the screenshots:\r\n\r\n![screen shot 2015-01-27 at 18 30 26](https://cloud.githubusercontent.com/assets/481937/5923404/8a18d9e4-a653-11e4-8ce3-26a51c1a6e53.png)\r\n![screen shot 2015-01-27 at 18 30 38](https://cloud.githubusercontent.com/assets/481937/5923403/8a18cb0c-a653-11e4-8ede-84d551fd8c24.png)\r\n"},"comment":{"url":"https://api.github.com/repos/contao/core/issues/comments/71818599","html_url":"https://github.com/contao/core/pull/7599#issuecomment-71818599","issue_url":"https://api.github.com/repos/contao/core/issues/7599","id":71818599,"user":{"login":"Toflar","id":481937,"avatar_url":"https://avatars.githubusercontent.com/u/481937?v=3","gravatar_id":"","url":"https://api.github.com/users/Toflar","html_url":"https://github.com/Toflar","followers_url":"https://api.github.com/users/Toflar/followers","following_url":"https://api.github.com/users/Toflar/following{/other_user}","gists_url":"https://api.github.com/users/Toflar/gists{/gist_id}","starred_url":"https://api.github.com/users/Toflar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Toflar/subscriptions","organizations_url":"https://api.github.com/users/Toflar/orgs","repos_url":"https://api.github.com/users/Toflar/repos","events_url":"https://api.github.com/users/Toflar/events{/privacy}","received_events_url":"https://api.github.com/users/Toflar/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T11:23:29Z","updated_at":"2015-01-28T11:23:29Z","body":"So it's implemented.\r\n\r\n### Use case 1\r\nWhen your template does not override one from any module (extension or core) and is completely standalone. In this case it's a template named `foobar`. Note the info message that informs the user about this situation. You can then select and compare it to whatever template you like (@frontendschlampe 's use case):\r\n\r\n![screen shot 2015-01-28 at 12 08 45](https://cloud.githubusercontent.com/assets/481937/5936601/7a11c8c4-a6e6-11e4-9784-311eb9837597.png)\r\n\r\n### Use case 2\r\nWhen your template does not override one from any module (extension or core) just because it's name does not match. In this case I am comparing `fe_page_custom` to `fe_page` and this would then look like this:\r\n\r\n![screen shot 2015-01-28 at 12 14 29](https://cloud.githubusercontent.com/assets/481937/5936746/bf5bc6c2-a6e7-11e4-9b5e-7a31bfe886a5.png)\r\n\r\n### Use case 3\r\nWhen your template overrides one from any module (extension or core). The info message tells you again what happens and by default the original template is preselected and immediately compared to (in this case I did not change anything so they're identical). You see that I want to compare my `ce_teaser` template so only `ce_` templates are being shown because of the prefix support. Obviously I can still compare it to `ce_text` which does not make sense at all but I can't fix stupidity :)\r\n\r\n![screen shot 2015-01-28 at 12 17 25](https://cloud.githubusercontent.com/assets/481937/5936734/a60d6c70-a6e7-11e4-9bae-7494ef00d818.png)"}}