Javi Martín
6da2d98b78
Extract methods to render management menu links
...
So this is similar to what we're doing in the `Admin::MenuComponent`
class.
2024-04-18 15:48:21 +02:00
Javi Martín
37bc39e1c6
Extract methods to render user links in management menu
...
So this is similar to what we're doing in the `Admin::MenuComponent`
class.
2024-04-18 15:48:21 +02:00
Javi Martín
445b01c280
Move management menu partial to a component
...
So it's consistent with the `Admin::MenuComponent`.
2024-04-18 15:48:21 +02:00
Javi Martín
1d955b7a20
Simplify using helper methods in components
...
The `use_helpers` method was added in ViewComponent 3.8.0, and it's
included by default in all components since version 3.11.0.
Note we sometimes delegated the `can?` method to the controller instead
of the helpers, for no particularly reason. We're unifying that code as
well.
2024-03-02 17:34:25 +01:00
Javi Martín
629e208e9d
Add and apply ArgumentAlignment rubocop rule
...
We're choosing the default `with_first_argument` style because it's the
one we use the most.
2023-08-18 14:56:16 +02:00
Senén Rodero Rodríguez
96f584c4f7
Allow printing investments from any budget in the management interface
2023-02-03 12:18:13 +01:00
Senén Rodero Rodríguez
569138cbae
Extract view into component
2023-01-16 13:36:31 +01:00