contour 2.1.0.beta15 → 2.1.0.beta16

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5aa9c3c7d02b9704cf1f81a2e8393efc714172ec
4
- data.tar.gz: f2c72dac6c6460738fa4c0540d0f16d8735ab13e
3
+ metadata.gz: 01903d7f529481bbc3a19c40a784ba83f789a216
4
+ data.tar.gz: 0b2c9921b085b594d803f99cd5f18f76b4e10b56
5
5
  SHA512:
6
- metadata.gz: e49f780ed45e36da7ebb1f636aefd4a523c453f65f7a1570f593b728a9f1797f7a5a36f15a8fd4582b97de7c04c381808437f40c7c8e187ae066f4fba52fc9a0
7
- data.tar.gz: bd7694acf9389181a7e32ce7a4eed76a3fcf52dd96acd7ffd25af2cb5a55790343824a1a3e5a7aaa325b65b87a6c3d91a7492214b42c6d61a6f72180754f163d
6
+ metadata.gz: bd4d7d442b3642d68c417aa6f4608bf4ad315732409a9a5fa5f45ccf68abde3669228dc92f80b19cb54c96d2512ea40b0df985982249b7f32e41fdef61ff696e
7
+ data.tar.gz: 1f4f848faeaf2402c1ebb5d4d1f1c57782c73381e18f65a1d976eae7f5a018afc8f9f1aaa04e55798a23ecc0732db82ccda7d3dd93b512bb9d18006a2c27b3a9
@@ -28,7 +28,8 @@ module ContourHelper
28
28
  # From Twitter-Bootstrap-Rails
29
29
  def flash_container(type, message)
30
30
  type = 'success' if type.to_s == 'notice'
31
- type = 'error' if type.to_s == 'alert'
31
+ type = 'danger' if ['alert', 'error'].include?(type.to_s)
32
+
32
33
  content_tag(:div, class: "navbar-alert alert alert-#{type}") do
33
34
  content_tag(:a, raw("×"), href: '#', class: 'close', data: { dismiss: 'alert' }) + message
34
35
  end.html_safe
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
 
16
16
  <div class="form-group">
17
- <div class="col-md-10 col-md-offset-2">
17
+ <div class="col-md-offset-2 col-md-10">
18
18
  <%= f.submit "Resend confirmation instructions", class: 'btn btn-primary' %>
19
19
  <%= render partial: 'contour/links' %>
20
20
  </div>
@@ -22,7 +22,7 @@
22
22
  </div>
23
23
 
24
24
  <div class="form-group">
25
- <div class="col-md-10 col-md-offset-2">
25
+ <div class="col-md-offset-2 col-md-10">
26
26
  <%= f.submit "Change my password", class: 'btn btn-primary' %>
27
27
  <%= render partial: 'contour/links' %>
28
28
  </div>
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
 
16
16
  <div class="form-group">
17
- <div class="col-md-10 col-md-offset-2">
17
+ <div class="col-md-offset-2 col-md-10">
18
18
  <%= f.submit "Send me reset password instructions", class: 'btn btn-primary' %>
19
19
  <%= render partial: 'contour/links' %>
20
20
  </div>
@@ -37,7 +37,7 @@
37
37
  </div>
38
38
 
39
39
  <div class="form-group">
40
- <div class="col-md-10 col-md-offset-2">
40
+ <div class="col-md-offset-2 col-md-10">
41
41
  <%= f.submit "Update", class: 'btn btn-primary' %>
42
42
  </div>
43
43
  </div>
@@ -46,7 +46,7 @@
46
46
  <% end %>
47
47
 
48
48
  <div class="form-group">
49
- <div class="col-md-10 col-md-offset-2">
49
+ <div class="col-md-offset-2 col-md-10">
50
50
  <%= f.submit "Sign up", class: 'btn btn-primary' %>
51
51
  <%= render partial: 'contour/links' %>
52
52
  </div>
@@ -1,10 +1,6 @@
1
1
  <% @title = 'About Contour' %>
2
2
 
3
- <div class="row" style="margin-top:54px">
4
- <div class="span12">
5
- <h1 class="about-title"><%= @title %></h1>
6
- </div>
7
- </div>
3
+ <h1 class="about-title" style="margin-top:54px"><%= @title %></h1>
8
4
 
9
5
  <hr class="soften">
10
6
 
@@ -1,7 +1,7 @@
1
1
  <% @title = 'Sign in' %>
2
2
 
3
3
  <div class="row">
4
- <div class="span8">
4
+ <div class="col-md-8">
5
5
  <div class="page-header">
6
6
  <h1><%= @title %></h1>
7
7
  </div>
@@ -23,24 +23,33 @@
23
23
 
24
24
  <% if devise_mapping.rememberable? -%>
25
25
  <div class="form-group">
26
- <div class="col-md-10 checkbox">
27
- <%= f.check_box :remember_me %> <%= f.label :remember_me %>
26
+ <div class="col-md-offset-2 col-md-10">
27
+ <div class="checkbox">
28
+ <label>
29
+ <%= f.check_box :remember_me %>
30
+ Remember me
31
+ </label>
32
+ </div>
28
33
  </div>
29
34
  </div>
30
35
  <% end -%>
31
36
 
32
37
  <div class="form-group">
33
- <div class="col-md-10 col-md-offset-2">
38
+ <div class="col-md-offset-2 col-md-10">
34
39
  <%= f.submit "Sign in", class: 'btn btn-primary' %>
35
40
  <%= render partial: 'contour/links' %>
41
+ <% PROVIDERS.each do |provider| %>
42
+ <a href="<%= request.script_name + "/" + OmniAuth.config.path_prefix.split('/').last.to_s + "/" + provider.to_s.downcase %>" class="btn btn-large btn-default" style="white-space:nowrap">
43
+ <%= image_tag "contour/#{provider.to_s.downcase}_32.png", align: 'absmiddle' %>
44
+ </a>
45
+ <% end %>
36
46
  </div>
37
47
  </div>
38
-
39
- <%= render partial: 'contour/authentications/login_table' %>
40
48
  <% end %>
49
+
41
50
  </div>
42
51
 
43
- <div class="span4">
52
+ <div class="col-md-4">
44
53
  <%= render partial: 'contour/layouts/latest_news' %>
45
54
  </div>
46
55
  </div>
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
 
16
16
  <div class="form-group">
17
- <div class="col-md-10 col-md-offset-2">
17
+ <div class="col-md-offset-2 col-md-10">
18
18
  <%= f.submit "Resend unlock instructions", class: 'btn btn-primary' %>
19
19
  <%= render partial: 'contour/links' %>
20
20
  </div>
@@ -3,7 +3,7 @@ module Contour
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
5
  TINY = 0
6
- BUILD = "beta15" # nil, "pre", "rc", "rc2"
6
+ BUILD = "beta16" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
@@ -17,22 +17,27 @@
17
17
 
18
18
  <%- columns.each do |column| -%>
19
19
  <div class="form-group">
20
- <%%= f.label :<%= column.name %>, nil, class: 'col-md-2 control-label' %>
21
- <div class="col-md-10">
20
+ <% unless column.field_type == :check_box %><%%= f.label :<%= column.name %>, nil, class: 'col-md-2 control-label' %><% end %>
21
+ <div class="<%- if column.field_type == :check_box %>col-md-offset-2 <%- end -%>col-md-10">
22
22
  <%- if column.name.split('_').last == 'id' -%>
23
23
  <%%= f.select :<%= column.name %>, [['---', nil]] + <%= column.name.split('_')[0..-2].join('_').camelize %>.current.collect{|<%= column.name.first %>| [<%= column.name.first %>.name, <%= column.name.first %>.id]}, {}, class: 'form-control' %>
24
24
  <%- elsif column.field_type == :date_select -%>
25
25
  <%%= f.text_field :<%= column.name %>, class: 'datepicker form-control', value: @<%= resource_name %>.<%= column.name %> ? @<%= resource_name %>.<%= column.name %>.strftime('%m/%d/%Y') : '' %>
26
+ <%- elsif column.field_type == :check_box -%>
27
+ <div class="checkbox">
28
+ <label>
29
+ <%%= f.check_box :<%= column.name %> %> <%= column.name.humanize %>
30
+ </label>
31
+ </div>
26
32
  <%- else -%>
27
- <%%= f.<%= column.field_type %> :<%= column.name %><%= ", rows: 7, style: 'width:95%'" if column.field_type == :text_area %>, class: 'form-control' %>
33
+ <%%= f.<%= column.field_type %> :<%= column.name %><%= ", rows: 7" if column.field_type == :text_area %>, class: 'form-control' %>
28
34
  <%- end -%>
29
35
  </div>
30
36
  </div>
31
37
 
32
38
  <%- end -%>
33
-
34
39
  <div class="form-group">
35
- <div class="col-md-10 col-md-offset-2">
40
+ <div class="col-md-offset-2 col-md-10">
36
41
  <%%= f.submit nil, class: 'btn btn-primary' %>
37
42
  <%%= cancel %>
38
43
  </div>
@@ -20,7 +20,7 @@
20
20
  <%- end -%>
21
21
  <%- end -%>
22
22
  <td>
23
- <%%= link_to 'Edit', edit_<%= resource_name %>_path(<%= resource_name %>), class: 'btn btn-xs' %>
23
+ <%%= link_to 'Edit', edit_<%= resource_name %>_path(<%= resource_name %>), class: 'btn btn-xs btn-default' %>
24
24
  <%%= link_to 'Delete', <%= resource_name %>, method: :delete, class: 'btn btn-xs btn-danger-inverse', data: { confirm: "Are you sure you want to delete <%= resource_title %> #{<%= resource_name %>.name}?" } %>
25
25
  </td>
26
26
  </tr>
@@ -2,7 +2,7 @@
2
2
  <div class="page-header">
3
3
  <h1>
4
4
  <%%= link_to "<%= resource_title_plural %>", <%= resource_name_plural %>_path %> &middot; <%%= @title %>
5
- <%%= link_to "Edit <%= resource_title %>", edit_<%= resource_name %>_path(@<%= resource_name %>), class: 'btn btn-xs' %>
5
+ <%%= link_to "Edit <%= resource_title %>", edit_<%= resource_name %>_path(@<%= resource_name %>), class: 'btn btn-xs btn-default' %>
6
6
  <%%= link_to "Delete <%= resource_title %>", @<%= resource_name %>, method: :delete, class: 'btn btn-xs btn-danger-inverse', data: { confirm: "Are you sure you want to delete <%= resource_title %> #{@<%= resource_name %>.name}?" } %>
7
7
  </h1>
8
8
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contour
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.beta15
4
+ version: 2.1.0.beta16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Remo Mueller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-20 00:00:00.000000000 Z
11
+ date: 2013-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -253,7 +253,6 @@ files:
253
253
  - app/models/concerns/contourable.rb
254
254
  - app/views/contour/_links.html.erb
255
255
  - app/views/contour/authentications/_index.html.erb
256
- - app/views/contour/authentications/_login_table.html.erb
257
256
  - app/views/contour/authentications/_menu.html.erb
258
257
  - app/views/contour/authentications/index.html.erb
259
258
  - app/views/contour/confirmations/new.html.erb
@@ -1,14 +0,0 @@
1
- <% if PROVIDERS.size > 0 %>
2
- <div class="form-group">
3
- <label class="control-label">Sign in with</label>
4
- <div class="col-md-10">
5
- <% PROVIDERS.each do |provider| %>
6
- <% provider_name = OmniAuth.config.camelizations[provider.to_s.downcase] || provider.to_s.titleize %>
7
- <% image_name = provider.to_s.downcase %>
8
- <a href="<%= request.script_name %><%= "/" + OmniAuth.config.path_prefix.split('/').last.to_s %><%= "/" + provider.to_s.downcase %>" class="btn" style="white-space:nowrap">
9
- <%= image_tag "contour/#{image_name}_32.png", align: 'absmiddle', height: "28px" %>
10
- </a>
11
- <% end %>
12
- </div>
13
- </div>
14
- <% end %>