Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added nonzero theme from http://oswd.org/
- Loading branch information
1 parent
8917c5c
commit 5c28376
Showing
14 changed files
with
435 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
<script type="text/x-jquery-template" title="events"> | ||
<h1>Events</h1> | ||
<h4>Events</h4> | ||
<ul class="links events"> | ||
<% $.each(_context, function(index, event){ %> | ||
<div class="event" event_id="<%= event.id %>"><%= event.name %></div> | ||
<li class="event" event_id="<%= event.id %>"> | ||
<a href="#event-<%= event.name %>"> <%= event.name %> </a> | ||
</li> | ||
<% }); %> | ||
</ul> | ||
</script> | ||
|
||
<script type="text/x-jquery-template" title="event"> | ||
<h1>Event <%= name %></h1> | ||
<p><%= description %></p> | ||
|
||
<%= partial("sessions", sessions) %> | ||
<div class="post"> | ||
<h3>Event <%= name %></h3> | ||
<p><%= description %></p> | ||
</div> | ||
<%= partial("sessions", sessions) %> | ||
</script> |
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,13 +1,63 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us"> | ||
<head> | ||
<title>Fresh Merb App</title> | ||
<title>Ruby DCa(m)p</title> | ||
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | ||
<%= javascripts_for(:jquery) %> | ||
<%= javascripts_for(:app) %> | ||
<link rel="stylesheet" href="/stylesheets/master.css" type="text/css" media="screen" charset="utf-8" /> | ||
</head> | ||
<body> | ||
<div id="header"> | ||
|
||
<div id="header_inner" class="fluid"> | ||
<span class="logout">[logout]</span> | ||
<div id="logo"> | ||
<h1><span>OC</span></h1> | ||
<h2>Opinionated Conferences</h2> | ||
</div> | ||
|
||
<div id="menu"> | ||
<ul> | ||
<li><a href="#" class="active">Events</a></li> | ||
<li><a href="#">People</a></li> | ||
<li><a href="#">Resources</a></li> | ||
<li><a href="#">Contact</a></li> | ||
</ul> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id="main"> | ||
|
||
<div id="main_inner" class="fluid"> | ||
|
||
<div id="primary_content"> | ||
|
||
<div id="left_column"> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div id="secondary_content"> | ||
|
||
<div id="right_column"> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<br class="clear" /> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div id="footer" class="fluid"> | ||
Copyright © 2008-<%= Time.now.year %> OC <a href="http://www.rubydcamp.com/">snark</a>. | ||
</div> | ||
<%= templates_for(:events,:sessions,:comments) %> | ||
</body> | ||
</html> |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 +1,34 @@ | ||
function dashboard () { | ||
$("span.logout").click(function() { logout(); }); | ||
$("body").append($("<div/>").attr("id","events")); | ||
$("span.logout").click(logout); | ||
$("div#right_column").append($("<div/>").attr("id","events")); | ||
display_events(); | ||
} | ||
|
||
function display_events() { | ||
$.getJSON("/events", null, function(events) { | ||
$("#events").empty(); | ||
$("#events").append($.pageTemplates["events"](events)); | ||
$("#events div.event").click(function() { display_event($(this).attr("event_id")); }); | ||
$("div#events").empty(); | ||
$("div#events").append($.pageTemplates["events"](events)); | ||
$("div#events li.event").click(function() { display_event($(this).attr("event_id")); }); | ||
}); | ||
} | ||
|
||
function display_event (event_id) { | ||
$.getJSON("/events/" + event_id, null, function(event) { | ||
$("body").append( | ||
$("div#left_column").empty().append( | ||
$("<div/>").attr("id","event-" + event.id).append( | ||
$.pageTemplates["event"](event) | ||
) | ||
); | ||
display_sessions_for_event(event_id); | ||
}); | ||
} | ||
|
||
function display_sessions_for_event(event_id) { | ||
$.getJSON("/events/" + event_id + "/sessions", null, function(sessions) { | ||
$("div#event-" + event_id).append( | ||
$("<div/>").attr("id","sessions").append( | ||
$.pageTemplates["sessions"](sessions) | ||
) | ||
); | ||
}); | ||
} |
Oops, something went wrong.