{"html_url": "https://github.com/simonw/datasette/issues/875#issuecomment-651293559", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/875", "id": 651293559, "node_id": "MDEyOklzc3VlQ29tbWVudDY1MTI5MzU1OQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-06-29T18:43:50Z", "updated_at": "2020-06-29T18:43:50Z", "author_association": "OWNER", "body": "\"_memory_\"\r\n", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 647103735, "label": "\"Logged in as: XXX - logout\" navigation item"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/875#issuecomment-650899265", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/875", "id": 650899265, "node_id": "MDEyOklzc3VlQ29tbWVudDY1MDg5OTI2NQ==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-06-29T04:34:32Z", "updated_at": "2020-06-29T04:34:32Z", "author_association": "OWNER", "body": "From https://github.com/simonw/datasette/issues/840#issuecomment-643454625\r\n> Another problem: what to display in the \"you are logged in as\", since we don't dictate an actor design.\r\n> \r\n> I'm going to use a includes template for this that can easily be over-ridden by administrators or by plugins.\r\n> \r\n> The default will look for the first available of the following keys:\r\n> \r\n> * display\r\n> * name\r\n> * username\r\n> * login\r\n> * id", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 647103735, "label": "\"Logged in as: XXX - logout\" navigation item"}, "performed_via_github_app": null} {"html_url": "https://github.com/simonw/datasette/issues/875#issuecomment-650898808", "issue_url": "https://api.github.com/repos/simonw/datasette/issues/875", "id": 650898808, "node_id": "MDEyOklzc3VlQ29tbWVudDY1MDg5ODgwOA==", "user": {"value": 9599, "label": "simonw"}, "created_at": "2020-06-29T04:32:31Z", "updated_at": "2020-06-29T04:33:30Z", "author_association": "OWNER", "body": "I could borrow the implementation for this from `datasette-auth-github`\r\nhttps://github.com/simonw/datasette-auth-github/blob/182298b034ecb647971b65057d1d3e7b7fbbb482/datasette_auth_github/templates/base.html\r\n```html+jinja\r\n{% extends \"default:base.html\" %}\r\n\r\n{% block extra_head %}\r\n\r\n{% endblock %}\r\n\r\n{% block nav %}\r\n {{ super() }}\r\n {% if auth and auth.username %}\r\n

\r\n {{ auth.username }} · Log out\r\n

\r\n {% endif %}\r\n{% endblock %}\r\n```", "reactions": "{\"total_count\": 0, \"+1\": 0, \"-1\": 0, \"laugh\": 0, \"hooray\": 0, \"confused\": 0, \"heart\": 0, \"rocket\": 0, \"eyes\": 0}", "issue": {"value": 647103735, "label": "\"Logged in as: XXX - logout\" navigation item"}, "performed_via_github_app": null}