Alberto
25feaafce5
Merge pull request #2794 from consul/fix_notifiable_delegation
...
Try if notifiable has notifiable methods
2018-07-26 11:33:23 +02:00
Bertocq
c0feabd71e
Try if notifiable has notifiable methods
...
Why:
There are Notifications with associated `notifiables` that actually are
not anymore Notifiables (the class doesn't include the Notifiable
concern). So when Notification delegates certain "notifiable" methods
to them the is an error.
How:
Using `try` directly on the notifiable association to avoid the delegate
trap on those corner case scenarios.
2018-07-26 10:33:04 +02:00
María Checa
4d355f3531
Added year to showed creation date and ordered by date DESC
...
Backported from AyuntamientoMadrid/consul fork
2018-07-26 10:22:42 +02:00
Bertocq
ac9f85e208
Change Proposal Notification Digest link to anchor
...
On the proposal notification digest messages there was a link to each
notification. Instead we need that link to point towards the notifications
tab of the proposal.
2018-07-25 20:20:33 +02:00
Bertocq
eb0919d978
Add Preview Pending action to Admin System Emails
...
Some system emails need to be manually reviewed before being sent. This
new action allows admins to see a preview of all Pending to be sent
Proposal Notification Digest messages.
2018-07-25 20:20:33 +02:00
Bertocq
5c726e0949
Add Admin System Emails view & first system email
...
Admins need to be able to see what a particular System Email looks like
with dummy data.
Also adding the first system email to be managed: the proposal
notification digest.
In case the current admin doesn't have any Notifications from
ProposalNotifications there will be a crash. We'll solve this in later
PR's with a system to "inject" sample text in email templates without
having to generate records in the database.
2018-07-25 20:20:33 +02:00
Bertocq
b9c6da245a
Add System emails menu & list to admin panel
...
We need a section to list all System Emails to view the templates and
preview an example of what would be sent.
2018-07-25 20:19:58 +02:00
Bertocq
3fd97b0a9b
Rename Newsletter & Notification to User Messages
...
We're increasing the features around messaging users, menu name has to
be generic enough.
2018-07-25 20:18:58 +02:00
Alberto
177eedf8e4
Merge pull request #2580 from consul/admin_notifications
...
Admin notifications
2018-07-25 20:05:19 +02:00
Alberto
7b8003dcb9
Merge pull request #2790 from wairbut-m2c/backport-1421-investments_csv_fixes
...
Add visible_to_valuators and author_username to admin investments CSV
2018-07-25 18:41:29 +02:00
Bertocq
f695a7faf3
Add AdminNotification management at admin panel
...
In the same fashion Newsletters is managed, with the only difference that
the preview is using the notification partial in the same way the index
of notifications.
2018-07-25 18:33:45 +02:00
Bertocq
4a5235f96f
Allow notifications with explicit/unexistent links
...
Notifications usually link to the associated notifiable, but the new
AdminNotifications have a link attribute that may be empty or contain an
external or internal url.
2018-07-25 18:31:41 +02:00
Bertocq
a683fcff98
Refactor notification partials and index view
...
The notification body has been extracted to a new partial to allow
notifications without link to be rendered without needing an if-else
duplicating view code.
Note the `link_to_if` at _notification partial, as well as the optional
body attribute.
2018-07-25 18:31:41 +02:00
Bertocq
45488d117a
Create AdminNotification model, spec and factory
2018-07-25 18:30:29 +02:00
Marko Lovic
c991d9e7c7
Fix typo in i18n key
2018-07-25 17:28:14 +02:00
Marko Lovic
601e3058d8
Add visible_to_valuators and author username to admin investments CSV
...
Backport based on 012e4be by María Checa from AyuntamientoMadrid/consul fork
2018-07-25 15:10:56 +02:00
Marko Lovic
5413c34458
Restructure and rename translations
...
Based on 012e4be by María Checa from AyuntamientoMadrid/consul fork
2018-07-25 15:10:09 +02:00
Alberto
61589122ef
Merge pull request #2723 from wairbut-m2c/backport_2400_combine_free_text_search_and_filters
...
Combine text search and filters for Investments on Admin panel
2018-07-25 14:42:19 +02:00
Alberto
ce5317138e
Merge pull request #2786 from consul/ui-long-links
...
Fixes word wrap on document links
2018-07-24 19:30:39 +02:00
decabeza
fa4c3de83c
Fixes word wrap on document links
2018-07-24 18:32:34 +02:00
María Checa
8c69871cfa
Add logic to show only winner investments if budget is finished
...
Backported from AyuntamientoMadrid/consul
2018-07-24 11:33:38 +02:00
Raimond Garcia
ae0f0f4f5f
Merge pull request #2382 from wairbut-m2c/iagirre-admin-banner-migration
...
Migration to remove images and styles from banners
2018-07-23 14:45:37 +02:00
Alberto
c63fd5ada1
Merge pull request #2776 from consul/ui-custom
...
UI custom
2018-07-23 11:39:19 +02:00
decabeza
b5caefc0d4
Makes footer sticky to bottom and changes footer styles
2018-07-20 18:51:13 +02:00
decabeza
dcec003d0e
Updates header markup and includes new logo
2018-07-20 18:50:49 +02:00
Alberto
81b102f002
Merge pull request #2577 from consul/random-order
...
Fix random order for budget investments
2018-07-20 18:31:37 +02:00
María Checa
3cc0d1b065
Merge pull request #2770 from consul/release-0.16
...
Release v0.16
2018-07-20 14:06:39 +02:00
Alberto
bc5d263a53
Merge pull request #2761 from wairbut-m2c/backport_1384-add-max-heading-number-budget-group-list
...
Backport 1384 add max heading number budget group list
2018-07-20 13:17:38 +02:00
María Checa
eccf7de54c
Update version number for consul.json
2018-07-20 12:54:51 +02:00
Raimond Garcia
593979b51a
Merge pull request #2775 from consul/proposals-responsible-name
...
Fix validation error when creating proposals without user verification
2018-07-20 12:51:01 +02:00
Alberto
1f821a6540
Merge pull request #2714 from wairbut-m2c/fix/admin-menu-string-literal
...
Fix string literal warning for admin menu
2018-07-20 12:41:13 +02:00
rgarcia
4cd5bb90d4
Fix validation error when creating proposals without user verification
...
We were getting a validation error when skipping user verification and
creating proposals
This was due to the responsible_name being empty for unverified users
As skipping user verification is a temporary setting used until Census
integration is configured, we can safely skip this validation when this
setting is active
2018-07-20 11:53:01 +02:00
Angel Perez
31c16406c0
Move disable recommendations permissions to Abilities::Common model
2018-07-15 21:28:58 -04:00
Angel Perez
a143fa447b
Ensure recommendations are only shown when enabled
2018-07-15 21:28:58 -04:00
Angel Perez
463c753880
Recommendations are automatically disabled if dismissed by user
2018-07-15 21:28:58 -04:00
decabeza
137078054e
Fixes padding bottom on recommended index
2018-07-15 21:28:58 -04:00
decabeza
8cbc709601
Fixes margin top on recommended index
2018-07-15 21:28:58 -04:00
Angel Perez
e32387ed5b
Improve CSS styles for recommendations partial
2018-07-15 21:28:58 -04:00
Angel Perez
054bc1397b
Wrap recommendations settings checkboxes with label helper to improve A11y
2018-07-15 21:28:58 -04:00
Angel Perez
251441e109
Users can now hide recommendations
2018-07-15 21:28:57 -04:00
Angel Perez
a58f6a2662
Enable 'Recommended proposals' setting for users
2018-07-15 21:28:57 -04:00
Angel Perez
522c206f6d
Enable 'Recommended debates' setting for users
2018-07-15 21:28:57 -04:00
decabeza
bdb3f30e40
Adds recommendations on proposals index
2018-07-15 21:28:57 -04:00
decabeza
36a5ff39b8
Adds recommendations on debates index
2018-07-15 21:28:57 -04:00
decabeza
ecb0041b7f
Adds recommended index partial and styles
2018-07-15 21:28:56 -04:00
Alberto
38916deb0b
Merge pull request #2765 from consul/budgets-polls-ui
...
Polls UI
2018-07-13 20:01:40 +02:00
decabeza
bbaec57c8a
Adds message in budget investment show if project is winner
2018-07-13 18:37:16 +02:00
decabeza
1116340f99
Removes participate in other polls button
2018-07-13 18:27:32 +02:00
iagirre
d5120e1b32
Delete the folder app/assets/images/banners
2018-07-13 12:08:40 -04:00
iagirre
f871868a2b
Max headings are updated when editing heading
...
The max headings label is updated automatically
when updating the heading. It is done via AJAX
and a refresh isn't needed.
2018-07-13 11:46:09 +02:00