contour 2.1.0.beta10 → 2.1.0.beta11

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@
3
3
  * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
4
  * the top of the compiled file, but it's generally better to create a new file per style scope.
5
5
  *= require_self
6
- *= require bootstrap/v3.0.0-rc1/bootstrap
6
+ *= require bootstrap/v3.0.0-rc2/bootstrap
7
7
  *= require bootstrap/bs-callout
8
8
  *= require glyphicons
9
9
  *= require bootstrap-overrides
@@ -1,8 +1,8 @@
1
1
  .twitter-typeahead {
2
- display: inline-block;
2
+ display: block;
3
3
  width: 100%;
4
- height: 38px;
5
- /*padding: 8px 12px;*/
4
+ height: 34px;
5
+ /*padding: 6px 12px;*/
6
6
  font-size: 14px;
7
7
  line-height: 1.428571429;
8
8
  color: #555555;
@@ -10,17 +10,22 @@
10
10
  background-color: #ffffff;
11
11
  /*border: 1px solid #cccccc;*/
12
12
  border-radius: 4px;
13
- /*-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);*/
14
- /*box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);*/
15
- /*-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;*/
16
- /*transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;*/
17
- }
13
+ /* -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
14
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
15
+ -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
16
+ transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
17
+ */}
18
18
 
19
19
  .twitter-typeahead .tt-query,
20
20
  .twitter-typeahead .tt-hint {
21
21
  margin-bottom: 0;
22
22
  }
23
23
 
24
+ .twitter-typeahead .tt-query {
25
+ border-top-left-radius: 4px !important;
26
+ border-bottom-left-radius: 4px !important;
27
+ }
28
+
24
29
  .tt-dropdown-menu {
25
30
  min-width: 160px;
26
31
  margin-top: 2px;
@@ -1,7 +1,7 @@
1
1
  module ContourHelper
2
2
 
3
3
  def cancel
4
- link_to 'Cancel', URI.parse(request.referer.to_s).path.blank? ? root_path : (URI.parse(request.referer.to_s).path), class: 'btn btn-cancel-inverse'
4
+ link_to 'Cancel', URI.parse(request.referer.to_s).path.blank? ? root_path : (URI.parse(request.referer.to_s).path), class: 'btn btn-default'
5
5
  end
6
6
 
7
7
  def sort_field_helper(order, sort_field, display_name, search_form_id = 'search_form')
@@ -1,25 +1,25 @@
1
1
  <%- if controller_name != 'sessions' %>
2
- <%= link_to "Sign in", new_session_path(resource_name), class: 'btn btn-mini' %>
2
+ <%= link_to "Sign in", new_session_path(resource_name), class: 'btn btn-xs' %>
3
3
  <% end -%>
4
4
 
5
5
  <%- if devise_mapping.registerable? && controller_name != 'registrations' %>
6
- <%= link_to "Sign up", new_registration_path(resource_name), class: 'btn btn-mini' %>
6
+ <%= link_to "Sign up", new_registration_path(resource_name), class: 'btn btn-xs' %>
7
7
  <% end -%>
8
8
 
9
9
  <%- if devise_mapping.recoverable? && controller_name != 'passwords' %>
10
- <%= link_to "Forgot your password?", new_password_path(resource_name), class: 'btn btn-mini' %>
10
+ <%= link_to "Forgot your password?", new_password_path(resource_name), class: 'btn btn-xs' %>
11
11
  <% end -%>
12
12
 
13
13
  <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
14
- <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name), class: 'btn btn-mini' %>
14
+ <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name), class: 'btn btn-xs' %>
15
15
  <% end -%>
16
16
 
17
17
  <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
18
- <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name), class: 'btn btn-mini' %>
18
+ <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name), class: 'btn btn-xs' %>
19
19
  <% end -%>
20
20
 
21
21
  <%- if devise_mapping.omniauthable? %>
22
22
  <%- resource_class.omniauth_providers.each do |provider| %>
23
- <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider), class: 'btn btn-mini' %>
23
+ <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider), class: 'btn btn-xs' %>
24
24
  <% end -%>
25
25
  <% end -%>
@@ -2,7 +2,7 @@
2
2
  <div class="page-header">
3
3
  <h1>
4
4
  Latest News
5
- <%#= link_to @news_feed.channel.title, @news_feed.channel.link, target: '_blank', class: 'btn btn-mini' %>
5
+ <%#= link_to @news_feed.channel.title, @news_feed.channel.link, target: '_blank', class: 'btn btn-xs' %>
6
6
  </h1>
7
7
  </div>
8
8
 
@@ -1,16 +1,19 @@
1
1
  <div class="container">
2
- <%= link_to Contour.application_name.html_safe, root_path, class: 'navbar-brand' %>
2
+ <div class="navbar-header">
3
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
4
+ <span class="sr-only">Toggle navigation</span>
5
+ <span class="icon-bar"></span>
6
+ <span class="icon-bar"></span>
7
+ <span class="icon-bar"></span>
8
+ </button>
3
9
 
4
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
5
- <span class="icon-bar"></span>
6
- <span class="icon-bar"></span>
7
- <span class="icon-bar"></span>
8
- </button>
10
+ <%= link_to Contour.application_name.html_safe, root_path, class: 'navbar-brand' %>
11
+ </div>
9
12
 
10
- <div class="nav-collapse collapse navbar-responsive-collapse">
13
+ <div class="collapse navbar-collapse navbar-ex1-collapse">
11
14
  <% display = signed_in? ? ['signed_in', 'always'] : ['not_signed_in', 'always'] %>
12
15
  <% Contour.menu_items.group_by{|i| i[:position]}.each do |position, items| %>
13
- <ul class="nav navbar-nav <%= 'pull-right' if position == 'right' %>">
16
+ <ul class="nav navbar-nav <%= 'navbar-right' if position == 'right' %>">
14
17
  <% items.each_with_index do |menu_item, index| %>
15
18
  <% if display.include?(menu_item[:display]) and (menu_item[:condition].blank? or eval(menu_item[:condition])) %>
16
19
  <% has_submenu = (menu_item[:links] || []).collect{|link| link[:condition].blank? or eval(link[:condition])}.include?(true) %>
@@ -21,7 +24,6 @@
21
24
  target: menu_item[:target], style: "#{ 'display:inline-block;padding-right:0px' if has_submenu }")
22
25
  %>
23
26
  <%= link_to "<b class='caret'></b>".html_safe, '#', class: 'dropdown-toggle', 'data-toggle' => 'dropdown', style: 'display:inline-block;padding-left:4px;margin-left:-4px;' if has_submenu %>
24
- <%# , 'data-target' => "#menu#{position}#{index}" %>
25
27
  <% if has_submenu %>
26
28
  <ul class="dropdown-menu">
27
29
  <% menu_item[:links].each do |link| %>
@@ -45,7 +47,7 @@
45
47
  </ul>
46
48
  <% end %>
47
49
  <% if Contour.search_bar and display.include?(Contour.search_bar[:display]) %>
48
- <form id="<%= Contour.search_bar[:id] || 'global-search' %>-form" class="navbar-form pull-<%= Contour.search_bar[:position] || 'left' %>" action="<%= Contour.search_bar[:path].blank? ? '#' : eval(Contour.search_bar[:path].to_s) %>">
50
+ <form id="<%= Contour.search_bar[:id] || 'global-search' %>-form" class="navbar-form navbar-<%= Contour.search_bar[:position] || 'left' %>" action="<%= Contour.search_bar[:path].blank? ? '#' : eval(Contour.search_bar[:path].to_s) %>">
49
51
  <input id="<%= Contour.search_bar[:id] || 'global-search' %>" name="q" type="text" autocomplete="off" class="form-control" value="<%= params[:q] %>" placeholder="<%= Contour.search_bar[:placeholder] || 'Search' %>">
50
52
  </form>
51
53
  <% end %>
@@ -15,9 +15,9 @@
15
15
  <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
16
16
  </head>
17
17
  <body data-spy="scroll" data-target=".bs-sidebar">
18
- <div class="navbar navbar-inverse navbar-fixed-top">
18
+ <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
19
19
  <%= render partial: 'contour/layouts/menu' %>
20
- </div>
20
+ </nav>
21
21
 
22
22
  <div class="container" style="position:relative">
23
23
  <div class="flash-block" data-object="flash-container">
data/contour.gemspec CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.add_dependency 'rails', '~> 4.0.0'
28
28
  s.add_dependency 'jquery-rails', '>= 3.0.4'
29
29
  s.add_dependency 'coffee-rails', '~> 4.0.0'
30
- s.add_dependency 'devise', '~> 3.0.0'
30
+ s.add_dependency 'devise', '~> 3.0.2'
31
31
  s.add_dependency 'omniauth', '~> 1.1.4'
32
32
  s.add_dependency 'omniauth-cas', '~> 1.0.4'
33
33
  s.add_dependency 'omniauth-facebook', '~> 1.4.1'
@@ -3,7 +3,7 @@ module Contour
3
3
  MAJOR = 2
4
4
  MINOR = 1
5
5
  TINY = 0
6
- BUILD = "beta10" # nil, "pre", "rc", "rc2"
6
+ BUILD = "beta11" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
@@ -20,8 +20,8 @@
20
20
  <%- end -%>
21
21
  <%- end -%>
22
22
  <td>
23
- <%%= link_to 'Edit', edit_<%= resource_name %>_path(<%= resource_name %>), class: 'btn btn-mini' %>
24
- <%%= link_to 'Delete', <%= resource_name %>, method: :delete, class: 'btn btn-mini btn-danger-inverse', data: { confirm: "Are you sure you want to delete <%= resource_title %> #{<%= resource_name %>.name}?" } %>
23
+ <%%= link_to 'Edit', edit_<%= resource_name %>_path(<%= resource_name %>), class: 'btn btn-xs' %>
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>
27
27
  <%% end %>
@@ -2,7 +2,7 @@
2
2
  <div class="page-header">
3
3
  <h1>
4
4
  <%%= @title %>
5
- <%%= link_to "Create <%= resource_title %>", new_<%= resource_name %>_path, class: 'btn btn-mini btn-primary' %>
5
+ <%%= link_to "Create <%= resource_title %>", new_<%= resource_name %>_path, class: 'btn btn-xs btn-primary' %>
6
6
  </h1>
7
7
  </div>
8
8
 
@@ -2,8 +2,8 @@
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-mini' %>
6
- <%%= link_to "Delete <%= resource_title %>", @<%= resource_name %>, method: :delete, class: 'btn btn-mini btn-danger-inverse', data: { confirm: "Are you sure you want to delete <%= resource_title %> #{@<%= resource_name %>.name}?" } %>
5
+ <%%= link_to "Edit <%= resource_title %>", edit_<%= resource_name %>_path(@<%= resource_name %>), class: 'btn btn-xs' %>
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>
9
9
 
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.beta10
4
+ version: 2.1.0.beta11
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-09 00:00:00.000000000 Z
11
+ date: 2013-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 3.0.0
61
+ version: 3.0.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 3.0.0
68
+ version: 3.0.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: omniauth
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -219,7 +219,7 @@ files:
219
219
  - app/assets/images/contour/ui-icons_cd0a0a_256x240.png
220
220
  - app/assets/images/contour/ui-icons_d8e7f3_256x240.png
221
221
  - app/assets/images/contour/ui-icons_f9bd01_256x240.png
222
- - app/assets/javascripts/bootstrap/v3.0.0-rc1/bootstrap.js
222
+ - app/assets/javascripts/bootstrap/v3.0.0-rc2/bootstrap.js
223
223
  - app/assets/javascripts/contour/global.js.coffee
224
224
  - app/assets/javascripts/contour.js
225
225
  - app/assets/javascripts/external/bootstrap-datepicker.js
@@ -229,7 +229,7 @@ files:
229
229
  - app/assets/javascripts/external/typeahead.js
230
230
  - app/assets/javascripts/twitter-bootstrap/bootstrap.js.coffee
231
231
  - app/assets/stylesheets/bootstrap/bs-callout.css
232
- - app/assets/stylesheets/bootstrap/v3.0.0-rc1/bootstrap.css
232
+ - app/assets/stylesheets/bootstrap/v3.0.0-rc2/bootstrap.css
233
233
  - app/assets/stylesheets/bootstrap-overrides.css
234
234
  - app/assets/stylesheets/contour/about.css
235
235
  - app/assets/stylesheets/contour/authentication.css