Skip to content
Browse files

made the event names on the events page clickable

  • Loading branch information...
1 parent 5126426 commit 858fbf25f7eb3978f1fcaddba683ea73a3ad0376 @tbugai tbugai committed May 2, 2012
Showing with 15 additions and 7 deletions.
  1. +10 −2 app/assets/stylesheets/events.css.scss
  2. +5 −5 app/views/events/index.html.erb
View
12 app/assets/stylesheets/events.css.scss
@@ -1,4 +1,12 @@
+.event-list-heading {
+ margin-left: 120px;
+ color: #E28149;
+ font-size: 18px;
+ text-shadow: #B25319 1px 1px;
+}
+
.event-list {
+ margin: 0 120px 0 140px;
list-style: none;
li {
height: 85px;
@@ -11,9 +19,9 @@
margin: 5px;
}
- a {
+ .btn {
float: right;
- margin: 20px;
+ margin: 20px 0;
padding: 5px 10px;
border: 1px solid #1483A7;
border-radius: 4px;
View
10 app/views/events/index.html.erb
@@ -1,23 +1,23 @@
<% if @upcoming.present? %>
-<h2>Upcoming Events</h2>
+<h2 class="event-list-heading">Upcoming Events</h2>
<ul class="event-list">
<% @upcoming.each do |event| %>
<li>
<%= image_tag event.image.url %>
- <%= link_to "Register", new_event_registration_path(event) %>
- <h3><%= event.name %></h3>
+ <%= link_to "Register", new_event_registration_path(event), class: 'btn' %>
+ <h3><%= link_to event.name, event_path(event) %></h3>
<%= event.starts_at.strftime("%B %d") %><%= event.ends_at.strftime("%d") %>
</li>
<% end %>
</ul>
<% end %>
-<h2>Previous Events</h2>
+<h2 class="event-list-heading">Previous Events</h2>
<ul class="event-list">
<% @previous.each do |event| %>
<li>
<%= image_tag event.image.url %>
- <h3><%= event.name %></h3>
+ <h3><%= link_to event.name, event_path(event) %></h3>
<%= event.starts_at.strftime("%B %d") %><%= event.ends_at.strftime("%d") %>
</li>
<% end %>

0 comments on commit 858fbf2

Please sign in to comment.
Something went wrong with that request. Please try again.