diff --git a/app/helpers/learning_objects/builder_helper.rb b/app/helpers/learning_objects/builder_helper.rb index 53f5cdc33a2640744b32f850a2b2b1c4a9ec0161..884935f5b35ecbfe64715bf8baa9630c7f8c0c0d 100644 --- a/app/helpers/learning_objects/builder_helper.rb +++ b/app/helpers/learning_objects/builder_helper.rb @@ -2,4 +2,8 @@ module LearningObjects::BuilderHelper def get_mime_types learning_object @learning_object.object_type.mime_types.map(&:extension) end + + def preview_notice(learning_object) + %Q[Esta é uma pré-visualização do conteúdo #{learning_object.name}. #{ link_to 'Clique aqui para voltar ao estúdio de criação', :back }] + end end \ No newline at end of file diff --git a/app/views/learning_objects/build/_file_upload_form.html.erb b/app/views/learning_objects/build/_file_upload_form.html.erb index 2c9c983e27fcf6c563f3106677a765a8d6c529cc..936d2a4062f0c6dfa00d0e4f70296b5e539ddb3a 100644 --- a/app/views/learning_objects/build/_file_upload_form.html.erb +++ b/app/views/learning_objects/build/_file_upload_form.html.erb @@ -40,7 +40,7 @@ <div id="results" class="panel"></div> <div class="large-12 columns"> - <%= link_to @learning_object do %> + <%= link_to @learning_object, notice: preview_notice(@learning_object) do %> <button type="submit" class="btn-submit btn btn-primary btn-outline-rounded blue"> Visualizar <i style="margin-left:10px;" class="fa fa-eye"></i></button> <% end %>