recourse 4.4.2 → 4.4.3
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/recourse/helpers/tabs.rb +4 -1
- data/lib/recourse/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba7f8f62f4a4488b30a0ccc90cc550d98e56dc6a717380b368d5f2a51e06f0c6
|
|
4
|
+
data.tar.gz: 6311ab19960ad5bc92151cfde18dfa4a8610c067ecb08c00021340d19b7e9a2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34d609a74f655281b6e4438571a00d4fc554fd431f4e07d3058ba8b84529f800a0e4c798f709ec806989ed9519da2045301658be5314fb0a09317cdcc213ffc9
|
|
7
|
+
data.tar.gz: 142f6ec366b5e45fcffc6afb92ebcf8cbe84ce6e4918e7d4ee50b33144048263fb35f9b519655ea16beb4816e679ec2e4a1311c286881bf7477fcda8a70fffe7
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
For more information about changelogs, check [Keep a Changelog](http://keepachangelog.com) and
|
|
6
6
|
[Vandamme](http://tech-angels.github.io/vandamme).
|
|
7
7
|
|
|
8
|
+
## 4.4.3 - 2026-09-08
|
|
9
|
+
|
|
10
|
+
* [Fix] A counted tab reads `1 franchise` again, without the extra space 4.4.0 put between the figure and the word
|
|
11
|
+
|
|
8
12
|
## 4.4.2 - 2026-09-08
|
|
9
13
|
|
|
10
14
|
* [Fix] `search_highlight` marks the label of a record the search reached through a key
|
|
@@ -32,13 +32,16 @@ module Recourse
|
|
|
32
32
|
# The icon is the counted model's own, whatever leads the words beside it. The
|
|
33
33
|
# words are wrapped where a picture or a figure stands beside them, so a phone,
|
|
34
34
|
# which has room for neither, keeps the picture and the figure and drops the words.
|
|
35
|
+
# A figure and its words share one element: the link lays its children out with a
|
|
36
|
+
# gap, and two of them would stand a gap and a space apart.
|
|
35
37
|
def association_tab_label(record, association, namespace)
|
|
36
38
|
icon = Recourse.known_model_icon association.klass
|
|
37
39
|
count = tab_count record, association
|
|
38
40
|
words = tab_words association, namespace, count
|
|
39
41
|
words = tag.span words, class: 'recourse-tab-word' if icon || count
|
|
42
|
+
words = tag.span safe_join([count, words], ' ') if count
|
|
40
43
|
|
|
41
|
-
safe_join [icon && tag.i(class: "bi bi-#{icon}"),
|
|
44
|
+
safe_join [icon && tag.i(class: "bi bi-#{icon}"), words].compact, ' '
|
|
42
45
|
end
|
|
43
46
|
|
|
44
47
|
# `ZIPs` where the record keeps no count, and `places` after the `8` where it
|
data/lib/recourse/version.rb
CHANGED