Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: config/routes.rb
- Loading branch information
Showing
16 changed files
with
147 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,48 @@ | ||
<% no_map = event.lat.blank? %> | ||
|
||
<div class="grid_12 event"> | ||
<div class="grid_1 alpha datetime"> | ||
<div class="datestamp <%=status_class(event)%>"> | ||
<div class="month"><%= event.starts_at.strftime("%b") %></div> | ||
<div class="day"><%= event.starts_at.day %></div> | ||
<div class="day"><%= event.starts_at.strftime("%d") %></div> | ||
</div> | ||
|
||
<div class="timestamp <%=status_class(event)%>"> | ||
<%= event.starts_at.strftime("%H:%M") %> | ||
</div> | ||
</div> | ||
|
||
<div class="map grid_3"> | ||
<div id="event_map_<%=event.id%>"></div> | ||
<div class="map grid_3 <%=no_map ? 'no_map' : ''%>"> | ||
<div id="event_map_<%=event.id%>"> | ||
<%= "no map available" if no_map %> | ||
</div> | ||
</div> | ||
|
||
<div class="grid_7 omgega"> | ||
<h2 class="eventitle <%=status_class(event)%>"><%= event.name %></h2> | ||
<h2 class="eventitle <%=status_class(event)%>"> | ||
<%= link_to event.name, event_url(event.id) %> | ||
<span class="event permalink"> | ||
<%= link_to 'Permalink', event_url(event.id) %> | ||
</span> | ||
</h2> | ||
<ul> | ||
<li class="eventdate"><%= time_summary(event) %></li> | ||
<li class="eventlocation"><%= event.location || "unknown location" %></li> | ||
<li class="eventlocation"> | ||
<%= link_to_event_location(event) %> | ||
</li> | ||
</ul> | ||
<div class="eventdescription"> | ||
<%= linkify(event.description).html_safe %> | ||
<%= auto_link(event.description).html_safe %> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
<script> | ||
$(document).ready(function() { | ||
show_map("event_map_<%=event.id%>", <%=event.lat || 'null'%>, <%=event.lon || 'null'%>); | ||
}); | ||
</script> | ||
<% unless no_map %> | ||
<script> | ||
$(document).ready(function() { | ||
show_map("event_map_<%=event.id%>", <%=event.lat || 'null'%>, <%=event.lon || 'null'%>); | ||
}); | ||
</script> | ||
<% 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
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 @@ | ||
<%= render @event %> |
2 changes: 1 addition & 1 deletion
2
config/initializers/meetup.example.rb → config/initializers/meetup.rb
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,6 @@ | ||
# get your meetup API key here: http://www.meetup.com/meetup_api/key/ | ||
Appsterdam::Application.meetup_api_options = { | ||
:events_url => "https://api.meetup.com/2/events", | ||
:key => "<<< YOUR API KEY >>>", | ||
:key => ENV["MEETUP_KEY"], | ||
:group_name => "Appsterdam" | ||
} |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
Appsterdam::Application.twitter_options = { | ||
:consumer_key => ENV["TWITTER_CONSUMER_KEY"], | ||
:consumer_secret => ENV["TWITTER_CONSUMER_SECRET"] | ||
} |
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,5 @@ | ||
desc "This task is called by the Heroku cron add-on" | ||
task :cron => :environment do | ||
log = Logger.new(STDOUT) | ||
Event.sync_events false, log | ||
end |
Oops, something went wrong.