From: Tom Hughes Date: Sat, 8 Mar 2025 11:00:15 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/pull/5763' X-Git-Tag: live~32 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/09d31dc6be38d0bbd7cb0531b2596d20bfa78dc4?ds=sidebyside;hp=-c Merge remote-tracking branch 'upstream/pull/5763' --- 09d31dc6be38d0bbd7cb0531b2596d20bfa78dc4 diff --combined app/views/issues/_page.html.erb index 225517c9d,a1279cb97..d42d6238d --- a/app/views/issues/_page.html.erb +++ b/app/views/issues/_page.html.erb @@@ -15,6 -15,7 +15,7 @@@ <%= t ".reported_user" %> <%= t ".reporting_users" %> <%= t ".last_updated" %> + <%= t ".last_managed" %> @@@ -25,15 -26,18 +26,13 @@@ <%= link_to reportable_title(issue.reportable), reportable_url(issue.reportable) %> <%= link_to issue.reported_user.display_name, issue.reported_user if issue.reported_user %> - <% @unique_reporters[issue.id][:users].each do |reporter| %> - <%= link_to reporter.display_name, reporter, :class => "d-block text-truncate", :title => reporter.display_name %> - <% end %> - <% if @unique_reporters[issue.id][:count] > 3 %> -

<%= t ".more_reporters", :count => @unique_reporters[issue.id][:count] - 3 %>

- <% end %> + <%= render :partial => "issues/reporters/reporters", :locals => { :issue => issue } %> - <% if issue.user_updated %> - <%= t ".last_updated_time_ago_user_html", :user => link_to(issue.user_updated.display_name, issue.user_updated), - :time_ago => friendly_date_ago(issue.updated_at) %> - <% else %> - <%= friendly_date_ago(issue.updated_at) %> - <% end %> + <%= friendly_date_ago(issue.updated_at) %> + + + <%= link_to(issue.user_updated.display_name, issue.user_updated) if issue.user_updated %> <% end %> diff --combined config/locales/en.yml index 5cfb56062,064020397..b73be94ad --- a/config/locales/en.yml +++ b/config/locales/en.yml @@@ -476,6 -476,8 +476,6 @@@ en sorry: "Sorry, the list of changeset comments you requested took too long to retrieve." changesets: changeset: - no_edits: "(no edits)" - view_changeset_details: "View changeset details" comments: one: "%{count} comment" other: "%{count} comments" @@@ -551,8 -553,6 +551,8 @@@ km away: "%{count}km away" m away: "%{count}m away" latest_edit_html: "Latest edit (%{ago}):" + no_edits: "(no edits)" + view_changeset_details: "View changeset details" popup: your location: "Your location" nearby mapper: "Nearby mapper" @@@ -1517,9 -1517,9 +1517,9 @@@ title: Issues select_status: Select Status select_type: Select Type - select_last_updated_by: Select Last Updated By + select_last_managed_by: Select Last Managed By reported_user: Reported User - not_updated: Not Updated + not_managed: Not Managed search: Search search_guidance: "Search Issues:" states: @@@ -1533,11 -1533,12 +1533,11 @@@ status: Status reports: Reports last_updated: Last Updated - last_updated_time_ago_user_html: "%{time_ago} by %{user}" + last_managed: Last Managed reporting_users: Reporting Users reports_count: one: "%{count} Report" other: "%{count} Reports" - more_reporters: "and %{count} more" reported_item: Reported Item states: ignored: Ignored @@@ -1580,11 -1581,6 +1580,11 @@@ reportable_title: diary_comment: "%{entry_title}, comment #%{comment_id}" note: "Note #%{note_id}" + reporters: + index: + title: "Issue #%{issue_id} Reporters" + reporters: + more_reporters: "and %{count} more" issue_comments: create: comment_created: Your comment was successfully created