diff --git a/translations/en.yaml b/translations/en.yaml index 4c5ce154..d3576cc1 100644 --- a/translations/en.yaml +++ b/translations/en.yaml @@ -210,3 +210,5 @@ en: Total weight: Total weight kayaking: kayaking Filter workouts: Filter workouts + Resources: Resources + "You can find inspiration here:": "You can find inspiration here:" diff --git a/views/route_segments/add.templ b/views/route_segments/add.templ index b84671d6..c103b4d7 100644 --- a/views/route_segments/add.templ +++ b/views/route_segments/add.templ @@ -63,6 +63,17 @@ templ Add() { +
+
+

{ i18n.T(ctx, "Resources") }

+
{ i18n.T(ctx, "You can find inspiration here:") }
+ +
+
} } diff --git a/views/route_segments/add_templ.go b/views/route_segments/add_templ.go index aaf29b04..fa4d717b 100644 --- a/views/route_segments/add_templ.go +++ b/views/route_segments/add_templ.go @@ -125,7 +125,33 @@ func Add() templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "

") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var9 string + templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(i18n.T(ctx, "Resources")) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `views/route_segments/add.templ`, Line: 68, Col: 35} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "

") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var10 string + templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(i18n.T(ctx, "You can find inspiration here:")) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `views/route_segments/add.templ`, Line: 69, Col: 57} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }