Skip to content

Commit

Permalink
Use formatted year
Browse files Browse the repository at this point in the history
jorg-vr committed Nov 21, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent db73637 commit 4cd912c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/_searchbar.html.erb
Original file line number Diff line number Diff line change
@@ -161,7 +161,7 @@
return course.id.toString();
},
multi: false,
data: <%= raw local_assigns.fetch(:courses, []).map{|course| {id: course.id, name: "#{course.name} (#{course.year})"}}.to_json %>,
data: <%= raw local_assigns.fetch(:courses, []).map{|course| {id: course.id, name: "#{course.name} (#{course.formatted_year})"}}.to_json %>,
color: function () {
return "orange";
}

0 comments on commit 4cd912c

Please sign in to comment.