diff --git a/app/controllers/users/settings/account/addons_controller.rb b/app/controllers/users/settings/account/addons_controller.rb index c1777ba3c..1c89c96d4 100644 --- a/app/controllers/users/settings/account/addons_controller.rb +++ b/app/controllers/users/settings/account/addons_controller.rb @@ -9,6 +9,7 @@ module Users def index @label_printer_any = LabelPrinter.any? + @user_agent = request.user_agent end private diff --git a/app/views/users/settings/account/addons/index.html.erb b/app/views/users/settings/account/addons/index.html.erb index e1550715e..68f58a22a 100644 --- a/app/views/users/settings/account/addons/index.html.erb +++ b/app/views/users/settings/account/addons/index.html.erb @@ -7,7 +7,58 @@

<%= t('users.settings.account.addons.title') %>

- +
+
+
+
+

<%= t('users.settings.account.addons.desktop_app.title') %>

+

+ <%= t('users.settings.account.addons..desktop_app.description') %> +


+
+ <% if @user_agent =~ /Windows/ %> + <%= link_to '#', + class: 'btn btn-primary new-project-btn', + title: t('users.settings.account.addons.desktop_app.windows_button'), + remote: true do %> + + <% end %> +

<%= t('users.settings.account.addons.desktop_app.version') %> 5.16.5 (24419)

+ <% elsif @user_agent =~ /Mac OS/ %> + <%= link_to '#', + class: 'btn btn-primary new-project-btn', + title: t('users.settings.account.addons.desktop_app.macos_button'), + remote: true do %> + + <% end %> +

<%= t('users.settings.account.addons.desktop_app.version') %> 5.16.5 (24419)

+ <% else %> +
+
+ <%= link_to '#', + class: 'btn btn-primary new-project-btn', + title: t('users.settings.account.addons.desktop_app.macos_button'), + remote: true do %> + + <% end %> +

<%= t('users.settings.account.addons.desktop_app.version') %> 5.16.5 (24419)

+
+
+ <%= link_to '#', + class: 'btn btn-primary new-project-btn ml-2', + title: t('users.settings.account.addons.desktop_app.windows_button'), + remote: true do %> + + <% end %> +

<%= t('users.settings.account.addons.desktop_app.version') %> 5.16.5 (24419)

+
+
+ <% end %> +
+
+
+
+

<%= t('users.settings.account.addons.scinote_addons') %>

diff --git a/config/locales/en.yml b/config/locales/en.yml index a33939486..a3fbf0a12 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2719,6 +2719,12 @@ en: title: 'Zebra label printers' description: 'Print labels of custom styles and sizes in seconds flat from your PC or Mac via your Zebra printer connected via USB, Internet or LAN.' details: 'Details' + desktop_app: + title: 'SciNote File Editor desktop app' + description: 'Download the SciNote File Editor desktop app to automatically edit files using locally installed software' + macos_button: 'Download for macOS' + windows_button: 'Download for Windows' + version: 'Version' label_printer: fluics_printer: "FLUICS Print: Label printers" zebra_printer: 'Zebra label printers'