forked from WKHarmon/united
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunited_template.ejs
6 lines (6 loc) · 965 Bytes
/
united_template.ejs
1
2
3
4
5
6
------------------------------
$<%= data['PricesByColumn']['ECONOMY-UPGRADEABLE-MUA'] %>
<%- "\u001b[32m" %><% if (!data['Upgrade']) { %><%- "\u001b[31m" %>E - <% }%><%= data['MarketingCarrier'] %><%= data['FlightNumber'] %> <%= data['DepartTimeFormat'] %> > <%= data['DestinationTimeFormat'] %><%- "\u001b[0m" %>
<%- "\u001b[32m" %><% if (!data['Upgrade']) { %><%- "\u001b[31m" %>E - <% }%><%= data['OriginDescription'] %> > <%= data['DestinationDescription'] %><%- "\u001b[0m" %><% _.forEach(data['Connections'], function(connect) { %>
<%- "\u001b[32m" %><% if (!connect['Upgrade']) { %><%- "\u001b[31m" %>E - <% }%><%= connect['MarketingCarrier'] %><%= connect['FlightNumber'] %> <%= connect['DepartTimeFormat'] %> > <%= connect['DestinationTimeFormat'] %><%- "\u001b[0m" %>
<%- "\u001b[32m" %><% if (!connect['Upgrade']) { %><%- "\u001b[31m" %>E - <% }%><%= connect['OriginDescription'] %> > <%= connect['DestinationDescription'] %><%- "\u001b[0m" %><% }) %>