```ruby
Redmine::MenuManager.map :admin_menu do |menu|
  menu.push :redmine_git_hosting, { controller: 'settings', action: 'plugin', id: 'redmine_git_hosting' }, caption: :redmine_git_hosting
end

Redmine::MenuManager.map :top_menu do |menu|
  menu.push :archived_repositories, { controller: '/archived_repositories', action: 'index' },
            caption: :label_archived_repositories, after: :administration,
            if: Proc.new { User.current.logged? && User.current.admin? }
end
```

Fix plugin icon with Redmine 3.4.x
user
```ruby
Redmine::MenuManager.map :admin_menu do |menu|
  menu.push :redmine_git_hosting, { controller: 'settings', action: 'plugin', id: 'redmine_git_hosting' }, caption: :redmine_git_hosting, html: { class: 'icon' }
end

Redmine::MenuManager.map :top_menu do |menu|
  menu.push :archived_repositories, { controller: '/archived_repositories', action: 'index' },
            caption: :label_archived_repositories, after: :administration,
            if: Proc.new { User.current.logged? && User.current.admin? }
end
```
assistant