omf_web 1.2.5 → 1.2.6

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 (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,218 @@
1
+ /*
2
+ ---------------------------------------------------------------
3
+ Note that styles you apply to the main menu items are inherited by the sub menus items too.
4
+ If you'd like to avoid this, you could use child selectors (not supported by IE6) - for example:
5
+ .sm-simple > li > a { ... } instead of .sm-simple a { ... }
6
+ ---------------------------------------------------------------*/
7
+
8
+
9
+ /* Menu box
10
+ ===================*/
11
+
12
+ .sm-simple,
13
+ .sm-simple ul {
14
+ border:1px solid #bbb;
15
+ background:#fff;
16
+ -moz-box-shadow:0 1px 1px rgba(0,0,0,0.2);
17
+ -webkit-box-shadow:0 1px 1px rgba(0,0,0,0.2);
18
+ box-shadow:0 1px 1px rgba(0,0,0,0.2);
19
+ }
20
+
21
+
22
+ /* Menu items
23
+ ===================*/
24
+
25
+ .sm-simple a {
26
+ padding:11px 20px;
27
+ color:#555;
28
+ font-size:14px;
29
+ line-height:17px;
30
+ font-family:'Lucida Sans Unicode','Lucida Sans','Lucida Grande',Arial,sans-serif;
31
+ text-decoration:none;
32
+ }
33
+ .sm-simple a:hover, .sm-simple a:focus, .sm-simple a:active,
34
+ .sm-simple a.highlighted {
35
+ background:#eee;
36
+ color:#555;
37
+ }
38
+ /* current items - add the class manually to some item or check the "markCurrentItem" script option */
39
+ .sm-simple a.current, .sm-simple a.current:hover, .sm-simple a.current:focus, .sm-simple a.current:active {
40
+ background:#555;
41
+ color:#fff;
42
+ }
43
+ .sm-simple a.has-submenu {
44
+ padding-right:32px;
45
+ }
46
+ .sm-simple ul a.has-submenu,
47
+ .sm-simple-vertical a.has-submenu {
48
+ padding-right:23px;
49
+ }
50
+
51
+
52
+ /* Sub menu indicators
53
+ ===================*/
54
+
55
+ .sm-simple a span.sub-arrow {
56
+ position:absolute;
57
+ right:12px;
58
+ top:50%;
59
+ margin-top:-8px;
60
+ width:16px;
61
+ height:16px;
62
+ line-height:16px;
63
+ }
64
+ .sm-simple ul a span.sub-arrow,
65
+ .sm-simple-vertical a span.sub-arrow {
66
+ right:auto;
67
+ margin-left:-14px;
68
+ }
69
+
70
+
71
+ /* Items separators
72
+ ===================*/
73
+
74
+ .sm-simple li {
75
+ border-left:1px solid #f3f3f3;
76
+ }
77
+ .sm-simple li:first-child {
78
+ border-left:0;
79
+ }
80
+ .sm-simple ul li,
81
+ .sm-simple-vertical li {
82
+ border-left:0;
83
+ border-top:1px solid #f3f3f3;
84
+ }
85
+ .sm-simple ul li:first-child,
86
+ .sm-simple-vertical li:first-child {
87
+ border-top:0;
88
+ }
89
+
90
+
91
+ /* Scrolling arrows containers for tall sub menus - test sub menu: "Sub test" -> "more..." -> "more..." in the default download package
92
+ ===================*/
93
+
94
+ .sm-simple span.scroll-up, .sm-simple span.scroll-down {
95
+ position:absolute;
96
+ display:none;
97
+ visibility:hidden;
98
+ overflow:hidden;
99
+ border:solid #bbb;
100
+ border-width:1px 0;
101
+ background:#fff;
102
+ height:20px;
103
+ /* width and position will be automatically set by the script */
104
+ }
105
+ .sm-simple span.scroll-up-arrow, .sm-simple span.scroll-down-arrow {
106
+ position:absolute;
107
+ top:-2px;
108
+ left:50%;
109
+ margin-left:-8px;
110
+ /* 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 */
111
+ width:0;
112
+ height:0;
113
+ overflow:hidden;
114
+ border-width:8px; /* tweak size of the arrow */
115
+ border-style:dashed dashed solid dashed;
116
+ border-color:transparent transparent #555 transparent;
117
+ }
118
+ .sm-simple span.scroll-down-arrow {
119
+ top:6px;
120
+ border-style:solid dashed dashed dashed;
121
+ border-color:#555 transparent transparent transparent;
122
+ }
123
+
124
+
125
+ /*
126
+ ---------------------------------------------------------------
127
+ Responsiveness
128
+ These will make the sub menus collapsible when the screen width is too small.
129
+ ---------------------------------------------------------------*/
130
+
131
+
132
+ @media screen and (max-width: 640px) {
133
+
134
+ /* The following will make the sub menus collapsible for small screen devices (it's not recommended editing these) */
135
+ ul.sm-simple{width:auto !important;}
136
+ ul.sm-simple 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;}
137
+ ul.sm-simple>li{float:none;}
138
+ ul.sm-simple>li>a,ul.sm-simple ul.sm-nowrap>li>a{white-space:normal;}
139
+ ul.sm-simple iframe{display:none;}
140
+
141
+ /* Uncomment this rule to disable completely the sub menus for small screen devices */
142
+ /*.sm-simple ul, .sm-simple span.sub-arrow, .sm-simple iframe {
143
+ display:none !important;
144
+ }*/
145
+
146
+
147
+ /* Menu box
148
+ ===================*/
149
+
150
+ .sm-simple ul {
151
+ border:0;
152
+ /* darken the background of the sub menus */
153
+ background:rgba(100,100,100,0.1);
154
+ -moz-box-shadow:none;
155
+ -webkit-box-shadow:none;
156
+ box-shadow:none;
157
+ }
158
+
159
+
160
+ /* Menu items
161
+ ===================*/
162
+
163
+ .sm-simple a {
164
+ padding-top:13px;
165
+ padding-bottom:13px;
166
+ background:transparent !important;
167
+ color:#555 !important;
168
+ }
169
+ .sm-simple a.current {
170
+ background:#555 !important;
171
+ color:#fff !important;
172
+ }
173
+ .sm-simple a.has-submenu {
174
+ padding-right:23px;
175
+ }
176
+ /* add some text indentation for the 2+ level sub menu items */
177
+ .sm-simple ul a {
178
+ border-left:8px solid transparent;
179
+ }
180
+ .sm-simple ul ul a {
181
+ border-left:16px solid transparent;
182
+ }
183
+ .sm-simple ul ul ul a {
184
+ border-left:24px solid transparent;
185
+ }
186
+ .sm-simple ul ul ul ul a {
187
+ border-left:32px solid transparent;
188
+ }
189
+ .sm-simple ul ul ul ul ul a {
190
+ border-left:40px solid transparent;
191
+ }
192
+
193
+
194
+ /* Sub menu indicators
195
+ ===================*/
196
+
197
+ .sm-simple a span.sub-arrow {
198
+ right:auto;
199
+ margin-left:-14px;
200
+ }
201
+ /* Hide sub indicator when item is expanded - we enable the item link when it's expanded */
202
+ .sm-simple a.highlighted span.sub-arrow {
203
+ display:none !important;
204
+ }
205
+
206
+
207
+ /* Items separators
208
+ ===================*/
209
+
210
+ .sm-simple li {
211
+ border-left:0;
212
+ border-top:1px solid rgba(0,0,0,0.05) !important;
213
+ }
214
+ .sm-simple li:first-child {
215
+ border-top:0 !important;
216
+ }
217
+
218
+ }