Merge remote-tracking branch 'upstream/pull/5408'
This commit is contained in:
commit
18409c05ab
4 changed files with 36 additions and 1 deletions
|
@ -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
|
||||
|
|
7
app/views/notes/new_readonly.html.erb
Normal file
7
app/views/notes/new_readonly.html.erb
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue