15 def actions(*elements):
18 "elements": list(elements)
21 def button(label, name):
32 def home(user_id, body):
33 """Returns a view to be published as the turbot home tab for user_id
35 The body argument is a dictionary as provided by the Slack request.
36 The return value is a dictionary suitable to be published to the
37 Slack views_publish API."""
42 section(text("This is (or soon will be) a list of "
43 + "available puzzle hunts)")),
44 actions(button("New hunt", "new_hunt"))