From abf4928f9de81f75cfb1f6f9dcda5f617f33446b Mon Sep 17 00:00:00 2001 From: Augusto_Serpro Date: Mon, 29 Dec 2014 13:05:25 -0200 Subject: [PATCH] primeira versao codigo notfound --- app/views/shared/not_found.html.erb | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) 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 @@
-

<%= _('There is no such page: %s') % (content_tag('tt', @path)) %>

+

<%= _('Nonexistent content: %s') % (content_tag('tt', @path)) %>

- <%= _('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 %>
+ -- libgit2 0.21.2