{"html_url": "https://github.com/simonw/datasette/issues/153#issuecomment-347928926", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/153", "id": 347928926, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NzkyODkyNg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-29T17:09:40Z", "updated_at": "2017-11-29T17:09:40Z", "author_association": "OWNER", "body": "OK, that's point 1 covered.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 276842536, "label": "Ability to customize presentation of specific columns in HTML view"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/153#issuecomment-347735724", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/153", "id": 347735724, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NzczNTcyNA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-29T02:47:14Z", "updated_at": "2017-11-29T02:47:14Z", "author_association": "OWNER", "body": "(This only addresses point 2 in your issue description - points 1 and point 3 are still to come)", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 276842536, "label": "Ability to customize presentation of specific columns in HTML view"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/153#issuecomment-347735598", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/153", "id": 347735598, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NzczNTU5OA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-29T02:46:31Z", "updated_at": "2017-11-29T02:47:27Z", "author_association": "OWNER", "body": "To style individual columns you'll currently need to use the `nth-of-type` selector, e.g.:\r\n\r\n td:nth-of-type(5):before { white-space: pre }", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 276842536, "label": "Ability to customize presentation of specific columns in HTML view"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/153#issuecomment-347735334", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/153", "id": 347735334, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NzczNTMzNA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-29T02:45:03Z", "updated_at": "2017-11-29T02:45:03Z", "author_association": "OWNER", "body": "@ftrain OK I've shipped the first version of this. Here's the initial documentation:\r\n\r\nCreate a `metadata.json` file that looks like this:\r\n\r\n {\r\n \"extra_css_urls\": [\r\n \"https://simonwillison.net/static/css/all.bf8cd891642c.css\"\r\n ],\r\n \"extra_js_urls\": [\r\n \"https://code.jquery.com/jquery-3.2.1.slim.min.js\"\r\n ]\r\n }\r\n\r\nThen start datasette like this:\r\n\r\n datasette mydb.db --metadata=metadata.json\r\n\r\nThe CSS and JavaScript files will be linked in the `` of every page.\r\n\r\nYou can also specify a SRI (subresource integrity hash) for these assets:\r\n\r\n {\r\n \"extra_css_urls\": [\r\n {\r\n \"url\": \"https://simonwillison.net/static/css/all.bf8cd891642c.css\",\r\n \"sri\": \"sha384-9qIZekWUyjCyDIf2YK1FRoKiPJq4PHt6tp/ulnuuyRBvazd0hG7pWbE99zvwSznI\"\r\n }\r\n ],\r\n \"extra_js_urls\": [\r\n {\r\n \"url\": \"https://code.jquery.com/jquery-3.2.1.slim.min.js\",\r\n \"sri\": \"sha256-k2WSCIexGzOj3Euiig+TlR8gA0EmPjuc79OEeY5L45g=\"\r\n }\r\n ]\r\n }\r\n\r\nModern browsers will only execute the stylsheet or JavaScript if the SRI hash\r\nmatches the content served. You can generate hashes using www.srihash.org\r\n\r\nThis isn't shipped in a release yet, but you can still access these features in `datasette publish` like so:\r\n\r\n datasette publish now mydb.db --metadata=metadata.json --branch=master\r\n\r\nThe `--branch=master` option will pull the latest master build of Datasette from GitHub.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 276842536, "label": "Ability to customize presentation of specific columns in HTML view"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/155#issuecomment-347715452", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/155", "id": 347715452, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NzcxNTQ1Mg==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-29T00:52:30Z", "updated_at": "2017-11-29T00:52:30Z", "author_association": "OWNER", "body": "Interestingly, it almost does the right thing on the individual row page: https://bug-155-dkcqckhgki.now.sh/bug-155-9a7bb68/lhs/1\r\n\r\n\"cursor_and_bug-155__lhs\"\r\n\r\nThe symbol has been expanded, but there's a rogue '1' that shouldn't be there at all - I think that's bug #152\r\n\r\nThe table view itself is definitely doing the wrong thing: https://bug-155-dkcqckhgki.now.sh/bug-155-9a7bb68/lhs\r\n\r\n\"cursor_and_bug-155__lhs__2_rows_and_paradise_papers_tie_kushner_startup_to_russian_money_\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 277589569, "label": "A primary key column that has foreign key restriction associated won't rendering label column"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/155#issuecomment-347714471", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/155", "id": 347714471, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NzcxNDQ3MQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-29T00:47:21Z", "updated_at": "2017-11-29T00:47:21Z", "author_association": "OWNER", "body": "Thanks!", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 277589569, "label": "A primary key column that has foreign key restriction associated won't rendering label column"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/155#issuecomment-347714314", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/155", "id": 347714314, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NzcxNDMxNA==", "user": {"value": 388154, "label": "wsxiaoys"}, "created_at": "2017-11-29T00:46:25Z", "updated_at": "2017-11-29T00:46:25Z", "author_association": "NONE", "body": "```\r\nCREATE TABLE rhs (\r\n id INTEGER PRIMARY KEY,\r\n name TEXT\r\n);\r\n\r\nCREATE TABLE lhs (\r\n symbol INTEGER PRIMARY KEY,\r\n FOREIGN KEY (symbol) REFERENCES rhs(id)\r\n);\r\n\r\nINSERT INTO rhs VALUES (1, \"foo\");\r\nINSERT INTO rhs VALUES (2, \"bar\");\r\nINSERT INTO lhs VALUES (1);\r\nINSERT INTO lhs VALUES (2);\r\n```\r\n\r\nIt's expected that in lhs's view, foo / bar should be displayed.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 277589569, "label": "A primary key column that has foreign key restriction associated won't rendering label column"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/155#issuecomment-347713453", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/155", "id": 347713453, "node_id": "MDEyOklzc3VlQ29tbWVudDM0NzcxMzQ1Mw==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2017-11-29T00:41:30Z", "updated_at": "2017-11-29T00:41:30Z", "author_association": "OWNER", "body": "Could you provide the SQL to create a reproducible test case (both CREATE TABLE and INSERT statements)?", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 277589569, "label": "A primary key column that has foreign key restriction associated won't rendering label column"}, "performed_via_github_app": null}