Merge pull request #11004 from dacook/show-current-version

Show current version at bottom of admin dashboard
This commit is contained in:
David Cook
2023-06-16 09:26:00 +10:00
committed by GitHub
4 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
%a{href:"https://github.com/openfoodfoundation/openfoodnetwork/releases", target: "_blank", title: t('.view_all_releases')}
=# Show the latest tag. If there are commits since the tag, show number of commits and an identifier. If the working tree is dirty, show 'modified'.
= `git describe --tags --dirty=-modified`

View File

@@ -22,3 +22,5 @@
= render partial: "order_cycles"
= render partial: "enterprises"
= render partial: "version"

View File

@@ -81,3 +81,5 @@
%a.button.bottom{href: main_app.admin_order_cycles_path}
= t "manage_order_cycles"
%span.icon-arrow-right
= render partial: "version"

View File

@@ -4096,6 +4096,8 @@ See the %{link} to find out more about %{sitename}'s features and to start using
many: "You have %{count} active order cycles."
other: "You have %{count} active order cycles."
manage_order_cycles: "MANAGE ORDER CYCLES"
version:
view_all_releases: View all releases
shipping_methods:
index:
shipping_methods: "Shipping Methods"