Update deps; move to .NET 7

- Update local htmx to v1.9.2
- Get version from assembly
This commit is contained in:
2023-05-23 21:14:08 -04:00
parent c697001736
commit 3df5c71d81
4 changed files with 22 additions and 74 deletions

View File

@@ -30,3 +30,13 @@ let noResults heading link buttonText text =
/// Create a date with a span tag, displaying the relative date with the full date/time in the tooltip
let relativeDate (date : Instant) now (tz : DateTimeZone) =
span [ _title (date.InZone(tz).ToDateTimeOffset().ToString ("f", null)) ] [ Dates.formatDistance now date |> str ]
/// The version of myPrayerJournal
let version =
let v = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version
seq {
string v.Major
if v.Minor > 0 then
$".{v.Minor}"
if v.Revision > 0 then $".{v.Revision}"
} |> Seq.reduce (+)

View File

@@ -95,7 +95,7 @@ let toaster =
let htmlFoot =
footer [ _class "container-fluid" ] [
p [ _class "text-muted text-end" ] [
str "myPrayerJournal v3.1.1"
str $"myPrayerJournal {version}"
br []
em [] [
small [] [