From 52e9744b3b50daa2b979fdd554a4c45af85fcc6f Mon Sep 17 00:00:00 2001 From: Kevin Kirsche <Kev.Kirsche+GitHub@gmail.com> Date: Tue, 10 Feb 2015 09:30:36 -0500 Subject: [PATCH] Move the RSVP button to a block elem The RSVP currently is just kind of floating, by turning it into a block we can create a base for the item and ensure the button is in a consistent location. --- source/index.html.haml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/index.html.haml b/source/index.html.haml index a1d2f46..c64e9b4 100644 --- a/source/index.html.haml +++ b/source/index.html.haml @@ -1,5 +1,5 @@ -%h3{class: "list-header", role: "main"} - %i{class: "icon-bullhorn icon-large icon-fixed-width", aria: {hidden: "true"}} +%h3.list-header + %i.icon-bullhorn.icon-large.icon-fixed-width Upcoming Events #events.list-body .text-center.muted @@ -8,11 +8,10 @@ %script#event-template{ type: 'text/x-handlebars-template' } .event = link_to "{{event_url}}", class: "thumb" do - %img{ src: "{{thumb_src}}", alt: "Ruby Loco Skull Logo" } + %img{ src: "{{thumb_src}}" } .event-details %h2.name - %a{ href: "{{event_url}}", class: "event-name", aria: { label: "{{name}} on {{date}}" }} {{name}} - %a{ href: "{{event_url}}", role: "button", class: "btn btn-primary rsvp", aria: { label: "RSVP — {{name}} on {{date}}" } } RSVP + %a{ href: "{{event_url}}", class: "event-name" } {{name}} .description {{description}} .meta %span when: <strong>{{date}}</strong> @@ -20,3 +19,5 @@ %span where: <strong>{{venue.name}}</strong> | %span attending: <strong>{{yes_rsvp_count}}</strong> + <br /> + %a{ href: "{{event_url}}", class: "btn btn-block btn-primary rsvp" } RSVP