-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
styling of calendar view, separating out long events
- Loading branch information
1 parent
f4a11ec
commit 23b8e7d
Showing
7 changed files
with
41 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
$("#events_calendar").html("<%= escape_javascript render("events/partials/calendar", events: @events) %>"); | ||
$("#events_calendar").html("<%= escape_javascript render("events/partials/calendar", events: @events) %>"); | ||
$("#events_calendar_long_events").html("<%= escape_javascript render("events/partials/calendar_long_events", events: @long_events) %>"); |
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,7 +1,13 @@ | ||
<%= month_calendar(events: events, attribute: :start, end_attribute: :end) do |date, events| %> | ||
<%= date.day %> | ||
<div class="day-number"> | ||
<%= date.day %> | ||
</div> | ||
|
||
<% events.each do |event| %> | ||
<%= link_to "#{event.title} #{l event.start, format: :time_short} - #{l event.end, format: :time_short}", event, class: 'clear-both' %> | ||
<% end %> | ||
<ul class="list-unstyled"> | ||
<% events.each do |event| %> | ||
<li> | ||
<%= link_to "#{event.title}", event, class: 'clear-both', 'title': "#{l event.start, format: :time_short} - #{l event.end, format: :time_short}" %> | ||
</li> | ||
<% end %> | ||
</ul> | ||
<% end %> |
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 |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
<%= image_tag('ajax-loader2.gif') %> | ||
</div> | ||
</div> | ||
<div id="events_calendar_long_events"> | ||
</div> | ||
|
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,11 @@ | ||
<h4>Long events</h4> | ||
<ul> | ||
<% events.each do |event| %> | ||
<li> | ||
<%= link_to event do %> | ||
<%= event.title %> | ||
<%= l event.start, format: :short %> - <%= l event.end, format: :short %> | ||
<% end %> | ||
</li> | ||
<% end %> | ||
</ul> |