-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2009 from somiaj/admin-course-menu
Add customized menu for the admin course.
- Loading branch information
Showing
3 changed files
with
55 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<h2 class="navbar-brand mb-0"><%= maketext('Admin Menu') %></h2> | ||
<ul class="nav flex-column"> | ||
<li class="list-group-item list-group-item-primary nav-item"> | ||
<%= link_to maketext('Courses') => 'root', class => 'nav-link' %> | ||
</li> | ||
<li class="list-group-item list-group-item-primary nav-item"> | ||
<%= $makelink->( | ||
'set_list', | ||
text => maketext('Course Administration'), | ||
active => !param('subDisplay') && $c->url_for =~ /admin$/ ? 1 : 0 | ||
) %> | ||
</li> | ||
% for ( | ||
% [ | ||
% 'add_course', | ||
% maketext('Add Course'), | ||
% { | ||
% add_admin_users => 1, | ||
% add_config_file => 1, | ||
% add_dbLayout => 'sql_single', | ||
% add_templates_course => $ce->{siteDefaults}{default_templates_course} || '' | ||
% } | ||
% ], | ||
% [ 'rename_course', maketext('Rename Course') ], | ||
% [ 'delete_course', maketext('Delete Course') ], | ||
% [ 'archive_course', maketext('Archive Course') ], | ||
% [ 'unarchive_course', maketext('Unarchive Course') ], | ||
% [ 'upgrade_course', maketext('Upgrade Courses') ], | ||
% [ 'manage_locations', maketext('Manage Locations') ], | ||
% [ 'hide_inactive_course', maketext('Hide Courses') ], | ||
% ) | ||
% { | ||
<li class="list-group-item list-group-item-primary nav-item"> | ||
<%= $makelink->( | ||
'set_list', | ||
text => $_->[1], | ||
systemlink_params => { subDisplay => $_->[0], %{ $_->[2] // {} } }, | ||
active => (param('subDisplay') // '') eq $_->[0], | ||
) %> | ||
</li> | ||
% } | ||
<li class="list-group-item list-group-item-primary nav-item"><%= $makelink->('options') %></li> | ||
<li class="list-group-item list-group-item-primary nav-item"><%= $makelink->('instructor_user_list') %></li> | ||
<li class="list-group-item list-group-item-primary nav-item"><%= $makelink->('instructor_mail_merge') %></li> | ||
<li class="list-group-item list-group-item-primary nav-item"><%= $makelink->('instructor_file_manager') %></li> | ||
<li class="list-group-item list-group-item-primary nav-item"> | ||
<%= link_to maketext('Report bugs') => $ce->{webworkURLs}{bugReporter}, class => 'nav-link' =%> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters