Skip to content

Commit

Permalink
new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon committed May 6, 2024
1 parent 17f2da5 commit 9d1353f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion projectroles/tests/test_templatetags.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
)



app_settings = AppSettingAPI()
site = import_module(settings.SITE_PACKAGE)

Expand Down
10 changes: 5 additions & 5 deletions projectroles/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def get_project_app_links(
'projectroles:detail',
kwargs={'project': project.sodar_uuid},
),
'label': 'Overview',
'label': f'{get_display_name(project.type, title=True)} Overview',
'icon': (
'mdi:rhombus-split'
if project.type == PROJECT_TYPE_CATEGORY
Expand Down Expand Up @@ -249,7 +249,7 @@ def get_project_app_links(
'projectroles:update',
kwargs={'project': project.sodar_uuid},
),
'label': f'Update {get_display_name(project.type)}',
'label': f'Update {get_display_name(project.type, title=True)}',
'icon': 'mdi:lead-pencil',
'active': self._is_active_projectroles(
link_names=['update'],
Expand All @@ -274,7 +274,7 @@ def get_project_app_links(
'projectroles:create',
kwargs={'project': project.sodar_uuid},
),
'label': 'Create Project or Category',
'label': f'Create {get_display_name(PROJECT_TYPE_PROJECT, title=True)} or {get_display_name(PROJECT_TYPE_CATEGORY, title=True)}',
'icon': 'mdi:plus-thick',
'active': self._is_active_projectroles(
link_names=['create'],
Expand All @@ -291,7 +291,7 @@ def get_project_app_links(
{
'name': 'project-create',
'url': reverse('projectroles:create'),
'label': 'Create Project',
'label': f'Create {get_display_name(PROJECT_TYPE_PROJECT, title=True)}',
'icon': 'mdi:plus-thick',
'active': self._is_active_projectroles(
link_names=['create'],
Expand All @@ -309,7 +309,7 @@ def get_project_app_links(
{
'name': 'home-project-create',
'url': reverse('projectroles:create'),
'label': 'Create Category',
'label': f'Create {get_display_name(PROJECT_TYPE_CATEGORY, title=True)}',
'icon': 'mdi:plus-thick',
'active': self._is_active_projectroles(
link_names=['create'],
Expand Down

0 comments on commit 9d1353f

Please sign in to comment.