ants 0.2.7 → 0.2.8

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: a098093f449a893e74a659e3458b5d471b02d206
4
- data.tar.gz: ffbe2e6fcd1563b03e0d1b6707a2ec537da8955f
3
+ metadata.gz: 77f716463690574774c93d0fa1480dc9163fac32
4
+ data.tar.gz: 9b351de5e515a5babd2297c3ff33ed55b98166ba
5
5
  SHA512:
6
- metadata.gz: 598b4db8d45fb19217c976c58c6e29cb54df5f6e4946f535ba2d069b869c9d90772ae5d4f91e49a4a9565c4e16e0d7616eb89001c5945f2fddd455131ebdc145
7
- data.tar.gz: a099bfe58c3a666bd757286172edd7d4ef1f9eb9d65927230d5632fb92f51c4cbd707063e086669aebe6750620034fa79367d5e117caab1591d3a9c3151df4af
6
+ metadata.gz: bf5db781a36806f90d6b8312ad8917f2ae7a755658f2e4b76363a0003ee9b5f9e2503e9acfe841e0c5833a5565171a1629921d246f4b586f6a54117b863d5cdc
7
+ data.tar.gz: 33a9d0d8ebf3c8960f37bb0fdb147f90f315b9e0ca1dddf83adc0d31db77adec327fec53411e90d397c3e6b2031849977a529125799e1b46bec63bcf7afcbad7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ants (0.2.7)
4
+ ants (0.2.8)
5
5
  devise
6
6
  mongoid (>= 4.0)
7
7
  mongoid-slug (>= 4.0.0)
@@ -0,0 +1,3 @@
1
+ class @AntsProfile
2
+ constructor: ->
3
+ $('.sidebar-profile').prependTo(".sidebar").show()
@@ -1,6 +1,4 @@
1
-
2
1
  // Preview & Open view header link
3
-
4
2
  .header {
5
3
  .link {
6
4
  @include position(absolute, 0 1em null null);
@@ -11,7 +9,6 @@
11
9
  }
12
10
 
13
11
  // List header CSV button
14
-
15
12
  .header {
16
13
  .csv + .search { right : 40px; }
17
14
  .csv {
@@ -0,0 +1,21 @@
1
+ .sidebar-profile {
2
+ @include position(relative);
3
+ background-color: $sidebar-active-bg-color;
4
+ font-size: .75em;
5
+ padding: 10px 5px 10px 50px;
6
+
7
+ img {
8
+ @include position(absolute, 8px null null 0px);
9
+ border-radius: 16px;
10
+ margin-left: 10px;
11
+ width: 32px;
12
+ }
13
+
14
+ a {
15
+ display: block;
16
+ color: rgba(255,255,255, .5);
17
+ &:hover {
18
+ color: white;
19
+ }
20
+ }
21
+ }
@@ -1 +1,2 @@
1
- @import "chr/header";
1
+ @import "ants/header";
2
+ @import "ants/profile";
@@ -0,0 +1,9 @@
1
+ <div class="sidebar-profile" style="display:none;">
2
+ <%= image_tag current_admin._list_item_thumbnail %>
3
+
4
+ <% name = (current_admin.name.presence || "").strip.split(' ').first %>
5
+ <% path = "#/settings/admins/view/#{current_admin.id}" %>
6
+ <%= link_to name, path %>
7
+
8
+ <%= link_to "Sign out", destroy_admin_session_path, method: :delete %>
9
+ </div>
data/lib/ants/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ants
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ants
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kravets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-13 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -157,10 +157,12 @@ files:
157
157
  - app/assets/javascripts/ants/admins.coffee
158
158
  - app/assets/javascripts/ants/menu.coffee
159
159
  - app/assets/javascripts/ants/meta.coffee
160
+ - app/assets/javascripts/ants/profile.coffee
160
161
  - app/assets/javascripts/ants/redirects.coffee
161
162
  - app/assets/javascripts/ants/slug.coffee
162
163
  - app/assets/stylesheets/ants.scss
163
- - app/assets/stylesheets/chr/header.scss
164
+ - app/assets/stylesheets/ants/header.scss
165
+ - app/assets/stylesheets/ants/profile.scss
164
166
  - app/controllers/admin/admins_controller.rb
165
167
  - app/controllers/admin/menus_controller.rb
166
168
  - app/controllers/admin/redirects_controller.rb
@@ -171,6 +173,7 @@ files:
171
173
  - app/models/menu.rb
172
174
  - app/models/menu_link.rb
173
175
  - app/models/redirect.rb
176
+ - app/views/ants/_profile.html.erb
174
177
  - lib/ants.rb
175
178
  - lib/ants/engine.rb
176
179
  - lib/ants/version.rb