recourse 7.9.0 → 7.10.0
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 +10 -0
- data/app/views/recourses/_sidebar.html.erb +6 -5
- data/config/locales/recourse.en.yml +4 -0
- data/lib/recourse/helpers/sidebars.rb +9 -0
- 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: a5ba4a5b982928c2ee9ea80e400a2d95c9b59102224902787ea3b3d6b9f4c9a8
|
|
4
|
+
data.tar.gz: 0d44134228230f5a15f4bc7545df435407518a074ae34299605d90294a93a4bd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7db938770e4ecf06d930a89b965cc9790b2596b6c889be4f0a77cb0fff553739978408c22706da03abb4209964b17f6875b3c6703335e0bc9744d70c213768a1
|
|
7
|
+
data.tar.gz: b6a11dad45cae5cac88c42890b8551fd2f8a6c527c554672e7fe07221af251c1dbb1b59b35facc89b3c802ff57e1aec6ae01878d49e6424fe2b8d8b772eb85a2
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## 7.10.0 - 2026-09-26
|
|
11
|
+
|
|
12
|
+
* [FEATURE] The sidebar's foot says what each icon does
|
|
13
|
+
|
|
14
|
+
The moon, the sun, the way in and the way out each open a tooltip to the right, away
|
|
15
|
+
from the sidebar's edge, the way a column's icon opens one above it: `Dark theme`,
|
|
16
|
+
`Light theme`, `Sign in` and `Sign out`. A host that answers `exit_name` with whoever is
|
|
17
|
+
signed in earns `Sign out N-100L`. The words are `recourse.dark_theme`, `light_theme`,
|
|
18
|
+
`sign_out` and `sign_out_as` in the locale.
|
|
19
|
+
|
|
10
20
|
## 7.9.0 - 2026-09-26
|
|
11
21
|
|
|
12
22
|
* [FEATURE] A pin or an area on a map leads to its row's page
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
<%# The foot of the sidebar: a reader's own say in how the page looks and, where the
|
|
13
13
|
host drew a route named `exit`, the way out beside it — a button, since ending a
|
|
14
|
-
session is never a GET. Each
|
|
14
|
+
session is never a GET. Each icon says what it does in a tooltip that opens to the right,
|
|
15
|
+
away from the sidebar's edge. Each takes half the row and centers its icon in it, so the
|
|
15
16
|
toggle alone sits in the middle and the two together sit at a quarter and at three
|
|
16
17
|
quarters. Which side of the fold the foot lands on is the layout's business, and so
|
|
17
18
|
is which of the two mode icons shows — the mode may be the system's, which only CSS
|
|
@@ -40,11 +41,11 @@
|
|
|
40
41
|
<%= tag.button type: 'button', class: 'nav-link border-0 bg-transparent',
|
|
41
42
|
data: scheme_data do %>
|
|
42
43
|
<span class='recourse-scheme-light'>
|
|
43
|
-
|
|
44
|
+
<%= tag.i class: 'bi bi-moon-fill', data: tooltip_data(t('recourse.dark_theme'), placement: 'right') %>
|
|
44
45
|
<span class='recourse-foot-word'><%= t 'recourse.darken' %></span>
|
|
45
46
|
</span>
|
|
46
47
|
<span class='recourse-scheme-dark'>
|
|
47
|
-
|
|
48
|
+
<%= tag.i class: 'bi bi-sun-fill', data: tooltip_data(t('recourse.light_theme'), placement: 'right') %>
|
|
48
49
|
<span class='recourse-foot-word'><%= t 'recourse.lighten' %></span>
|
|
49
50
|
</span>
|
|
50
51
|
<% end %>
|
|
@@ -55,14 +56,14 @@
|
|
|
55
56
|
leads to is a form rather than a change. -%>
|
|
56
57
|
<% if enter? %>
|
|
57
58
|
<%= link_to enter_path, class: 'nav-link border-0 bg-transparent' do %>
|
|
58
|
-
|
|
59
|
+
<%= tag.i class: 'bi bi-box-arrow-in-right', data: tooltip_data(t('recourse.enter'), placement: 'right') %>
|
|
59
60
|
<span class='recourse-foot-word'><%= t 'recourse.enter' %></span>
|
|
60
61
|
<% end %>
|
|
61
62
|
<% end %>
|
|
62
63
|
<% if exit? %>
|
|
63
64
|
<%= button_to exit_path, method: :delete, class: 'nav-link border-0 bg-transparent',
|
|
64
65
|
form: { data: { turbo: false } } do %>
|
|
65
|
-
|
|
66
|
+
<%= tag.i class: 'bi bi-box-arrow-right', data: tooltip_data(exit_tooltip, placement: 'right') %>
|
|
66
67
|
<span class='recourse-foot-word'><%= t 'recourse.exit' %></span>
|
|
67
68
|
<% end %>
|
|
68
69
|
<% end %>
|
|
@@ -47,12 +47,15 @@ en:
|
|
|
47
47
|
create: Create
|
|
48
48
|
created: "%{record} was created."
|
|
49
49
|
created_error: "%{model} could not be created."
|
|
50
|
+
dark_theme: Dark theme
|
|
50
51
|
darken: Dark
|
|
51
52
|
delete: Delete %{model}
|
|
52
53
|
deleted: "%{model} was deleted."
|
|
53
54
|
deleted_error: "%{model} could not be deleted."
|
|
54
55
|
destroy: Delete
|
|
55
56
|
exit: Exit
|
|
57
|
+
sign_out: Sign out
|
|
58
|
+
sign_out_as: "Sign out %{name}"
|
|
56
59
|
enter: Sign in
|
|
57
60
|
displaying:
|
|
58
61
|
one: Displaying 1 item
|
|
@@ -67,6 +70,7 @@ en:
|
|
|
67
70
|
items:
|
|
68
71
|
one: 1 item
|
|
69
72
|
other: "%{count} items"
|
|
73
|
+
light_theme: Light theme
|
|
70
74
|
lighten: Light
|
|
71
75
|
missing_model: You declared `recourses :%{name}` in your routes file, but this app
|
|
72
76
|
has no %{model} model.
|
|
@@ -17,6 +17,15 @@ module Recourse
|
|
|
17
17
|
# in still sees it is the host's to say, by answering this for them.
|
|
18
18
|
def enter? = respond_to? :enter_path
|
|
19
19
|
|
|
20
|
+
# Who is signed in, as the way out names them: `Sign out N-100L`. Nil, as it is where
|
|
21
|
+
# the host does not say, leaves the tooltip at `Sign out`.
|
|
22
|
+
def exit_name = nil
|
|
23
|
+
|
|
24
|
+
# What the way out's tooltip says.
|
|
25
|
+
def exit_tooltip
|
|
26
|
+
exit_name.present? ? t('recourse.sign_out_as', name: exit_name) : t('recourse.sign_out')
|
|
27
|
+
end
|
|
28
|
+
|
|
20
29
|
# Sidebar entries as [name, title, path, key], in the order routes.rb declares
|
|
21
30
|
# them, `key` being where in the title the letter that reaches it sits.
|
|
22
31
|
def sidebar_resources
|
data/lib/recourse/version.rb
CHANGED