Merge remote-tracking branch 'upstream/pull/5408'

This commit is contained in:
Tom Hughes 2024-12-17 19:12:49 +00:00
commit 18409c05ab
4 changed files with 36 additions and 1 deletions

View file

@ -44,5 +44,7 @@ class NotesController < ApplicationController
render :template => "browse/not_found", :status => :not_found
end
def new; end
def new
render :action => :new_readonly if api_status != "online"
end
end

View file

@ -0,0 +1,7 @@
<% set_title(t(".title")) %>
<%= render "sidebar_header", :title => t(".title") %>
<div class="note">
<p class="alert alert-warning"><%= t(".warning") %></p>
</div>