Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Fix admin link layout #148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/overrides/add_rich_editor_tab.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/FrozenStringLiteralComment: Missing magic comment # frozen_string_literal: true.

Deface::Override.new(
virtual_path: 'spree/admin/shared/sub_menu/_configuration',
name: 'add_rich_editor_tab',
insert_bottom: '[data-hook="admin_configurations_sidebar_menu"]',
text: '<li<%== " class=\"active\"" if controller.controller_name == "editor_settings" %>><%= link_to Spree.t(:rich_editor), spree.edit_admin_editor_settings_path %></li>'
text: "<%= tab Spree::Page, url: spree.edit_admin_editor_settings_path, label: Spree.t(:rich_editor) %>"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
Metrics/LineLength: Line is too long. [106/80]

)
9 changes: 9 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
fr:
spree:
enable_rich_editor: Activer le texte enrichi
rich_editor: Texte enrichi
rich_editor_description: Paramétrage du texte enrichi
rich_editor_engine: Moteur du texte enrichi
rich_editor_ids: Identifiants du texte enrichi
rich_editor_ids_description: "Lister les identifiants du champ texte, séparés par des espaces"