Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 76 lines (75 sloc) 3.182 kB
f8f34c3 @brymck Began using HAML instead of HTML
authored
1 - require 'yaml'
2 !!! 5
3 %html
4 %head
5 %title reasonable
228d16b @brymck Cleaned up background script and options page
authored
6 - %w(options).each do |style|
7 %link{rel: :stylesheet, :type => "text/css", :href => "/css/#{style}.css"}
f8f34c3 @brymck Began using HAML instead of HTML
authored
8 %body
160cb6d @brymck Got options page working again
authored
9 %form#options_form
10 %h1<
228d16b @brymck Cleaned up background script and options page
authored
11 %img{src: "/img/icon_48.png", alt: :logo, title: "I put on my monocle and top hat",
12 height: 48, width: 48}>
160cb6d @brymck Got options page working again
authored
13 reason
14 %span.able> able
15 %p
16 I do not collect any identifying info via any of these options aside from server logs if you
17 update the troll list, but none of that information will ever be shared with a third party.
18 %table#container
19 %tbody
20 %tr
21 %td#leftside
9f65878 @brymck Added filters and fixed string content filter
authored
22 %h3 Filters
160cb6d @brymck Got options page working again
authored
23 %table
24 %thead
25 %tr
26 %th
46d6bfa @brymck Got image and YouTube extensions working, plus basic controls
authored
27 %th Name
28 %th Link
29 %th Content
160cb6d @brymck Got options page working again
authored
30 %tbody
31 %tr
46d6bfa @brymck Got image and YouTube extensions working, plus basic controls
authored
32 %th String
160cb6d @brymck Got options page working again
authored
33 %td
9f65878 @brymck Added filters and fixed string content filter
authored
34 %textarea#string_name{rows: 15, cols: 20}
160cb6d @brymck Got options page working again
authored
35 %td
9f65878 @brymck Added filters and fixed string content filter
authored
36 %textarea#string_link{rows: 15, cols: 50}
160cb6d @brymck Got options page working again
authored
37 %td
9f65878 @brymck Added filters and fixed string content filter
authored
38 %textarea#string_content{rows: 15, cols: 20}
160cb6d @brymck Got options page working again
authored
39 %tr
46d6bfa @brymck Got image and YouTube extensions working, plus basic controls
authored
40 %th Regex
41 %td
9f65878 @brymck Added filters and fixed string content filter
authored
42 %textarea#regex_name{rows: 15, cols: 20}
160cb6d @brymck Got options page working again
authored
43 %td
9f65878 @brymck Added filters and fixed string content filter
authored
44 %textarea#regex_link{rows: 15, cols: 50}
160cb6d @brymck Got options page working again
authored
45 %td
9f65878 @brymck Added filters and fixed string content filter
authored
46 %textarea#regex_content{rows: 15, cols: 20}
160cb6d @brymck Got options page working again
authored
47 %td#rightside
46d6bfa @brymck Got image and YouTube extensions working, plus basic controls
authored
48 %h3 Options
160cb6d @brymck Got options page working again
authored
49 %ul#options
50 - YAML.load_file(File.join(File.dirname(__FILE__), "/src/_data/options.yml")).each do |option|
51 - depth_class = "depth-#{option["depth"]}" unless option["depth"].nil?
2bd1f22 @brymck Got inline pictures working again
authored
52 %li{class: depth_class, title: option["help"]}<
160cb6d @brymck Got options page working again
authored
53 - if option["type"].nil?
54 %input{id: option["id"], type: "checkbox", checked: option["checked"]}
55 %label{:for => option["id"]}
56 -# The extra space at the beginning of the text prevents
57 -# RedCloth from wrapping the output in <p> tags
58 :textile
59 #{option["text"]}
60 - elsif option["type"] == "text"
901f78b @brymck Added sensitivity parameter
authored
61 %label{:for => option["id"]}
62 :textile
63 #{option["text"]}
160cb6d @brymck Got options page working again
authored
64 %input{id: option["id"], type: "text", placeholder: option["placeholder"]}
65 - elsif option["type"] == "range"
66 .range
67 %label{:for => option["id"]}
68 :textile
69 #{option["text"]}
70 %br
71 %input{id: option["id"], type: "range", min: 1, max: 300}
72 %input.range_helper{id: "#{option["id"]}_helper", type: "number", min: 1, max: 300, size: 5}
73 %input#save{type: :submit, value: "Save"}
74 - %w(options).each do |script|
228d16b @brymck Cleaned up background script and options page
authored
75 %script{type: "text/javascript", src: "/js/#{script}.js"}
Something went wrong with that request. Please try again.