omf_web 1.2.5 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. data/lib/omf-web/content/content_proxy.rb +28 -15
  2. data/lib/omf-web/content/file_repository.rb +16 -57
  3. data/lib/omf-web/content/git_repository.rb +2 -121
  4. data/lib/omf-web/content/irods_repository.rb +2 -0
  5. data/lib/omf-web/content/repository.rb +121 -10
  6. data/lib/omf-web/content/static_repository.rb +3 -3
  7. data/lib/omf-web/rack/content_handler.rb +8 -6
  8. data/lib/omf-web/theme.rb +16 -2
  9. data/lib/omf-web/thin/logging.rb +13 -4
  10. data/lib/omf-web/version.rb +1 -1
  11. data/lib/omf-web/widget/text/maruku/output/to_html.rb +29 -23
  12. data/lib/omf-web/widget/text/maruku.rb +20 -5
  13. data/omf_web.gemspec +1 -1
  14. data/share/htdocs/graph/js/code_mirror.js +2 -1
  15. data/share/htdocs/vendor/VERSION_MAP.yaml +1 -0
  16. data/share/htdocs/vendor/smartmenus-0.9.6/LICENSE-MIT +22 -0
  17. data/share/htdocs/vendor/smartmenus-0.9.6/README.md +26 -0
  18. data/share/htdocs/vendor/smartmenus-0.9.6/addons/bootstrap/jquery.smartmenus.bootstrap.css +103 -0
  19. data/share/htdocs/vendor/smartmenus-0.9.6/addons/bootstrap/jquery.smartmenus.bootstrap.js +72 -0
  20. data/share/htdocs/vendor/smartmenus-0.9.6/addons/bootstrap/jquery.smartmenus.bootstrap.min.js +3 -0
  21. data/share/htdocs/vendor/smartmenus-0.9.6/addons/keyboard/jquery.smartmenus.keyboard.js +192 -0
  22. data/share/htdocs/vendor/smartmenus-0.9.6/addons/keyboard/jquery.smartmenus.keyboard.min.js +3 -0
  23. data/share/htdocs/vendor/smartmenus-0.9.6/css/sm-blue/css-gradients-fallback/current-item-bg.png +0 -0
  24. data/share/htdocs/vendor/smartmenus-0.9.6/css/sm-blue/css-gradients-fallback/main-item-hover-bg.png +0 -0
  25. data/share/htdocs/vendor/smartmenus-0.9.6/css/sm-blue/css-gradients-fallback/main-menu-bg.png +0 -0
  26. data/share/htdocs/vendor/smartmenus-0.9.6/css/sm-blue/css-gradients-fallback/sub-item-hover-bg.png +0 -0
  27. data/share/htdocs/vendor/smartmenus-0.9.6/css/sm-blue/css-gradients-fallback/vertical-main-item-bg.png +0 -0
  28. data/share/htdocs/vendor/smartmenus-0.9.6/css/sm-blue/sm-blue.css +409 -0
  29. data/share/htdocs/vendor/smartmenus-0.9.6/css/sm-clean/sm-clean.css +315 -0
  30. data/share/htdocs/vendor/smartmenus-0.9.6/css/sm-core-css.css +23 -0
  31. data/share/htdocs/vendor/smartmenus-0.9.6/css/sm-mint/sm-mint.css +320 -0
  32. data/share/htdocs/vendor/smartmenus-0.9.6/css/sm-simple/sm-simple.css +218 -0
  33. data/share/htdocs/vendor/smartmenus-0.9.6/jquery.smartmenus.js +1041 -0
  34. data/share/htdocs/vendor/smartmenus-0.9.6/jquery.smartmenus.min.js +3 -0
  35. metadata +218 -229
@@ -0,0 +1,409 @@
1
+ /* Import "PT Sans Narrow" font from Google fonts */
2
+ @import url(http://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700);
3
+
4
+
5
+ /*
6
+ ---------------------------------------------------------------
7
+ Note that styles you apply to the main menu items are inherited by the sub menus items too.
8
+ If you'd like to avoid this, you could use child selectors (not supported by IE6) - for example:
9
+ .sm-blue > li > a { ... } instead of .sm-blue a { ... }
10
+ ---------------------------------------------------------------*/
11
+
12
+
13
+ /* Menu box
14
+ ===================*/
15
+
16
+ .sm-blue {
17
+ background:#3193c0; /* Old browsers */
18
+ background-image:url(css-gradients-fallback/main-menu-bg.png);
19
+ background-image:-moz-linear-gradient(top,#4cb1e0 0%,#1675a1 100%);
20
+ background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#4cb1e0),color-stop(100%,#1675a1));
21
+ background-image:-webkit-linear-gradient(top,#4cb1e0 0%,#1675a1 100%);
22
+ background-image:-o-linear-gradient(top,#4cb1e0 0%,#1675a1 100%);
23
+ background-image:-ms-linear-gradient(top,#4cb1e0 0%,#1675a1 100%);
24
+ background-image:linear-gradient(top,#4cb1e0 0%,#1675a1 100%);
25
+ -moz-border-radius:8px;
26
+ -webkit-border-radius:8px;
27
+ border-radius:8px;
28
+ -moz-box-shadow:0 1px 1px rgba(0,0,0,0.3);
29
+ -webkit-box-shadow:0 1px 1px rgba(0,0,0,0.3);
30
+ box-shadow:0 1px 1px rgba(0,0,0,0.3);
31
+ }
32
+ .sm-blue-vertical {
33
+ -moz-box-shadow:0 1px 4px rgba(0,0,0,0.3);
34
+ -webkit-box-shadow:0 1px 4px rgba(0,0,0,0.3);
35
+ box-shadow:0 1px 4px rgba(0,0,0,0.3);
36
+ }
37
+ .sm-blue ul {
38
+ border:1px solid #a9a9a9;
39
+ padding:7px 0;
40
+ background:#fff;
41
+ -moz-border-radius:0 0 4px 4px;
42
+ -webkit-border-radius:0 0 4px 4px;
43
+ border-radius:0 0 4px 4px;
44
+ -moz-box-shadow:0 5px 12px rgba(0,0,0,0.3);
45
+ -webkit-box-shadow:0 5px 12px rgba(0,0,0,0.3);
46
+ box-shadow:0 5px 12px rgba(0,0,0,0.3);
47
+ }
48
+ /* for vertical main menu subs and 2+ level horizontal main menu subs round all corners */
49
+ .sm-blue-vertical ul,
50
+ .sm-blue ul ul {
51
+ -moz-border-radius:4px;
52
+ -webkit-border-radius:4px;
53
+ border-radius:4px;
54
+ }
55
+
56
+
57
+ /* Menu items
58
+ ===================*/
59
+
60
+ .sm-blue a {
61
+ padding:13px 24px;
62
+ color:#fff;
63
+ font-size:18px;
64
+ line-height:23px;
65
+ font-family:"PT Sans Narrow","Arial Narrow",Arial,Helvetica,sans-serif;
66
+ font-weight:bold;
67
+ text-decoration:none;
68
+ text-shadow:0 1px 0 rgba(0,0,0,0.3);
69
+ }
70
+ .sm-blue a:hover, .sm-blue a:focus, .sm-blue a:active,
71
+ .sm-blue a.highlighted {
72
+ background:#1983af; /* Old browsers */
73
+ background-image:url(css-gradients-fallback/main-item-hover-bg.png);
74
+ background-image:-moz-linear-gradient(top,#34a2d0 0%,#006791 100%);
75
+ background-image:-webkit-gradient(linear,left top, left bottom,color-stop(0%,#34a2d0),color-stop(100%,#006791));
76
+ background-image:-webkit-linear-gradient(top,#34a2d0 0%,#006791 100%);
77
+ background-image:-o-linear-gradient(top,#34a2d0 0%,#006791 100%);
78
+ background-image:-ms-linear-gradient(top,#34a2d0 0%,#006791 100%);
79
+ background-image:linear-gradient(top,#34a2d0 0%,#006791 100%);
80
+ color:#fff;
81
+ }
82
+ .sm-blue-vertical a {
83
+ padding:9px 40px 8px 23px;
84
+ background:#3193c0; /* Old browsers */
85
+ background-image:url(css-gradients-fallback/vertical-main-item-bg.png);
86
+ background-image:-moz-linear-gradient(top,#3fa3d1 0%,#2586b3 100%);
87
+ background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#3fa3d1),color-stop(100%,#2586b3));
88
+ background-image:-webkit-linear-gradient(top,#3fa3d1 0%,#2586b3 100%);
89
+ background-image:-o-linear-gradient(top,#3fa3d1 0%,#2586b3 100%);
90
+ background-image:-ms-linear-gradient(top,#3fa3d1 0%,#2586b3 100%);
91
+ background-image:linear-gradient(top,#3fa3d1 0%,#2586b3 100%);
92
+ }
93
+ .sm-blue ul a {
94
+ padding:9px 40px 8px 23px;
95
+ background:transparent;
96
+ color:#247eab;
97
+ font-size:16px;
98
+ text-shadow:none;
99
+ }
100
+ .sm-blue ul a:hover, .sm-blue ul a:focus, .sm-blue ul a:active,
101
+ .sm-blue ul a.highlighted {
102
+ background:#3193c0; /* Old browsers */
103
+ background-image:url(css-gradients-fallback/main-menu-bg.png);
104
+ background-image:-moz-linear-gradient(top,#4cb1e0 0%,#1675a1 100%);
105
+ background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#4cb1e0),color-stop(100%,#1675a1));
106
+ background-image:-webkit-linear-gradient(top,#4cb1e0 0%,#1675a1 100%);
107
+ background-image:-o-linear-gradient(top,#4cb1e0 0%,#1675a1 100%);
108
+ background-image:-ms-linear-gradient(top,#4cb1e0 0%,#1675a1 100%);
109
+ background-image:linear-gradient(top,#4cb1e0 0%,#1675a1 100%);
110
+ color:#fff;
111
+ text-shadow:0 1px 0 rgba(0,0,0,0.3);
112
+ }
113
+ /* current items - add the class manually to some item or check the "markCurrentItem" script option */
114
+ .sm-blue a.current, .sm-blue a.current:hover, .sm-blue a.current:focus, .sm-blue a.current:active,
115
+ .sm-blue ul a.current, .sm-blue ul a.current:hover, .sm-blue ul a.current:focus, .sm-blue ul a.current:active {
116
+ background:#006892;
117
+ background-image:url(css-gradients-fallback/current-item-bg.png);
118
+ background-image:-moz-linear-gradient(top,#005a84 0%,#00749f 100%);
119
+ background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#005a84),color-stop(100%,#00749f));
120
+ background-image:-webkit-linear-gradient(top,#005a84 0%,#00749f 100%);
121
+ background-image:-o-linear-gradient(top,#005a84 0%,#00749f 100%);
122
+ background-image:-ms-linear-gradient(top,#005a84 0%,#00749f 100%);
123
+ background-image:linear-gradient(top,#005a84 0%,#00749f 100%);
124
+ color:#fff;
125
+ text-shadow:0 1px 0 rgba(0,0,0,0.3);
126
+ }
127
+ /* round the left corners of the first item for horizontal main menu */
128
+ .sm-blue > li:first-child > a {
129
+ -moz-border-radius:8px 0 0 8px;
130
+ -webkit-border-radius:8px 0 0 8px;
131
+ border-radius:8px 0 0 8px;
132
+ }
133
+ /* round the corners of the first and last items for vertical main menu */
134
+ .sm-blue-vertical > li:first-child > a {
135
+ -moz-border-radius:8px 8px 0 0;
136
+ -webkit-border-radius:8px 8px 0 0;
137
+ border-radius:8px 8px 0 0;
138
+ }
139
+ .sm-blue-vertical > li:last-child > a {
140
+ -moz-border-radius:0 0 8px 8px;
141
+ -webkit-border-radius:0 0 8px 8px;
142
+ border-radius:0 0 8px 8px;
143
+ }
144
+ .sm-blue a.has-submenu {
145
+
146
+ }
147
+
148
+
149
+ /* Sub menu indicators
150
+ ===================*/
151
+
152
+ .sm-blue a span.sub-arrow {
153
+ position:absolute;
154
+ bottom:2px;
155
+ left:50%;
156
+ margin-left:-5px;
157
+ /* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */
158
+ width:0;
159
+ height:0;
160
+ overflow:hidden;
161
+ border-width:5px; /* tweak size of the arrow */
162
+ border-style:solid dashed dashed dashed;
163
+ border-color:#a4cde1 transparent transparent transparent;
164
+ }
165
+ .sm-blue-vertical a span.sub-arrow,
166
+ .sm-blue ul a span.sub-arrow {
167
+ bottom:auto;
168
+ top:50%;
169
+ margin-top:-5px;
170
+ right:15px;
171
+ left:auto;
172
+ margin-left:0;
173
+ border-style:dashed dashed dashed solid;
174
+ border-color:transparent transparent transparent #a4cde1;
175
+ }
176
+
177
+
178
+ /* Items separators
179
+ ===================*/
180
+
181
+ .sm-blue li {
182
+ border-left:1px solid #1a8bb9;
183
+ }
184
+ .sm-blue li:first-child,
185
+ .sm-blue-vertical li,
186
+ .sm-blue ul li {
187
+ border-left:0;
188
+ }
189
+
190
+
191
+ /* Scrolling arrows containers for tall sub menus - test sub menu: "Sub test" -> "more..." -> "more..." in the default download package
192
+ ===================*/
193
+
194
+ .sm-blue span.scroll-up, .sm-blue span.scroll-down {
195
+ position:absolute;
196
+ display:none;
197
+ visibility:hidden;
198
+ overflow:hidden;
199
+ background:#ffffff;
200
+ height:20px;
201
+ /* width and position will be automatically set by the script */
202
+ }
203
+ .sm-blue span.scroll-up-arrow, .sm-blue span.scroll-down-arrow {
204
+ position:absolute;
205
+ top:-2px;
206
+ left:50%;
207
+ margin-left:-8px;
208
+ /* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */
209
+ width:0;
210
+ height:0;
211
+ overflow:hidden;
212
+ border-width:8px; /* tweak size of the arrow */
213
+ border-style:dashed dashed solid dashed;
214
+ border-color:transparent transparent #247eab transparent;
215
+ }
216
+ .sm-blue span.scroll-down-arrow {
217
+ top:6px;
218
+ border-style:solid dashed dashed dashed;
219
+ border-color:#247eab transparent transparent transparent;
220
+ }
221
+
222
+
223
+
224
+ /*
225
+ ---------------------------------------------------------------
226
+ Responsiveness
227
+ These will make the sub menus collapsible when the screen width is too small.
228
+ ---------------------------------------------------------------*/
229
+
230
+
231
+ /* decrease horizontal main menu items left/right padding to avoid wrapping */
232
+ @media screen and (max-width: 850px) {
233
+ .sm-blue:not(.sm-blue-vertical) > li > a {
234
+ padding-left:18px;
235
+ padding-right:18px;
236
+ }
237
+ }
238
+ @media screen and (max-width: 750px) {
239
+ .sm-blue:not(.sm-blue-vertical) > li > a {
240
+ padding-left:10px;
241
+ padding-right:10px;
242
+ }
243
+ }
244
+
245
+ @media screen and (max-width: 640px) {
246
+
247
+ /* The following will make the sub menus collapsible for small screen devices (it's not recommended editing these) */
248
+ ul.sm-blue{width:auto !important;}
249
+ ul.sm-blue ul{display:none;position:static !important;top:auto !important;left:auto !important;margin-left:0 !important;margin-top:0 !important;width:auto !important;min-width:0 !important;max-width:none !important;}
250
+ ul.sm-blue>li{float:none;}
251
+ ul.sm-blue>li>a,ul.sm-blue ul.sm-nowrap>li>a{white-space:normal;}
252
+ ul.sm-blue iframe{display:none;}
253
+
254
+ /* Uncomment this rule to disable completely the sub menus for small screen devices */
255
+ /*.sm-blue ul, .sm-blue span.sub-arrow, .sm-blue iframe {
256
+ display:none !important;
257
+ }*/
258
+
259
+
260
+ /* Menu box
261
+ ===================*/
262
+
263
+ .sm-blue {
264
+ background:transparent;
265
+ -moz-box-shadow:0 1px 4px rgba(0,0,0,0.3);
266
+ -webkit-box-shadow:0 1px 4px rgba(0,0,0,0.3);
267
+ box-shadow:0 1px 4px rgba(0,0,0,0.3);
268
+ }
269
+ .sm-blue ul {
270
+ border:0;
271
+ padding:0;
272
+ background:#fff;
273
+ -moz-border-radius:0;
274
+ -webkit-border-radius:0;
275
+ border-radius:0;
276
+ -moz-box-shadow:none;
277
+ -webkit-box-shadow:none;
278
+ box-shadow:none;
279
+ }
280
+ .sm-blue ul ul {
281
+ /* darken the background of the 2+ level sub menus and remove border rounding */
282
+ background:rgba(100,100,100,0.1);
283
+ -moz-border-radius:0;
284
+ -webkit-border-radius:0;
285
+ border-radius:0;
286
+ }
287
+
288
+
289
+ /* Menu items
290
+ ===================*/
291
+
292
+ .sm-blue a {
293
+ padding:10px 5px 10px 28px !important; /* add some additional left padding to make room for the sub indicator */
294
+ background:#3193c0 !important; /* Old browsers */
295
+ background-image:url(css-gradients-fallback/vertical-main-item-bg.png) !important;
296
+ background-image:-moz-linear-gradient(top,#3fa3d1 0%,#2586b3 100%) !important;
297
+ background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#3fa3d1),color-stop(100%,#2586b3)) !important;
298
+ background-image:-webkit-linear-gradient(top,#3fa3d1 0%,#2586b3 100%) !important;
299
+ background-image:-o-linear-gradient(top,#3fa3d1 0%,#2586b3 100%) !important;
300
+ background-image:-ms-linear-gradient(top,#3fa3d1 0%,#2586b3 100%) !important;
301
+ background-image:linear-gradient(top,#3fa3d1 0%,#2586b3 100%) !important;
302
+ color:#fff !important;
303
+ }
304
+ .sm-blue ul a {
305
+ background:transparent !important;
306
+ color:#247eab !important;
307
+ text-shadow:none !important;
308
+ }
309
+ .sm-blue a.current {
310
+ background:#006892 !important; /* Old browsers */
311
+ background-image:url(css-gradients-fallback/current-item-bg.png) !important;
312
+ background-image:-moz-linear-gradient(top,#005a84 0%,#00749f 100%) !important;
313
+ background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#005a84),color-stop(100%,#00749f)) !important;
314
+ background-image:-webkit-linear-gradient(top,#005a84 0%,#00749f 100%) !important;
315
+ background-image:-o-linear-gradient(top,#005a84 0%,#00749f 100%) !important;
316
+ background-image:-ms-linear-gradient(top,#005a84 0%,#00749f 100%) !important;
317
+ background-image:linear-gradient(top,#005a84 0%,#00749f 100%) !important;
318
+ color:#fff !important;
319
+ }
320
+ /* add some text indentation for the 2+ level sub menu items */
321
+ .sm-blue ul a {
322
+ border-left:8px solid transparent;
323
+ }
324
+ .sm-blue ul ul a {
325
+ border-left:16px solid transparent;
326
+ }
327
+ .sm-blue ul ul ul a {
328
+ border-left:24px solid transparent;
329
+ }
330
+ .sm-blue ul ul ul ul a {
331
+ border-left:32px solid transparent;
332
+ }
333
+ .sm-blue ul ul ul ul ul a {
334
+ border-left:40px solid transparent;
335
+ }
336
+ /* round the corners of the first and last items */
337
+ .sm-blue > li:first-child > a {
338
+ -moz-border-radius:8px 8px 0 0;
339
+ -webkit-border-radius:8px 8px 0 0;
340
+ border-radius:8px 8px 0 0;
341
+ }
342
+ /* presume we have 4 levels max */
343
+ .sm-blue > li:last-child > a,
344
+ .sm-blue > li:last-child > ul > li:last-child > a,
345
+ .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > a,
346
+ .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a,
347
+ .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a,
348
+ .sm-blue > li:last-child > ul,
349
+ .sm-blue > li:last-child > ul > li:last-child > ul,
350
+ .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul,
351
+ .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul,
352
+ .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul {
353
+ -moz-border-radius:0 0 8px 8px;
354
+ -webkit-border-radius:0 0 8px 8px;
355
+ border-radius:0 0 8px 8px;
356
+ }
357
+ /* highlighted items, don't need rounding since their sub is open */
358
+ .sm-blue > li:last-child > a.highlighted,
359
+ .sm-blue > li:last-child > ul > li:last-child > a.highlighted,
360
+ .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted,
361
+ .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted,
362
+ .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted {
363
+ -moz-border-radius:0;
364
+ -webkit-border-radius:0;
365
+ border-radius:0;
366
+ }
367
+
368
+
369
+ /* Sub menu indicators
370
+ ===================*/
371
+
372
+ .sm-blue a span.sub-arrow,
373
+ .sm-blue ul a span.sub-arrow {
374
+ top:50%;
375
+ margin-top:-9px;
376
+ right:auto;
377
+ left:6px;
378
+ margin-left:0;
379
+ width:17px;
380
+ height:17px;
381
+ font:bold 16px/16px monospace !important;
382
+ text-align:center;
383
+ border:0;
384
+ text-shadow:none;
385
+ background:rgba(0,0,0,0.1);
386
+ -moz-border-radius:100px;
387
+ -webkit-border-radius:100px;
388
+ border-radius:100px;
389
+ }
390
+ /* Hide sub indicator "+" when item is expanded - we enable the item link when it's expanded */
391
+ .sm-blue a.highlighted span.sub-arrow {
392
+ display:none !important;
393
+ }
394
+
395
+
396
+ /* Items separators
397
+ ===================*/
398
+
399
+ .sm-blue li {
400
+ border-left:0;
401
+ }
402
+ .sm-blue ul li {
403
+ border-top:1px solid rgba(0,0,0,0.05);
404
+ }
405
+ .sm-blue ul li:first-child {
406
+ border-top:0;
407
+ }
408
+
409
+ }