contour 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +13 -0
- data/README.rdoc +1 -7
- data/Rakefile +38 -0
- data/{vendor → app}/assets/images/contour/addfile.png +0 -0
- data/{vendor → app}/assets/images/contour/arrow.png +0 -0
- data/{vendor → app}/assets/images/contour/blank.png +0 -0
- data/{vendor → app}/assets/images/contour/cas_32.png +0 -0
- data/{vendor → app}/assets/images/contour/cas_64.png +0 -0
- data/{vendor → app}/assets/images/contour/cross.png +0 -0
- data/{vendor → app}/assets/images/contour/delete.png +0 -0
- data/{vendor → app}/assets/images/contour/doc.png +0 -0
- data/{vendor → app}/assets/images/contour/download.png +0 -0
- data/{vendor → app}/assets/images/contour/edit.png +0 -0
- data/{vendor → app}/assets/images/contour/email.png +0 -0
- data/{vendor → app}/assets/images/contour/external.png +0 -0
- data/{vendor → app}/assets/images/contour/facebook_32.png +0 -0
- data/{vendor → app}/assets/images/contour/facebook_64.png +0 -0
- data/{vendor → app}/assets/images/contour/favorite_no.png +0 -0
- data/{vendor → app}/assets/images/contour/favorite_yes.png +0 -0
- data/{vendor → app}/assets/images/contour/feed.png +0 -0
- data/{vendor → app}/assets/images/contour/google_apps_32.png +0 -0
- data/{vendor → app}/assets/images/contour/google_apps_64.png +0 -0
- data/{vendor → app}/assets/images/contour/im.png +0 -0
- data/{vendor → app}/assets/images/contour/information.png +0 -0
- data/{vendor → app}/assets/images/contour/key.png +0 -0
- data/{vendor → app}/assets/images/contour/ldap_32.png +0 -0
- data/{vendor → app}/assets/images/contour/ldap_64.png +0 -0
- data/{vendor → app}/assets/images/contour/linkedin_32.png +0 -0
- data/{vendor → app}/assets/images/contour/linkedin_64.png +0 -0
- data/{vendor → app}/assets/images/contour/mydocuments.png +0 -0
- data/{vendor → app}/assets/images/contour/open.png +0 -0
- data/{vendor → app}/assets/images/contour/openid_32.png +0 -0
- data/{vendor → app}/assets/images/contour/openid_64.png +0 -0
- data/{vendor → app}/assets/images/contour/pdf.png +0 -0
- data/{vendor → app}/assets/images/contour/save.png +0 -0
- data/{vendor → app}/assets/images/contour/search.png +0 -0
- data/{vendor → app}/assets/images/contour/tag_blue.png +0 -0
- data/{vendor → app}/assets/images/contour/tag_green.png +0 -0
- data/{vendor → app}/assets/images/contour/tag_neutral.png +0 -0
- data/{vendor → app}/assets/images/contour/tag_red.png +0 -0
- data/{vendor → app}/assets/images/contour/tick.png +0 -0
- data/{vendor → app}/assets/images/contour/twitter_32.png +0 -0
- data/{vendor → app}/assets/images/contour/twitter_64.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-icons_217bc0_256x240.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-icons_2e83ff_256x240.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-icons_469bdd_256x240.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-icons_6da8d5_256x240.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-icons_cd0a0a_256x240.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-icons_d8e7f3_256x240.png +0 -0
- data/{vendor → app}/assets/images/contour/ui-icons_f9bd01_256x240.png +0 -0
- data/{vendor → app}/assets/images/contour/visited.png +0 -0
- data/{vendor → app}/assets/images/contour/warning.png +0 -0
- data/{vendor → app}/assets/images/contour/xls.png +0 -0
- data/{vendor → app}/assets/javascripts/contour.js +0 -0
- data/{vendor → app}/assets/javascripts/contour/errors.js.coffee +0 -0
- data/app/assets/javascripts/contour/global.js.coffee +13 -0
- data/app/assets/javascripts/contour/menu.js.coffee +21 -0
- data/{vendor → app}/assets/javascripts/contour/popup.js.coffee +0 -0
- data/{vendor → app}/assets/javascripts/external/exporting-2.1.9.src.js +0 -0
- data/{vendor → app}/assets/javascripts/external/highcharts-2.1.9.src.js +0 -0
- data/{vendor → app}/assets/javascripts/external/jquery-ui-1.8.10.custom.min.js +0 -0
- data/{vendor → app}/assets/javascripts/external/waypoints.js +0 -0
- data/{vendor → app}/assets/stylesheets/bluetrip-screen.css +0 -0
- data/{vendor → app}/assets/stylesheets/contour.css +0 -0
- data/{vendor → app}/assets/stylesheets/contour/authentication.css +0 -0
- data/{vendor → app}/assets/stylesheets/contour/global.css +2 -1
- data/{vendor → app}/assets/stylesheets/contour/header.css +0 -0
- data/app/assets/stylesheets/contour/menu.css +109 -0
- data/{vendor → app}/assets/stylesheets/contour/message.css +15 -3
- data/{vendor → app}/assets/stylesheets/contour/popup.css +0 -0
- data/{vendor → app}/assets/stylesheets/jquery-ui-1.8.10.custom.css +0 -0
- data/app/models/authentication.rb +11 -0
- data/app/views/contour/authentications/_menu.html.erb +26 -0
- data/app/views/contour/layouts/_menu.html.erb +15 -21
- data/app/views/contour/layouts/application.html.erb +2 -4
- data/app/views/contour/sessions/new.html.erb +2 -2
- data/config/routes.rb +16 -0
- data/contour.gemspec +15 -11
- data/lib/contour.rb +10 -6
- data/lib/contour/engine.rb +0 -1
- data/lib/contour/version.rb +2 -2
- data/lib/generators/contour/install_generator.rb +5 -4
- data/lib/generators/templates/contour.rb +10 -6
- data/test/contour_test.rb +7 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +8 -0
- data/test/dummy/app/assets/stylesheets/application.css +8 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/user.rb +45 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +45 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +37 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/devise.rb +153 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/omniauth.rb +22 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/db/migrate/20111203203123_create_users.rb +26 -0
- data/test/dummy/db/migrate/20111203203307_create_authentications.rb +11 -0
- data/test/dummy/db/schema.rb +45 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/fixtures/authentications.yml +14 -9
- data/test/fixtures/users.yml +70 -0
- data/test/functional/authentications_controller_test.rb +2 -2
- data/test/functional/registrations_controller_test.rb +9 -9
- data/test/integration/navigation_test.rb +8 -0
- data/test/test_helper.rb +52 -0
- data/test/unit/authentication_test.rb +6 -3
- data/test/unit/user_test.rb +13 -0
- metadata +186 -96
- data/.gitignore +0 -7
- data/.rvmrc +0 -1
- data/lib/contour/engine/routes.rb +0 -10
- data/test/unit/helpers/registrations_helper_test.rb +0 -4
- data/vendor/assets/javascripts/contour/global.js.coffee +0 -38
- data/vendor/assets/javascripts/contour/menu.js.coffee +0 -6
- data/vendor/assets/stylesheets/contour/menu.css +0 -77
data/.gitignore
DELETED
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm 1.9.3
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# Global functions referenced from HTML
|
2
|
-
@showWaiting = (element_id, text, centered) ->
|
3
|
-
element = $(element_id)
|
4
|
-
if element && centered
|
5
|
-
element.html('<br /><center><img width=\"13\" height=\"13\" src=\"' + root_url + 'assets/ajax-loader.gif\" align=\"absmiddle\" alt=\"...\" />' + text + '</center><br />')
|
6
|
-
else if element
|
7
|
-
element.html('<img width=\"13\" height=\"13\" src=\"' + root_url + 'assets/ajax-loader.gif\" align=\"absmiddle\" alt=\"...\" />' + text)
|
8
|
-
|
9
|
-
# Mouse Out Functions to Show and Hide Divs
|
10
|
-
|
11
|
-
@isTrueMouseOut = (e, handler) ->
|
12
|
-
if e.type != 'mouseout'
|
13
|
-
return false
|
14
|
-
|
15
|
-
# relTarget
|
16
|
-
if e.relatedTarget
|
17
|
-
relTarget = e.relatedTarget
|
18
|
-
else if e.type == 'mouseout'
|
19
|
-
relTarget = e.toElement
|
20
|
-
else
|
21
|
-
relTarget = e.fromElement
|
22
|
-
while relTarget && relTarget != handler
|
23
|
-
relTarget = relTarget.parentNode
|
24
|
-
relTarget != handler
|
25
|
-
|
26
|
-
@hideOnMouseOut = (elements) ->
|
27
|
-
$.each(elements, (index, value) ->
|
28
|
-
element = $(value)
|
29
|
-
element.mouseout((e, handler) ->
|
30
|
-
if isTrueMouseOut(e||window.event, this) then element.hide()
|
31
|
-
)
|
32
|
-
)
|
33
|
-
|
34
|
-
@showMessage = (elements) ->
|
35
|
-
$.each(elements, (index, value) ->
|
36
|
-
element = $(value)
|
37
|
-
element.fadeIn(2000)
|
38
|
-
)
|
@@ -1,77 +0,0 @@
|
|
1
|
-
/**************************************/
|
2
|
-
/* NAVIGATION */
|
3
|
-
/**************************************/
|
4
|
-
|
5
|
-
#menu {
|
6
|
-
background:#404040;
|
7
|
-
padding:5px;
|
8
|
-
color: #fff;
|
9
|
-
}
|
10
|
-
|
11
|
-
.sticky {
|
12
|
-
position:fixed;
|
13
|
-
top:0;
|
14
|
-
width:950px;
|
15
|
-
margin:0 auto;
|
16
|
-
z-index:100;
|
17
|
-
}
|
18
|
-
|
19
|
-
#menu a {
|
20
|
-
color: #fff;
|
21
|
-
text-decoration: none;
|
22
|
-
padding:0 5px;
|
23
|
-
}
|
24
|
-
|
25
|
-
#menu a:hover {
|
26
|
-
color: #EB6C20;
|
27
|
-
}
|
28
|
-
|
29
|
-
div.menu_dropdown_right, div.menu_dropdown_right_center {
|
30
|
-
background-color: #fff;
|
31
|
-
position:absolute;
|
32
|
-
border: 2px solid #0E7799;
|
33
|
-
color: #404040;
|
34
|
-
border-top: 0px;
|
35
|
-
top:-2em;
|
36
|
-
padding:5px;
|
37
|
-
padding-right:8px;
|
38
|
-
right:-5px;
|
39
|
-
z-index:10;
|
40
|
-
text-align:right;
|
41
|
-
}
|
42
|
-
|
43
|
-
div.menu_dropdown_left, div.menu_dropdown_left_center {
|
44
|
-
background-color: #fff;
|
45
|
-
position:absolute;
|
46
|
-
border: 2px solid #0E7799;
|
47
|
-
color: #404040;
|
48
|
-
border-top: 0px;
|
49
|
-
top:-2em;
|
50
|
-
padding:5px;
|
51
|
-
padding-left:8px;
|
52
|
-
left:-5px;
|
53
|
-
z-index:10;
|
54
|
-
text-align: left;
|
55
|
-
}
|
56
|
-
|
57
|
-
#menu div.menu_dropdown_left a, #menu div.menu_dropdown_left_center a, #menu div.menu_dropdown_right a, #menu div.menu_dropdown_right_center a {
|
58
|
-
color: #057080;
|
59
|
-
padding-left: 0px;
|
60
|
-
padding-right: 0px;
|
61
|
-
}
|
62
|
-
|
63
|
-
#menu div.menu_dropdown_left a:hover, #menu div.menu_dropdown_left_center a:hover, #menu div.menu_dropdown_right a:hover, #menu div.menu_dropdown_right_center a:hover {
|
64
|
-
color: #EB6C20;
|
65
|
-
}
|
66
|
-
|
67
|
-
#menu, div.menu_dropdown_right {
|
68
|
-
border-bottom-right-radius: 8px;
|
69
|
-
-moz-border-radius-bottomright: 8px;
|
70
|
-
-webkit-border-radius-bottomright: 8px;
|
71
|
-
}
|
72
|
-
|
73
|
-
#menu, div.menu_dropdown_left {
|
74
|
-
border-bottom-left-radius: 8px;
|
75
|
-
-moz-border-radius-bottomleft: 8px;
|
76
|
-
-webkit-border-radius-bottomleft: 8px;
|
77
|
-
}
|