From: Andy Allan Date: Thu, 2 Jan 2020 10:48:24 +0000 (+0100) Subject: Remove extra div wrappings from list items X-Git-Tag: live~3232^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/0a0ff5e7d67b1ecd5646413ea1e5b9a97a8189d4 Remove extra div wrappings from list items These are unnecessary, and also prevent the secondary-actions vertical border from appearing. --- diff --git a/app/views/diary_entries/index.html.erb b/app/views/diary_entries/index.html.erb index acf9ac17c..a599aea17 100644 --- a/app/views/diary_entries/index.html.erb +++ b/app/views/diary_entries/index.html.erb @@ -12,15 +12,11 @@ <% if @user %> <% if @user == current_user %> -
-
  • <%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t(".new"), new_diary_entry_path, :title => t(".new_title") %>
  • -
    +
  • <%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %>
  • <% end %> <% else %> <% if current_user %> -
    -
  • <%= link_to image_tag("new.png", :class => "small_icon", :border => 0) + t(".new"), new_diary_entry_path, :title => t(".new_title") %>
  • -
    +
  • <%= link_to image_tag("new.png", :class => "small_icon") + t(".new"), new_diary_entry_path, :title => t(".new_title") %>
  • <% end %> <% end %>