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
1649b9125e
Add scope to get investments visible to a valuator
...
Using this method makes it more obvious that we're loading the same
investments in the budgets index as in the investments index.
2023-02-17 15:27:53 +01:00
Javi Martín
ed4b03c3ed
Show link to evaluate after evaluation has finished
...
This way it's still possible to access the "evaluation finished" filter
in the valuation investments index.
2023-02-17 15:26:49 +01:00
Senén Rodero Rodríguez
0c09fd22af
Do not show the Evaluate link when there are no projects to evaluate for current valuator
2023-02-03 11:01:41 +01:00
Senén Rodero Rodríguez
615b249144
Count only the investments visible and assigned to current valuator
...
It has more sense to show the count of the investments the
valuator is going to find in the investments valuation page.
2023-02-03 11:01:41 +01:00
Senén Rodero Rodríguez
282b8f8697
Load all the published budgets in the valuation interface
...
As now multiple budget can coexist at the same time it has sense to be able to
browse all the published budgets in the valuation budgets index page.
2023-02-03 11:01:41 +01:00
Senén Rodero Rodríguez
ee80b3f4a2
Extract valuation budget index view to components
2023-02-03 11:01:41 +01:00