Commit graph

3113 commits

Author SHA1 Message Date
James Mason
1241d21f93 Provide an opportunity for including conference-specific CSS
There is currently no top-level selector for views that is conference-specific,
so all conferences on one OSEM instance end up sharing all the same CSS.

In order to allow individual conferences to have unique CSS, a class for the
current conference is applied to the <body> tag, and an scss template provided with
an example of conference-specific CSS.
2018-11-06 08:19:01 -08:00
James Mason
8b12b1662d Unlint Rspec/DescibeClass #BetterPlace 2018-11-06 08:19:01 -08:00
James Mason
2785c3ab6d Raise handled error when conference not found
The current codebase will end in a 500 APPLICATION ERROR if Conference#short_title isn't found... this should be a 404 NOT FOUND INSTEAD, which will be handled if we raise ActiveRecord::RecordNotFound.
2018-11-06 08:18:35 -08:00
depfu[bot]
8271250b5d Update loofah to version 2.2.3 2018-11-03 23:23:28 +01:00
dpliakos
20415f00e1 Remove link from splash page edit subtitle, if splashpage is not created. 2018-10-25 20:40:34 -07:00
James Mason
b11001cdba Every campaign has an end.
Drop ahoy, because it's more trouble than it's worth. This means dropping
visits, campaigns, targets.

Campaigns are better run to analytics, such as:
* https://matomo.org/docs/tracking-campaigns/
* https://matomo.org/docs/tracking-goals-web-analytics/
* https://support.google.com/analytics/answer/1012040?hl=en
2018-10-16 21:34:04 +02:00
James Mason
62056fc044 Add a registration link to user menu 2018-10-13 20:26:04 -07:00
depfu[bot]
134d9aeeb6 Update uglifier to version 4.1.19 2018-10-10 18:32:00 -07:00
depfu[bot]
7814c2cf9b Update rspec-activemodel-mocks to version 1.1.0 2018-10-10 18:16:53 -07:00
Henne Vogelsang
e2aff6a976 Add some more repos/packages to the base image 2018-10-10 18:06:19 -07:00
depfu[bot]
7eb9c05a93 Update mini_magick to version 4.9.2 2018-10-10 17:41:47 -07:00
depfu[bot]
75b0d0d1bf Update money-rails to version 1.12.0 2018-10-10 17:39:06 -07:00
James Mason
988803b601 Shuffle splashpage highlights
(cherry picked from commit 1101c3c9497766a498422ce5c5bfe797a52cf840)
2018-10-11 00:51:46 +02:00
depfu[bot]
60847e1dae Update cancancan to version 2.3.0 2018-10-10 14:16:44 -07:00
depfu[bot]
d0f673b73d Update autoprefixer-rails to version 9.1.4 2018-10-10 14:13:33 -07:00
depfu[bot]
9dbbe5ee3f Update stripe-ruby-mock to version 2.5.5 2018-10-10 14:12:41 -07:00
James Mason
d7a0936dd7 Convert admin/registrations datatable to AJAX-backed
Supercedes https://github.com/openSUSE/osem/pull/2031 .

Note:

* "Questions" modals have been dropped from this view; questions are no
  longer asked on registration, since Surveys(PR#1100)  were added.
2018-10-10 21:57:22 +02:00
James Mason
eea05d649c Clean up export links on admin/registrations #BetterPlace 2018-10-10 21:57:22 +02:00
James Mason
f3757fd4e7 Update chart-js-rails to version 0.1.6
Supercedes #2152 with required code changes.
2018-10-10 21:23:28 +02:00
James Mason
aa1c8e6c66 Add depfu badge to README 2018-10-10 10:34:45 +02:00
depfu[bot]
b26b73cb18 Update nokogiri to version 1.8.5 2018-10-06 19:04:35 +02:00
James Mason
6682a6baaa Conservative update of haml-rails 0.5.3 -> 0.8.2 2018-10-01 01:07:01 +02:00
James Mason
3af4dd5aac Move big statistics to a partial 2018-09-27 15:42:08 +02:00
James Mason
1eff57d3ac Add relevant data to scheduling widget 2018-09-27 15:41:06 +02:00
James Mason
21b908ad38 Cache admin schedule event partial 2018-09-27 15:41:06 +02:00
James Mason
111fe83452 Reduce queries required for schedule. 2018-09-27 15:41:06 +02:00
James Mason
a7c853da34 Ignore current sqlite db locations 2018-09-26 19:51:07 -07:00
James Mason
780eb5c51d Fix up logical error in schedule 2018-09-25 22:14:47 +02:00
James Mason
84d60f4f3e Set application timezone in ENV 2018-09-25 22:13:22 +02:00
James Mason
ed6b2d8c93 Default to keeping user's email addresses private. 2018-09-25 22:11:38 +02:00
Henne Vogelsang
d61b4253df Configure MATOMO from the environment
We try to be a 12factor app right? :-)
2018-09-24 10:59:42 -07:00
Henne Vogelsang
f2ad141e32 Switch review apps to postgresql 2018-09-20 11:33:57 -07:00
Henne Vogelsang
f8b7233404 Put database.yml into the code base
It works by default, we have a mechanism to configure it (dotenv.example)
and we want to be a 12factor app, right? Let's do this...
2018-09-20 11:33:57 -07:00
Henne Vogelsang
a0b79c7789 Drop knapsack
It constantly fails with "Mysql2::Error: This connection is in use by...".
Might be because of database cleaner? But until we can get this stable,
rip it out again.

Replaced by a matrix based on test type
2018-09-20 00:56:17 +02:00
Stella Rouzi
da91ff8371 Add email for proposal submission 2018-09-19 21:25:12 +02:00
Henne Vogelsang
dfe0b8188e Disable codecov comments
We are only interested in details if coverage drops
below the threshold, not always.
2018-09-19 14:10:13 +02:00
Henne Vogelsang
1aa1ccbf06 Move sqlite back into development
Heroku does not allow sqlite and will just fail building it.
And it's anyway in no way an option for production.
2018-09-18 21:17:59 +02:00
Henne Vogelsang
042d49619c Docker cleanups
- Put docker-compose.yml into version control, no need to make this an example
  file and complicate things.
- Start the docker dev-env osem on port 3000. Just as our documentation says
  and how we do it in vagrant.
- hardcode CONTAINER_USERID so you don't have to have an
  docker-compose.override.yml if your UID is 1000.
- Rename web service/container to osem for clarity in the logs
- Keep assets also in a volume in production
- warn a bit more prominently about docker-compose.override.yml
2018-09-14 23:28:26 +02:00
Henne Vogelsang
f69bb18e79 Remove centos from bootstrap.sh
We don't have a Vagrant setup for centos, why would we need a centos
bootstrap?

Also use the rake taks setup:bootstrap to configure the app so we only
have one place where this is done.
2018-09-12 21:05:39 +02:00
Henne Vogelsang
00670b03f6 Introduce setup rake tasks
Put what has to be done to have a working installation into one place instead
of spreading it to multiple files.
2018-09-12 21:05:39 +02:00
Henne Vogelsang
35c531b111 Make the dotenv file useful by default
Copying this to .env.production used to enable all kinds of things with example
data. Now you can copy it and OSEM will use it's defaults until you explicitely
change them here.
2018-09-12 19:41:37 +02:00
Henne Vogelsang
55818e30de Use the new database.yml example file in CI
12 factor in our CI, what a riot! ;-)
2018-09-12 19:41:37 +02:00
Henne Vogelsang
cae610ecf0 Include all "supported" databases in our bundle
It's not really nice to force people to change Gemfile which is
under SCM control. This also enables us to make the database
adapter configurable.
2018-09-12 19:41:37 +02:00
Henne Vogelsang
1a502417f9 Document the DB variables in dotenv.example 2018-09-12 19:41:37 +02:00
Henne Vogelsang
6f061756ae Make the database.yml example file generic
So it works with environment variables (12 factory baby!). Enables
us to drop all enviroment specific 'special' example files.
2018-09-12 19:41:37 +02:00
Henne Vogelsang
0eb1ef337a Introduces docker-compose to the contribution guide
Introduces a section about the docker-compose development environment.
I have also tried to shorten the guide, by moving some things to the wiki,
so it's not too overwhelming for new contributors.
2018-09-11 00:10:42 +02:00
Henne Vogelsang
8fd3004d7f Introduces openSUSE based docker-compose environment 2018-09-11 00:10:42 +02:00
Henne Vogelsang
824d83411d Drop the alpine based docker-compose environment 2018-09-11 00:10:42 +02:00
Henne Vogelsang
2e91f8512a Refresh haml-lint todo file 2018-09-08 04:29:22 +02:00
Henne Vogelsang
f866974b19 Enable FactoryBot/AttributeDefinedStatically
See https://robots.thoughtbot.com/deprecating-static-attributes-in-factory_bot-4-11
2018-09-08 04:29:22 +02:00