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
  • #1109
Closed
Open
Issue created Mar 07, 2018 by Administrator@rootContributor

alternate field set for displaying has_many on show page

Created by: jmmastey

Hey, running into an issue with a client and I wanted to see if y'all would be interested in a PR for either of these potential solutions.

I have a record Company that has_many Users. I also have a users dashboard, with five or six columns defined on UserController#COLLECTION_ATTRIBUTES. My problem is that showing a Company causes all six attributes to be displayed, which in the constrained space looks really poor:

screen shot 2018-03-07 at 8 13 05 am

Two solutions I'd be willing to implement and I think could work to fix this issue:

  1. Allow users to define an optional EMBEDDED_COLLECTION_ATTRIBUTES on UserDashboard, which the has_many partial can read to get the appropriate columns.
  2. Allow some way to configure a max desired number of columns to show in the embedded collection.

Thanks! Really like the project.

Assignee
Assign to
Time tracking