mod_auth_openid_loginpage 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/public/css/bootstrap-responsive.css +815 -0
  2. data/public/css/bootstrap-responsive.min.css +9 -0
  3. data/public/css/bootstrap.css +4983 -0
  4. data/public/css/bootstrap.min.css +9 -0
  5. data/public/img/glyphicons-halflings-white.png +0 -0
  6. data/public/img/glyphicons-halflings.png +0 -0
  7. data/public/js/bootstrap-alert.js +90 -0
  8. data/public/js/bootstrap-button.js +96 -0
  9. data/public/js/bootstrap-carousel.js +169 -0
  10. data/public/js/bootstrap-collapse.js +157 -0
  11. data/public/js/bootstrap-dropdown.js +100 -0
  12. data/public/js/bootstrap-modal.js +218 -0
  13. data/public/js/bootstrap-popover.js +98 -0
  14. data/public/js/bootstrap-scrollspy.js +151 -0
  15. data/public/js/bootstrap-tab.js +135 -0
  16. data/public/js/bootstrap-tooltip.js +275 -0
  17. data/public/js/bootstrap-transition.js +61 -0
  18. data/public/js/bootstrap-typeahead.js +285 -0
  19. data/public/js/bootstrap.js +1825 -0
  20. data/public/js/bootstrap.min.js +6 -0
  21. data/public/js/jquery.js +9252 -0
  22. data/public/js/jquery.tablesorter.min.js +4 -0
  23. data/public/js/less-1.3.0.min.js +9 -0
  24. data/public/less/accordion.less +33 -0
  25. data/public/less/alerts.less +58 -0
  26. data/public/less/bootstrap.less +62 -0
  27. data/public/less/breadcrumbs.less +24 -0
  28. data/public/less/button-groups.less +191 -0
  29. data/public/less/buttons.less +191 -0
  30. data/public/less/carousel.less +121 -0
  31. data/public/less/close.less +29 -0
  32. data/public/less/code.less +57 -0
  33. data/public/less/component-animations.less +20 -0
  34. data/public/less/dropdowns.less +143 -0
  35. data/public/less/forms.less +583 -0
  36. data/public/less/grid.less +5 -0
  37. data/public/less/hero-unit.less +22 -0
  38. data/public/less/labels-badges.less +55 -0
  39. data/public/less/layouts.less +17 -0
  40. data/public/less/mixins.less +646 -0
  41. data/public/less/modals.less +90 -0
  42. data/public/less/navbar.less +358 -0
  43. data/public/less/navs.less +363 -0
  44. data/public/less/pager.less +36 -0
  45. data/public/less/pagination.less +56 -0
  46. data/public/less/popovers.less +49 -0
  47. data/public/less/progress-bars.less +117 -0
  48. data/public/less/reset.less +131 -0
  49. data/public/less/responsive-1200px-min.less +26 -0
  50. data/public/less/responsive-767px-max.less +149 -0
  51. data/public/less/responsive-768px-979px.less +17 -0
  52. data/public/less/responsive-navbar.less +153 -0
  53. data/public/less/responsive-utilities.less +41 -0
  54. data/public/less/responsive.less +48 -0
  55. data/public/less/scaffolding.less +29 -0
  56. data/public/less/sprites.less +191 -0
  57. data/public/less/tables.less +176 -0
  58. data/public/less/tests/css-tests.css +52 -0
  59. data/public/less/tests/css-tests.html +917 -0
  60. data/public/less/tests/forms.html +179 -0
  61. data/public/less/tests/navbar.html +108 -0
  62. data/public/less/thumbnails.less +47 -0
  63. data/public/less/tooltip.less +35 -0
  64. data/public/less/type.less +232 -0
  65. data/public/less/utilities.less +23 -0
  66. data/public/less/variables.less +206 -0
  67. data/public/less/wells.less +27 -0
  68. data/views/layout.erb +61 -0
  69. data/views/login_page.erb +9 -0
  70. metadata +190 -0
@@ -0,0 +1,23 @@
1
+ // UTILITY CLASSES
2
+ // ---------------
3
+
4
+ // Quick floats
5
+ .pull-right {
6
+ float: right;
7
+ }
8
+ .pull-left {
9
+ float: left;
10
+ }
11
+
12
+ // Toggling content
13
+ .hide {
14
+ display: none;
15
+ }
16
+ .show {
17
+ display: block;
18
+ }
19
+
20
+ // Visibility
21
+ .invisible {
22
+ visibility: hidden;
23
+ }
@@ -0,0 +1,206 @@
1
+ // Variables.less
2
+ // Variables to customize the look and feel of Bootstrap
3
+ // -----------------------------------------------------
4
+
5
+
6
+
7
+ // GLOBAL VALUES
8
+ // --------------------------------------------------
9
+
10
+
11
+ // Grays
12
+ // -------------------------
13
+ @black: #000;
14
+ @grayDarker: #222;
15
+ @grayDark: #333;
16
+ @gray: #555;
17
+ @grayLight: #999;
18
+ @grayLighter: #eee;
19
+ @white: #fff;
20
+
21
+
22
+ // Accent colors
23
+ // -------------------------
24
+ @blue: #049cdb;
25
+ @blueDark: #0064cd;
26
+ @green: #46a546;
27
+ @red: #9d261d;
28
+ @yellow: #ffc40d;
29
+ @orange: #f89406;
30
+ @pink: #c3325f;
31
+ @purple: #7a43b6;
32
+
33
+
34
+ // Scaffolding
35
+ // -------------------------
36
+ @bodyBackground: @white;
37
+ @textColor: @grayDark;
38
+
39
+
40
+ // Links
41
+ // -------------------------
42
+ @linkColor: #08c;
43
+ @linkColorHover: darken(@linkColor, 15%);
44
+
45
+
46
+ // Typography
47
+ // -------------------------
48
+ @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
49
+ @serifFontFamily: Georgia, "Times New Roman", Times, serif;
50
+ @monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
51
+
52
+ @baseFontSize: 13px;
53
+ @baseFontFamily: @sansFontFamily;
54
+ @baseLineHeight: 18px;
55
+ @altFontFamily: @serifFontFamily;
56
+
57
+ @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
58
+ @headingsFontWeight: bold; // instead of browser default, bold
59
+ @headingsColor: inherit; // empty to use BS default, @textColor
60
+
61
+
62
+ // Tables
63
+ // -------------------------
64
+ @tableBackground: transparent; // overall background-color
65
+ @tableBackgroundAccent: #f9f9f9; // for striping
66
+ @tableBackgroundHover: #f5f5f5; // for hover
67
+ @tableBorder: #ddd; // table and cell border
68
+
69
+
70
+ // Buttons
71
+ // -------------------------
72
+ @btnBackground: @white;
73
+ @btnBackgroundHighlight: darken(@white, 10%);
74
+ @btnBorder: #ccc;
75
+
76
+ @btnPrimaryBackground: @linkColor;
77
+ @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
78
+
79
+ @btnInfoBackground: #5bc0de;
80
+ @btnInfoBackgroundHighlight: #2f96b4;
81
+
82
+ @btnSuccessBackground: #62c462;
83
+ @btnSuccessBackgroundHighlight: #51a351;
84
+
85
+ @btnWarningBackground: lighten(@orange, 15%);
86
+ @btnWarningBackgroundHighlight: @orange;
87
+
88
+ @btnDangerBackground: #ee5f5b;
89
+ @btnDangerBackgroundHighlight: #bd362f;
90
+
91
+ @btnInverseBackground: @gray;
92
+ @btnInverseBackgroundHighlight: @grayDarker;
93
+
94
+
95
+ // Forms
96
+ // -------------------------
97
+ @inputBackground: @white;
98
+ @inputBorder: #ccc;
99
+ @inputBorderRadius: 3px;
100
+ @inputDisabledBackground: @grayLighter;
101
+ @formActionsBackground: #f5f5f5;
102
+
103
+ // Dropdowns
104
+ // -------------------------
105
+ @dropdownBackground: @white;
106
+ @dropdownBorder: rgba(0,0,0,.2);
107
+ @dropdownLinkColor: @grayDark;
108
+ @dropdownLinkColorHover: @white;
109
+ @dropdownLinkBackgroundHover: @linkColor;
110
+ @dropdownDividerTop: #e5e5e5;
111
+ @dropdownDividerBottom: @white;
112
+
113
+
114
+
115
+ // COMPONENT VARIABLES
116
+ // --------------------------------------------------
117
+
118
+ // Z-index master list
119
+ // -------------------------
120
+ // Used for a bird's eye view of components dependent on the z-axis
121
+ // Try to avoid customizing these :)
122
+ @zindexDropdown: 1000;
123
+ @zindexPopover: 1010;
124
+ @zindexTooltip: 1020;
125
+ @zindexFixedNavbar: 1030;
126
+ @zindexModalBackdrop: 1040;
127
+ @zindexModal: 1050;
128
+
129
+
130
+ // Sprite icons path
131
+ // -------------------------
132
+ @iconSpritePath: "../img/glyphicons-halflings.png";
133
+ @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
134
+
135
+
136
+ // Input placeholder text color
137
+ // -------------------------
138
+ @placeholderText: @grayLight;
139
+
140
+
141
+ // Hr border color
142
+ // -------------------------
143
+ @hrBorder: @grayLighter;
144
+
145
+
146
+ // Navbar
147
+ // -------------------------
148
+ @navbarHeight: 40px;
149
+ @navbarBackground: @grayDarker;
150
+ @navbarBackgroundHighlight: @grayDark;
151
+
152
+ @navbarText: @grayLight;
153
+ @navbarLinkColor: @grayLight;
154
+ @navbarLinkColorHover: @white;
155
+ @navbarLinkColorActive: @navbarLinkColorHover;
156
+ @navbarLinkBackgroundHover: transparent;
157
+ @navbarLinkBackgroundActive: @navbarBackground;
158
+
159
+ @navbarSearchBackground: lighten(@navbarBackground, 25%);
160
+ @navbarSearchBackgroundFocus: @white;
161
+ @navbarSearchBorder: darken(@navbarSearchBackground, 30%);
162
+ @navbarSearchPlaceholderColor: #ccc;
163
+ @navbarBrandColor: @navbarLinkColor;
164
+
165
+
166
+ // Hero unit
167
+ // -------------------------
168
+ @heroUnitBackground: @grayLighter;
169
+ @heroUnitHeadingColor: inherit;
170
+ @heroUnitLeadColor: inherit;
171
+
172
+
173
+ // Form states and alerts
174
+ // -------------------------
175
+ @warningText: #c09853;
176
+ @warningBackground: #fcf8e3;
177
+ @warningBorder: darken(spin(@warningBackground, -10), 3%);
178
+
179
+ @errorText: #b94a48;
180
+ @errorBackground: #f2dede;
181
+ @errorBorder: darken(spin(@errorBackground, -10), 3%);
182
+
183
+ @successText: #468847;
184
+ @successBackground: #dff0d8;
185
+ @successBorder: darken(spin(@successBackground, -10), 5%);
186
+
187
+ @infoText: #3a87ad;
188
+ @infoBackground: #d9edf7;
189
+ @infoBorder: darken(spin(@infoBackground, -10), 7%);
190
+
191
+
192
+
193
+ // GRID
194
+ // --------------------------------------------------
195
+
196
+ // Default 940px grid
197
+ // -------------------------
198
+ @gridColumns: 12;
199
+ @gridColumnWidth: 60px;
200
+ @gridGutterWidth: 20px;
201
+ @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
202
+
203
+ // Fluid grid
204
+ // -------------------------
205
+ @fluidGridColumnWidth: 6.382978723%;
206
+ @fluidGridGutterWidth: 2.127659574%;
@@ -0,0 +1,27 @@
1
+ // WELLS
2
+ // -----
3
+
4
+ .well {
5
+ min-height: 20px;
6
+ padding: 19px;
7
+ margin-bottom: 20px;
8
+ background-color: #f5f5f5;
9
+ border: 1px solid #eee;
10
+ border: 1px solid rgba(0,0,0,.05);
11
+ .border-radius(4px);
12
+ .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
13
+ blockquote {
14
+ border-color: #ddd;
15
+ border-color: rgba(0,0,0,.15);
16
+ }
17
+ }
18
+
19
+ // Sizes
20
+ .well-large {
21
+ padding: 24px;
22
+ .border-radius(6px);
23
+ }
24
+ .well-small {
25
+ padding: 9px;
26
+ .border-radius(3px);
27
+ }
data/views/layout.erb ADDED
@@ -0,0 +1,61 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title><%= @config[:title] %></title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+
8
+ <!--
9
+ <link rel="stylesheet/less" type="text/css" href="/less/bootstrap.less">
10
+ <link rel="stylesheet/less" type="text/css" href="/less/responsive.less">
11
+
12
+ <script type="text/javascript" src="/js/less-1.3.0.min.js"></script>
13
+ -->
14
+ <link rel="stylesheet" href="/css/bootstrap.css">
15
+ <link rel="stylesheet" href="/css/bootstrap-responsive.css">
16
+
17
+ <script type="text/javascript" src="/js/jquery.js"></script>
18
+ <script type="text/javascript" src="/js/jquery.tablesorter.min.js"></script>
19
+ <script type="text/javascript" src="/js/bootstrap-transition.js"></script>
20
+ <script type="text/javascript" src="/js/bootstrap-alert.js"></script>
21
+ <script type="text/javascript" src="/js/bootstrap-modal.js"></script>
22
+ <script type="text/javascript" src="/js/bootstrap-dropdown.js"></script>
23
+ <script type="text/javascript" src="/js/bootstrap-scrollspy.js"></script>
24
+ <script type="text/javascript" src="/js/bootstrap-tab.js"></script>
25
+ <script type="text/javascript" src="/js/bootstrap-tooltip.js"></script>
26
+ <script type="text/javascript" src="/js/bootstrap-popover.js"></script>
27
+ <script type="text/javascript" src="/js/bootstrap-button.js"></script>
28
+ <script type="text/javascript" src="/js/bootstrap-collapse.js"></script>
29
+ <script type="text/javascript" src="/js/bootstrap-carousel.js"></script>
30
+ <script type="text/javascript" src="/js/bootstrap-typeahead.js"></script>
31
+ </head>
32
+
33
+ <body style="padding-top: 80px;">
34
+ <div class="navbar navbar-fixed-top">
35
+ <div class="navbar-inner">
36
+ <div class="container">
37
+ <a class="brand" href="/"><%= @config[:title] %></a>
38
+ <ul class="nav">
39
+ <li class="dropdown">
40
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">Sites<b class="caret"></b></a>
41
+ <ul class="dropdown-menu">
42
+ <% @config[:links].each do |link| %>
43
+ <li><a href="<%= link[:url] %>"><%= link[:title] %></a></li>
44
+ <% end %>
45
+ </ul>
46
+ </li>
47
+ </ul>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ <div class="container">
52
+ <% if @error %>
53
+ <div class="alert alert-error">
54
+ <%= @error %>
55
+ </div>
56
+ <% end %>
57
+ <%= yield %>
58
+ </div>
59
+ </body>
60
+ </html>
61
+
@@ -0,0 +1,9 @@
1
+ <div class="well">
2
+ <h2><%= @config[:prompt] %></h2>
3
+ <br />
4
+ <form class="form-inline" action="<%= params["modauthopenid.referrer"] %>" method="GET">
5
+ <input type="text" class="input span5" placeholder="OpenID" name="openid_identifier">
6
+ <button type="submit" class="btn">Sign in</button>
7
+ </form>
8
+ <em><small>Logging into: <%= params["modauthopenid.referrer"] %></small></em>
9
+ </div>
metadata ADDED
@@ -0,0 +1,190 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mod_auth_openid_loginpage
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - R.I.Pienaar
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2012-06-07 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rake
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :development
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: rdoc
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 3
44
+ segments:
45
+ - 0
46
+ version: "0"
47
+ type: :development
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: sinatra
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
61
+ type: :runtime
62
+ version_requirements: *id003
63
+ - !ruby/object:Gem::Dependency
64
+ name: redcarpet
65
+ prerelease: false
66
+ requirement: &id004 !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
74
+ version: "0"
75
+ type: :runtime
76
+ version_requirements: *id004
77
+ description: A generic login page for mod_auth_openid that can be installed for a sitewide prompt
78
+ email: rip@devco.net
79
+ executables: []
80
+
81
+ extensions: []
82
+
83
+ extra_rdoc_files: []
84
+
85
+ files:
86
+ - public/js/bootstrap-transition.js
87
+ - public/js/bootstrap.min.js
88
+ - public/js/bootstrap-carousel.js
89
+ - public/js/bootstrap-typeahead.js
90
+ - public/js/bootstrap.js
91
+ - public/js/jquery.tablesorter.min.js
92
+ - public/js/bootstrap-button.js
93
+ - public/js/bootstrap-alert.js
94
+ - public/js/bootstrap-dropdown.js
95
+ - public/js/bootstrap-tooltip.js
96
+ - public/js/bootstrap-scrollspy.js
97
+ - public/js/jquery.js
98
+ - public/js/bootstrap-tab.js
99
+ - public/js/bootstrap-popover.js
100
+ - public/js/bootstrap-modal.js
101
+ - public/js/less-1.3.0.min.js
102
+ - public/js/bootstrap-collapse.js
103
+ - public/img/glyphicons-halflings.png
104
+ - public/img/glyphicons-halflings-white.png
105
+ - public/less/pagination.less
106
+ - public/less/button-groups.less
107
+ - public/less/thumbnails.less
108
+ - public/less/close.less
109
+ - public/less/carousel.less
110
+ - public/less/responsive-1200px-min.less
111
+ - public/less/breadcrumbs.less
112
+ - public/less/pager.less
113
+ - public/less/wells.less
114
+ - public/less/responsive-767px-max.less
115
+ - public/less/bootstrap.less
116
+ - public/less/responsive-utilities.less
117
+ - public/less/tooltip.less
118
+ - public/less/responsive-navbar.less
119
+ - public/less/hero-unit.less
120
+ - public/less/navs.less
121
+ - public/less/variables.less
122
+ - public/less/mixins.less
123
+ - public/less/navbar.less
124
+ - public/less/modals.less
125
+ - public/less/type.less
126
+ - public/less/grid.less
127
+ - public/less/tests/css-tests.css
128
+ - public/less/tests/forms.html
129
+ - public/less/tests/css-tests.html
130
+ - public/less/tests/navbar.html
131
+ - public/less/labels-badges.less
132
+ - public/less/responsive.less
133
+ - public/less/component-animations.less
134
+ - public/less/forms.less
135
+ - public/less/popovers.less
136
+ - public/less/dropdowns.less
137
+ - public/less/tables.less
138
+ - public/less/responsive-768px-979px.less
139
+ - public/less/utilities.less
140
+ - public/less/code.less
141
+ - public/less/scaffolding.less
142
+ - public/less/progress-bars.less
143
+ - public/less/alerts.less
144
+ - public/less/accordion.less
145
+ - public/less/reset.less
146
+ - public/less/sprites.less
147
+ - public/less/buttons.less
148
+ - public/less/layouts.less
149
+ - public/css/bootstrap.min.css
150
+ - public/css/bootstrap-responsive.css
151
+ - public/css/bootstrap-responsive.min.css
152
+ - public/css/bootstrap.css
153
+ - views/login_page.erb
154
+ - views/layout.erb
155
+ has_rdoc: true
156
+ homepage: http://devco.net/
157
+ licenses: []
158
+
159
+ post_install_message:
160
+ rdoc_options: []
161
+
162
+ require_paths:
163
+ - lib
164
+ required_ruby_version: !ruby/object:Gem::Requirement
165
+ none: false
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ hash: 3
170
+ segments:
171
+ - 0
172
+ version: "0"
173
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ hash: 3
179
+ segments:
180
+ - 0
181
+ version: "0"
182
+ requirements: []
183
+
184
+ rubyforge_project:
185
+ rubygems_version: 1.3.7
186
+ signing_key:
187
+ specification_version: 3
188
+ summary: mod_auth_openid login page
189
+ test_files: []
190
+