Skip to content

Commit

Permalink
Merge branch 'release/6.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Oct 3, 2022
2 parents 14c434c + 038d0f4 commit 2881da0
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/code_listing/code_listing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class CodeListing {
public readonly code: string;
public readonly codeLines: number;
public readonly submissionId: number;
public readonly courseId: number;
public readonly courseId: number | null;
public readonly exerciseId: number;
public readonly userId: number;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class AnnotationForm extends watchMixin(ShadowlessLitElement) {
<div class="clearfix annotation-help-block">
<span class='help-block'>${unsafeHTML(I18n.t("js.user_annotation.help"))}</span>
${this.questionMode ? html`
<span class='help-block'>${I18n.t("js.user_annotation.help_student")}</span>
<span class='help-block'>${unsafeHTML(I18n.t("js.user_annotation.help_student"))}</span>
` : ""}
<span class="help-block float-end">
<span class="used-characters">${I18n.formatNumber(this.annotationText.length)}</span> / ${I18n.formatNumber(maxLength)}
Expand Down
4 changes: 4 additions & 0 deletions app/assets/stylesheets/bootstrap_style_overrides.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,7 @@ blockquote {
display: none;
}
}

.list-group .list-group-item {
background-color: $background;
}
4 changes: 2 additions & 2 deletions app/assets/stylesheets/models/questions.css.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.question-table {
col.actions {
width: 80px;
width: 100px;
}

col.age {
Expand Down Expand Up @@ -28,7 +28,7 @@

.question-index-table {
col.actions {
width: 80px;
width: 100px;
}

col.age {
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/renderers/feedback_code_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def add_messages(submission, messages, user)
@builder.script(type: 'application/javascript') do
@builder << <<~HEREDOC
window.MathJax.startup.promise.then(() => {
window.dodona.codeListing = new window.dodona.codeListingClass(#{submission.id}, #{submission.course_id}, #{submission.exercise_id}, #{user.id}, #{@code.to_json}, #{@code.lines.length}, #{user_is_student});
window.dodona.codeListing = new window.dodona.codeListingClass(#{submission.id}, #{submission.course_id.to_json}, #{submission.exercise_id}, #{user.id}, #{@code.to_json}, #{@code.lines.length}, #{user_is_student});
window.dodona.codeListing.addMachineAnnotations(#{messages.to_json});
#{'window.dodona.codeListing.initAnnotateButtons();' if user_perm}
window.dodona.codeListing.loadUserAnnotations();
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/00_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Application
module Version
MAJOR = 6
MINOR = 1
PATCH = 1
PATCH = 2

STRING = [MAJOR, MINOR, PATCH].compact.join('.')
end
Expand Down
2 changes: 2 additions & 0 deletions lib/SAML/strategy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def on_callback_path?
def handle_response(raw, settings)
# Parse the raw response.
opts = response_options.merge(settings: settings)
# Allow clock drift to account for clock skew between servers.
opts = opts.merge({:allowed_clock_drift => 2.seconds})
parsed_response = OneLogin::RubySaml::Response.new(raw, opts)
parsed_response.soft = false

Expand Down

0 comments on commit 2881da0

Please sign in to comment.