Permalink
Browse files

* Initial Meeting UI.

  • Loading branch information...
1 parent 97a9c71 commit a02e00266130dce64ea639b7cd51c757528d1480 Erik Hollensbe committed Aug 15, 2010
Showing with 44 additions and 4 deletions.
  1. +1 −4 lib/controllers/meeting.rb
  2. +20 −0 public/layout.js
  3. +16 −0 public/style.css
  4. +1 −0 run.rb
  5. +6 −0 views/layout.haml
@@ -2,8 +2,5 @@
# Meeting Routes
#
-get '/meeting' do
-end
-
-get '/meeting/:date' do
+get '/meeting/:meeting_id' do
end
View
@@ -38,6 +38,14 @@ function search_cb() {
$("#search .close_link").show();
}
+function meeting_cb() {
+ $("#meeting").removeClass("hand");
+ $("#meeting").addClass("meeting-wide");
+ $("#meeting-list").show();
+ $("#meeting").unbind("click");
+ $("#meeting .close_link").show();
+}
+
$(document).ready(function() {
$("#search-form").hide();
$("#search").click(search_cb);
@@ -50,6 +58,18 @@ $(document).ready(function() {
return false; // required to make the above click cb not fire
});
+ $("#meeting-list").hide();
+ $("#meeting").click(meeting_cb);
+ $("#meeting .close_link").hide();
+ $("#meeting .close_link").click(function() {
+ $("#meeting-list").hide();
+ $("#meeting").addClass("hand");
+ $("#meeting").removeClass("meeting-wide");
+ $("#meeting").click(meeting_cb);
+ $(this).hide();
+ return false; // required to make the above click cb not fire
+ });
+
$("#login-form-display").hide();
$("#login-form-close-link").hide();
View
@@ -194,3 +194,19 @@ table, dl {
.plus {
font-family: monospace;
}
+
+.meeting-link {
+ width: 100%;
+ display: block;
+ text-align: center;
+ padding-left: 5px;
+ padding-right: 5px;
+}
+
+.meeting-wide {
+ width: 8em;
+}
+
+#meeting-list {
+ margin-top: 1em;
+}
View
1 run.rb
@@ -8,6 +8,7 @@
require 'db'
$db = DB.new
+$meetings = $db.meetings
configure do
enable :sessions
View
@@ -20,6 +20,12 @@
#header-left
%a{:href => "/", :title => "Click to return to the home page"}=title(@title)
#header-right
+ #meeting.bordered-box.hand.left
+ Meetings
+ %a.right.close_link{:href => "javascript:void(0)"} Close
+ #meeting-list.clearfix
+ - $meetings.each do |meeting|
+ %a.meeting-link{:href => "/meeting/#{meeting.id}"}=h meeting.meeting_time
#search.bordered-box.hand.left
Search
%a.right.close_link{:href => "javascript:void(0)"} Close

0 comments on commit a02e002

Please sign in to comment.