-
Notifications
You must be signed in to change notification settings - Fork 21
Timezone controls (optional, default turned on) #1327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cwant
wants to merge
20
commits into
ElixirTeSS:master
Choose a base branch
from
cwant:cwant/timezone-controls
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
ca5a8d0
Move the time/timezone rendering into own partial, with optional time…
cwant 5d927af
Create a session variable to hold a timezone override for views.
cwant 2b3645a
Add user interface for controlling what timezone times are displayed in.
cwant 037f454
Show timezone controls on pages that need it.
cwant 230de2c
Translations of time, date, timezones for event display (via ffi-icu …
cwant 26ac4d1
Show timezone controls on calendar view, but don't do anything (yet).
cwant c6eec5b
Let the user create/edit start/end times in the user interface in the…
cwant dca60cd
Some adjustments need moving form Explora to Elixir.
cwant af8b11e
Make timezone controls optional (default: turned on).
cwant 8ac0b2d
Per advice from Copilot: ensure the event_time_data action doesn't ne…
cwant 3058ae2
Per advice from Copilot: better logic (and permissions) in event_time…
cwant 98f790e
Per advice from Copilot: safer timezone conversions for editing/saving.
cwant fbe4a57
Partial advice from Copilot: make the local time stuff more fault tol…
cwant 31729be
Per advice from Copilot: smarter fragment caching.
cwant a7e1fb0
Per advice from Copilot: address some accessibitily issues.
cwant 0295177
Per advice from from Copilot: fix typo in comment.
cwant f5809bb
Per advice from Copilot: don't hardcode an ajax URL.
cwant 7c6ea50
Per advice from Copilot: test blank? rather than falsiness.
cwant f340ad0
As per advice from @kennethrioja: make timezone controls off by default.
cwant 0081ce3
Fix an issue reported by @kennethrioja: don't show timezone controls …
cwant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,16 @@ | ||
| <% # Fake the timezone if passed as an argument | ||
| if local_assigns[:timezone] | ||
| saved_timezone = event.timezone | ||
| event.timezone = timezone | ||
| end %> | ||
| <div id="event-time-<%= event.id %>" data-event-id="<%= event.id %>" class="time-with-zone"> | ||
| <p class="date no-spacing"> | ||
| <strong class="text-primary"><%= t('events.date') %>: </strong> | ||
| <%= neatly_printed_date_range(event.start_local, event.end_local) %> | ||
| <% if event.timezone.blank? %> | ||
| <%= t('events.no_timezone_provided_gmt_assumed') %> | ||
| <% end %> | ||
| </p> | ||
| <%= display_attribute(event, :timezone) {|v| normalized_icu_timezone(v) } %> | ||
| </div> | ||
| <% event.timezone = saved_timezone if local_assigns[:timezone] %> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.