Skip to content

Commit

Permalink
Merge pull request #5996 from Martchus/plugin-op-links
Browse files Browse the repository at this point in the history
Show operator links of plugins (like OBS sync) only to operators
  • Loading branch information
mergify[bot] authored Oct 9, 2024
2 parents fa6a9c9 + a9c833c commit cfa1129
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions templates/webapi/layouts/navbar.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@
<!-- Sure this is not the proper place for the workers view,
but the previous one was even more annoying -->
%= link_to 'Workers' => url_for('admin_workers') => class => 'dropdown-item'
% my $operator_links = config->{plugin_links}{operator};
% for my $name (sort keys %$operator_links) {
%= link_to $name => url_for($operator_links->{$name}) => class => 'dropdown-item'
% if (is_operator) {
% my $operator_links = config->{plugin_links}{operator};
% for my $name (sort keys %$operator_links) {
%= link_to $name => url_for($operator_links->{$name}) => class => 'dropdown-item'
% }
% }
% if (is_admin) {
%= tag 'div' => class => 'dropdown-divider'
Expand Down

0 comments on commit cfa1129

Please sign in to comment.