Browse Source

Fix missing video_tag

revert-177e550a
hellekin 7 years ago
parent
commit
31651814a7
  1. 6
      lib/devuan_helpers.rb
  2. 2
      source/pages/os/legal/software-patents.en.md.erb
  3. 12
      source/ui/css/core/_screen.scss

6
lib/devuan_helpers.rb

@ -163,4 +163,10 @@ module DevuanHelpers
lst = r(lines.join("\n"))
toc = content_tag('nav', lst, class: 'toc')
end
def video_tag(url, title = nil)
html = '<video src="%s" controls></video>' % url
html << '<caption>%s</caption>' % title unless title.nil?
'<figure>' << html << '</figure>'
end
end

2
source/pages/os/legal/software-patents.en.md → source/pages/os/legal/software-patents.en.md.erb

@ -39,4 +39,4 @@ From the [Software Patents FAQ](https://www.ffii.org/Frequently%20Asked%20Questi
> [Copyright](/os/legal/copyright) is the perfect protection of investment
for software.
<%= video_tag(http://www.archive.org/download/Patent_Absurdity/Patent_Absurdity_LQ_350kbit.ogv) %>
<%= video_tag("http://www.archive.org/download/Patent_Absurdity/Patent_Absurdity_LQ_350kbit.ogv", r("[Patent Absurdity](https://archive.org/details/Patent_Absurdity), 2010")) %>

12
source/ui/css/core/_screen.scss

@ -81,7 +81,7 @@ article p {
code {
padding: 1rem;
}
}
}
.separator {
@ -292,6 +292,16 @@ body.error_404 blockquote.fortune {
}
}
body.os_legal_software-patents figure {
text-align: center;
padding: 1rem;
p { margin: 0; }
video { width: 100%; }
}
p#copyright {
font-size: 1rem;
text-align: center;

Loading…
Cancel
Save