-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from fnf-org/kig/events-speedup
A slew of performance related changes.
- Loading branch information
Showing
19 changed files
with
195 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# vim: ft=yaml | ||
web: bin/rails server -p 8080 | ||
web: BULLET_ENABLED=true bin/rails server -p 8080 | ||
js: yarn watch:js | ||
css: yarn watch:css | ||
browser: sleep 4 && open http://tickets-local.fnf.org:8080/ && while true; do sleep 100; echo .; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
- status_widget = event.status | ||
|
||
%tr | ||
%td.p-1.align-content-center | ||
.span.me-1 | ||
= link_to event, class: "text-nowrap btn btn-#{status_widget.css_class} btn-sm btn-event-name" do | ||
= event.name.truncate(35, separator: /\s/) | ||
%td.p-1.optional.align-content-center.mx-4.text-nowrap | ||
%span{class: "text-#{status_widget.css_class}"}= status_widget.name | ||
%td.p-1.text-end.optional.align-content-center | ||
= number_with_delimiter(event.ticket_requests.count) | ||
%td.p-1.text-end.align-content-center | ||
= number_with_delimiter(event.ticket_requests.sum(&:guest_count)) | ||
%td.p-1.text-end.optional.align-content-center | ||
= number_to_currency(event.ticket_requests.completed.sum(&:cost)) | ||
%td.p-1.text-end.optional.align-content-center | ||
= number_to_currency(event.ticket_requests.awaiting_payment.sum(&:cost)) | ||
%td.text-nowrap.small.align-content-center.event-dates.optional-small | ||
= TimeHelper.for_display(event.start_time.localtime) | ||
%br | ||
= TimeHelper.for_display(event.end_time.localtime) |
Oops, something went wrong.