Commit 32bddd993fb624bb23a11c489a24a9581a3f29d1

Authored by Diego Camarinha
Committed by Paulo Meireles
1 parent 3f910d48

[Mezuro] Refactored content not error links

plugins/mezuro/views/content_viewer/show_configuration.rhtml
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <% unless @page.errors[:base].nil? %> 3 <% unless @page.errors[:base].nil? %>
4 <% if @page.errors[:base] =~ /There is no configuration named/ %> 4 <% if @page.errors[:base] =~ /There is no configuration named/ %>
5 <h3>Warning:</h3> 5 <h3>Warning:</h3>
6 - <p>This Configuration doesn't exist on the Web Service. Do you want to <a href="/myprofile/<%= @page.profile.name %>/cms/destroy/<%= @page.id%>">delete</a> or <a href="/myprofile/<%= @page.profile.name %>/cms/edit/<%= @page.id%>">save it again</a>?</p> 6 + <p>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 %>?</p>
7 <% else %> 7 <% else %>
8 <%= @page.errors[:base] %> 8 <%= @page.errors[:base] %>
9 <% end %> 9 <% end %>
plugins/mezuro/views/content_viewer/show_project.rhtml
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <% unless @page.errors[:base].nil? %> 4 <% unless @page.errors[:base].nil? %>
5 <% if @page.errors[:base] =~ /There is no project named/ %> 5 <% if @page.errors[:base] =~ /There is no project named/ %>
6 <h3>Warning:</h3> 6 <h3>Warning:</h3>
7 - <p>This project doesn't exist on the Web Service. Do you want to <a href="/myprofile/<%= @page.profile.name %>/cms/destroy/<%= @page.id%>">delete</a> or <a href="/myprofile/<%= @page.profile.name %>/cms/edit/<%= @page.id%>">save it again</a>?</p> 7 + <p>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 %>?</p>
8 <% else %> 8 <% else %>
9 <%= @page.errors[:base] %> 9 <%= @page.errors[:base] %>
10 <% end %> 10 <% end %>