shopapp 0.2.46 → 0.2.47

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
  SHA256:
3
- metadata.gz: 631670e169b61b0bfb8c2694cf8b3165d7c488875325bdc8e967028d0e0b6cc2
4
- data.tar.gz: '01946c551e810eb3271a9bba4712efbc36ec808eb122d57625caa9c1a470cf5d'
3
+ metadata.gz: 5dac5103d1f9e4fa3bf0396ebacb963d218220afe56938a1c3e6e16f438ec8b6
4
+ data.tar.gz: b35587ec932cf9aefcbaf1d6fc20fe6c840c7b3b4ead014163360e65e068a190
5
5
  SHA512:
6
- metadata.gz: 141b49cad651ca5ac4e60dab0dd87d558847ae6dbe072557c916d8dcb69b4f8875a7a4c996ae49ea5910d88cbafc3a929f0a870d8c8d58eff76f63edcc3f21a2
7
- data.tar.gz: 4a196c092c14f033e04fa10b51a7c240c96b8693c786f76d913bc56140c02c092723282e66bbf8513415860caeb80cf6b5bbe79a5ab6c7853d2224ede9517d03
6
+ metadata.gz: a34c5dc165ab6e202155493afb19922bf1c696955d6394bce3f31b00c3f8ec768f55b0aca61046b2f68c21cc77a23dc637fc7190f1e30107b4e37890962dd83f
7
+ data.tar.gz: b5e6f858fba4d311f33d7070340ba98d72e41bc4b0a203048990a2555031811c2fbc27c41ee60446b9b0df96b339309d21f73fc1fb571946c2f2f107b9dad6d5
@@ -14,6 +14,7 @@ module ShopliftClient
14
14
  attr_reader :search_path
15
15
  attr_accessor :search_placeholder
16
16
  helper_method :company_logo_path_defined
17
+ helper_method :home_link_path
17
18
  end
18
19
 
19
20
  class_methods do
@@ -263,4 +264,8 @@ module ShopliftClient
263
264
  "https://media.shoplift.fi/company_logos/#{@current_user_json_hash['company']['logo_code']}_company_logo_24.png"
264
265
  end
265
266
  end
267
+
268
+ def home_link_path
269
+ root_path
270
+ end
266
271
  end
@@ -5,9 +5,10 @@ module Shopapp3Helper
5
5
  'active'
6
6
  end
7
7
  <<~HTML
8
- <li class="nav-item d-flex justify-content-center py-3 #{active}">
9
- <a class="nav-link" href="#{sidebar_action[:path]}">
8
+ <li class="nav-item py-3 #{active}">
9
+ <a class="nav-link d-flex flex-column justify-content-start align-items-center" href="#{sidebar_action[:path]}">
10
10
  #{image_tag sidebar_action[:icon], width: '20', class: 'img-fluid'}
11
+ <label class="text-light mt-2 text-center">#{ sidebar_action[:tooltip]}</label>
11
12
  </a>
12
13
  </li>
13
14
  HTML
@@ -1,7 +1,8 @@
1
1
  #wrapper.d-flex
2
2
  #sidebar-wrapper.border-right.bg-secondary
3
3
  .sidebar-heading.d-flex.align-items-center.justify-content-center.bg-dark
4
- = image_tag company_logo_path_defined, width: '55'
4
+ = link_to home_link_path do
5
+ = image_tag company_logo_path_defined, width: '55'
5
6
  %ul.nav.flex-column.mt-5
6
7
  = shopapp3_sidebar_icons
7
8
  #page-content-wrapper
data/shopapp.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'shopapp'
3
- s.version = '0.2.46'
3
+ s.version = '0.2.47'
4
4
  s.date = '2019-04-17'
5
5
  s.summary = 'Do a shoplift.'
6
6
  s.description = 'Ha! Art thou Bedlam? Dost thou thirst base Trojan, to have me fold up Parca\'s fatal web? Hence!\
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.46
4
+ version: 0.2.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeljko