Commit graph

1857 commits

Author SHA1 Message Date
James Mason
43bef689fc Rubocop autocorrections 2018-11-16 09:06:05 -08:00
James Mason
9f84454a8d Uploader changes based on https://github.com/carrierwaveuploader/carrierwave 2018-11-14 13:29:39 -08:00
James Mason
a3adf8318d Add additional social media fields to contacts
+ YouTube
+ Blog

Simplify logic in the view, and refactor the test #BetterPlace
2018-11-14 15:01:03 +01:00
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
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
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
James Mason
988803b601 Shuffle splashpage highlights
(cherry picked from commit 1101c3c9497766a498422ce5c5bfe797a52cf840)
2018-10-11 00:51:46 +02: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
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
780eb5c51d Fix up logical error in schedule 2018-09-25 22:14:47 +02:00
James Mason
ed6b2d8c93 Default to keeping user's email addresses private. 2018-09-25 22:11:38 +02:00
Stella Rouzi
da91ff8371 Add email for proposal submission 2018-09-19 21:25:12 +02:00
Henne Vogelsang
fb2612ecaf Simplify set_week callbacks
Changes to :week are already ignored py paper_trail. No need to wrap this in a
`without_versioning`. Also drop the reader in `Registration` and the tests. Why
write this into the DB but never read it again? Why test standard
ruby/activerecord stuff.
2018-09-04 21:12:46 +02:00
James Mason
c32c9962d1 Change quotes style for better DB compatibility
Postgres 10 doesn't like the double-quoted values.
2018-08-30 19:52:20 -07:00
James Mason
c524f8cc65 Add an option for shorter datatable pages 2018-08-30 16:50:42 +02:00
James Mason
7541f5818c Require >=3 chars for datatable search
Performing a search with < 3 chars is not generally fruitful
2018-08-30 16:50:42 +02:00
James Mason
64ceaf50f4 Update Admin user datatables to use AJAX 2018-08-30 16:50:42 +02:00
Tyrant Davis
6987c34e12 Add public or private status to other splashpage options. 2018-08-29 21:28:20 -07:00
Tyrant Davis
1333641a5f Change css id #publicorprivate to a class id. Upate splashpages/show.html.haml 2018-08-29 21:28:20 -07:00
Tyrant Davis
d3ce401cba Indicate if spalshpage is marked as public or not. 2018-08-29 21:28:20 -07:00
Tyrant Davis
7127834263 Fix ArgumentError in Conferences#show 2018-08-29 21:28:20 -07:00
Situ William
e29931b8c3 added a button to new_admin_conference_path at admin/organizations#index 2018-08-12 16:29:01 +03:00
Stella Rouzi
76482327b7 Fix rating_stars parameters in admin/events#show 2018-07-30 12:21:13 -07:00
James Mason
ebdb5cab8c DRY up selectize users helpers
(cherry picked from commit eb38ddc6c761d4920b35499690fd5681f0ea5385)
2018-07-15 07:17:15 +02:00
Stella Rouzi
9908f88570 Add survey with target after_event 2018-07-03 08:46:15 +03:00
Stella Rouzi
e1adf28081 Show charts for survey replies 2018-07-03 08:46:15 +03:00
Stella Rouzi
683f62a27c Add more options for surveys
* Survey period constraints
* Add abilities
* Enforce required questions
* Update survey_submssion updated_at
* Do a full match of possible answer and user reply
2018-07-03 08:46:15 +03:00
Stella Rouzi
c278e547ce Add survey related tests 2018-07-03 08:46:15 +03:00
Stella Rouzi
9f3c0eff5d Add surveys; custom generated by admins
Available during registration or after conference

Co-authored-by: Shyukri <shshyukriev@suse.com>
Co-authored-by: Henne <hvogel@opensuse.org>
Co-authored-by: Moises <mdeniz@suse.com>
2018-07-03 08:46:15 +03:00
James Mason
4e742d170f Only one collapsed menu on non-admin pages
(cherry picked from commit 96ff845120e7a9c83d5d4c30908b283bb9449247)
2018-07-02 09:57:21 -06:00
James Mason
4ecf078db6 Consistent, concise styling of datables
Add a semantic class to aggregate bootstrap classes and consistently
applyt them to all datatables.
2018-07-02 09:56:51 -06:00
Stella Rouzi
3bb73f27cf Fix ahoy tracking and visits 2018-07-02 09:42:40 -06:00
Liana Gk
b54e3f7ab9 change unless/else to if/else
(cherry picked from commit 7fa38e2697)
2018-07-01 01:12:14 +02:00
James Mason
1e9765c163 DRY up bootstrapSwitches with default values 2018-06-26 07:10:08 -07:00
James Mason
d703dad496 Add a function for initing boostrapSwitch outside of $() 2018-06-26 07:10:08 -07:00
Astradeni
7fa007d621 resolving conflict in conferences/_tickets
Added in css .word_break and applied it in conferences/_tickets
2018-06-14 11:42:58 -07:00
James Mason
cddc3e6f93 Move notifications into user menu 2018-06-11 11:53:44 +02:00
James Mason
c4219bbaf9 Add timed cache expiration on CfP partials
(cherry picked from commit f339c191c13c204e9c0a78df1bc083e882b2d2eb)
2018-06-08 17:32:01 -07:00
Soon Van
76babc6372 Show Edit Registration button for registered users
Registered users should see a button on the main conference page
to edit their current registration instead of being asked to
create/add a new one.

Fixes #2041
2018-06-06 16:42:29 -07:00
Matthias Brugger
dffd4ac7a0 fix speakerdeck commercial 2018-06-06 15:14:26 -07:00
James Mason
fe3c6c499b Collapse two redundant helpers
Fold one-used event_status_icon and one-used booth_status_icon into
status_icon, used twice; since there is no conflict on the status-
driven description.
2018-06-06 10:19:39 +02:00
James Mason
940012314d Render markdown in splashpage header without arbitrary assignment to h3
The markdown settings for conference description include header assignments;
there's no reason to force all content into a tag type that the user didn't
specify in their markdown.
2018-06-04 07:43:59 -07:00
James Mason
24396d35c2 Use Ruby safe navigation over Rails try
re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/SafeNavigation
2018-06-01 09:15:57 -07:00