Commit fb175e26 authored by Michael Witrant's avatar Michael Witrant

display DocAmend

parent d915efbb
......@@ -8,3 +8,4 @@ gem "sinatra"
gem "haml"
gem "rb-inotify"
gem "rerun"
gem "active_support"
GEM
remote: http://rubygems.org/
specs:
active_support (3.0.0)
activesupport (= 3.0.0)
activesupport (3.0.0)
clik (0.1.0)
ffi (1.6.0)
haml (4.0.1)
......@@ -28,6 +31,7 @@ PLATFORMS
ruby
DEPENDENCIES
active_support
clik
haml
htmldiff
......
......@@ -7,6 +7,7 @@ require 'clik'
require 'nokogiri'
require 'erb'
require 'ostruct'
require 'active_support/core_ext/object'
class AmendmentExtractor
def debug(value)
......
......@@ -4,9 +4,13 @@
{| border="1" style="border-spacing:0;" cellpadding="3" width="100%"
|-
! colspan="2" style="background-color: lightgrey;" |
Amendment <%= amendment.num %>
<br/>
<%= amendment.article %>
<%=
[
"Amendment #{amendment.num}",
amendment.doc,
amendment.article,
].reject(&:blank?).join("\n<br/>\n")
%>
<% amendment.changes.each do |original, changed| -%>
|-
|width="50%"|
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment