This way it'll be easier to change them. Note that there were two `.document-link` elements which aren't part of a `.documents` element. We're renaming the HTML class of the link in investments because it didn't contain links to download documents and are slightly duplicating the CSS in the poll answer documents in order to keep the `word-wrap` property.
12 lines
190 B
Ruby
12 lines
190 B
Ruby
class Documents::DocumentsComponent < ApplicationComponent
|
|
attr_reader :documents
|
|
|
|
def initialize(documents)
|
|
@documents = documents
|
|
end
|
|
|
|
def render?
|
|
documents.any?
|
|
end
|
|
end
|