diff options
| author | Luc Donnet | 2014-10-02 10:02:16 +0200 |
|---|---|---|
| committer | Luc Donnet | 2014-10-02 10:02:16 +0200 |
| commit | defc59dabe41f6b39019b1df452138179e641ec5 (patch) | |
| tree | 648bfab0a31c820a6c44d864f14a6d65101a367e | |
| parent | 9433a2b9642508e20e9df72aefd663ee23830509 (diff) | |
| download | chouette-core-defc59dabe41f6b39019b1df452138179e641ec5.tar.bz2 | |
Fix display dates and periods title in show Refs #0029107
| -rw-r--r-- | app/views/time_tables/_show_time_table.html.erb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/time_tables/_show_time_table.html.erb b/app/views/time_tables/_show_time_table.html.erb index e11b8e683..a439aed1b 100644 --- a/app/views/time_tables/_show_time_table.html.erb +++ b/app/views/time_tables/_show_time_table.html.erb @@ -73,20 +73,27 @@ </div> + <% if @time_table.periods.present? %> <h3 class="time_table_periods"><%= @time_table.human_attribute_name("periods") %></h3> <div class="periods content"> <%= render "time_tables/periods" %> </div> + <% end %> + <% if @time_table.dates.where("in_out = true").present? %> <h3 class="time_table_dates"><%= @time_table.human_attribute_name("dates") %></h3> <div class="dates content"> <%= render "time_tables/dates" %> </div> + <% end %> + <% if @time_table.dates.where("in_out = false").present? %> <h3 class="time_table_dates"><%= @time_table.human_attribute_name("excluded_dates") %></h3> <div class="excluded_dates content"> <%= render "time_tables/excluded_dates" %> </div> + <% end %> + </div> </div> |
