Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amendments
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LQDN Adminsys
amendments
Commits
74a3682c
Commit
74a3682c
authored
Mar 31, 2013
by
Michael Witrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bootstrap style
parent
3556d539
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
6 deletions
+30
-6
bootstrap.min.css
bootstrap.min.css
+9
-0
server.rb
server.rb
+21
-6
No files found.
bootstrap.min.css
0 → 100644
View file @
74a3682c
This diff is collapsed.
Click to expand it.
server.rb
View file @
74a3682c
...
...
@@ -8,7 +8,7 @@ require 'haml'
require
'./extract_amendments'
get
'/'
do
haml
:index
haml
:index
,
locals:
{
template:
File
.
read
(
"template.erb"
)}
end
post
'/extract'
do
...
...
@@ -16,17 +16,32 @@ post '/extract' do
haml
:extract
,
locals:
{
result:
result
}
end
get
'/bootstrap.min.css'
do
send_file
'bootstrap.min.css'
end
__END__
@@ layout
%html
%head
%link{:href => "/bootstrap.min.css", :rel => "stylesheet"}/
%body
= yield
.container
%h1 Amendment Extractor
= yield
@@ index
%form{action: "/extract", method: "POST", enctype: 'multipart/form-data'}
%input{type: "file", name: "file"}
%input{type: "submit"}
.well
%form.form-horizontal{action: "/extract", method: "POST", enctype: 'multipart/form-data'}
.control-group
%label.control-label{:for => "file"} ODT File
.controls
%input#file{type: "file", name: "file"}
.control-group
.controls
%button.btn.btn-primary{:type => "submit"} Extract
@@ extract
%
pre
= Rack::Utils.escape_html(result)
%
textarea{rows: 20, style: 'width: 100%'}
= Rack::Utils.escape_html(result)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment