Skip to content

Commit

Permalink
Rename external link list element to teasers
Browse files Browse the repository at this point in the history
REDMINE-20852, REDMINE-20896
  • Loading branch information
tf committed Jan 15, 2025
1 parent 2052706 commit b026c1c
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 50 deletions.
21 changes: 0 additions & 21 deletions entry_types/scrolled/config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ de:
name: Daten und Diagramme
interactive:
name: Interaktiv
links:
name: Verweise
media:
name: Media
content_elements:
Expand Down Expand Up @@ -219,30 +217,11 @@ de:
externalLinkList:
add: Hinzufügen
attributes:
description:
inline_help: Link-Beschreibung für die Darstellung im Beitrag.
label: Beschreibung
open_in_new_tab:
label: In neuem Tab öffnen
thumbnail:
inline_help: Dem Link zugeordnertes Bild für die Darstellung im Beitrag.
label: Miniaturansicht
title:
inline_help: Link-Überschrift für die Darstellung im Beitrag.
label: Titel
url:
inline_help: Absolute URL (inklusive http:// oder https://) des Links.
label: URL
back: Zurück
confirm_delete: Soll das Element wirklich gelöscht werden?
confirm_delete_link: Soll der Link wirklich gelöscht werden?
description: Sammlung von Verweisen zu Webseiten außerhalb des Beitrags
destroy: Löschen
name: Externe Verweise
outline: Gliederung
tabs:
edit_link: Link bearbeiten
general: Externe Verweise
heading:
attributes:
children:
Expand Down
21 changes: 0 additions & 21 deletions entry_types/scrolled/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ en:
name: Data and Diagrams
interactive:
name: Interactive
links:
name: Links
media:
name: Media
content_elements:
Expand Down Expand Up @@ -214,30 +212,11 @@ en:
externalLinkList:
add: Add
attributes:
description:
inline_help: Link-description for display in entry.
label: Description
open_in_new_tab:
label: Open in new tab
thumbnail:
inline_help: Link thumbnail image for display in entry.
label: Thumbnail
title:
inline_help: Link-title for display in entry.
label: Title
url:
inline_help: Absolute URL (inkluding http:// oder https://) of Link.
label: URL
back: Back
confirm_delete: Are you sure you want to delete this element?
confirm_delete_link: Are you sure you want to delete this link?
description: A collection of links to external websites
destroy: Delete
name: External links
outline: Outline
tabs:
edit_link: Edit Link
general: External Links
heading:
attributes:
children:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ de:
wide: Landscape (16:9)
original: Original
textPosition:
label: "Textposition"
label: "Beschriftung"
inline_help: |-
Anordnung von Bild und Text innerhalb von Links.
values:
below: "Unter dem Bild"
right: "Rechts neben dem Bild"
title: "Nur Bild"
title: "Keine"
thumbnailSize:
label: "Thumbnail-Breite"
inline_help: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ en:
wide: Landscape (16:9)
original: Original
textPosition:
label: "Text position"
label: "Caption"
inline_help: |-
Arrangement of image and text within links.
values:
below: "Below image"
right: "Right from image"
title: "Image only"
title: "None"
thumbnailSize:
label: "Thumbnail width"
inline_help: |-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
de:
pageflow_scrolled:
editor:
content_element_categories:
links: DELETED
tilesAndLinks:
name: Verweise und Kacheln
content_elements:
externalLinkList:
attributes:
description: DELETED
open_in_new_tab: DELETED
title: DELETED
url: DELETED
description: Liste von Kacheln mit Bild und Beschriftung
confirm_delete_item: Soll der Teaser wirklich gelöscht werden?
confirm_delete: DELETED
outline: DELETED
items: Einträge
name: Teaser-Liste
tabs:
general: Teaser-Liste
edit_link: Teaser
inline_editing:
external_links: DELETED
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
en:
pageflow_scrolled:
editor:
content_element_categories:
links: DELETED
tilesAndLinks:
name: Links and Tiles
content_elements:
externalLinkList:
attributes:
description: DELETED
open_in_new_tab: DELETED
title: DELETED
url: DELETED
description: A list of tiles with thumbnail and caption
confirm_delete_item: Are you sure you want to delete this teaser?
confirm_delete: DELETED
outline: DELETED
items: Items
name: Teasers
tabs:
general: Teasers
edit_link: Teaser
inline_editing:
external_links: DELETED
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const SidebarEditLinkView = Marionette.Layout.extend({
editor.navigate(`/scrolled/content_elements/${this.options.contentElement.get('id')}`, {trigger: true});
},
destroyLink: function () {
if (window.confirm(I18n.t('pageflow_scrolled.editor.content_elements.externalLinkList.confirm_delete_link'))) {
if (window.confirm(I18n.t('pageflow_scrolled.editor.content_elements.externalLinkList.confirm_delete_item'))) {
this.options.collection.remove(this.model);
this.goBack();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import I18n from 'i18n-js';

export const SidebarListView = Marionette.Layout.extend({
template: (data) => `
<label>Links</label>
<label>${I18n.t('pageflow_scrolled.editor.content_elements.externalLinkList.items')}</label>
<div class='${styles.linksContainer}'></div>
<button class="${buttonStyles.addButton}">
${I18n.t('pageflow_scrolled.editor.content_elements.externalLinkList.add')}
Expand Down Expand Up @@ -39,7 +39,7 @@ export const SidebarListView = Marionette.Layout.extend({
},

onRemove: function (linkModel) {
if (window.confirm(I18n.t('pageflow_scrolled.editor.content_elements.externalLinkList.confirm_delete_link'))) {
if (window.confirm(I18n.t('pageflow_scrolled.editor.content_elements.externalLinkList.confirm_delete_item'))) {
this.collection.remove(linkModel);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ editor.registerSideBarRouting({
// register external link list content element configuration editor for sidebar
editor.contentElementTypes.register('externalLinkList', {
pictogram,
category: 'links',
category: 'tilesAndLinks',
supportedPositions: ['inline', 'standAlone'],
supportedWidthRange: ['m', 'xl'],

Expand Down

0 comments on commit b026c1c

Please sign in to comment.