Skip to content

Commit

Permalink
Use btn-light instead of btn-info in UI.
Browse files Browse the repository at this point in the history
Since btn-info is used for PG feedback, this hack is for the math4-bsu
theme to make all secondary buttons use BSU orange.
  • Loading branch information
somiaj committed Aug 20, 2024
1 parent 99a8946 commit edea4f9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion templates/ContentGenerator/GatewayQuiz.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
<div class="col-md-2 text-end mb-1">
<%= link_to maketext('Print Test') =>
$c->systemLink(url_for('hardcopy_preselect_set', setID => "$setID,v$setVersionID")),
class => 'btn btn-info' =%>
class => 'btn btn-light' =%>
</div>
</div>
% }
Expand Down
12 changes: 6 additions & 6 deletions templates/ContentGenerator/Instructor/PGProblemEditor.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@
<%= link_to maketext('Sample Problems') => url_for('sample_problem_index'),
target => 'techniques_window',
title => maketext('POD for macros and sample problem code and snippets'),
class => 'reference-link btn btn-sm btn-info',
class => 'reference-link btn btn-sm btn-light',
data => { bs_toggle => 'tooltip', bs_placement => 'top' } =%>
% # http://webwork.maa.org/wiki/Category:MathObjects
<%= link_to maketext('Math Objects') => $ce->{webworkURLs}{MathObjectsHelpURL},
target => 'math_objects',
title => maketext('Wiki summary page for MathObjects'),
class => 'reference-link btn btn-sm btn-info',
class => 'reference-link btn btn-sm btn-light',
data => { bs_toggle => 'tooltip', bs_placement => 'top' } =%>
% # PG POD served locally
<%= link_to maketext('POD') => url_for('pod_index'),
target => 'pod_docs',
title => maketext('Documentation from source code for PG modules and macro files.'),
class => 'reference-link btn btn-sm btn-info',
class => 'reference-link btn btn-sm btn-light',
data => { bs_toggle => 'tooltip', bs_placement => 'top' } =%>
% # PGML lab problem rendered as an unattached problem in a new window.
% my $pgml_lab_source = readFile("$ce->{webworkDirs}{assets}/pg/PGMLLab/PGML-lab.pg");
Expand All @@ -123,14 +123,14 @@
. 'This interactive lab can help you to learn the techniques.'
),
id => 'pgml-lab',
class => 'reference-link btn btn-sm btn-info',
class => 'reference-link btn btn-sm btn-light',
data => { source => url_escape($pgml_lab_source), bs_toggle => 'tooltip', bs_placement => 'top' },
'PGML' =%>
% # http://webwork.maa.org/wiki/Category:Authors
<%= link_to maketext('Author Info') => $ce->{webworkURLs}{AuthorHelpURL},
target => 'author_info',
title => maketext('Top level of author information on the wiki.'),
class => 'reference-link btn btn-sm btn-info',
class => 'reference-link btn btn-sm btn-light',
data => { bs_toggle => 'tooltip', bs_placement => 'top' } =%>
% # Only show the report bugs in problem button if editing an OPL or Contrib problem.
% if ($ce->{webworkURLs}{OPLBugReporter}
Expand All @@ -149,7 +149,7 @@
. 'The very first time you do this you will need to register with an email address so that '
. 'information on the bug fix can be reported back to you.'
),
class => 'reference-link btn btn-sm btn-info',
class => 'reference-link btn btn-sm btn-light',
data => { bs_toggle => 'tooltip', bs_placement => 'top' } =%>
% }
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
id => 'action_hardcopy_seed_id', class => 'form-control form-control-sm' =%>
</div>
<div class="col-auto mb-2">
<button id="randomize_hardcopy_seed_id" class="btn btn-info btn-sm" type="button">
<button id="randomize_hardcopy_seed_id" class="btn btn-light btn-sm" type="button">
<%= maketext('Randomize Seed') =%>
</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
id => 'action_view_seed_id', class => 'form-control form-control-sm' =%>
</div>
<div class="col-auto mb-2">
<button id="randomize_view_seed_id" class="btn btn-info btn-sm" type="button">
<button id="randomize_view_seed_id" class="btn btn-light btn-sm" type="button">
<%= maketext('Randomize Seed') =%>
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/ContentGenerator/ProblemSet/info.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
url_for('instructor_problem_editor_withset_withproblem', setID => $c->{set}->set_id, problemID => 0),
params => { file_type => 'set_header' }
),
target => 'WW_Editor', class => 'btn btn-sm btn-info m-1' =%>
target => 'WW_Editor', class => 'btn btn-sm btn-light m-1' =%>
</h2>
% } else {
<h2><%= maketext('Set Info') %></h2>
Expand Down
2 changes: 1 addition & 1 deletion templates/ContentGenerator/ProblemSets/info.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= maketext('Course Info') =%>
<%= link_to(maketext('Edit') =>
$c->systemLink(url_for('instructor_problem_editor'), params => { file_type => 'course_info' }),
target => 'WW_Editor', class => 'btn btn-sm btn-info m-1') =%>
target => 'WW_Editor', class => 'btn btn-sm btn-light m-1') =%>
</h2>
% if (stash('course_info_error')) {
<div class="alert alert-danger p-1 mb-0"><%= stash('course_info_error') %></div>
Expand Down

0 comments on commit edea4f9

Please sign in to comment.