diff --git a/app/services/icon.rb b/app/services/icon.rb index a50e868fd9d3ae4e51b3df014c87b2c02d5632bc..f67430b5860ec5d0f42f220593c05d7517d160bd 100644 --- a/app/services/icon.rb +++ b/app/services/icon.rb @@ -10,6 +10,9 @@ class Icon COMMUNICATION_WEBSITE_PAGES = 'sitemap' COMMUNICATION_WEBSITE_MENUS = 'bars' COMMUNICATION_WEBSITE_ANALYTICS = 'chart-pie' + COMMUNICATION_WEBSITE_PREVIEW_MOBILE = 'mobile-alt' + COMMUNICATION_WEBSITE_PREVIEW_TABLET = 'tablet-alt' + COMMUNICATION_WEBSITE_PREVIEW_DESKTOP = 'laptop' EDUCATION_DIPLOMA = 'graduation-cap' EDUCATION_PROGRAM = 'chalkboard-teacher' diff --git a/app/views/admin/application/_preview.html.erb b/app/views/admin/application/_preview.html.erb index 6e10605cbc9f350eb29ebbf4369f8a9ff74b42c2..89af7d270b980a6518156dba879cfbc4f2eadef4 100644 --- a/app/views/admin/application/_preview.html.erb +++ b/app/views/admin/application/_preview.html.erb @@ -8,15 +8,15 @@ <h5 class="modal-title h4"><%= t 'preview.title' %></h5> <div class="btn-group m-auto" role="group" aria-label="Basic example"> <button type="button" class="btn btn-primary preview__button" data-mode="mobile"> - <i class="fas fa-mobile-alt"></i> + <i class="fas fa-<%= Icon::COMMUNICATION_WEBSITE_PREVIEW_MOBILE %>"></i> <%= t 'preview.mobile' %> </button> <button type="button" class="btn btn-light preview__button" data-mode="tablet"> - <i class="fas fa-tablet-alt"></i> + <i class="fas fa-<%= Icon::COMMUNICATION_WEBSITE_PREVIEW_TABLET %>"></i> <%= t 'preview.tablet' %> </button> <button type="button" class="btn btn-light preview__button" data-mode="desktop"> - <i class="fas fa-desktop"></i> + <i class="fas fa-<%= Icon::COMMUNICATION_WEBSITE_PREVIEW_DESKTOP %>"></i> <%= t 'preview.desktop' %> </button> </div> diff --git a/config/locales/fr.yml b/config/locales/fr.yml index d6ff7c7d58f7db7a2916ff779070495020bfb808..50fb3b6871d3b6ce0bb66b5c6b686cbb5ac089d3 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -236,7 +236,7 @@ fr: title: Prévisualisation mobile: Mobile tablet: Tablette - desktop: Ordinateur de bureau + desktop: Ordinateur privacy_policy: Politique de confidentialité privacy_policy_url: https://osuny.org/politique-de-confidentialite properties: