aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/autocomplete_time_tables
diff options
context:
space:
mode:
authorXinhui2017-05-19 17:05:59 +0200
committerXinhui2017-05-19 17:06:05 +0200
commit730dcc8c0676be0c9dbbaa89ff7fc9f38f9c0d73 (patch)
tree7049979c10d2043db40d676709c6746b4486f5d0 /app/views/autocomplete_time_tables
parent716504283fb537c172dad318ee3d75c33e42f128 (diff)
downloadchouette-core-730dcc8c0676be0c9dbbaa89ff7fc9f38f9c0d73.tar.bz2
Edit select2 templateResult for Calendar & TimeTable
Refs #3431
Diffstat (limited to 'app/views/autocomplete_time_tables')
-rw-r--r--app/views/autocomplete_time_tables/index.rabl2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/autocomplete_time_tables/index.rabl b/app/views/autocomplete_time_tables/index.rabl
index bd478301d..f52429e9d 100644
--- a/app/views/autocomplete_time_tables/index.rabl
+++ b/app/views/autocomplete_time_tables/index.rabl
@@ -5,7 +5,7 @@ node do |time_table|
:time_table_bounding => time_table.presenter.time_table_bounding,
:composition_info => time_table.presenter.composition_info,
:tags => time_table.tags.join(','),
- :text => time_table.comment,
+ :text => "#{time_table.objectid.parts.try(:third)} - #{time_table.comment}",
:day_types => %w(monday tuesday wednesday thursday friday saturday sunday).select{ |d| time_table.send(d) }.map{ |d| time_table.human_attribute_name(d).first(2)}.join('')}
end