Skip to content

Commit

Permalink
Change "Help" links to be more specific.
Browse files Browse the repository at this point in the history
  • Loading branch information
drgrice1 committed Dec 11, 2024
1 parent fc43d68 commit 5ba091d
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ sub fieldHTML ($c, $userID, $setID, $problemID, $globalRecord, $userRecord, $fie
},
$c->c(
$c->tag('i', class => 'icon fas fa-question-circle', 'aria-hidden' => 'true'),
$c->tag('span', class => 'visually-hidden', $c->maketext('Help'))
$c->tag('span', class => 'visually-hidden', $c->maketext('[_1] Help', $properties{name}))
)->join('')
)
: '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@
. 'inspect the new course configuration file and make adjustments for the new instructor.') =%>"
>
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') =%></span>
<span class="visually-hidden">
<%= maketext('Notes regarding copying the course configuration file') =%>
</span>
</a>
</label>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/ContentGenerator/Grades/student_stats.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
. 'has not been attempted. The bottom number is the number of incorrect attempts.'
) =%>">
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') %></span>
<span class="visually-hidden"><%= maketext('Problem Score Help') %></span>
</a>
</th>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
tabindex => 0,
begin =%>
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') =%></span>
<span class="visually-hidden"><%= maketext('Hardcopy Format Help') =%></span>
<% end =%>
<% end =%>
<div class="col-auto">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
. 'their username and password on the student\'s screen for authentication.'
) =%>">
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') =%></span>
<span class="visually-hidden"><%= maketext('Proctor Password Help') =%></span>
</a>
</td>
<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
'Success index is the square of the average score divided by the average number of attempts.'
) %>">
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') =%></span>
<span class="visually-hidden"><%= maketext('Success Index Help') =%></span>
</a>
</th>
<td><%= sprintf('%0.1f', 100 * $successIndex) %></td>
Expand Down Expand Up @@ -88,7 +88,7 @@
data-bs-content="<%=
maketext('Success index is the square of the score divided by the number of attempts.') =%>">
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') =%></span>
<span class="visually-hidden"><%= maketext('Success Index Help') =%></span>
</a>
% end
% push @tableHeaders, $successIndexHeader->();
Expand Down
6 changes: 3 additions & 3 deletions templates/ContentGenerator/Instructor/Stats/set_stats.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
. 'Indvidual students may have different settings.'
) %>">
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') =%></span>
<span class="visually-hidden"><%= maketext('Set Status Help') =%></span>
</a>
</th>
<td>
Expand Down Expand Up @@ -49,7 +49,7 @@
. 'template answer date has passed. See Set Detail page for actual availability.'
) =%>">
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') =%></span>
<span class="visually-hidden"><%= maketext('Answer Availability Help') =%></span>
</a>
% }
</td>
Expand Down Expand Up @@ -108,7 +108,7 @@
data-bs-content="<%= maketext(
'Success index is the square of the average score divided by the average number of attempts.') %>">
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') =%></span>
<span class="visually-hidden"><%= maketext('Success Index Help') =%></span>
</a>
% end
%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
. 'has not been attempted. The bottom number is the number of incorrect attempts.'
) =%>">
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') =%></span>
<span class="visually-hidden"><%= maketext('Problem Score Help') =%></span>
</a>
</th>
% }
Expand Down
2 changes: 1 addition & 1 deletion templates/ContentGenerator/ProblemSet/problem_list.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
begin =%>
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') =%></span>
<span class="visually-hidden"><%= maketext('Adjusted Status Help') =%></span>
<% end =%>
</th>
<th><%= maketext('Counts for Parent') %></th>
Expand Down
6 changes: 3 additions & 3 deletions templates/HTML/SingleProblemGrader/grader.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
begin =%>
<i class="icon fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help') =%></span>
<span class="visually-hidden"><%= maketext('Answer Score Help') =%></span>
<% end =%>
<% end =%>
<div class="col-sm">
Expand Down Expand Up @@ -150,7 +150,7 @@
},
begin =%>
<i class="fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help Icon') %></span>
<span class="visually-hidden"><%= maketext('Point Value Help') %></span>
<% end =%>
<% end =%>
<div class="col-sm">
Expand Down Expand Up @@ -220,7 +220,7 @@
},
begin =%>
<i class="fas fa-question-circle" aria-hidden="true"></i>
<span class="visually-hidden"><%= maketext('Help Icon') %></span>
<span class="visually-hidden"><%= maketext('Problem Score Help') %></span>
<% end =%>
<% end =%>
<div class="col-sm">
Expand Down

0 comments on commit 5ba091d

Please sign in to comment.