* Make org proof a required field * Fix color picker and other minor org adjustments * Add MVP of org add'l sidebar * Add proof to org factory * Fix org create action and fix tests * Add new org fields to admin panel & lint * Add proof to org edit for backward compatibility * Add org info to edit preview * Move preview edit notice to inside article div * MVP of badge "final" steps * Add info to user sidebar and clean up badge commit * Modify sidebar for data * Add organization decorator * Add conditional so only users have new swipe nav, not orgs * Add cloudinary prefix to badges * Disallow duplicate badges
41 lines
1.1 KiB
Ruby
41 lines
1.1 KiB
Ruby
# DashboardManifest tells Administrate which dashboards to display
|
|
class DashboardManifest
|
|
# `DASHBOARDS`
|
|
# a list of dashboards to display in the side navigation menu
|
|
#
|
|
# These are all of the rails models that we found in your database
|
|
# at the time you installed Administrate.
|
|
#
|
|
# To show or hide dashboards, add or remove the model name from this list.
|
|
# Dashboards returned from this method must be Rails models for Administrate
|
|
# to work correctly.
|
|
DASHBOARDS = [
|
|
:articles,
|
|
:users,
|
|
:organizations,
|
|
:comments,
|
|
:follows,
|
|
:reactions,
|
|
:podcasts,
|
|
:podcast_episodes,
|
|
:collections,
|
|
:tags,
|
|
:email_messages,
|
|
:feedback_messages,
|
|
:display_ads,
|
|
:badges,
|
|
:badge_achievements,
|
|
]
|
|
# DASHBOARDS = [
|
|
# :users,
|
|
# :articles,
|
|
# :podcast_episodes,
|
|
# ]
|
|
# `ROOT_DASHBOARD`
|
|
# the name of the dashboard that will be displayed
|
|
# at "http://your_site.com/admin"
|
|
#
|
|
# This dashboard will likely be the first page that admins see
|
|
# when they log into the dashboard.
|
|
ROOT_DASHBOARD = DASHBOARDS.first
|
|
end
|