contour 1.0.0.beta2 → 1.0.0.beta3

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,11 +6,5 @@
6
6
  else if element
7
7
  element.html('<img width=\"13\" height=\"13\" src=\"' + root_url + 'assets/ajax-loader.gif\" align=\"absmiddle\" alt=\"...\" />' + text)
8
8
 
9
- @showMessage = (elements) ->
10
- $.each(elements, (index, value) ->
11
- element = $(value)
12
- element.fadeIn(2000)
13
- )
14
-
15
9
  jQuery ->
16
10
  $(".collapse").collapse()
@@ -3,16 +3,17 @@ module ContourHelper
3
3
  def flash_block
4
4
  output = ''
5
5
  flash.each do |type, message|
6
- output += flash_container(type, message)
6
+ output += flash_container(type, message) if ['alert', 'notice', 'error', 'warning', 'success', 'info'].include?(type.to_s)
7
7
  end
8
8
 
9
9
  raw(output)
10
10
  end
11
11
 
12
12
  def flash_container(type, message)
13
- raw(content_tag(:div, :class => "alert alert-#{type}") do
14
- content_tag(:a, raw("&times;"),:class => 'close', :data => {:dismiss => 'alert'}) +
15
- message
16
- end)
13
+ type = 'success' if type.to_s == 'notice'
14
+ type = 'error' if type.to_s == 'alert'
15
+ content_tag(:div, class: "alert alert-#{type}") do
16
+ content_tag(:a, raw("&times;"), href: '#', class: 'close', data: { dismiss: 'alert' }) + message
17
+ end.html_safe
17
18
  end
18
19
  end
@@ -6,7 +6,7 @@
6
6
  <!--[if lt IE 9]>
7
7
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
8
8
  <![endif]-->
9
- <%= stylesheet_link_tag "application", :media => "all" %>
9
+ <%= stylesheet_link_tag "application", media: "all" %>
10
10
  <%= javascript_include_tag "application" %>
11
11
  <%= csrf_meta_tags %>
12
12
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -30,22 +30,16 @@
30
30
  <%= link_to (Contour.application_name_html.blank? ? Contour.application_name : Contour.application_name_html.html_safe), root_path, style: 'text-decoration:none;', onmouseover: "$('#version').show();", onmouseout: "$('#version').hide();" %>
31
31
  <span id="version" style="display:none;font-size:0.5em;font-variant:normal" class="quiet"><%= Contour.application_version %></span>
32
32
  </div>
33
+ <% end %>
33
34
 
34
- <div class="container" style="position:relative">
35
- <div id="message">
36
- <%= render partial: 'contour/layouts/message' %>
37
- </div>
35
+ <div class="navbar navbar-fixed-top">
36
+ <%= render partial: 'contour/layouts/menu' %>
38
37
  </div>
39
- <% end %>
40
38
 
41
39
  <div class="container">
42
40
  <%= flash_block %>
43
41
  </div>
44
42
 
45
- <div class="navbar navbar-fixed-top">
46
- <%= render partial: 'contour/layouts/menu' %>
47
- </div>
48
-
49
43
  <div class="container">
50
44
  <%= yield %>
51
45
  </div>
@@ -3,7 +3,7 @@ module Contour
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
5
  TINY = 0
6
- BUILD = "beta2" # nil, "pre", "rc", "rc2"
6
+ BUILD = "beta3" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contour
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta2
4
+ version: 1.0.0.beta3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-30 00:00:00.000000000 Z
12
+ date: 2012-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70203892515100 !ruby/object:Gem::Requirement
16
+ requirement: &70342550843280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70203892515100
24
+ version_requirements: *70342550843280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: twitter-bootstrap-rails
27
- requirement: &70203892514600 !ruby/object:Gem::Requirement
27
+ requirement: &70342550842480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.0.6
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70203892514600
35
+ version_requirements: *70342550842480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jquery-rails
38
- requirement: &70203892514140 !ruby/object:Gem::Requirement
38
+ requirement: &70342550841180 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.0.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70203892514140
46
+ version_requirements: *70342550841180
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: devise
49
- requirement: &70203892513680 !ruby/object:Gem::Requirement
49
+ requirement: &70342550839260 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.0.4
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70203892513680
57
+ version_requirements: *70342550839260
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: omniauth
60
- requirement: &70203892513220 !ruby/object:Gem::Requirement
60
+ requirement: &70342550838600 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.0.3
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70203892513220
68
+ version_requirements: *70342550838600
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: omniauth-openid
71
- requirement: &70203892512760 !ruby/object:Gem::Requirement
71
+ requirement: &70342550837880 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.0.1
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70203892512760
79
+ version_requirements: *70342550837880
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: omniauth-ldap
82
- requirement: &70203892512300 !ruby/object:Gem::Requirement
82
+ requirement: &70342550837120 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 1.0.2
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70203892512300
90
+ version_requirements: *70342550837120
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: omniauth-twitter
93
- requirement: &70203892511840 !ruby/object:Gem::Requirement
93
+ requirement: &70342550836140 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 0.0.11
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70203892511840
101
+ version_requirements: *70342550836140
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: omniauth-facebook
104
- requirement: &70203892511380 !ruby/object:Gem::Requirement
104
+ requirement: &70342550835260 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 1.2.0
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70203892511380
112
+ version_requirements: *70342550835260
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: omniauth-linkedin
115
- requirement: &70203892510920 !ruby/object:Gem::Requirement
115
+ requirement: &70342550834020 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 0.0.6
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70203892510920
123
+ version_requirements: *70342550834020
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: omniauth-cas
126
- requirement: &70203892510460 !ruby/object:Gem::Requirement
126
+ requirement: &70342550832240 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 0.0.6
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *70203892510460
134
+ version_requirements: *70342550832240
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: sqlite3
137
- requirement: &70203892510080 !ruby/object:Gem::Requirement
137
+ requirement: &70342550831420 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,7 +142,7 @@ dependencies:
142
142
  version: '0'
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *70203892510080
145
+ version_requirements: *70342550831420
146
146
  description: Basic Rails Framework files and assets for layout and authentication
147
147
  email: remosm@gmail.com
148
148
  executables: []
@@ -454,7 +454,6 @@ files:
454
454
  - app/views/contour/confirmations/new.html.erb
455
455
  - app/views/contour/layouts/_latest_news.html.erb
456
456
  - app/views/contour/layouts/_menu.html.erb
457
- - app/views/contour/layouts/_message.html.erb
458
457
  - app/views/contour/layouts/application.html.erb
459
458
  - app/views/contour/passwords/edit.html.erb
460
459
  - app/views/contour/passwords/new.html.erb
@@ -1,8 +0,0 @@
1
- <% unless notice.blank? %>
2
- <div id="msg_notice" class="notice" style="display:none"><%= notice %></div>
3
- <%= javascript_tag "showMessage(['#msg_notice']);" %>
4
- <% end %>
5
- <% unless alert.blank? %>
6
- <div id="msg_alert" class="error" style="display:none"><%= alert %></div>
7
- <%= javascript_tag "showMessage(['#msg_alert']);" %>
8
- <% end %>