From: Tom Hughes Date: Sun, 8 Dec 2024 11:27:18 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/pull/5386' X-Git-Tag: live~191 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/bf4d8fc2d0e9fa8f828ff9a6b1dc7c6e0a41170b?hp=02257f7294c45a2cf0d6a94a9dafd8b2e9242e9c Merge remote-tracking branch 'upstream/pull/5386' --- diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index 67a676d87..6da5e7164 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -24,10 +24,10 @@ jobs: bundler-cache: true - name: Create base branch run: | - git fetch ${{ github.event.pull_request.base.repo.clone_url }} ${{ github.event.pull_request.base.ref }}:danger_base + git fetch ${{ github.event.pull_request.base.repo.clone_url }} ${{ github.event.pull_request.base.sha }}:danger_base - name: Create head branch run: | - git fetch ${{ github.event.pull_request.head.repo.clone_url }} ${{ github.event.pull_request.head.ref }}:danger_head + git fetch ${{ github.event.pull_request.head.repo.clone_url }} ${{ github.event.pull_request.head.sha }}:danger_head - name: Danger env: DANGER_GITHUB_BEARER_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index cf63c8f8c..668d050d8 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -217,6 +217,10 @@ body.small-nav { .search_forms { display: block; } + + .username { + max-width: unset; + } } #sidebar .search_forms { diff --git a/app/controllers/api/relations_controller.rb b/app/controllers/api/relations_controller.rb index b237f8bf8..a9b85de7d 100644 --- a/app/controllers/api/relations_controller.rb +++ b/app/controllers/api/relations_controller.rb @@ -48,8 +48,6 @@ module Api end def update - logger.debug request.raw_post - relation = Relation.find(params[:id]) new_relation = Relation.from_xml(request.raw_post) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 516fb68ce..5cedb3c70 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -48,7 +48,7 @@ class IssuesController < ApplicationController end def show - @title = t ".title", :status => @issue.status.humanize, :issue_id => @issue.id + @title = t ".title.#{@issue.status}", :issue_id => @issue.id @read_reports = @issue.read_reports @unread_reports = @issue.unread_reports @comments = @issue.comments diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index a58b8c5cb..74e7c0a4c 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -1,5 +1,5 @@ <% content_for :heading do %> -

<%= t ".title", :status => @issue.status.humanize, :issue_id => @issue.id %>

+

<%= @title %>

<%= @issue.reportable.model_name.human %> : <%= link_to reportable_title(@issue.reportable), reportable_url(@issue.reportable) %>

diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index ff95be2f5..190ea44e5 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -85,7 +85,7 @@ <% if current_user && current_user.id %>