{"action":"created","comment":{"url":"https://api.github.com/repos/etalab/udata/pulls/comments/31435744","id":31435744,"diff_hunk":"@@ -36,81 +37,77 @@ <h1 class=\"page-header\">Titre de l'actu\n \n                 <div class=\"row\">\n                     <div class=\"col-md-7\">\n-                        <img class=\"img-responsive\" src=\"http://placehold.it/650x300&text=Actualité\">\n+                        <img class=\"img-responsive\" src=\"{{last_post.image}}\">\n                     </div>\n                     <div class=\"col-md-5\">\n-                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam viverra euismod odio, gravida pellentesque urna varius vitae. Sed dui lorem, adipiscing in adipiscing et, interdum nec metus. Mauris ultricies, justo eu convallis placerat, felis enim.</p>\n-                        <h3>Project Details</h3>\n-                        <ul>\n-                            <li>Lorem Ipsum</li>\n-                            <li>Dolor Sit Amet</li>\n-                            <li>Consectetur</li>\n-                            <li>Adipiscing Elit</li>\n-                        </ul>\n+                        {{ last_post.headline }}\n                     </div>\n                 </div>\n \n             </div>\n         </div>\n+        {% endif %}\n \n         <div class=\"item\">\n             <div class=\"container\">\n \n                 <div class=\"row\">\n                     <div class=\"col-lg-12\">\n-                        <h1 class=\"page-header\">Une réutilisation\n-                            <small>Réutilisation</small>\n+                        <h1 class=\"page-header\">\n+                            {{ _('Featured datasets') }}\n+                        </h1>\n+                    </div>\n+                </div>\n+\n+                <div class=\"row\">\n+                    <ul class=\"card-list\">\n+                        {% for dataset in current_site.settings.home_datasets %}\n+                        <li class=\"col-md-4 col-sm-6\">\n+                        {% include theme('dataset/card.html') %}\n+                        </li>\n+                        {% endfor %}\n+                    </ul>\n+                </div>\n+\n+            </div>\n+        </div>\n+        {% for reuse in current_site.settings.home_reuses %}\n+        <div class=\"item\">\n+            <div class=\"container\">\n+\n+                <div class=\"row\">\n+                    <div class=\"col-lg-12\">\n+                        <h1 class=\"page-header\">\n+                            {{reuse.title}}\n+                            <small>{{ _('Reuse')}}</small>\n                         </h1>\n                     </div>\n                 </div>\n \n                 <div class=\"row\">\n                     <div class=\"col-md-7\">\n-                        <img class=\"img-responsive\" src=\"http://placehold.it/650x300\">\n+                        <img class=\"img-responsive\" src=\"{{reuse.image}}\">\n                     </div>\n                     <div class=\"col-md-5\">\n-                        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam viverra euismod odio, gravida pellentesque urna varius vitae. Sed dui lorem, adipiscing in adipiscing et, interdum nec metus. Mauris ultricies, justo eu convallis placerat, felis enim.</p>\n+                        <p>{{reuse.description | mdstrip(300) }}</p>\n \n                         <div class=\"row\">\n                             <div class=\"col-lg-12\">\n-                                <h3 class=\"page-header\">Jeux de données utilisés</h3>\n-                            </div>\n-\n-                            <div class=\"col-sm-3 col-xs-6\">\n-                                <a href=\"#\">\n-                                  <img class=\"img-responsive portfolio-item\" src=\"http://placehold.it/300x200\">\n-                                </a>\n-                            </div>\n-\n-                            <div class=\"col-sm-3 col-xs-6\">\n-                                <a href=\"#\">\n-                                    <img class=\"img-responsive portfolio-item\" src=\"http://placehold.it/300x200\">\n-                                </a>\n+                                <h3 class=\"page-header\">{{ _('Used datasets') }}</h3>\n                             </div>\n \n-                            <div class=\"col-sm-3 col-xs-6\">\n-                                <a href=\"#\">\n-                                    <img class=\"img-responsive portfolio-item\" src=\"http://placehold.it/300x200\">\n-                                </a>\n-                            </div>\n-\n-                            <div class=\"col-sm-3 col-xs-6\">\n-                                <a href=\"#\">\n-                                    <img class=\"img-responsive portfolio-item\" src=\"http://placehold.it/300x200\">\n-                                </a>\n+                            {% for dataset in reuse.datasets[:4] %}","path":"udata/templates/home.html","position":114,"original_position":114,"commit_id":"1714fac74f999def1033dd0aaa0c4d2c01e168dd","original_commit_id":"1714fac74f999def1033dd0aaa0c4d2c01e168dd","user":{"login":"davidbgk","id":3556,"avatar_url":"https://avatars.githubusercontent.com/u/3556?v=3","gravatar_id":"","url":"https://api.github.com/users/davidbgk","html_url":"https://github.com/davidbgk","followers_url":"https://api.github.com/users/davidbgk/followers","following_url":"https://api.github.com/users/davidbgk/following{/other_user}","gists_url":"https://api.github.com/users/davidbgk/gists{/gist_id}","starred_url":"https://api.github.com/users/davidbgk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidbgk/subscriptions","organizations_url":"https://api.github.com/users/davidbgk/orgs","repos_url":"https://api.github.com/users/davidbgk/repos","events_url":"https://api.github.com/users/davidbgk/events{/privacy}","received_events_url":"https://api.github.com/users/davidbgk/received_events","type":"User","site_admin":false},"body":"Oh good point. Let's discuss that tomorrow.","created_at":"2015-06-01T15:21:11Z","updated_at":"2015-06-01T15:21:11Z","html_url":"https://github.com/etalab/udata/pull/39#discussion_r31435744","pull_request_url":"https://api.github.com/repos/etalab/udata/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/etalab/udata/pulls/comments/31435744"},"html":{"href":"https://github.com/etalab/udata/pull/39#discussion_r31435744"},"pull_request":{"href":"https://api.github.com/repos/etalab/udata/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/etalab/udata/pulls/39","id":36635037,"html_url":"https://github.com/etalab/udata/pull/39","diff_url":"https://github.com/etalab/udata/pull/39.diff","patch_url":"https://github.com/etalab/udata/pull/39.patch","issue_url":"https://api.github.com/repos/etalab/udata/issues/39","number":39,"state":"open","locked":false,"title":"Use editorial selection in homepage for dataset and reuse","user":{"login":"noirbizarre","id":15725,"avatar_url":"https://avatars.githubusercontent.com/u/15725?v=3","gravatar_id":"","url":"https://api.github.com/users/noirbizarre","html_url":"https://github.com/noirbizarre","followers_url":"https://api.github.com/users/noirbizarre/followers","following_url":"https://api.github.com/users/noirbizarre/following{/other_user}","gists_url":"https://api.github.com/users/noirbizarre/gists{/gist_id}","starred_url":"https://api.github.com/users/noirbizarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noirbizarre/subscriptions","organizations_url":"https://api.github.com/users/noirbizarre/orgs","repos_url":"https://api.github.com/users/noirbizarre/repos","events_url":"https://api.github.com/users/noirbizarre/events{/privacy}","received_events_url":"https://api.github.com/users/noirbizarre/received_events","type":"User","site_admin":false},"body":"No more automatic selection in homepage, it now use the manual editorial selection.\r\n\r\nThe default home template alos use real data now.","created_at":"2015-06-01T14:39:34Z","updated_at":"2015-06-01T15:21:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0b1e0f387531aa8faa621537989f33a148bd092","assignee":{"login":"noirbizarre","id":15725,"avatar_url":"https://avatars.githubusercontent.com/u/15725?v=3","gravatar_id":"","url":"https://api.github.com/users/noirbizarre","html_url":"https://github.com/noirbizarre","followers_url":"https://api.github.com/users/noirbizarre/followers","following_url":"https://api.github.com/users/noirbizarre/following{/other_user}","gists_url":"https://api.github.com/users/noirbizarre/gists{/gist_id}","starred_url":"https://api.github.com/users/noirbizarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noirbizarre/subscriptions","organizations_url":"https://api.github.com/users/noirbizarre/orgs","repos_url":"https://api.github.com/users/noirbizarre/repos","events_url":"https://api.github.com/users/noirbizarre/events{/privacy}","received_events_url":"https://api.github.com/users/noirbizarre/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/etalab/udata/pulls/39/commits","review_comments_url":"https://api.github.com/repos/etalab/udata/pulls/39/comments","review_comment_url":"https://api.github.com/repos/etalab/udata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/etalab/udata/issues/39/comments","statuses_url":"https://api.github.com/repos/etalab/udata/statuses/1714fac74f999def1033dd0aaa0c4d2c01e168dd","head":{"label":"etalab:editorial","ref":"editorial","sha":"1714fac74f999def1033dd0aaa0c4d2c01e168dd","user":{"login":"etalab","id":5313610,"avatar_url":"https://avatars.githubusercontent.com/u/5313610?v=3","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"repo":{"id":19141754,"name":"udata","full_name":"etalab/udata","owner":{"login":"etalab","id":5313610,"avatar_url":"https://avatars.githubusercontent.com/u/5313610?v=3","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/etalab/udata","description":"Social data platform","fork":false,"url":"https://api.github.com/repos/etalab/udata","forks_url":"https://api.github.com/repos/etalab/udata/forks","keys_url":"https://api.github.com/repos/etalab/udata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etalab/udata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etalab/udata/teams","hooks_url":"https://api.github.com/repos/etalab/udata/hooks","issue_events_url":"https://api.github.com/repos/etalab/udata/issues/events{/number}","events_url":"https://api.github.com/repos/etalab/udata/events","assignees_url":"https://api.github.com/repos/etalab/udata/assignees{/user}","branches_url":"https://api.github.com/repos/etalab/udata/branches{/branch}","tags_url":"https://api.github.com/repos/etalab/udata/tags","blobs_url":"https://api.github.com/repos/etalab/udata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etalab/udata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etalab/udata/git/refs{/sha}","trees_url":"https://api.github.com/repos/etalab/udata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etalab/udata/statuses/{sha}","languages_url":"https://api.github.com/repos/etalab/udata/languages","stargazers_url":"https://api.github.com/repos/etalab/udata/stargazers","contributors_url":"https://api.github.com/repos/etalab/udata/contributors","subscribers_url":"https://api.github.com/repos/etalab/udata/subscribers","subscription_url":"https://api.github.com/repos/etalab/udata/subscription","commits_url":"https://api.github.com/repos/etalab/udata/commits{/sha}","git_commits_url":"https://api.github.com/repos/etalab/udata/git/commits{/sha}","comments_url":"https://api.github.com/repos/etalab/udata/comments{/number}","issue_comment_url":"https://api.github.com/repos/etalab/udata/issues/comments{/number}","contents_url":"https://api.github.com/repos/etalab/udata/contents/{+path}","compare_url":"https://api.github.com/repos/etalab/udata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etalab/udata/merges","archive_url":"https://api.github.com/repos/etalab/udata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etalab/udata/downloads","issues_url":"https://api.github.com/repos/etalab/udata/issues{/number}","pulls_url":"https://api.github.com/repos/etalab/udata/pulls{/number}","milestones_url":"https://api.github.com/repos/etalab/udata/milestones{/number}","notifications_url":"https://api.github.com/repos/etalab/udata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etalab/udata/labels{/name}","releases_url":"https://api.github.com/repos/etalab/udata/releases{/id}","created_at":"2014-04-25T09:57:34Z","updated_at":"2015-05-06T12:06:13Z","pushed_at":"2015-06-01T14:39:34Z","git_url":"git://github.com/etalab/udata.git","ssh_url":"git@github.com:etalab/udata.git","clone_url":"https://github.com/etalab/udata.git","svn_url":"https://github.com/etalab/udata","homepage":null,"size":3863,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":8,"default_branch":"master"}},"base":{"label":"etalab:master","ref":"master","sha":"39e86b6e02b76ec36b7b73f522e17d3db429786e","user":{"login":"etalab","id":5313610,"avatar_url":"https://avatars.githubusercontent.com/u/5313610?v=3","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"repo":{"id":19141754,"name":"udata","full_name":"etalab/udata","owner":{"login":"etalab","id":5313610,"avatar_url":"https://avatars.githubusercontent.com/u/5313610?v=3","gravatar_id":"","url":"https://api.github.com/users/etalab","html_url":"https://github.com/etalab","followers_url":"https://api.github.com/users/etalab/followers","following_url":"https://api.github.com/users/etalab/following{/other_user}","gists_url":"https://api.github.com/users/etalab/gists{/gist_id}","starred_url":"https://api.github.com/users/etalab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etalab/subscriptions","organizations_url":"https://api.github.com/users/etalab/orgs","repos_url":"https://api.github.com/users/etalab/repos","events_url":"https://api.github.com/users/etalab/events{/privacy}","received_events_url":"https://api.github.com/users/etalab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/etalab/udata","description":"Social data platform","fork":false,"url":"https://api.github.com/repos/etalab/udata","forks_url":"https://api.github.com/repos/etalab/udata/forks","keys_url":"https://api.github.com/repos/etalab/udata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etalab/udata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etalab/udata/teams","hooks_url":"https://api.github.com/repos/etalab/udata/hooks","issue_events_url":"https://api.github.com/repos/etalab/udata/issues/events{/number}","events_url":"https://api.github.com/repos/etalab/udata/events","assignees_url":"https://api.github.com/repos/etalab/udata/assignees{/user}","branches_url":"https://api.github.com/repos/etalab/udata/branches{/branch}","tags_url":"https://api.github.com/repos/etalab/udata/tags","blobs_url":"https://api.github.com/repos/etalab/udata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etalab/udata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etalab/udata/git/refs{/sha}","trees_url":"https://api.github.com/repos/etalab/udata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etalab/udata/statuses/{sha}","languages_url":"https://api.github.com/repos/etalab/udata/languages","stargazers_url":"https://api.github.com/repos/etalab/udata/stargazers","contributors_url":"https://api.github.com/repos/etalab/udata/contributors","subscribers_url":"https://api.github.com/repos/etalab/udata/subscribers","subscription_url":"https://api.github.com/repos/etalab/udata/subscription","commits_url":"https://api.github.com/repos/etalab/udata/commits{/sha}","git_commits_url":"https://api.github.com/repos/etalab/udata/git/commits{/sha}","comments_url":"https://api.github.com/repos/etalab/udata/comments{/number}","issue_comment_url":"https://api.github.com/repos/etalab/udata/issues/comments{/number}","contents_url":"https://api.github.com/repos/etalab/udata/contents/{+path}","compare_url":"https://api.github.com/repos/etalab/udata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etalab/udata/merges","archive_url":"https://api.github.com/repos/etalab/udata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etalab/udata/downloads","issues_url":"https://api.github.com/repos/etalab/udata/issues{/number}","pulls_url":"https://api.github.com/repos/etalab/udata/pulls{/number}","milestones_url":"https://api.github.com/repos/etalab/udata/milestones{/number}","notifications_url":"https://api.github.com/repos/etalab/udata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etalab/udata/labels{/name}","releases_url":"https://api.github.com/repos/etalab/udata/releases{/id}","created_at":"2014-04-25T09:57:34Z","updated_at":"2015-05-06T12:06:13Z","pushed_at":"2015-06-01T14:39:34Z","git_url":"git://github.com/etalab/udata.git","ssh_url":"git@github.com:etalab/udata.git","clone_url":"https://github.com/etalab/udata.git","svn_url":"https://github.com/etalab/udata","homepage":null,"size":3863,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":9,"forks":5,"open_issues":9,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/etalab/udata/pulls/39"},"html":{"href":"https://github.com/etalab/udata/pull/39"},"issue":{"href":"https://api.github.com/repos/etalab/udata/issues/39"},"comments":{"href":"https://api.github.com/repos/etalab/udata/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/etalab/udata/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/etalab/udata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/etalab/udata/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/etalab/udata/statuses/1714fac74f999def1033dd0aaa0c4d2c01e168dd"}}}}