Commit Graph

5955 Commits

Author SHA1 Message Date
Bertocq
42b7fefe17 Fix MD025 Multiple top level headers in the same document on doc Readme document, by adding extra level on other headers 2017-06-15 23:53:56 +02:00
Bertocq
438c462d36 Fix MD009 Trailing spaces on markdown files 2017-06-15 23:51:13 +02:00
Bertocq
4ee3dc4a6d Fix MD014 Dollar signs used before commands without showing output on customize markdown files 2017-06-15 23:50:02 +02:00
Bertocq
889af958be Fix MD012 Multiple consecutive blank lines across multiple markdown files 2017-06-15 23:49:26 +02:00
Bertocq
41a2cf5bf3 Fix MD002 First header should be a top level header issues on Contributing md files 2017-06-15 23:47:25 +02:00
Bertocq
5c8faa2654 Add markdownlinter config file 2017-06-14 18:14:02 +02:00
Bertocq
aa405abf63 Add markdownlinter gem to development group 2017-06-14 18:13:36 +02:00
Juanjo Bazán
a6bc109821 Merge pull request #1650 from consul/refactor/dev_seeds_cleanup
Cleanup dev_seeds.rb file
2017-06-14 12:42:24 +02:00
Bertocq
d99a4da246 Some style corrections on dev_seeds, along with abreviations and removal of unused blocks 2017-06-14 12:00:37 +02:00
Raimond Garcia
ae82a563d6 Merge pull request #1651 from consul/fix/direct_message_today_scope
Fix DirectMessage today scope
2017-06-14 11:42:54 +02:00
Raimond Garcia
8bcb50d801 Merge pull request #1652 from consul/feature/1588#legislative_process_active_dates
Legislation Process Date display & Enabling/Disabling
2017-06-14 11:41:18 +02:00
Raimond Garcia
2b797c5ba0 Merge pull request #1649 from consul/refactor/legislative_process_phases_and_publications
Refactor legislative process phases and publications
2017-06-14 11:39:15 +02:00
Bertocq
8440f6c749 Increase coverage of admin feature spec for legislation process dates enabling 2017-06-14 08:52:11 +02:00
Bertocq
cc0146e372 Use Time in utc on direct message specs when changing created_at directly 2017-06-14 01:17:32 +02:00
Bertocq
129e93dd12 Use Time.current converted to Date by the database DirectMessage today scope
Why:

* Database stores created_at as timestamp with the timezone, so when comparing DATE(created_at) to something we have to convert it to DATE as well with the postresql native function, but using Time.current instead of Date.current to take into account the user timezone
2017-06-14 01:15:26 +02:00
Bertocq
1dac73eb48 Fix debate phase checkbox name on admin legislation process feature spec, as well as expectations 2017-06-14 00:29:15 +02:00
Bertocq
c18d1b6e8f Check new enabled? logic on both Legislation::Process Phase and Publication classes 2017-06-14 00:21:08 +02:00
Bertocq
a279e77c39 Fix typo on legislation process factory 2017-06-14 00:13:56 +02:00
Bertocq
33e825672c Rename label for legislation process active checkbox to enabled on both translations and form 2017-06-13 23:56:31 +02:00
Bertocq
4ea5df4012 Display only the Legislation Process dates for those phase/publication enabled 2017-06-13 23:50:45 +02:00
Bertocq
73ff68815d Update admin legislation process controller and form to allow enabling/disabling phase/publications 2017-06-13 23:50:12 +02:00
Bertocq
a147765273 Add enabled_phases_and_publications_count helper method on legislation process for views 2017-06-13 23:48:31 +02:00
Bertocq
9a97d09cab Add new phase/publication enabled flags on seeds and legislation process factory 2017-06-13 23:47:53 +02:00
Bertocq
cb7358bb97 Send to both Phase and Publication classes the enabled flag and use for enabled? helper method 2017-06-13 23:47:14 +02:00
Bertocq
bae9d105fa Add phase and publications enabled column flags to Legislative Process table 2017-06-13 22:50:38 +02:00
Bertocq
004c128b6c Fix phase name symbol on legislation process key_dates view 2017-06-13 22:04:36 +02:00
Bertocq
2018fc0b7d Fix Legislation Process Controller to correctly set both @phase and @process 2017-06-13 22:04:36 +02:00
Bertocq
990437dc40 Remove no longer used active/show/open _phase helper methods from Legislation Process, and specs 2017-06-13 22:04:36 +02:00
Bertocq
8710d8c0d3 Replace old active_phase? for new phase/publication enabled? for legislation processes 2017-06-13 22:04:36 +02:00
Bertocq
1b260c91f0 Replace old show_phase? for new phase/publication started? for legislation processes 2017-06-13 22:04:36 +02:00
Bertocq
523988a291 Replace old open_phase? method for new phase/publication open? on Legislative Process 2017-06-13 22:04:36 +02:00
Bertocq
12dc7a4790 Add specs for Legislation::Process Phase and Publication enabled?/started?/open? methods 2017-06-13 22:04:36 +02:00
Bertocq
10954859c7 Add debate/allegations phases and draft/result publications helper methods to Legislation Process 2017-06-13 22:04:36 +02:00
Bertocq
e55328caf4 Rename legislation process final_version_publication phase name to more descriptive result_publication 2017-06-13 22:04:36 +02:00
Bertocq
edee908fc1 Create Legislation Process Phase and Publication classes to enclose enabled?/started?/open? logic 2017-06-13 22:04:36 +02:00
Bertocq
0c27f1ffde Rename Legislation Process final_publication_date field to more descriptive result_publication_date 2017-06-13 22:04:36 +02:00
Juanjo Bazán
e26072b08c Merge pull request #1648 from consul/accessibility
Accesibility screen readers
2017-06-13 19:52:16 +02:00
Raimond Garcia
467560e895 Merge pull request #1646 from consul/user-stats
Only count active users in stats
2017-06-13 17:54:13 +02:00
decabeza
3bcfaeb61a replaces sr-only class to show-for-sr 2017-06-13 17:51:57 +02:00
Raimond Garcia
300634443c Merge pull request #1645 from consul/login-by-username
Allow users to login using username
2017-06-13 13:23:49 +02:00
rgarcia
b1fa2d22f7 only count active users in stats 2017-06-13 12:59:04 +02:00
Juanjo Bazán
2f895d2f6b removes else case 2017-06-13 12:22:48 +02:00
Alberto
0e6c689abe Merge pull request #1641 from PopulateTools/fix-broken-link
Fix broken link
2017-06-13 11:13:08 +02:00
Juanjo Bazán
c4ba6a7e94 updates specs 2017-06-12 19:48:57 +02:00
Alberto
73f1dab2ab Merge pull request #1642 from consul/fix/legislative_process_table_of_contents
Fix Table of Contents rotated text margin&line height
2017-06-12 19:11:15 +02:00
Juanjo Bazán
ed30051653 avoids conflicts with users using email as username 2017-06-12 18:54:39 +02:00
Bertocq
85d9fa7b6b Correct table of contents rotated text margin and line height 2017-06-12 17:38:20 +02:00
Juanjo Bazán
3f11dbe1d5 allows login using username or email 2017-06-12 17:26:38 +02:00
Amaia Castro
ed777d7c92 Fix broken link 2017-06-12 15:47:30 +02:00
Raimond Garcia
58da3b43e6 Merge pull request #1638 from entantoencuanto/issue#1595-results_url_permissions
Issue#1595 results url permissions
2017-06-12 13:09:27 +02:00