diff --git a/jdav_web/jdav_web/settings/components/jet.py b/jdav_web/jdav_web/settings/components/jet.py index 8a99835..21ba9d6 100644 --- a/jdav_web/jdav_web/settings/components/jet.py +++ b/jdav_web/jdav_web/settings/components/jet.py @@ -51,6 +51,10 @@ JET_SIDE_MENU_ITEMS = [ {'name': 'materialcategory', 'permissions': ['material.view_materialcategory']}, {'name': 'materialpart', 'permissions': ['material.view_materialpart']}, ]}, + {'app_label': 'startpage', 'permissions': ['startpage'], 'items': [ + {'name': 'section', 'permissions': ['startpage.view_section']}, + {'name': 'post', 'permissions': ['startpage.view_post']}, + ]}, {'label': 'Externe Links', 'items' : [ { 'label': 'Nextcloud', 'url': CLOUD_LINK }, { 'label': 'DAV 360', 'url': DAV_360_LINK }, diff --git a/jdav_web/members/admin.py b/jdav_web/members/admin.py index 81b9207..eacf19f 100644 --- a/jdav_web/members/admin.py +++ b/jdav_web/members/admin.py @@ -639,6 +639,7 @@ class GroupAdmin(CommonAdminMixin, admin.ModelAdmin): form = GroupAdminForm list_display = ('name', 'year_from', 'year_to') inlines = [RegistrationPasswordInline, PermissionOnGroupInline] + search_fields = ('name',) class ActivityCategoryAdmin(admin.ModelAdmin): diff --git a/jdav_web/static/startpage/css/base.css b/jdav_web/static/startpage/css/base.css index 821b862..c36d62e 100644 --- a/jdav_web/static/startpage/css/base.css +++ b/jdav_web/static/startpage/css/base.css @@ -92,7 +92,7 @@ h6 { } .content { - width: 70%; + width: 55%; margin: 0 auto; overflow: hidden; position: relative; diff --git a/jdav_web/static/startpage/css/people_grid.css b/jdav_web/static/startpage/css/people_grid.css index faf762a..2d37a09 100644 --- a/jdav_web/static/startpage/css/people_grid.css +++ b/jdav_web/static/startpage/css/people_grid.css @@ -12,13 +12,15 @@ .portrait { transition: transform .2s; line-height: 1; + /*height: 240pt;*/ } .portrait img { padding: 0; margin: 0; width: 100%; - max-height: 250px; + height: 100%; + height: 200pt; display: block; object-fit: cover; } @@ -26,21 +28,23 @@ .portrait .namebox { background-color: rgba(87,171,39,1.0); margin: 0; - padding: 15px; + padding: 10pt; text-align: center; + width: 100%; color: white; } .portrait .namebox .name { - font-size: 16px; + font-size: 12pt; text-align: center; font-weight: 700; + height: 30pt; } .portrait .namebox .extra { - margin-top: 5px; - font-size: 12px; + font-size: 11pt; text-align: center; + height: 10pt; } .portrait:hover {