From d6b36b5752ff50c0c2aa0e78f784b17a624ee994 Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Thu, 7 May 2009 22:48:14 +0000 Subject: [PATCH] De-duplicate some of the changeset stuff out to a new partial view. Add css hooks for upcoming fix for #1734 --- app/views/changeset/_changeset.rhtml | 2 +- app/views/changeset/list.rhtml | 12 +----------- app/views/changeset/list_bbox.rhtml | 14 +------------- app/views/changeset/list_user.rhtml | 11 +---------- 4 files changed, 4 insertions(+), 35 deletions(-) diff --git a/app/views/changeset/_changeset.rhtml b/app/views/changeset/_changeset.rhtml index 4012c41a3..c5b3c7a88 100644 --- a/app/views/changeset/_changeset.rhtml +++ b/app/views/changeset/_changeset.rhtml @@ -21,7 +21,7 @@ <% end %> - + <% if changeset.tags['comment'] %> <%= h(changeset.tags['comment']) %> <% else %> diff --git a/app/views/changeset/list.rhtml b/app/views/changeset/list.rhtml index aa745743a..b78469ddf 100644 --- a/app/views/changeset/list.rhtml +++ b/app/views/changeset/list.rhtml @@ -1,17 +1,7 @@

Recent Changes

Recently edited changesets:

- - - - - - - - - - <%= render :partial => 'changeset', :locals => {:showusername => true}, :collection => @edits unless @edits.nil? %> -
IDSaved atUserCommentArea
+<%= render :partial => 'changesets' %>

For more changesets, select a user and view their edits, or see the editing 'history' of a specific area. diff --git a/app/views/changeset/list_bbox.rhtml b/app/views/changeset/list_bbox.rhtml index e1cf9aedb..34644e960 100644 --- a/app/views/changeset/list_bbox.rhtml +++ b/app/views/changeset/list_bbox.rhtml @@ -18,19 +18,7 @@ Changesets within the area: <% else %> <%= render :partial => 'changeset_paging_nav' %> - - - - - - - - - - - <%= render :partial => 'changeset', :locals => {:showusername => true}, :collection => @edits unless @edits.nil? %> -
IDSaved atUserCommentArea
- +<%= render :partial => 'changesets' %> <%= render :partial => 'changeset_paging_nav' %>

For all changes everywhere see <%= link_to("Recent Changes", :controller => "browse", :action => "changesets") %>

diff --git a/app/views/changeset/list_user.rhtml b/app/views/changeset/list_user.rhtml index 386423a56..cf99d7a48 100644 --- a/app/views/changeset/list_user.rhtml +++ b/app/views/changeset/list_user.rhtml @@ -4,16 +4,7 @@

No visible edits by <%= h(@display_name) %>.

<% else %> <%= render :partial => 'changeset_paging_nav' %> - - - - - - - - - <%= render :partial => 'changeset', :locals => {:showusername => false}, :collection => @edits %> -
IDSaved atCommentArea
+<%= render :partial => 'changesets', :locals => {:showusername => false} %> <%= render :partial => 'changeset_paging_nav' %> <% end %> -- 2.39.5