[MTE-15] Remove redundant methods getFileExtension(String) and getSizeString(long) from TeaserDownloadModel and LinkModel and use methods from templating functions instead Created: 14/Apr/15  Updated: 15/Apr/15  Resolved: 14/Apr/15

Status: Closed
Project: Magnolia Templating Essentials
Component/s: models
Affects Version/s: None
Fix Version/s: 0.5

Type: Improvement Priority: Neutral
Reporter: Philip Mundt Assignee: Philip Mundt
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
depends upon MAGNOLIA-6163 Add method to templating functions to... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   
  • Remove methods and use cmsfn's methods instead
    • info.magnolia.templating.models.LinkModel
    • info.magnolia.templating.models.components.TeaserDownloadModel
  • Remove translations key/value pairs (not required anymore)
  • Adjust templates
    • mte/components/teaser.ftl
    • mte/components/link.ftl


 Comments   
Comment by Philip Mundt [ 14/Apr/15 ]

SimpleTranslator can be removed from models / tests. i18n-files can also be removed.

Generated at Mon Feb 12 07:40:37 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.