Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p id="reference">Booking Reference: <a href="#" target="_blank"><%= @journey.booking %></a></p>
- <table id="flights">
- <tbody>
- <tr class="outbound locations">
- <td>Outbound</td>
- <th><strong><%= @journey.outbound.departure_airport.shortcode %></strong> <%= @journey.outbound.departure_airport.name %></th>
- <th><strong><%= @journey.outbound.arrival_airport.shortcode %></strong> <%= @journey.outbound.arrival_airport.name %></th>
- </tr>
- <tr class="outbound times">
- <th scope="row"><%= @journey.outbound.airline.name %> <strong><span class="glyph">✈</span> EI715</strong></th>
- <td class="depart">
- <%= @journey.outbound.departure_time.to_formatted_s(:flightdate) %>
- <strong class="afternoon"><%= @journey.outbound.departure_time.to_formatted_s(:flighttime) %></strong>
- </td>
- <td class="arrive">
- <%= @journey.outbound.arrival_time.to_formatted_s(:flightdate) %>
- <strong class="afternoon"><%= @journey.outbound.arrival_time.to_formatted_s(:flighttime) %></strong>
- </td>
- </tr>
- <tr class="return locations">
- <td>Return</td>
- <th><strong><%= @journey.homeward.departure_airport.shortcode %></strong> <%= @journey.homeward.departure_airport.name %></th>
- <th><strong><%= @journey.homeward.arrival_airport.shortcode %></strong> <%= @journey.homeward.arrival_airport.name %></th>
- </tr>
- <tr class="return times">
- <th scope="row"><%= @journey.homeward.airline.name %> <strong><span class="glyph">✈</span> EI724</strong></th>
- <td class="depart">
- <%= @journey.homeward.departure_time.to_formatted_s(:flightdate) %>
- <strong class="afternoon"><%= @journey.homeward.departure_time.to_formatted_s(:flighttime) %></strong>
- </td>
- <td class="arrive">
- <%= @journey.homeward.arrival_time.to_formatted_s(:flightdate) %>
- <strong class="afternoon"><%= @journey.homeward.arrival_time.to_formatted_s(:flighttime) %></strong>
- </td>
- </tr>
- </tbody>
- </table>
Add Comment
Please, Sign In to add comment