tusur_header 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e8403c582bc65009acbc2a58274e208292cfb25
4
- data.tar.gz: 465d97f6357417c6d92ca75a12e65d4138d7956e
3
+ metadata.gz: a56182c2e121aeb9c5d143f26b51b2c153153d33
4
+ data.tar.gz: 017ff5d3adefde0d16310e0a24691ba4716a334d
5
5
  SHA512:
6
- metadata.gz: ac079b78bb0d346dccda36a5d7076ce08cd0650605acca74f547ba8bfe6e8a8d66020ad1d7c13a3fbc34f27578bf522c60c8680c8573afc6530755973893ebfe
7
- data.tar.gz: ac948e6afede9fb12390f8d8604871a9f70257c5e7293102453488dd49c122455b904c1b937f4eb0543dbbdcf31cbc9255cf1be2bae6e0c1b3c212e81858b28d
6
+ metadata.gz: 7c4b3c1deca9da2c12aedcdffa98ed0489a7365bf73ccd9b406f71721bb9ba7fcdde6d14e1387a4a9f3b0230a517f25649606c640e7643dc7b788436d122e153
7
+ data.tar.gz: c1e575fe2ba3e757d067bf74f3e067654d122994a4d92bcc893cc50938ecab36426072eade6e9be74e068aade32beb141f383f96dae85137ca85c97e7a0be70c
@@ -5,6 +5,17 @@
5
5
  <![endif]-->
6
6
  <% end %>
7
7
 
8
+ <% content_for :flash_alerts do %>
9
+ <div class="row alert-container">
10
+ <% flash.each do |name, msg| %>
11
+ <div class="alert alert-<%= name %> alert-dismissible col-sm-6 col-sm-offset-6" role="alert">
12
+ <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
13
+ <%= msg %>
14
+ </div>
15
+ <% end %>
16
+ </div>
17
+ <% end %>
18
+
8
19
  <div class='tusur_header_wrapper'>
9
20
 
10
21
  <div class='navbar navbar-inverse navbar-fixed-top navbar-desktop' role='navigation' id='menu_first'>
@@ -1,3 +1,3 @@
1
1
  module TusurHeader
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1 @@
1
+ //= require_tree .
@@ -0,0 +1,5 @@
1
+ @init_alert_autoclose = ->
2
+ $('.alert').delay(5000).queue(
3
+ ->
4
+ $(this).remove()
5
+ )
@@ -0,0 +1,3 @@
1
+ $ ->
2
+ init_tusur_header_observer() if $('.tusur_header_wrapper').length
3
+ init_alert_autoclose() if $('.alert-container').length
@@ -2,11 +2,4 @@
2
2
  //= require bootstrap/dropdown
3
3
  //= require bootstrap/collapse
4
4
  //= require bootstrap/transition
5
-
6
- //= require tusur_header_observer
7
-
8
- $(function() {
9
- if ($('.tusur_header_wrapper').length) {
10
- init_tusur_header_observer();
11
- }
12
- });
5
+ //= require_tree .
@@ -0,0 +1,13 @@
1
+ .alert-container
2
+ position: fixed
3
+ z-index: 100
4
+ width: inherit
5
+ bottom: 0px
6
+
7
+ .alert-notice
8
+ background-color: #dff0d8
9
+ border-color: #d6e9c6
10
+ color: #3c763d
11
+
12
+ .alert
13
+ padding: 10px
@@ -56,3 +56,4 @@
56
56
 
57
57
  @import 'search_form'
58
58
  @import 'pagination'
59
+ @import 'alert'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tusur_header
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeny Lapin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2014-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -202,9 +202,13 @@ files:
202
202
  - vendor/assets/images/502.png
203
203
  - vendor/assets/images/mail.png
204
204
  - vendor/assets/images/tusur_logotype.png
205
+ - vendor/assets/javascripts/alert_autoclose/index.js
206
+ - vendor/assets/javascripts/alert_autoclose/init.js.coffee
207
+ - vendor/assets/javascripts/main.js.coffee
205
208
  - vendor/assets/javascripts/tusur_header.js
206
209
  - vendor/assets/javascripts/tusur_header_observer/index.js
207
210
  - vendor/assets/javascripts/tusur_header_observer/init.js.coffee
211
+ - vendor/assets/stylesheets/_alert.sass
208
212
  - vendor/assets/stylesheets/_buttons.sass
209
213
  - vendor/assets/stylesheets/_error_pages.sass
210
214
  - vendor/assets/stylesheets/_override.sass