Skip to content

Commit

Permalink
Use svg icons for admin menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Nov 12, 2024
1 parent f8a5a61 commit aab0ba7
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 19 deletions.
57 changes: 56 additions & 1 deletion assets/images/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 0 additions & 17 deletions assets/stylesheets/additionals.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
#admin-menu a.additionals::before {
font-family: 'Font Awesome 5 Free';
font-size: 1.1em;
font-weight: 900;
content: '\f085'; /* fas fa-cogs */
padding-right: 4px;
}

#admin-menu a.additionals {
padding-left: 0;
}

#top-menu a.top-submenu {
padding-bottom: 10px;
}
Expand Down Expand Up @@ -143,11 +131,6 @@ svg.a-s12 {
height: 0.75rem;
}

/* Mobile menu style FontAwesome icon */
.flyout-is-active #admin-menu li a.additionals {
padding-left: 8px !important;
}

.sudo-admin { color: #d80000; }

.nodata.nodata-left { text-align: left; }
Expand Down
7 changes: 6 additions & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@

requires_redmine version_or_higher: '6.0'

menu :admin_menu, :additionals, { controller: 'settings', action: 'plugin', id: 'additionals' }, caption: :label_additionals
menu :admin_menu,
:additionals,
{ controller: 'settings', action: 'plugin', id: 'additionals' },
caption: :label_additionals,
plugin: 'additionals',
icon: 'additionals'
end

RedminePluginKit::Loader.persisting do
Expand Down

0 comments on commit aab0ba7

Please sign in to comment.