format.html { redirect_to root_path }
format.json { render json: @ar.to_json(Artist.show_json_opt), status: :created, location: @artist }
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => Artist.model_name.human)
format.html { render action: "new" }
format.json { render json: @ar.errors, status: :unprocessable_entity }
end
format.html { redirect_to '/home/configure' }
format.json { head :ok }
else
+ flash[:notice] = I18n.t('flash.notice.not_updated', :model => Artist.model_name.human)
format.html { render action: "edit" }
format.json { render json: @ar.errors, status: :unprocessable_entity }
end
format.html { redirect_to root_path }
format.json { render json: @au.to_json(Author.show_json_opt), status: :created, location: @artist }
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => Author.model_name.human)
format.html { render action: "new" }
format.json { render json: @au.errors, status: :unprocessable_entity }
end
format.html { redirect_to '/home/configure' }
format.json { head :ok }
else
+ flash[:notice] = I18n.t('flash.notice.not_updated', :model => Author.model_name.human)
format.html { render action: "edit" }
format.json { render json: @au.errors, status: :unprocessable_entity }
end
format.html { redirect_to @comic }
format.json { render json: @comic.to_json(Comic.show_json_opt), status: :created, location: @comic }
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => Comic.model_name.human)
format.html { render action: "new" }
format.json { render json: @comic.errors, status: :unprocessable_entity }
end
format.html { redirect_to @comic }
format.json { head :ok }
else
+ flash[:notice] = I18n.t('flash.notice.not_updated', :model => Comic.model_name.human)
format.html { render action: "edit" }
format.json { render json: @comic.errors, status: :unprocessable_entity }
end
format.html { redirect_to @panel }
format.json { render json: @panel.panel_elements_as_json, status: :created, location: @panel }
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => Panel.model_name.human)
format.html { render action: "panels/new" }
format.json { render json: @panel.errors, status: :unprocessable_entity }
end
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => GroundColor.model_name.human)
format.html { render action: "new" }
format.json { render json: @ground_color.errors, status: :unprocessable_entity }
end
format.html { redirect_to @ground_color }
format.json { head :ok }
else
+ flash[:notice] = I18n.t('flash.notice.not_updated', :model => GroundColor.model_name.human)
format.html { render action: "edit" }
format.json { render json: @ground_color.errors, status: :unprocessable_entity }
end
format.html { redirect_to @panel }
format.json { render json: @panel.panel_elements_as_json, status: :created, location: @panel }
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => Panel.model_name.human)
format.html { render action: "panels/new" }
format.json { render json: @panel.errors, status: :unprocessable_entity }
end
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => GroundPicture.model_name.human)
format.html { render action: "new" }
format.json { render json: @ground_picture.errors, status: :unprocessable_entity }
end
format.html { redirect_to @ground_picture }
format.json { head :ok }
else
+ flash[:notice] = I18n.t('flash.notice.not_updated', :model => GroundPicture.model_name.human)
format.html { render action: "edit" }
format.json { render json: @ground_picture.errors, status: :unprocessable_entity }
end
format.html { redirect_to @original_picture }
format.json { render json: @original_picture.to_json(OriginalPicture.show_json_opt), status: :created, location: @original_picture }
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => OriginalPicture.model_name.human)
format.html { render action: "new" }
format.json { render json: @original_picture.errors, status: :unprocessable_entity }
end
format.html { redirect_to @original_picture }
format.json { render json: @original_picture.to_json(OriginalPicture.show_json_opt), status: :created, location: @original_picture }
else
+ flash[:notice] = I18n.t('flash.notice.not_updated', :model => OriginalPicture.model_name.human)
format.html { render action: "edit" }
format.json { render json: @original_picture.errors, status: :unprocessable_entity }
end
format.html { redirect_to @panel }
format.json { render json: @panel.panel_elements_as_json, status: :created, location: @panel }
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => Panel.model_name.human)
format.html { render action: "panels/new" }
format.json { render json: @panel.errors, status: :unprocessable_entity }
end
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => PanelPicture.model_name.human)
format.html { render action: "new" }
format.json { render json: @panel_picture.errors, status: :unprocessable_entity }
end
format.html { redirect_to @panel_picture }
format.json { head :ok }
else
+ flash[:notice] = I18n.t('flash.notice.not_updated', :model => PanelPicture.model_name.human)
format.html { render action: "edit" }
format.json { render json: @panel_picture.errors, status: :unprocessable_entity }
end
format.html { redirect_to action: :comic, id: @story.comic_id }
format.json { render json: @story.story_as_json(@author) }
else
+ flash[:notice] = I18n.t('flash.notice.not_created', :model => Story.model_name.human)
format.html { render action: "new" }
format.json { render json: @story.errors, status: :unprocessable_entity }
end
format.html { redirect_to action: :comic, id: @story.comic_id }
format.json { head :ok }
else
+ flash[:notice] = I18n.t('flash.notice.not_updated', :model => Story.model_name.human)
format.html { render action: "edit" }
format.json { render json: @story.errors, status: :unprocessable_entity }
end
<h1><%= t '.title' -%></h1>
+<p id="notice"><%= notice %></p>
<%= render 'form', :au => @au %>
<h1><%= t('.title') %></h1>
+<p id="notice"><%= notice %></p>
<%= render 'form' %>
<h1><%= t('.title') %></h1>
+<p id="notice"><%= notice %></p>
<h2><%= t('home.index.catch') -%></h2>
<%= render 'panels/standard', :panel => @panel, :author => @author %>
<h1><%= t('.title') %></h1>
+<p id="notice"><%= notice %></p>
<h2><%= t('home.index.catch') -%></h2>
<%= render 'panels/standard', :panel => @panel, :author => @author %>
<h1><%= t '.title' -%></h1>\r
+<p id="notice"><%= notice %></p>\r
\r
<%= render 'form' %>\r
<h1><%= t('.title') %></h1>
+<p id="notice"><%= notice %></p>
<h2><%= t('home.index.catch') -%></h2>
<%= render 'panels/standard', :panel => @panel, :author => @author %>
<h1><%= t '.title' -%></h1>
+<p id="notice"><%= notice %></p>
+
<%= render 'standard', :panel => @panel, :author => @author %>
<%= render 'form' %>
<%= link_to t('link.destroy'), panel_path(@panel), :method => :delete %>
<h1><%= t('.title') %></h1>
+<p id="notice"><%= notice %></p>
<%= render 'form' %>
<%= button_to 'Destroy', @story.panel, confirm: 'Are you sure?', method: :delete %>