Georg Gadinger
561219ddaf
add spec for Ajax::AnswerController
2020-04-28 22:13:19 +02:00
Georg Gadinger
29a5d0408c
ajax_controller: fix variable name
2020-04-28 21:42:41 +02:00
Georg Gadinger
66527a8c9c
views/ajax: delete
2020-04-28 20:39:17 +02:00
Georg Gadinger
2f2b9ab1f4
New Relic be like: *notices your errors* OwO what's this?
2020-04-28 20:32:36 +02:00
Georg Gadinger
e07d069c73
Refactor Ajax::*Controllers
...
Also removed the unused `Ajax::QuestionController#preview` method and
route
2020-04-28 20:28:00 +02:00
Georg Gadinger
acc394a110
Merge pull request #88 from Retrospring/replace-dead-links
...
Replace dead links
2020-04-26 23:44:31 +02:00
Georg Gadinger
6a0d9063ba
Revert "Prevent the Return key from submitting while composing using an IME"
...
This reverts commit d13f1cf7b8
.
2020-04-26 23:40:02 +02:00
Georg Gadinger
dc25b5f0c1
Capitalise organisation name in GitHub urls
2020-04-26 23:18:02 +02:00
Georg Gadinger
b2b6419b5d
Use HTTPS in links
2020-04-26 23:16:20 +02:00
Georg Gadinger
c634d5f03c
Update some dead links
2020-04-26 23:12:29 +02:00
Georg Gadinger
aeef50ad78
Merge pull request #86 from Retrospring/cleanup
...
Minor Cleanup
2020-04-26 20:03:46 +02:00
Karina Kwiatek
f3081a936c
Remove export task
2020-04-25 22:24:23 +01:00
Karina Kwiatek
926631eca3
Remove more left-over references to role fields
2020-04-25 22:23:37 +01:00
Karina Kwiatek
5db6f90b36
Update schema.rb to match state of current branch
2020-04-25 21:21:42 +01:00
Karina Kwiatek
f42cc6aed9
Remove all other references to removed roles
2020-04-25 21:20:02 +01:00
Karina Kwiatek
9d933c933e
Remove unused (removed) roles from Your Data / Export
2020-04-25 21:14:26 +01:00
Karina Kwiatek
71e62dddcf
Remove unused roles from privileges modal
2020-04-25 21:06:36 +01:00
Karina Kwiatek
10a9ca5577
Fix bad replace; update schema.rb
2020-04-25 21:01:46 +01:00
Karina Kwiatek
2bf7d29e98
Remove unused profile flags / role columns
...
These were made redundant by #67
2020-04-25 20:51:28 +01:00
Dominik M. Kwiatek
9f992d398f
Fix exception being thrown upon attempting to ban a user ( #82 )
2020-04-25 14:51:28 +01:00
Dominik M. Kwiatek
d09cf5e979
Merge pull request #83 from Retrospring/fix/ime-handling
2020-04-25 14:51:10 +01:00
Karina Kwiatek
d13f1cf7b8
Prevent the Return key from submitting while composing using an IME
...
Based on the following article by Michael Stum:
https://www.stum.de/2016/06/24/handling-ime-events-in-javascript/
2020-04-25 14:35:04 +01:00
Georg Gadinger
445d9ebe2a
Fix user questions page
2020-04-23 03:31:07 +02:00
Dominik M. Kwiatek
a8c335899d
Use email field for password reset ( #77 )
...
Fixes unsubmmittable password reset form
2020-04-22 19:22:16 +01:00
Karina Kwiatek
3aa2e5899c
Remove JoJoke
2020-04-22 15:51:45 +01:00
Karina Kwiatek
fc5c4dd00a
Optimise image assets
...
Saved 64 KB out of 799 KB. 33.5% per file on average (up to 87.9%)
2020-04-22 15:21:37 +01:00
Georg Gadinger
0c0a5c106c
Merge pull request #73 from Retrospring/better-pagination
...
Use cursored pagination, remove WillPaginate
2020-04-21 20:01:07 +02:00
Karina Kwiatek
47fde17560
Remove deprecated gravatar_url method
2020-04-20 23:18:14 +01:00
Georg Gadinger
101b3b68d3
Use cursored pagination, remove WillPaginate
2020-04-20 23:13:24 +02:00
Dominik M. Kwiatek
c292f51957
Set up GitHub Actions ( #72 )
...
* Add GitHub Actions config
* Add extra dependencies and use environment variable for DB config
Moved the env vars up to outside of the postgres service so this might not work
* Pass environment variables for Postgres credentials to Postgres container
* Pass service ports to application
Have a suspicion that Redis one won't work as justask.yml is probably not using ERB
* Add database.yml.postgres with port
* Cache gems; pass Redis URL as env var
* Add host to DB config
* Pass DB credentials for db:setup
* Use 127.0.0.1 instead of localhost to force TCP; Use bundler config without instead of --without
* I can't read 🗑
* 🤔
* 💻 🔨 I have no idea what I'm doing…
* Testing env defined outside steps
* Move templated vars down
* Add build badge
2020-04-20 21:02:48 +01:00
Dominik M. Kwiatek
516bc48aa0
Merge pull request #70 from Retrospring/feature/announcements
...
Implement Announcements
2020-04-19 23:10:47 +01:00
Karina Kwiatek
6e605758a6
Minor cleanup in AnnouncementController
2020-04-19 22:59:57 +01:00
Karina Kwiatek
16ade832ca
Address @nilsding's review changes
2020-04-19 22:58:47 +01:00
Georg Gadinger
3acde78388
Merge pull request #69 (nice!) from Retrospring/bugfix/empty-group-names
...
Do not allow creation of groups with empty names
2020-04-19 23:55:37 +02:00
Karina Kwiatek
c4164a8f34
Add AnnouncementController tests
2020-04-19 22:40:06 +01:00
Karina Kwiatek
864d5844dc
Add Announcement tests
2020-04-19 22:38:01 +01:00
Georg Gadinger
477ec3e9c9
Do not allow creation of groups with empty names
2020-04-19 23:28:50 +02:00
Karina Kwiatek
4889071f95
Add JS for dismissing announcements
2020-04-19 22:27:50 +01:00
Karina Kwiatek
80c6a4272a
Fix indentation in new.html.haml
2020-04-19 21:58:08 +01:00
Karina Kwiatek
e731d76d52
Update admin/announcements routes to use has_role?
2020-04-19 21:54:40 +01:00
Karina Kwiatek
391f4a28ed
Merge branch 'master' into feature/announcements
...
# Conflicts:
# db/schema.rb
2020-04-19 21:52:58 +01:00
Georg Gadinger
da25be15b1
Merge pull request #67 from Retrospring/use-real-roles
...
Use Rolify for admin and moderator roles
2020-04-19 22:50:44 +02:00
Karina Kwiatek
a505e7ee71
Ensure we're logged in as an admin when using the AnnouncementController
2020-04-19 21:45:07 +01:00
Karina Kwiatek
b6d6c1fded
Add announcements to the top of the application template
2020-04-19 21:38:21 +01:00
Georg Gadinger
946bb3ae9d
Use Rolify for admin and moderator roles
2020-04-19 22:35:58 +02:00
Georg Gadinger
a0c9641994
Remove useless specs
2020-04-19 22:31:43 +02:00
Karina Kwiatek
473f2cdcc5
Show announcement validation errors on the frontend
2020-04-19 21:26:55 +01:00
Karina Kwiatek
2ecc746e23
Implement validation for announcements
2020-04-19 21:11:22 +01:00
Karina Kwiatek
6187cb0b6c
Add the ability to edit announcements
2020-04-19 20:58:57 +01:00
Karina Kwiatek
f14a168bce
Implement deletion of announcements
2020-04-19 20:50:33 +01:00