fix typo
This commit is contained in:
parent
7de608cd64
commit
74da12bd1e
3 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
%div{ id: dom_id(attachment, :show), class: class_names("attachment-error": error?, "fr-mb-2w": !should_display_link?) }
|
||||
- if should_display_link?
|
||||
= render Dsfr::DownloadComponent.new(attachment: attachment, virus_not_analized: !attachment.virus_scanner.started?, new_tab: new_tab)
|
||||
= render Dsfr::DownloadComponent.new(attachment: attachment, virus_not_analyzed: !attachment.virus_scanner.started?, new_tab: new_tab)
|
||||
|
||||
- else
|
||||
.attachment-filename.fr-mb-1w.fr-mr-1w= attachment.filename.to_s
|
||||
|
|
|
@ -3,15 +3,15 @@ class Dsfr::DownloadComponent < ApplicationComponent
|
|||
attr_reader :html_class
|
||||
attr_reader :name
|
||||
attr_reader :ephemeral_link
|
||||
attr_reader :virus_not_analized
|
||||
attr_reader :virus_not_analyzed
|
||||
attr_reader :new_tab
|
||||
|
||||
def initialize(attachment:, name: nil, url: nil, ephemeral_link: false, virus_not_analized: false, new_tab: false)
|
||||
def initialize(attachment:, name: nil, url: nil, ephemeral_link: false, virus_not_analyzed: false, new_tab: false)
|
||||
@attachment = attachment
|
||||
@name = name || attachment.filename.to_s
|
||||
@url = url
|
||||
@ephemeral_link = ephemeral_link
|
||||
@virus_not_analized = virus_not_analized
|
||||
@virus_not_analyzed = virus_not_analyzed
|
||||
@new_tab = new_tab
|
||||
end
|
||||
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
%span.fr-icon-questionnaire-line{ "aria-hidden": "true" }
|
||||
= t('.ephemeral_link')
|
||||
|
||||
- if virus_not_analized
|
||||
- if virus_not_analyzed
|
||||
.fr-text--xs.fr-text-mention--grey
|
||||
= t('.virus_not_analyzed')
|
||||
|
|
Loading…
Add table
Reference in a new issue