Browse Source

Fix missing video_tag

revert-177e550a
hellekin 4 years ago
parent
commit
31651814a7
3 changed files with 18 additions and 2 deletions
  1. +6
    -0
      lib/devuan_helpers.rb
  2. +1
    -1
      source/pages/os/legal/software-patents.en.md.erb
  3. +11
    -1
      source/ui/css/core/_screen.scss

+ 6
- 0
lib/devuan_helpers.rb View File

@@ -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

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

@@ -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")) %>

+ 11
- 1
source/ui/css/core/_screen.scss View File

@@ -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