Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added some popovers

  • Loading branch information...
commit 12c853f570121c8cdf8a45bc94f12eb1e304d4fb 1 parent f1efeea
@joerichsen authored
View
2  app/assets/javascripts/custom.js
@@ -3,4 +3,6 @@ $(document).ready(function() {
$(".alert-message").alert();
$( ".datepicker" ).datepicker();
+
+ $('[rel=popover]').popover({html: true})
});
View
5 app/views/layouts/application.html.haml
@@ -7,12 +7,13 @@
= csrf_meta_tags
%body
- .topbar{"data-scrollspy" => "scrollspy"}
+ .topbar
.topbar-inner
.container
- %a.brand{:href => "#"} aarhus.rb
+ = link_to 'aarhus.rb', root_path, :class => 'brand'
%ul.nav
%li.active= link_to 'Meetings', meetings_path
+ %li= link_to 'Members', meetings_path
.container
View
2  app/views/meetings/index.html.haml
@@ -3,6 +3,6 @@
%ul
- for meeting in @meetings do
- %li= meeting.title
+ %li= link_to meeting.title, meeting, :rel => 'popover', 'data-content' => meeting.agenda, :title => meeting.location
= link_to 'new meeting', new_meeting_path, :class => 'btn'
Please sign in to comment.
Something went wrong with that request. Please try again.