Skip to content

Commit 9aa0435

Browse files
authored
Merge pull request #2045 from Alex-Jordan/userDetail
alternate pathway to user detail
2 parents 5c9948d + fbfbb01 commit 9aa0435

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

templates/ContentGenerator/Base/links.html.ep

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,33 @@
8989
<li class="list-group-item nav-item"><%= $makelink->('instructor_tools') %></li>
9090
% # Class list editor
9191
<li class="list-group-item nav-item"><%= $makelink->('instructor_user_list') %></li>
92+
% # User Assignments
93+
% if (defined $eUserID && $eUserID ne $userID || defined $urlUserID) {
94+
<li class="list-group-item nav-item">
95+
<ul class="nav flex-column">
96+
% if (defined $urlUserID) {
97+
<li class="nav-item">
98+
<%= $makelink->(
99+
'instructor_user_detail',
100+
text => $urlUserID,
101+
captures => { userID => $urlUserID },
102+
link_attrs => { dir => 'ltr' }
103+
); %>
104+
</li>
105+
% }
106+
% if ($userID ne $eUserID && (!defined $urlUserID || $urlUserID ne $eUserID)) {
107+
<li class="nav-item">
108+
<%= $makelink->(
109+
'instructor_user_detail',
110+
text => $eUserID,
111+
captures => { userID => $eUserID },
112+
link_attrs => { dir => 'ltr' }
113+
); %>
114+
</li>
115+
% }
116+
</ul>
117+
</li>
118+
% }
92119
% # Homework Set Editor
93120
<li class="list-group-item nav-item"><%= $makelink->('instructor_set_list') %></li>
94121
% # Editor link. Only shown for non-versioned sets
@@ -136,6 +163,7 @@
136163
'instructor_user_statistics',
137164
text => $urlUserID,
138165
captures => { userID => $urlUserID },
166+
link_attrs => { dir => 'ltr' }
139167
) %>
140168
</li>
141169
% }
@@ -146,7 +174,8 @@
146174
text => $eUserID,
147175
captures => { userID => $eUserID },
148176
active => current_route eq 'instructor_user_statistics'
149-
&& !defined $urlUserID
177+
&& !defined $urlUserID,
178+
link_attrs => { dir => 'ltr' }
150179
) %>
151180
</li>
152181
% }
@@ -189,6 +218,7 @@
189218
'instructor_user_progress',
190219
text => $urlUserID,
191220
captures => { userID => $urlUserID },
221+
link_attrs => { dir => 'ltr' }
192222
) %>
193223
</li>
194224
% }
@@ -199,7 +229,8 @@
199229
text => $eUserID,
200230
captures => { userID => $eUserID },
201231
active => current_route eq 'instructor_user_progress'
202-
&& !defined $urlUserID
232+
&& !defined $urlUserID,
233+
link_attrs => { dir => 'ltr' }
203234
) %>
204235
</li>
205236
% }

0 commit comments

Comments
 (0)