From 32bddd993fb624bb23a11c489a24a9581a3f29d1 Mon Sep 17 00:00:00 2001 From: Diego Araujo + Rafael Manzo Date: Tue, 11 Sep 2012 17:33:27 -0300 Subject: [PATCH] [Mezuro] Refactored content not error links --- plugins/mezuro/views/content_viewer/show_configuration.rhtml | 2 +- plugins/mezuro/views/content_viewer/show_project.rhtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mezuro/views/content_viewer/show_configuration.rhtml b/plugins/mezuro/views/content_viewer/show_configuration.rhtml index 4679de2..b57bb5a 100644 --- a/plugins/mezuro/views/content_viewer/show_configuration.rhtml +++ b/plugins/mezuro/views/content_viewer/show_configuration.rhtml @@ -3,7 +3,7 @@ <% unless @page.errors[:base].nil? %> <% if @page.errors[:base] =~ /There is no configuration named/ %>

Warning:

-

This Configuration doesn't exist on the Web Service. Do you want to delete or save it again?

+

This Configuration doesn't exist on the Web Service. Do you want to <%= link_to 'delete', :action => 'destroy', :controller => 'cms', :profile => @page.profile.identifier, :id => @page.id %> or <%= link_to 'save it again', :action => 'edit', :controller => 'cms', :profile => @page.profile.identifier, :id => @page.id %>?

<% else %> <%= @page.errors[:base] %> <% end %> diff --git a/plugins/mezuro/views/content_viewer/show_project.rhtml b/plugins/mezuro/views/content_viewer/show_project.rhtml index 563cc06..02fad9d 100644 --- a/plugins/mezuro/views/content_viewer/show_project.rhtml +++ b/plugins/mezuro/views/content_viewer/show_project.rhtml @@ -4,7 +4,7 @@ <% unless @page.errors[:base].nil? %> <% if @page.errors[:base] =~ /There is no project named/ %>

Warning:

-

This project doesn't exist on the Web Service. Do you want to delete or save it again?

+

This project doesn't exist on the Web Service. Do you want to <%= link_to 'delete', :action => 'destroy', :controller => 'cms', :profile => @page.profile.identifier, :id => @page.id %> or <%= link_to 'save it again', :action => 'edit', :controller => 'cms', :profile => @page.profile.identifier, :id => @page.id %>?

<% else %> <%= @page.errors[:base] %> <% end %> -- libgit2 0.21.2