Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Issues
  • #1676
Closed
Open
Issue created Jun 15, 2020 by Administrator@rootContributor

Custom additional action on actions column on index page

Created by: bekicot

  • What would you like to be able to do? Can you provide some examples? Custom additional action on actions column on the index page

  • How could we go about implementing that? The simplest way is to move the actions column into partial so that the user can override just the actions column part of the table. Instead of overriding the whole collection partial. We also need to update the column heading count to also account for the additional custom action.

Another approach is probably to add ability to add an action button via the dashboard class.

# CarDashboard.rb
ACTIONS = [:start, :stop, :destroy, :show]
# CarController.rb
def start
resource.start!
end
  • Can you think of other approaches to the problem? Currently, we can override the whole collection partial. But it will lead to a greater incompatibility upon updating administrate.
Assignee
Assign to
Time tracking