25 lines
962 B
Ruby
25 lines
962 B
Ruby
class Prompts::CommandsController < ApplicationController
|
|
def index
|
|
@commands = [
|
|
[ "/add", "Add a new card", "/add " ],
|
|
[ "/assign", "Assign cards to people", "/assign @" ],
|
|
[ "/close", "Close cards (with optional reason)", "/close " ],
|
|
[ "/reopen", "Reopen cards", "/reopen" ],
|
|
[ "/clear", "Clear all filters", "/clear" ],
|
|
[ "/consider", "Move cards back to Considering", "/consider" ],
|
|
[ "/do", "Move cards to Doing", "/do" ],
|
|
[ "/reconsider", "Move cards back to Considering", "/reconsider" ],
|
|
[ "/search", "Search cards and comments", "/search " ],
|
|
[ "/user", "Open user profile", "/user " ],
|
|
[ "/tag", "Tag selected cards", "/tag #" ],
|
|
[ "/stage", "Move cards to a Workflow Stage", "/stage " ],
|
|
[ "/ask", "Ask a question about cards", "/ask" ],
|
|
[ "/help", "Show help menu", "/help" ]
|
|
]
|
|
|
|
if stale? etag: @commands
|
|
render layout: false
|
|
end
|
|
end
|
|
end
|