Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added an icon for "New Event".

  • Loading branch information...
commit bfdfdcc74b5eaca44de89f7e5811a8d6de488aac 1 parent bf3ef6f
@nelstrom nelstrom authored
View
1  .gitignore
@@ -1,2 +1,3 @@
*.log
.DS_Store
+visuals
View
12 app/views/page_events/index.rhtml
@@ -2,6 +2,12 @@
<h1>Events for <%= month_with_year(@date) %></h1>
+<% if @events_index_page %>
+ <%= link_to image("events/new-event", :alt => "New event"), new_admin_page_child_path(@events_index_page.id),
+ :title => "Create an event at #{@events_index_page.url}", :id => "new_event_top" %>
+<% end %>
+
+
<div id="calendar_head">
<%= link_to_month( @last_month, @last_month_count, "prev adjacent", "Previous month" ) %>
<%= link_to_month( @next_month, @next_month_count, "next adjacent", "Following month" ) %>
@@ -57,6 +63,8 @@
<% if @events_index_page %>
- <%= link_to "Create new event", new_admin_page_child_path(@events_index_page.id),
- :title => "Create an event at #{@events_index_page.url}" %>
+ <p>
+ <%= link_to image("events/new-event", :alt => "New event"), new_admin_page_child_path(@events_index_page.id),
+ :title => "Create an event at #{@events_index_page.url}" %>
+ </p>
<% end %>
View
BIN  public/images/admin/events/event.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  public/images/admin/events/new-event.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
8 public/stylesheets/page_event/admin.css
@@ -30,3 +30,11 @@
text-align: right;
}
+#content{
+ position: relative;
+}
+#new_event_top{
+ position: absolute;
+ top:20px;
+ right:20px;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.