mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixed bug with Templates considered comment, closes #689
This commit is contained in:
parent
e89b0ef2f9
commit
d55fe8cdfc
3 changed files with 33 additions and 8 deletions
|
|
@ -79,6 +79,12 @@ class BaseView(AsgiView):
|
|||
**{
|
||||
"database_url": self.database_url,
|
||||
"database_color": self.database_color,
|
||||
"select_templates": [
|
||||
"{}{}".format(
|
||||
"*" if template_name == template.name else "", template_name
|
||||
)
|
||||
for template_name in templates
|
||||
],
|
||||
},
|
||||
}
|
||||
return Response.html(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue