diff --git a/trainav.web/Pages/Index.cshtml b/trainav.web/Pages/Index.cshtml
index 5ff6225..d9aa7d4 100644
--- a/trainav.web/Pages/Index.cshtml
+++ b/trainav.web/Pages/Index.cshtml
@@ -41,15 +41,15 @@
var legs = db.Legs.Where(p => p.TripId == trip.TripId).OrderBy(p => p.DepTime).ToList();
- @legs.First().DepStation.Delimit(30)
+ @legs.First().DepStation.Delimit(35)
@DateTime.Parse(legs.First().DepTime).ToString("ddd dd.MM.yyyy, HH:mm")
|
- @((from index in from leg in legs where leg.TrainType == "placeholder" select legs.IndexOf(leg) select legs[index - 1].ArrStation.Delimit(30)).ToList().DefaultIfEmpty("-").Aggregate((s1, s2) => $"{s1}, {s2}"))
+ @((from index in from leg in legs where leg.TrainType == "placeholder" select legs.IndexOf(leg) select legs[index - 1].ArrStation.Delimit(35)).ToList().DefaultIfEmpty("-").Aggregate((s1, s2) => $"{s1}, {s2}"))
|
- @legs.Last().ArrStation.Delimit(30)
+ @legs.Last().ArrStation.Delimit(35)
@DateTime.Parse(legs.Last().ArrTime).ToString("ddd dd.MM.yyyy, HH:mm")
|
diff --git a/trainav.web/Pages/SharedTrip.cshtml b/trainav.web/Pages/SharedTrip.cshtml
index 3bdecbc..92a9de6 100644
--- a/trainav.web/Pages/SharedTrip.cshtml
+++ b/trainav.web/Pages/SharedTrip.cshtml
@@ -1,4 +1,5 @@
@page
+@using trainav.web.Utils
@model SharedTripModel
@{
ViewData["Title"] = "Shared Trip";
@@ -55,10 +56,10 @@
@date
- @dept @Html.Raw(leg.DepStation.PadRight(30, ' ').Substring(0, 30).TrimEnd())
+ @dept @Html.Raw(leg.DepStation.Delimit(35))
|
- @arrt @Html.Raw(leg.ArrStation.PadRight(30, ' ').Substring(0, 30).TrimEnd())
+ @arrt @Html.Raw(leg.ArrStation.Delimit(35))
|
@leg.TrainType @leg.TrainNr |
@@ -76,4 +77,4 @@
-Download ICS
\ No newline at end of file
+Download ICS
diff --git a/trainav.web/Pages/Trip.cshtml b/trainav.web/Pages/Trip.cshtml
index d21e358..b216d3f 100644
--- a/trainav.web/Pages/Trip.cshtml
+++ b/trainav.web/Pages/Trip.cshtml
@@ -84,10 +84,10 @@
@date
|
- @dept @Html.Raw(leg.DepStation.PadRight(30, ' ').Substring(0, 30).TrimEnd())
+ @dept @Html.Raw(leg.DepStation.Delimit(35))
|
- @arrt @Html.Raw(leg.ArrStation.PadRight(30, ' ').Substring(0, 30).TrimEnd())
+ @arrt @Html.Raw(leg.ArrStation.Delimit(35))
|
@leg.TrainType @leg.TrainNr |
@if (!Request.Query.ContainsKey("edit")) {