web47core 3.2.15 → 3.2.17

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: ed30f86d903369f96318efc3bce1d872e6ce1765f03a5aec392a8fd99bb9d4e4
4
- data.tar.gz: d954d336d4d4477894519a51faeaa6dc7e971d6ec841a2488cf29d0524d1abca
3
+ metadata.gz: 67622d9e578418e01089d59a376aeb5347bde91c7dffb4f0f9742a247483a4bf
4
+ data.tar.gz: 0be861d3c6d43772981cae89c285db32f5488be568e5291422996cfb561da346
5
5
  SHA512:
6
- metadata.gz: d79f0a17580585fe316ef7ac4d4a15d01c19973d58c51426e8b4786b03ef6d3f52c936ad69573c9db70ae2e7554658ff59152ec96be5bf988aac749e62c345c4
7
- data.tar.gz: 4cfbfcd60348decd2f9c814d090688d70654cbaae664ddf9a4e376e24cdcaca095e01f8804c5e62061b52056d2d6612381582b15136b0ace8afe47a026feb474
6
+ metadata.gz: 34f41bbdc9ef19496b14a4abdb685c7d403ee3ac58ccb5e1b76a30cf41127716af5905847bb53407bdc05cede846f340036bacfe3961bba38e7c83d557e36d10
7
+ data.tar.gz: d51140d9510d6b44b0d3dba7a874b7924214a1d469eb1b0ff73164073efed12f1625cd4552966458e4b2c03b1e7192dd07264c4cc7931886e13b7fbbaf58cf4e
@@ -11,6 +11,31 @@ module CoreCardNavItemsHelper
11
11
  end
12
12
  end
13
13
 
14
+ # @abstract Link to the jobs icon
15
+ # @return HTML - The HTML for the given tag
16
+ def jobs_nav_link(obj, path, title: 'Jobs')
17
+ return unless can?(:view, obj)
18
+
19
+ card_nav_item_link(path, title, 'stack-overflow')
20
+ end
21
+
22
+ # @abstract Link to the jobs icon
23
+ # @return HTML - The HTML for the given tag
24
+ def current_job_nav_link(obj, path, title: 'Current')
25
+ return unless can?(:view, obj)
26
+
27
+ card_nav_item_link(path, title, 'run')
28
+ end
29
+
30
+ # @abstract Link to the jobs icon
31
+ # @return HTML - The HTML for the given tag
32
+ def start_job_nav_link(obj, path, title: 'Start', confirm: nil)
33
+ return unless can?(:view, obj)
34
+
35
+ confirm ||= "Are you sure you want to restart this #{obj.class_title} job?"
36
+ card_nav_item_link(path, title, 'play', btn_class: 'btn-success', confirm: confirm, method: :post)
37
+ end
38
+
14
39
  # @abstract Link to restart, replay a given object
15
40
  # @param [Object] obj - The object to operate on, for permission checks
16
41
  # @param [String] path - The path/URL for the action
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.15'
4
+ VERSION = '3.2.17'
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: 3.2.15
4
+ version: 3.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-16 00:00:00.000000000 Z
11
+ date: 2025-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel