{"html_url": "https://github.com/simonw/datasette/issues/1831#issuecomment-1276693475", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1831", "id": 1276693475, "node_id": "IC_kwDOBm6k_c5MGMvj", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-12T20:23:01Z", "updated_at": "2022-10-12T20:23:01Z", "author_association": "OWNER", "body": "Here are all the places that display that navigation bar at the moment:\r\n\r\nhttps://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/row.html#L18-L25\r\n\r\nhttps://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/table.html#L19-L25\r\n\r\nhttps://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/query.html#L21-L27\r\n\r\nhttps://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/error.html#L5-L10\r\n\r\nhttps://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/database.html#L12-L17\r\n\r\nhttps://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/show_json.html#L7-L12\r\n\r\nhttps://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/permissions_debug.html#L25-L30\r\n\r\nhttps://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/permissions_debug.html#L25-L30t\r\n\r\nInteresting to note that failing to include that `super()` call means the nav menu itself will not be rendered:\r\n\r\nhttps://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/base.html#L20-L49", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1397084281, "label": "If user can see table but NOT database/instance nav links should not display"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1831#issuecomment-1276694152", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1831", "id": 1276694152, "node_id": "IC_kwDOBm6k_c5MGM6I", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-12T20:23:44Z", "updated_at": "2022-10-12T20:23:44Z", "author_association": "OWNER", "body": "The fact that this code is inconsistent already (`urls.instance()` v.s. `base_url` for example) suggests that properly refactoring this is well overdue already.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1397084281, "label": "If user can see table but NOT database/instance nav links should not display"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1831#issuecomment-1276696138", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1831", "id": 1276696138, "node_id": "IC_kwDOBm6k_c5MGNZK", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-12T20:25:39Z", "updated_at": "2022-10-12T20:25:39Z", "author_association": "OWNER", "body": "Related issue:\r\n\r\n- #1829\r\n\r\nI'd like a code design for this that helps solve both these issues at once.", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 1397084281, "label": "If user can see table but NOT database/instance nav links should not display"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/1831#issuecomment-1276706181", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/1831", "id": 1276706181, "node_id": "IC_kwDOBm6k_c5MGP2F", "user": {"value": 9599, "label": "simonw"}, "created_at": "2022-10-12T20:34:00Z", "updated_at": "2022-10-12T23:43:39Z", "author_association": "OWNER", "body": "Maybe new template functions: `table_crumbs(table, database)` and `database_crumbs(database)` and `instance_crumbs()` - which know how to both check the permissions and display the `