user_interface 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +39 -0
  4. data/app/assets/images/user_interface/ui/accept.png +0 -0
  5. data/app/assets/images/user_interface/ui/add-small.png +0 -0
  6. data/app/assets/images/user_interface/ui/add.png +0 -0
  7. data/app/assets/images/user_interface/ui/alert.png +0 -0
  8. data/app/assets/images/user_interface/ui/download.png +0 -0
  9. data/app/assets/images/user_interface/ui/edit-small.png +0 -0
  10. data/app/assets/images/user_interface/ui/edit.png +0 -0
  11. data/app/assets/images/user_interface/ui/en_flag.png +0 -0
  12. data/app/assets/images/user_interface/ui/en_uk_flag.png +0 -0
  13. data/app/assets/images/user_interface/ui/en_us_flag.png +0 -0
  14. data/app/assets/images/user_interface/ui/export.png +0 -0
  15. data/app/assets/images/user_interface/ui/fr_flag.png +0 -0
  16. data/app/assets/images/user_interface/ui/kml.png +0 -0
  17. data/app/assets/images/user_interface/ui/notice.png +0 -0
  18. data/app/assets/images/user_interface/ui/remove-small.png +0 -0
  19. data/app/assets/images/user_interface/ui/remove.png +0 -0
  20. data/app/assets/images/user_interface/ui/viewer.png +0 -0
  21. data/app/assets/images/user_interface/ui/warning.png +0 -0
  22. data/app/assets/stylesheets/user_interface.css +7 -0
  23. data/app/assets/stylesheets/user_interface/_layout.scss +330 -0
  24. data/app/assets/stylesheets/user_interface/_layout.scss~ +290 -0
  25. data/app/controllers/languages_controller.rb +23 -0
  26. data/app/helpers/flash_helper.rb +9 -0
  27. data/app/helpers/languages_helper.rb +16 -0
  28. data/app/helpers/tabs_helper.rb +9 -0
  29. data/app/views/devise/_links.erb +41 -0
  30. data/app/views/devise/confirmations/new.html.erb +13 -0
  31. data/app/views/devise/mailer/confirmation_instructions.fr.html.erb +6 -0
  32. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  33. data/app/views/devise/mailer/invitation_instructions.fr.html.erb +8 -0
  34. data/app/views/devise/mailer/invitation_instructions.html.erb +9 -0
  35. data/app/views/devise/mailer/reset_password_instructions.fr.html.erb +9 -0
  36. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  37. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  38. data/app/views/devise/passwords/edit.html.erb +17 -0
  39. data/app/views/devise/passwords/new.html.erb +13 -0
  40. data/app/views/devise/registrations/edit.html.erb +27 -0
  41. data/app/views/devise/registrations/new.html.erb +16 -0
  42. data/app/views/devise/sessions/new.html.erb +19 -0
  43. data/app/views/devise/shared/links.erb +32 -0
  44. data/app/views/devise/unlocks/new.html.erb +12 -0
  45. data/config/locales/devise.fr.yml +86 -0
  46. data/config/locales/devise.yml +79 -0
  47. data/config/routes.rb +3 -0
  48. data/lib/tasks/user_interface_tasks.rake +4 -0
  49. data/lib/user_interface.rb +4 -0
  50. data/lib/user_interface/engine.rb +18 -0
  51. data/lib/user_interface/language_support.rb +25 -0
  52. data/lib/user_interface/version.rb +3 -0
  53. metadata +179 -0
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2012 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = UserInterface
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env rake
2
+ begin
3
+ require 'bundler/setup'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+ begin
8
+ require 'rdoc/task'
9
+ rescue LoadError
10
+ require 'rdoc/rdoc'
11
+ require 'rake/rdoctask'
12
+ RDoc::Task = Rake::RDocTask
13
+ end
14
+
15
+ RDoc::Task.new(:rdoc) do |rdoc|
16
+ rdoc.rdoc_dir = 'rdoc'
17
+ rdoc.title = 'UserInterface'
18
+ rdoc.options << '--line-numbers'
19
+ rdoc.rdoc_files.include('README.rdoc')
20
+ rdoc.rdoc_files.include('lib/**/*.rb')
21
+ end
22
+
23
+ APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
24
+ load 'rails/tasks/engine.rake'
25
+
26
+
27
+ Bundler::GemHelper.install_tasks
28
+
29
+ require 'rake/testtask'
30
+
31
+ Rake::TestTask.new(:test) do |t|
32
+ t.libs << 'lib'
33
+ t.libs << 'test'
34
+ t.pattern = 'test/**/*_test.rb'
35
+ t.verbose = false
36
+ end
37
+
38
+
39
+ task :default => :test
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require_tree .
7
+ */
@@ -0,0 +1,330 @@
1
+ html {color:#000;}
2
+ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td {margin:0;padding:0;}
3
+ table {border-collapse:collapse;border-spacing:0;}
4
+ fieldset,img {border:0;}
5
+ address,caption,cite,code,dfn,em,strong,b,i,th,var {font-style:normal;font-weight:normal;}
6
+ li {list-style:none;}
7
+ caption,th {text-align:left;}
8
+ h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal;}
9
+ q:before,q:after {content:'';}
10
+ abbr,acronym {border:0;font-variant:normal;}
11
+ sup {vertical-align:text-top;}
12
+ sub {vertical-align:text-bottom;}
13
+ input,textarea,select {font-family:inherit;font-size:inherit;font-weight:inherit;}
14
+ input,textarea,select {*font-size:100%;}
15
+ legend {color:#000;}
16
+ a { text-decoration: none; color: #000 }
17
+
18
+ @mixin content_to_clear {
19
+ content: " ";
20
+ display: block;
21
+ height: 0;
22
+ clear: both;
23
+ visibility: hidden;
24
+ }
25
+
26
+ @mixin after_div_for_object {
27
+ @include content_to_clear;
28
+ }
29
+
30
+ /* Red theme */
31
+ $header_background: #900 !default;
32
+ $header_color: white !default;
33
+ $tabs_background: #C00 !default;
34
+ $tabs_color: white !default;
35
+ $text_color: #222 !default;
36
+
37
+ body {
38
+ font-family: "Lucida Grande", verdana, arial, helvetica, sans-serif;
39
+ color: $text_color;
40
+ font-size: 14px;
41
+ background: #E5E5E5;
42
+ }
43
+
44
+ a, a:visited {
45
+ color: $text_color;
46
+ }
47
+
48
+ #header {
49
+ height: 116px;
50
+ background: $header_background url(image-path('header.png')) no-repeat;
51
+
52
+ .tabs {
53
+ margin: 0 30px 0 30px;
54
+
55
+ li {
56
+ margin: 0px;
57
+ padding: 0px;
58
+ height: 26px;
59
+ float: left;
60
+
61
+ a:link, a:visited {
62
+ font-size: 12px;
63
+ line-height: 26px;
64
+ display: inline-block;
65
+ padding: 0 9px 0 9px;
66
+ margin-right: 3px;
67
+ background-color: $tabs_background;
68
+ color: $tabs_color;
69
+ }
70
+
71
+ a.current {
72
+ color: $text_color;
73
+ font-weight: bold;
74
+ background: -webkit-gradient(linear, left top, left bottom, from(#FDFDFD), to(#E5E5E5));
75
+ background: -moz-linear-gradient(top, #FDFDFD, #E5E5E5);
76
+ }
77
+ }
78
+
79
+ li.admin {
80
+ float: right;
81
+ }
82
+ }
83
+
84
+ .infos{
85
+ height: 90px;
86
+
87
+ div.title{
88
+ float: left;
89
+ padding: 15px 0 0 30px;
90
+
91
+ h1 {
92
+ font-family: "Comic Sans", "Comic Sans MS", cursive;
93
+ font-size: 32px;
94
+ font-weight: bold;
95
+ color: $header_color;
96
+ }
97
+
98
+ }
99
+
100
+ div.logo {
101
+ float: left;
102
+ padding: 15px 0 0 30px;
103
+ }
104
+
105
+ div.interaction{
106
+ text-align: right;
107
+ }
108
+
109
+
110
+ a.back_to_upper_menu {
111
+ color: $tabs_color;
112
+ text-decoration: underline;
113
+ padding: 10px 0 0 30px;
114
+ font-size: 0.8em;
115
+ display: block;
116
+ }
117
+
118
+ ul.user {
119
+ color: $tabs_color;
120
+ margin: 0 30px 0 0;
121
+
122
+ li {
123
+ font-size: 13px;
124
+ display: inline;
125
+ margin: 0 3px;
126
+ }
127
+
128
+ a {
129
+ color: $tabs_color;
130
+ text-decoration: underline;
131
+ line-height: 55px;
132
+ }
133
+
134
+ li.language, li.home {
135
+ margin: 0 1px;
136
+ text-decoration: none;
137
+ }
138
+
139
+ span.help {
140
+ color: $header_background;
141
+ font-size: 11px;
142
+ border-radius:6px;
143
+ -moz-border-radius: 6px;
144
+ background-color: white;
145
+ padding: 3px 5px;
146
+ }
147
+ }
148
+ }
149
+ }
150
+
151
+ .actions {
152
+ a {
153
+ padding-left: 20px;
154
+ text-decoration: underline;
155
+ }
156
+
157
+ a.visit_site{
158
+ background: url(image-path('user_interface/ui/site.png')) no-repeat;
159
+ }
160
+
161
+ a.visit_event{
162
+ background: url(image-path('user_interface/ui/event.png')) no-repeat;
163
+ }
164
+
165
+ a.visit_page{
166
+ background: url(image-path('user_interface/ui/page.png')) no-repeat;
167
+ }
168
+
169
+ a.add {
170
+ background: url(image-path('user_interface/ui/add.png')) no-repeat;
171
+ }
172
+ a.edit {
173
+ background: url(image-path('user_interface/ui/edit.png')) no-repeat;
174
+ }
175
+ a.remove {
176
+ background: url(image-path('user_interface/ui/remove.png')) no-repeat;
177
+ }
178
+ a.export {
179
+ background: url(image-path('user_interface/ui/export.png')) no-repeat;
180
+ }
181
+ li {
182
+ margin: 10px 0;
183
+ }
184
+ }
185
+
186
+ #body {
187
+ min-width: 1000px;
188
+
189
+ a{ text-decoration: underline;}
190
+
191
+ #workspace, #sidebar {
192
+ float: left;
193
+ }
194
+ }
195
+
196
+ #body:after {
197
+ @include after_div_for_object;
198
+ }
199
+
200
+ #body #workspace {
201
+ width: 70%;
202
+ background: white;
203
+ margin: 15px 30px;
204
+ padding: 0 15px 10px 15px;
205
+
206
+ -moz-box-shadow: 3px 3px 4px #BBB;
207
+ -webkit-box-shadow: 3px 3px 4px #BBB;
208
+ box-shadow: 3px 3px 4px #BBB;
209
+ border-right: 1px solid #BBB;
210
+ border-bottom: 1px solid #BBB;
211
+
212
+ h2,h3 {
213
+ background: white;
214
+ padding: 15px 0;
215
+ font-weight: bold;
216
+ }
217
+
218
+ h3 {
219
+ padding: 5px 0;
220
+ padding-left: 10px;
221
+ margin-top: 15px;
222
+ margin-bottom: 15px;
223
+ background-color: #E5E5E5;
224
+ }
225
+
226
+ h2{font-size: 16px;}
227
+ h3{font-size: 14px;}
228
+
229
+ li span.author {
230
+ float: right;
231
+ font-size: 12px;
232
+ }
233
+
234
+ .site_summary {
235
+ float: left;
236
+ margin-bottom: 20px;
237
+ width: 100%;
238
+
239
+ img {
240
+ float: left;
241
+ margin-right: 20px;
242
+ }
243
+ a {
244
+ display: block;
245
+ margin: 25px 0 0;
246
+ }
247
+ }
248
+ .site_summary:after {
249
+ content: " ";
250
+ display: block;
251
+ height: 0;
252
+ clear: both;
253
+ visibility: hidden;
254
+ }
255
+
256
+ p { margin: 7px 0; }
257
+
258
+ fieldset.buttons{
259
+ margin: 10px;
260
+ }
261
+
262
+ }
263
+
264
+ #body #flash {
265
+ width: 72%;
266
+ margin: 15px 0 0 30px;
267
+
268
+ div {
269
+ padding: 10px 10px 10px 50px;
270
+ }
271
+ .alert {
272
+ color: #c01100;
273
+ background: #ffbdbd url(image-path('user_interface/ui/alert.png')) no-repeat 15px;
274
+ }
275
+ .notice {
276
+ background: #EDF3FE url(image-path('user_interface/ui/notice.png')) no-repeat 15px;
277
+ }
278
+ }
279
+
280
+ #body #sidebar {
281
+ width: 20%;
282
+ padding-top: 20px;
283
+
284
+ a {
285
+ color: #666;
286
+ }
287
+
288
+ .actions {
289
+ margin-bottom: 20px;
290
+ }
291
+
292
+ h3 {
293
+ padding: 6px 8px;
294
+ font-weight: bold;
295
+ background: #F0F0F0;
296
+ border-bottom: 1px solid gainsboro;
297
+ margin-bottom: 10px;
298
+ }
299
+
300
+ h4 {
301
+ font-weight: bold;
302
+ padding: 6px 8px;
303
+ font-size: 0.9em;
304
+ }
305
+
306
+ p {
307
+ font-size: 12px;
308
+ }
309
+
310
+ fieldset
311
+ {
312
+ background-color: #ECECEC;
313
+ padding: 10px;
314
+ border: 1px solid black;
315
+
316
+ legend{
317
+ font-weight: bold;
318
+ padding: 0 5px;
319
+ }
320
+
321
+ p{
322
+ margin-top: 5px;
323
+ label{ font-size: 12px;}
324
+ span{
325
+ font-style: oblique;
326
+ font-size:12px;
327
+ }
328
+ }
329
+ }
330
+ }