forked from nomlab/camome
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yuko
committed
Mar 3, 2015
1 parent
bf59dac
commit f20d6ba
Showing
6 changed files
with
89 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.container{ | ||
width: 95%; | ||
} | ||
|
||
#calendar{ | ||
width: 80%; | ||
float: right; | ||
} | ||
|
||
.nav-tabs{ | ||
width: 19%; | ||
} | ||
|
||
.tab-content{ | ||
width: 19%; | ||
} | ||
|
||
#external-events { | ||
float: left; | ||
position: relative; | ||
width: 100%; | ||
height: 500px; | ||
padding: 0 10px; | ||
text-align: left; | ||
overflow: scroll; | ||
} | ||
|
||
#external-events .fc-event { | ||
margin: 10px 0; | ||
cursor: pointer; | ||
height: 20px; | ||
} | ||
|
||
.date{ | ||
font-size: 20px; | ||
} |
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,20 @@ | ||
<div id="external-events"> | ||
<% prev_event_month = nil %> | ||
<% events.each do |event| %> | ||
<% if prev_event_month != event.dtstart.beginning_of_month %> | ||
<% if event.id == point_event.id %> | ||
<div id="point_date" class="date"> | ||
<%= event.dtstart.strftime('%B') %> <%= event.dtstart.year %> | ||
</div> | ||
<% else %> | ||
<div class="date"> | ||
<%= event.dtstart.strftime('%B') %> <%= event.dtstart.year %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
<div class="fc-event"> | ||
<%= event.summary %> | ||
</div> | ||
<% prev_event_month = event.dtstart.beginning_of_month %> | ||
<% end %> | ||
</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,13 @@ | ||
<ul class="nav nav-tabs" role="tablist" id="myTab"> | ||
<li role="presentation" class="active"><a href="#calendars" aria-controls="calendars" role="tab" data-toggle="tab">calendars</a></li> | ||
<li role="presentation"><a href="#old_events" aria-controls="old_events" role="tab" data-toggle="tab">old events</a></li> | ||
</ul> | ||
|
||
<div class="tab-content" id="tab-con"> | ||
<div role="tabpanel" class="tab-pane active" id="calendars"> | ||
</div> | ||
<div role="tabpanel" class="tab-pane" id="old_events"> | ||
<%= render :partial => "events/event_list" , :locals => {:events => events, :point_event => point_event} %> | ||
</div> | ||
</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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<!DOCTYPE html> | ||
<h1>Calendar</h1> | ||
|
||
<%= render :partial => "events/side_menu" , :locals => {:events => @events, :point_event => @point_event} %> | ||
<%= render :partial => "events/create_form_of_modal" %> | ||
|
||
<div id="calendar"></div> |