diff --git a/datasette/hookspecs.py b/datasette/hookspecs.py index 5a8439b4..6ce1e85e 100644 --- a/datasette/hookspecs.py +++ b/datasette/hookspecs.py @@ -145,6 +145,11 @@ def table_actions(datasette, actor, database, table, request): """Links for the table actions menu""" +@hookspec +def view_actions(datasette, actor, database, view, request): + """Links for the view actions menu""" + + @hookspec def query_actions(datasette, actor, database, query_name, request, sql, params): """Links for the query and canned query actions menu""" diff --git a/datasette/templates/table.html b/datasette/templates/table.html index 1d328366..505335d6 100644 --- a/datasette/templates/table.html +++ b/datasette/templates/table.html @@ -24,17 +24,17 @@ -{% set links = table_actions() %}{% if links %} +{% set links = actions() %}{% if links %}