diff --git a/app/views/shared/not_found.html.erb b/app/views/shared/not_found.html.erb index 6edbe37..d29edae 100644 --- a/app/views/shared/not_found.html.erb +++ b/app/views/shared/not_found.html.erb @@ -1,11 +1,22 @@
- <%= _('You may have clicked an expired link or mistyped the address.') %> - <%= _('If you clicked a link that was in another site, or was given to you by someone else, it would be nice if you tell them that their link is not valid anymore.') %> + <%= _('.You may have clicked an expired link or mistyped the address.') %> + <%= _('.This page does not exist. Would you like to: Create a new conteúdoou Locate existing content.') %> +
+ <% button_bar do %> <%= button :back, _('Go back'), :back %> <%= button :home, _('Go to the home page'), '/' %> + <% if logged_in? %> + <% parent_id = ((@article && @article.allow_children?) ? @article : nil) %> + <%= colorbox_button('new', _('New content'), :controller => 'cms', :action => 'new', :parent_id => parent_id, :cms => true) %> + <% end %> + <% end %>