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?) }
|
%div{ id: dom_id(attachment, :show), class: class_names("attachment-error": error?, "fr-mb-2w": !should_display_link?) }
|
||||||
- if 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
|
- else
|
||||||
.attachment-filename.fr-mb-1w.fr-mr-1w= attachment.filename.to_s
|
.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 :html_class
|
||||||
attr_reader :name
|
attr_reader :name
|
||||||
attr_reader :ephemeral_link
|
attr_reader :ephemeral_link
|
||||||
attr_reader :virus_not_analized
|
attr_reader :virus_not_analyzed
|
||||||
attr_reader :new_tab
|
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
|
@attachment = attachment
|
||||||
@name = name || attachment.filename.to_s
|
@name = name || attachment.filename.to_s
|
||||||
@url = url
|
@url = url
|
||||||
@ephemeral_link = ephemeral_link
|
@ephemeral_link = ephemeral_link
|
||||||
@virus_not_analized = virus_not_analized
|
@virus_not_analyzed = virus_not_analyzed
|
||||||
@new_tab = new_tab
|
@new_tab = new_tab
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,6 @@
|
||||||
%span.fr-icon-questionnaire-line{ "aria-hidden": "true" }
|
%span.fr-icon-questionnaire-line{ "aria-hidden": "true" }
|
||||||
= t('.ephemeral_link')
|
= t('.ephemeral_link')
|
||||||
|
|
||||||
- if virus_not_analized
|
- if virus_not_analyzed
|
||||||
.fr-text--xs.fr-text-mention--grey
|
.fr-text--xs.fr-text-mention--grey
|
||||||
= t('.virus_not_analyzed')
|
= t('.virus_not_analyzed')
|
||||||
|
|
Loading…
Add table
Reference in a new issue