diff --git a/app/views/diary_entry/edit.rhtml b/app/views/diary_entry/edit.rhtml
index 87f5e9fac..a69f4fd9c 100644
--- a/app/views/diary_entry/edit.rhtml
+++ b/app/views/diary_entry/edit.rhtml
@@ -5,24 +5,28 @@
<% form_for :diary_entry do |f| %>
- Subject |
+ Subject: |
<%= f.text_field :title, :size => 60 %> |
- Body |
+ Body: |
<%= f.text_area :body, :cols => 80 %> |
- Location |
+ Location: |
Latitude: <%= f.text_field :latitude, :size => 20, :id => "latitude" %> Longitude: <%= f.text_field :longitude, :size => 20, :id => "longitude" %>
use map
+
|
- |
- <%= submit_tag 'Save' %> |
+ |
+
+ <%= submit_tag 'Save' %>
+ <%# TODO: button should say 'publish' or 'save changes' depending on new/edit state %>
+ |
<% end %>
diff --git a/app/views/diary_entry/list.rhtml b/app/views/diary_entry/list.rhtml
index 7a2ccf74d..9852313bb 100644
--- a/app/views/diary_entry/list.rhtml
+++ b/app/views/diary_entry/list.rhtml
@@ -4,29 +4,40 @@
<%= image_tag url_for_file_column(@this_user, "image") %>
<% end %>
-
<% if @this_user %>
<% if @user == @this_user %>
- <%= link_to 'New diary entry', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
+ <%= link_to image_tag("new.png", :border=>0) + 'New diary entry', {:controller => 'diary_entry', :action => 'new', :display_name => @user.display_name}, {:title => 'Compose a new entry in your user diary'} %>
<% end %>
<% else %>
<% if @user %>
- <%= link_to 'New diary entry', :controller => 'diary_entry', :action => 'new', :display_name => @user.display_name %>
+ <%= link_to image_tag("new.png", :border=>0) + 'New diary entry', {:controller => 'diary_entry', :action => 'new', :display_name => @user.display_name}, {:title => 'Compose a new entry in your user diary'} %>
<% end %>
<% end %>
-Recent diary entries:
-<%= render :partial => 'diary_entry', :collection => @entries %>
+<% if @entries.empty? %>
+ No diary entries
-<%= link_to "Older Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>
-<% if @entry_pages.current.next and @entry_pages.current.previous %>
-|
+<% else %>
+
+ Recent diary entries:
+
+ <%= render :partial => 'diary_entry', :collection => @entries %>
+
+ <%= link_to "Older Entries", { :page => @entry_pages.current.next } if @entry_pages.current.next %>
+ <% if @entry_pages.current.next and @entry_pages.current.previous %>
+ |
+ <% end %>
+ <%= link_to "Newer Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>
+
+
+
<% end %>
-<%= link_to "Newer Entries", { :page => @entry_pages.current.previous } if @entry_pages.current.previous %>
-
-
<%= rss_link_to :action => 'rss' %>
<%= auto_discovery_link_tag :atom, :action => 'rss' %>
+
+
+
+
\ No newline at end of file
diff --git a/public/images/new.png b/public/images/new.png
new file mode 100644
index 000000000..202e10eca
Binary files /dev/null and b/public/images/new.png differ
diff --git a/public/stylesheets/site.css b/public/stylesheets/site.css
index 2bfe21d24..764d8971b 100644
--- a/public/stylesheets/site.css
+++ b/public/stylesheets/site.css
@@ -277,6 +277,12 @@ hides rule from IE5-Mac \*/
font-size: 10px;
}
+hr {
+ border: none;
+ background-color: #ccc;
+ color: #ccc;
+ height: 1px;
+}
.gpxsummary {
font-size: 12px;