Files
nairobi/app/views
Javi Martín 1ae4caa0ef Only render successful icon on successful proposals
Not doing so made it trickier to define a flex layout, since the
icon-successful element is given a `position: absolute`, but only for
successful proposals, while for unsuccessful proposals it was taking
the standard `position: static` value.

We're also reusing the `successful?` method instead of rewriting it in
the view, and fixing a small issue where the icon wasn't displayed for
proposals having the exact needed votes (we were using `>` instead of
`>=` in the condition).

Note that legislation proposals use the method
`Proposal.votes_needed_for_success`, which is probaby a mistake caused
by copying the code from the proposal view. Fixing this issue is out of
the scope of this commit (and pull request), though.
2025-03-06 18:25:45 +01:00
..
2024-11-12 18:25:20 +01:00
2024-11-08 13:01:01 +01:00
2019-03-25 14:58:54 +01:00
2023-08-07 14:42:13 +02:00
2021-03-02 14:45:18 +01:00
2024-03-23 00:35:43 +01:00
2025-03-06 18:25:45 +01:00
2024-03-23 00:35:43 +01:00