web47core 1.0.13 → 1.0.14

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: 64f54ec070076d76e56d136ae5591375af7fef5de343ace173a968d960944b72
4
- data.tar.gz: 0ad4b7661dabd9358bc09cbfbe2f61b83fec4f59eac5d98257363e42796a3b38
3
+ metadata.gz: ef5eb2bf315d0be4a596a440d855e049ce11ebd0834d9598c81ae674551fd9d5
4
+ data.tar.gz: 833d99f9b33348a8d4b9a61584d61cd6dae5d9a1b44a0d4b3046b48b68369f7d
5
5
  SHA512:
6
- metadata.gz: 812533c9e7612635e8646d144582388489cc34e91dd1682adcbc39ec698cec27f8788553d7a60eb18de139b6be5d7746b3525514152910ee382cd7942c35e9c8
7
- data.tar.gz: b732ba4c2b1fd46e3e769aefb57ca346e8527049885ecf22988963df5b10c1c6379a4da1f01d0a2a70fa6ab38354d32f3ac10af2411e85572215e89d855dd6e3
6
+ metadata.gz: 9b84594fa18bf1f612fb4312002c1b9913b8d3ae70d3848f1c612b858fc3a808a33759d82ffd79f8e9011e5e063d11833917d96a05d7a795dfef4529f08d8ca8
7
+ data.tar.gz: cebbbc92c09cd7459fcc1ea2c6f087fff240e8c1eb74b339206b36e6f1297d59e957a0906be3fd087a4a1e473ca9d650dc8edec5c806489e692732e403fa8114
@@ -97,7 +97,8 @@ module CoreLinkHelper
97
97
  return unless can? :edit, obj
98
98
 
99
99
  icon = options[:icon] || 'edit'
100
- content_tag(:a, href: path) do
100
+ tooltip = options[:tooltip] || 'Edit'
101
+ content_tag(:a, href: path, class: 'tooltipped', data: {tooltip: tooltip}) do
101
102
  concat(content_tag(:i, class: 'material-icons') do
102
103
  icon
103
104
  end)
@@ -233,6 +233,15 @@ class Notification
233
233
  result
234
234
  end
235
235
 
236
+ #
237
+ # Titleize the type of this notification as its name
238
+ #
239
+ def name
240
+ _type.titleize
241
+ rescue StandardError
242
+ _type
243
+ end
244
+
236
245
  private
237
246
 
238
247
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '1.0.13'
4
+ VERSION = '1.0.14'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-29 00:00:00.000000000 Z
11
+ date: 2020-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport