From 32011a831d9b226af0ee586c91ca5c5225048976 Mon Sep 17 00:00:00 2001 From: yasushiito Date: Mon, 23 Dec 2013 19:06:55 +0900 Subject: [PATCH] t#: --- .../javascripts/manifest/work/forms.js.coffee.erb | 9 +-- app/controllers/system_controller.rb | 8 ++ app/views/artists/browse.html.erb | 31 -------- app/views/artists/index.html.erb | 18 ----- app/views/artists/list.html.erb | 26 ------- app/views/artists/resource_pictures.html.erb | 39 ---------- app/views/authors/_list_item.html.erb | 20 ----- app/views/authors/browse.html.erb | 24 ------ app/views/authors/comics.html.erb | 9 --- app/views/authors/edit.js.erb | 1 - app/views/authors/ground_colors.html.erb | 17 ----- app/views/authors/ground_pictures.html.erb | 21 ------ app/views/authors/index.html.erb | 18 ----- app/views/authors/list.html.erb | 19 ----- app/views/authors/panel_pictures.html.erb | 20 ----- app/views/authors/panels.html.erb | 6 -- app/views/authors/scroll_panels.html.erb | 9 --- app/views/authors/scrolls.html.erb | 28 ------- app/views/authors/sheet_panels.html.erb | 9 --- app/views/authors/sheets.html.erb | 9 --- app/views/authors/speech_balloons.html.erb | 18 ----- app/views/authors/stories.html.erb | 9 --- app/views/authors/story_sheets.html.erb | 9 --- app/views/balloons/browse.html.erb | 64 ---------------- app/views/balloons/index.html.erb | 2 - app/views/balloons/list.html.erb | 33 -------- app/views/comics/_list_item.html.erb | 26 ------- app/views/comics/browse.html.erb | 34 --------- app/views/comics/edit.js.erb | 1 - app/views/comics/index.html.erb | 9 --- app/views/comics/list.html.erb | 24 ------ app/views/comics/new.js.erb | 1 - app/views/comics/show.prof.erb | 53 ------------- app/views/ground_colors/_list_item.html.erb | 22 ------ app/views/ground_colors/index.html.erb | 18 ----- app/views/ground_colors/show.html.erb | 40 ---------- app/views/ground_pictures/_list_item.html.erb | 32 -------- app/views/ground_pictures/index.html.erb | 21 ------ app/views/home/comics.html.erb | 10 --- app/views/home/ground_colors.html.erb | 18 ----- app/views/home/ground_pictures.html.erb | 21 ------ app/views/home/panel_pictures.html.erb | 19 ----- app/views/home/panels.html.erb | 10 --- app/views/home/resource_pictures.html.erb | 39 ---------- app/views/home/scroll_panels.html.erb | 9 --- app/views/home/scrolls.html.erb | 10 --- app/views/home/sheet_panels.html.erb | 9 --- app/views/home/sheets.html.erb | 10 --- app/views/home/speech_balloons.html.erb | 18 ----- app/views/home/stories.html.erb | 9 --- app/views/home/story_sheets.html.erb | 9 --- app/views/license_groups/browse.html.erb | 32 -------- app/views/license_groups/index.html.erb | 14 ---- app/views/license_groups/list.html.erb | 36 --------- app/views/licenses/browse.html.erb | 43 ----------- app/views/licenses/index.html.erb | 18 ----- app/views/licenses/list.html.erb | 45 ----------- app/views/original_pictures/browse.html.erb | 65 ---------------- app/views/original_pictures/edit.js.erb | 1 - app/views/original_pictures/index.html.erb | 55 -------------- app/views/original_pictures/list.html.erb | 43 ----------- app/views/original_pictures/new.js.erb | 1 - app/views/panel_pictures/_list_item.html.erb | 32 -------- app/views/panel_pictures/browse.html.erb | 69 ----------------- app/views/panel_pictures/index.html.erb | 19 ----- app/views/panel_pictures/list.html.erb | 36 --------- app/views/panels/_form.html.erb | 11 ++- app/views/panels/browse.html.erb | 15 ---- app/views/panels/edit.js.erb | 1 - app/views/panels/index.html.erb | 6 -- app/views/panels/list.html.erb | 37 --------- app/views/panels/new.js.erb | 1 - app/views/resource_pictures/_list_item.html.erb | 23 ------ app/views/resource_pictures/browse.html.erb | 87 ---------------------- app/views/resource_pictures/index.html.erb | 17 ----- app/views/resource_pictures/list.html.erb | 44 ----------- app/views/resource_pictures/new.js.erb | 1 - app/views/scroll_panels/_list_item.html.erb | 28 ------- app/views/scroll_panels/browse.html.erb | 28 ------- app/views/scroll_panels/edit.js.erb | 1 - app/views/scroll_panels/index.html.erb | 8 -- app/views/scroll_panels/list.html.erb | 29 -------- app/views/scrolls/_list_item.html.erb | 25 ------- app/views/scrolls/browse.html.erb | 34 --------- app/views/scrolls/edit.js.erb | 1 - app/views/scrolls/index.html.erb | 9 --- app/views/scrolls/list.html.erb | 24 ------ app/views/scrolls/new.js.erb | 1 - app/views/sheet_panels/_list_item.html.erb | 28 ------- app/views/sheet_panels/browse.html.erb | 28 ------- app/views/sheet_panels/edit.js.erb | 1 - app/views/sheet_panels/index.html.erb | 8 -- app/views/sheet_panels/list.html.erb | 29 -------- app/views/sheets/_list_item.html.erb | 20 ----- app/views/sheets/browse.html.erb | 44 ----------- app/views/sheets/edit.js.erb | 1 - app/views/sheets/index.html.erb | 9 --- app/views/sheets/list.html.erb | 28 ------- app/views/sheets/new.js.erb | 1 - app/views/speech_balloon_templates/browse.html.erb | 49 ------------ app/views/speech_balloon_templates/index.html.erb | 21 ------ app/views/speech_balloon_templates/list.html.erb | 44 ----------- app/views/speech_balloons/_list_item.html.erb | 25 ------- app/views/speech_balloons/browse.html.erb | 49 ------------ app/views/speech_balloons/index.html.erb | 18 ----- app/views/speech_balloons/list.html.erb | 31 -------- app/views/speech_balloons/show.html.erb | 84 --------------------- app/views/speeches/browse.html.erb | 54 -------------- app/views/speeches/index.html.erb | 2 - app/views/speeches/list.html.erb | 33 -------- app/views/stories/_list_item.html.erb | 23 ------ app/views/stories/browse.html.erb | 38 ---------- app/views/stories/edit.js.erb | 1 - app/views/stories/index.html.erb | 8 -- app/views/stories/list.html.erb | 29 -------- app/views/story_sheets/_list_item.html.erb | 25 ------- app/views/story_sheets/browse.html.erb | 28 ------- app/views/story_sheets/edit.js.erb | 1 - app/views/story_sheets/index.html.erb | 8 -- app/views/story_sheets/list.html.erb | 29 -------- app/views/system/index.html.erb | 3 + app/views/system_pictures/browse.html.erb | 45 ----------- app/views/system_pictures/index.html.erb | 19 ----- app/views/system_pictures/list.html.erb | 29 -------- config/application.rb | 44 +---------- config/magic_number.yml | 57 -------------- lib/manifest/form.rb | 13 +++- lib/manifest/manifest.rb | 11 +++ public/manifest.json | 9 +-- 129 files changed, 46 insertions(+), 2869 deletions(-) delete mode 100644 app/views/artists/browse.html.erb delete mode 100644 app/views/artists/index.html.erb delete mode 100644 app/views/artists/list.html.erb delete mode 100644 app/views/artists/resource_pictures.html.erb delete mode 100644 app/views/authors/_list_item.html.erb delete mode 100644 app/views/authors/browse.html.erb delete mode 100644 app/views/authors/comics.html.erb delete mode 100644 app/views/authors/edit.js.erb delete mode 100644 app/views/authors/ground_colors.html.erb delete mode 100644 app/views/authors/ground_pictures.html.erb delete mode 100644 app/views/authors/index.html.erb delete mode 100644 app/views/authors/list.html.erb delete mode 100644 app/views/authors/panel_pictures.html.erb delete mode 100644 app/views/authors/panels.html.erb delete mode 100644 app/views/authors/scroll_panels.html.erb delete mode 100644 app/views/authors/scrolls.html.erb delete mode 100644 app/views/authors/sheet_panels.html.erb delete mode 100644 app/views/authors/sheets.html.erb delete mode 100644 app/views/authors/speech_balloons.html.erb delete mode 100644 app/views/authors/stories.html.erb delete mode 100644 app/views/authors/story_sheets.html.erb delete mode 100644 app/views/balloons/browse.html.erb delete mode 100644 app/views/balloons/index.html.erb delete mode 100644 app/views/balloons/list.html.erb delete mode 100644 app/views/comics/_list_item.html.erb delete mode 100644 app/views/comics/browse.html.erb delete mode 100644 app/views/comics/edit.js.erb delete mode 100644 app/views/comics/index.html.erb delete mode 100644 app/views/comics/list.html.erb delete mode 100644 app/views/comics/new.js.erb delete mode 100644 app/views/comics/show.prof.erb delete mode 100644 app/views/ground_colors/_list_item.html.erb delete mode 100644 app/views/ground_colors/index.html.erb delete mode 100644 app/views/ground_pictures/_list_item.html.erb delete mode 100644 app/views/ground_pictures/index.html.erb delete mode 100644 app/views/home/comics.html.erb delete mode 100644 app/views/home/ground_colors.html.erb delete mode 100644 app/views/home/ground_pictures.html.erb delete mode 100644 app/views/home/panel_pictures.html.erb delete mode 100644 app/views/home/panels.html.erb delete mode 100644 app/views/home/resource_pictures.html.erb delete mode 100644 app/views/home/scroll_panels.html.erb delete mode 100644 app/views/home/scrolls.html.erb delete mode 100644 app/views/home/sheet_panels.html.erb delete mode 100644 app/views/home/sheets.html.erb delete mode 100644 app/views/home/speech_balloons.html.erb delete mode 100644 app/views/home/stories.html.erb delete mode 100644 app/views/home/story_sheets.html.erb delete mode 100644 app/views/license_groups/browse.html.erb delete mode 100644 app/views/license_groups/index.html.erb delete mode 100644 app/views/license_groups/list.html.erb delete mode 100644 app/views/licenses/browse.html.erb delete mode 100644 app/views/licenses/index.html.erb delete mode 100644 app/views/licenses/list.html.erb delete mode 100644 app/views/original_pictures/browse.html.erb delete mode 100644 app/views/original_pictures/edit.js.erb delete mode 100644 app/views/original_pictures/index.html.erb delete mode 100644 app/views/original_pictures/list.html.erb delete mode 100644 app/views/original_pictures/new.js.erb delete mode 100644 app/views/panel_pictures/_list_item.html.erb delete mode 100644 app/views/panel_pictures/browse.html.erb delete mode 100644 app/views/panel_pictures/index.html.erb delete mode 100644 app/views/panel_pictures/list.html.erb delete mode 100644 app/views/panels/browse.html.erb delete mode 100644 app/views/panels/edit.js.erb delete mode 100644 app/views/panels/index.html.erb delete mode 100644 app/views/panels/list.html.erb delete mode 100644 app/views/panels/new.js.erb delete mode 100644 app/views/resource_pictures/_list_item.html.erb delete mode 100644 app/views/resource_pictures/browse.html.erb delete mode 100644 app/views/resource_pictures/index.html.erb delete mode 100644 app/views/resource_pictures/list.html.erb delete mode 100644 app/views/resource_pictures/new.js.erb delete mode 100644 app/views/scroll_panels/_list_item.html.erb delete mode 100644 app/views/scroll_panels/browse.html.erb delete mode 100644 app/views/scroll_panels/edit.js.erb delete mode 100644 app/views/scroll_panels/index.html.erb delete mode 100644 app/views/scroll_panels/list.html.erb delete mode 100644 app/views/scrolls/_list_item.html.erb delete mode 100644 app/views/scrolls/browse.html.erb delete mode 100644 app/views/scrolls/edit.js.erb delete mode 100644 app/views/scrolls/index.html.erb delete mode 100644 app/views/scrolls/list.html.erb delete mode 100644 app/views/scrolls/new.js.erb delete mode 100644 app/views/sheet_panels/_list_item.html.erb delete mode 100644 app/views/sheet_panels/browse.html.erb delete mode 100644 app/views/sheet_panels/edit.js.erb delete mode 100644 app/views/sheet_panels/index.html.erb delete mode 100644 app/views/sheet_panels/list.html.erb delete mode 100644 app/views/sheets/_list_item.html.erb delete mode 100644 app/views/sheets/browse.html.erb delete mode 100644 app/views/sheets/edit.js.erb delete mode 100644 app/views/sheets/index.html.erb delete mode 100644 app/views/sheets/list.html.erb delete mode 100644 app/views/sheets/new.js.erb delete mode 100644 app/views/speech_balloon_templates/browse.html.erb delete mode 100644 app/views/speech_balloon_templates/index.html.erb delete mode 100644 app/views/speech_balloon_templates/list.html.erb delete mode 100644 app/views/speech_balloons/_list_item.html.erb delete mode 100644 app/views/speech_balloons/browse.html.erb delete mode 100644 app/views/speech_balloons/index.html.erb delete mode 100644 app/views/speech_balloons/list.html.erb delete mode 100644 app/views/speeches/browse.html.erb delete mode 100644 app/views/speeches/index.html.erb delete mode 100644 app/views/speeches/list.html.erb delete mode 100644 app/views/stories/_list_item.html.erb delete mode 100644 app/views/stories/browse.html.erb delete mode 100644 app/views/stories/edit.js.erb delete mode 100644 app/views/stories/index.html.erb delete mode 100644 app/views/stories/list.html.erb delete mode 100644 app/views/story_sheets/_list_item.html.erb delete mode 100644 app/views/story_sheets/browse.html.erb delete mode 100644 app/views/story_sheets/edit.js.erb delete mode 100644 app/views/story_sheets/index.html.erb delete mode 100644 app/views/story_sheets/list.html.erb delete mode 100644 app/views/system_pictures/browse.html.erb delete mode 100644 app/views/system_pictures/index.html.erb delete mode 100644 app/views/system_pictures/list.html.erb delete mode 100644 config/magic_number.yml diff --git a/app/assets/javascripts/manifest/work/forms.js.coffee.erb b/app/assets/javascripts/manifest/work/forms.js.coffee.erb index 1ffef846..828dd890 100644 --- a/app/assets/javascripts/manifest/work/forms.js.coffee.erb +++ b/app/assets/javascripts/manifest/work/forms.js.coffee.erb @@ -606,8 +606,7 @@ }, }, }, - CircleSpeechBalloon: 'circle_speech_balloon', - circle_speech_balloon: { + CircleSpeechBalloon: { base: 'speech_balloon', fields: { }, @@ -644,8 +643,7 @@ 'speech_balloon.settings', ] }, - PlainSpeechBalloon: 'plain_speech_balloon', - plain_speech_balloon: { + PlainSpeechBalloon: { base: 'speech_balloon', fields: { 'balloon.r': { @@ -693,8 +691,7 @@ 'speech_balloon.settings', ] }, - SquareSpeechBalloon: 'square_speech_balloon', - square_speech_balloon: { + SquareSpeechBalloon: { base: 'speech_balloon', fields: { 'balloon.r': { diff --git a/app/controllers/system_controller.rb b/app/controllers/system_controller.rb index 778c9c97..ed74a00f 100644 --- a/app/controllers/system_controller.rb +++ b/app/controllers/system_controller.rb @@ -12,6 +12,14 @@ class SystemController < ApplicationController def import end + def reload_manifest + Pettanr::Application.manifest = Pettanr::Manifest.new JSON.parse(open(Rails.root + 'public/manifest.json').read) + Pettanr::Application.manifest.init + respond_to do |format| + format.html { redirect_to({:action => :index}) } + end + end + def browse end diff --git a/app/views/artists/browse.html.erb b/app/views/artists/browse.html.erb deleted file mode 100644 index 17c920ee..00000000 --- a/app/views/artists/browse.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- -

- <%= t_m 'Artist.id' -%>: - <%= h @ar.id %> -

- -

- <%= t_m 'Artist.name' -%>: - <%= h @ar.name %> -

- -

- <%= t_m 'Artist.author_id' -%>: - <% if @ar.author_id %> - <%= link_to @ar.author_id, browse_author_path(@ar.author) %> - <% end %> -

- -

- <%= t_m 'Artist.created_at' -%>: - <%= l @ar.created_at %> -

- -

- <%= t_m 'Artist.updated_at' -%>: - <%= l @ar.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/artists/index.html.erb b/app/views/artists/index.html.erb deleted file mode 100644 index 992d51df..00000000 --- a/app/views/artists/index.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - <% @artists.each do |artist| %> - - - - - - <% end %> -
<%= t_m 'Artist.name' -%><%= t_m 'Artist.created_at' -%><%= t_m 'Artist.updated_at' -%>
<%= link_to h(truncate(artist.name, :length => 12)), artist_path(artist) %><%= distance_of_time_in_words_to_now artist.created_at %><%= distance_of_time_in_words_to_now artist.updated_at %>
-<%= paginate(@paginate) %> diff --git a/app/views/artists/list.html.erb b/app/views/artists/list.html.erb deleted file mode 100644 index 124816ee..00000000 --- a/app/views/artists/list.html.erb +++ /dev/null @@ -1,26 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - <% @artists.each do |artist| %> - - - - - - - - <% end %> -
<%= t_m 'Artist.id' -%><%= t_m 'Artist.author_id' -%><%= t_m 'Artist.name' -%><%= t_m 'Artist.author_id' -%><%= t_m 'Artist.created_at' -%><%= t_m 'Artist.updated_at' -%>
<%= link_to artist.id, browse_artist_path(artist) %><%= h(truncate(artist.name, :length => 12)) %> - <% if artist.author_id %> - <%= link_to artist.author_id, browse_author_path(artist.author) %> - <% end %> - <%= l artist.created_at %><%= l artist.updated_at %>
diff --git a/app/views/artists/resource_pictures.html.erb b/app/views/artists/resource_pictures.html.erb deleted file mode 100644 index f3ee0702..00000000 --- a/app/views/artists/resource_pictures.html.erb +++ /dev/null @@ -1,39 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - -<% @resource_pictures.each do |resource_picture| %> - - - - - - - - - -<% end %> -
<%= t_m 'ResourcePicture.artist_id' -%><%= t_m 'ResourcePicture.ext' -%><%= t_m 'ResourcePicture.width' -%><%= t_m 'ResourcePicture.height' -%><%= t_m 'ResourcePicture.filesize' -%>
- <%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture_path(resource_picture) %> - - <%= render resource_picture.credit_template, :picture => resource_picture %> - - <%= link_to(h(truncate(resource_picture.artist.name, :length => 8)), artist_path(resource_picture.artist)) %> - - <%= h resource_picture.ext %> - - <%= resource_picture.width %>px - - <%= resource_picture.height %>px - - <%= resource_picture.filesize %>bytes -
-<%= paginate(@paginate) %> diff --git a/app/views/authors/_list_item.html.erb b/app/views/authors/_list_item.html.erb deleted file mode 100644 index db101bf9..00000000 --- a/app/views/authors/_list_item.html.erb +++ /dev/null @@ -1,20 +0,0 @@ - - - <%= link_to scroll_icon(:object => scroll, :size => 25), scroll_path(scroll) %> - <%= link_to h(truncate(scroll.title, :length => 40)), :controller => 'scroll_panels', :action => :scroll, :id => scroll.id %> - (<%= scroll.scroll_panels.size -%>) - - - <%= distance_of_time_in_words_to_now scroll.updated_at %> - - - <%= link_to author_icon(:object => scroll.author, :size => 25), scroll_path(scroll.author) %> - <%= link_to h(truncate(scroll.author.name, :length => 12)), author_path(scroll.author) %> - - - <% if scroll.own? author %> - <%= link_to t('link.edit'), edit_scroll_path(scroll) %> - <%= link_to t('link.destroy'), scroll_path(scroll), :method => :delete %> - <% end %> - - diff --git a/app/views/authors/browse.html.erb b/app/views/authors/browse.html.erb deleted file mode 100644 index a197a079..00000000 --- a/app/views/authors/browse.html.erb +++ /dev/null @@ -1,24 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- -

- <%= t_m 'Author.id' -%>: - <%= h @au.id %> -

- -

- <%= t_m 'Author.name' -%>: - <%= h @au.name %> -

- -

- <%= t_m 'Author.created_at' -%>: - <%= l @au.created_at %> -

- -

- <%= t_m 'Author.updated_at' -%>: - <%= l @au.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/authors/comics.html.erb b/app/views/authors/comics.html.erb deleted file mode 100644 index 0d1c9b3e..00000000 --- a/app/views/authors/comics.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @comics.each do |comic| %> - <%= render 'comics/list_item', :comic => comic, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('comics.new.title'), new_comic_path %> diff --git a/app/views/authors/edit.js.erb b/app/views/authors/edit.js.erb deleted file mode 100644 index b363b596..00000000 --- a/app/views/authors/edit.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#newauthor").html("<%= escape_javascript(render('form')) -%>"); diff --git a/app/views/authors/ground_colors.html.erb b/app/views/authors/ground_colors.html.erb deleted file mode 100644 index d8d16ed1..00000000 --- a/app/views/authors/ground_colors.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - <% @ground_colors.each do |ground_color| %> - <%= render 'ground_colors/list_item', :ground_color => ground_color, :author => @author %> - <% end -%> -
<%= t_m 'GroundColor.id' -%><%= t_m 'GroundColor.caption' -%><%= t_m 'GroundColor.code' -%><%= t_m 'GroundColor.panel_id' -%><%= t_m 'GroundColor.z' -%><%= t_m 'GroundColor.updated_at' -%>
-<%= paginate(@paginate) %> diff --git a/app/views/authors/ground_pictures.html.erb b/app/views/authors/ground_pictures.html.erb deleted file mode 100644 index 726c337d..00000000 --- a/app/views/authors/ground_pictures.html.erb +++ /dev/null @@ -1,21 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - - <% @ground_pictures.each do |gp| %> - <%= render 'ground_pictures/list_item', :ground_picture => gp %> - <% end %> -
<%= t_m 'GroundPicture.id' -%><%= t_m 'GroundPicture.caption' -%><%= t_m 'GroundPicture.picture_id' -%><%= -%><%= t_m 'GroundPicture.panel_id' -%><%= t_m 'GroundPicture.z' -%><%= t_m 'GroundPicture.repeat' -%><%= t_m 'GroundPicture.x' -%><%= t_m 'GroundPicture.y' -%><%= t_m 'GroundPicture.updated_at' -%>
-<%= paginate(@paginate) %> diff --git a/app/views/authors/index.html.erb b/app/views/authors/index.html.erb deleted file mode 100644 index 71c94826..00000000 --- a/app/views/authors/index.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - <% @authors.each do |author| %> - - - - - - <% end %> -
<%= t_m 'Author.name' -%><%= t_m 'Author.created_at' -%><%= t_m 'Author.updated_at' -%>
<%= link_to h(truncate(author.name, :length => 12)), author_path(author) %><%= distance_of_time_in_words_to_now author.created_at %><%= distance_of_time_in_words_to_now author.updated_at %>
-<%= paginate(@paginate) %> diff --git a/app/views/authors/list.html.erb b/app/views/authors/list.html.erb deleted file mode 100644 index b190ff6a..00000000 --- a/app/views/authors/list.html.erb +++ /dev/null @@ -1,19 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - <% @authors.each do |author| %> - - - - - - - <% end %> -
<%= t_m 'Author.id' -%><%= t_m 'Author.name' -%><%= t_m 'Author.created_at' -%><%= t_m 'Author.updated_at' -%>
<%= link_to author.id, browse_author_path(author) %><%= h(truncate(author.name, :length => 12)) %><%= l author.created_at %><%= l author.updated_at %>
diff --git a/app/views/authors/panel_pictures.html.erb b/app/views/authors/panel_pictures.html.erb deleted file mode 100644 index 884baeb6..00000000 --- a/app/views/authors/panel_pictures.html.erb +++ /dev/null @@ -1,20 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - <% @panel_pictures.each do |panel_picture| %> - <%= render 'panel_pictures/list_item', :panel_picture => panel_picture %> - <% end %> -
<%= t_m 'PanelPicture.id' -%><%= t_m 'PanelPicture.caption' -%><%= t_m 'PanelPicture.picture_id' -%><%= -%><%= t_m 'PanelPicture.panel_id' -%><%= t_m 'PanelPicture.link' -%><%= t_m 'PanelPicture.z' -%><%= t_m 'PanelPicture.updated_at' -%>
-<%= paginate(@paginate) %> diff --git a/app/views/authors/panels.html.erb b/app/views/authors/panels.html.erb deleted file mode 100644 index d88611c3..00000000 --- a/app/views/authors/panels.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -

<%= t '.title' -%>

-<% @panels.each do |panel| %> - <%= render 'panels/standard', :panel => panel, :author => @author %> -<% end %> -<%= paginate(@paginate) %> -<%= link_to t('panels.new.title'), new_panel_path %> diff --git a/app/views/authors/scroll_panels.html.erb b/app/views/authors/scroll_panels.html.erb deleted file mode 100644 index 3d75a57d..00000000 --- a/app/views/authors/scroll_panels.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @scroll_panels.each do |scroll_panel| %> - <%= render 'scroll_panels/list_item', :scroll_panel => scroll_panel, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('scroll_panels.new.title'), new_scroll_panel_path %> diff --git a/app/views/authors/scrolls.html.erb b/app/views/authors/scrolls.html.erb deleted file mode 100644 index 73db7bfe..00000000 --- a/app/views/authors/scrolls.html.erb +++ /dev/null @@ -1,28 +0,0 @@ -

<%= t '.title' -%>

- - - <% @scrolls.each do |scroll| %> - - - - - - - <% end %> -
- <%= link_to scroll_icon(:object => scroll, :size => 25), scroll_path(scroll) %> - <%= link_to h(truncate(scroll.title, :length => 40)), :controller => 'scroll_panels', :action => :scroll, :id => scroll.id %> - (<%= scroll.scroll_panels.size -%>) - - <%= distance_of_time_in_words_to_now scroll.updated_at %> - - <%= link_to author_icon(:object => scroll.author, :size => 25), scroll_path(scroll.author) %> - <%= link_to h(truncate(scroll.author.name, :length => 12)), author_path(scroll.author) %> - - <% if scroll.own? @author %> - <%= link_to t('link.edit'), edit_scroll_path(scroll) %> - <%= link_to t('link.destroy'), scroll_path(scroll), :method => :delete %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('scrolls.new.title'), new_scroll_path %> diff --git a/app/views/authors/sheet_panels.html.erb b/app/views/authors/sheet_panels.html.erb deleted file mode 100644 index ce330100..00000000 --- a/app/views/authors/sheet_panels.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @sheet_panels.each do |sheet_panel| %> - <%= render 'sheet_panels/list_item', :sheet_panel => sheet_panel, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('sheet_panels.new.title'), new_sheet_panel_path %> diff --git a/app/views/authors/sheets.html.erb b/app/views/authors/sheets.html.erb deleted file mode 100644 index fbc5851e..00000000 --- a/app/views/authors/sheets.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @sheets.each do |sheet| %> - <%= render 'sheets/list_item', :sheet => sheet, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('sheets.new.title'), new_sheet_path %> diff --git a/app/views/authors/speech_balloons.html.erb b/app/views/authors/speech_balloons.html.erb deleted file mode 100644 index df748bfb..00000000 --- a/app/views/authors/speech_balloons.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - <% @speech_balloons.each do |speech_balloon| %> - <%= render 'speech_balloons/list_item', :speech_balloon => speech_balloon %> - <% end %> -
<%= t_m 'SpeechBalloon.id' -%><%= t_m 'SpeechBalloon.caption' -%><%= t_m 'Speech.content' -%><%= t_m 'SpeechBalloonTemplate.caption' -%><%= t_m 'SpeechBalloon.panel_id' -%><%= t_m 'SpeechBalloon.z' -%><%= t_m 'SpeechBalloon.updated_at' -%>
-<%= paginate(@paginate) %> diff --git a/app/views/authors/stories.html.erb b/app/views/authors/stories.html.erb deleted file mode 100644 index a99f490f..00000000 --- a/app/views/authors/stories.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @stories.each do |story| %> - <%= render 'stories/list_item', :story => story, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('stories.new.title'), new_story_path %> diff --git a/app/views/authors/story_sheets.html.erb b/app/views/authors/story_sheets.html.erb deleted file mode 100644 index 52af7226..00000000 --- a/app/views/authors/story_sheets.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @story_sheets.each do |story_sheet| %> - <%= render 'story_sheets/list_item', :story_sheet => story_sheet, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('story_sheets.new.title'), new_story_sheet_path %> diff --git a/app/views/balloons/browse.html.erb b/app/views/balloons/browse.html.erb deleted file mode 100644 index d34d61c3..00000000 --- a/app/views/balloons/browse.html.erb +++ /dev/null @@ -1,64 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- -

- <%= t_m 'Balloon.id' -%>: - <%= @balloon.id %> -

- -

- <%= t_m 'Balloon.speech_balloon_id' -%>: - <%= link_to @balloon.speech_balloon_id, browse_speech_balloon_path(@balloon.speech_balloon) %> -

- -

- <%= t_m 'Balloon.system_picture_id' -%>: - <%= link_to tag(:img, @balloon.system_picture.tmb_opt_img_tag), browse_system_picture_path(@balloon.system_picture) %> -

- -

- <%= t_m 'Balloon.x' -%>: - <%= @balloon.x %> -

- -

- <%= t_m 'Balloon.y' -%>: - <%= @balloon.y %> -

- -

- <%= t_m 'Balloon.width' -%>: - <%= @balloon.width %> -

- -

- <%= t_m 'Balloon.height' -%>: - <%= @balloon.height %> -

- -

- <%= t_m 'Balloon.r' -%>: - <%= @balloon.r %> -

- -

- <%= t_m 'Balloon.caption' -%>: - <%= h @balloon.caption %> -

- -

- <%= t_m 'Balloon.settings' -%>: - <%= h @balloon.settings %> -

- -

- <%= t_m 'Balloon.created_at' -%>: - <%= l @balloon.created_at %> -

- -

- <%= t_m 'Balloon.updated_at' -%>: - <%= l @balloon.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/balloons/index.html.erb b/app/views/balloons/index.html.erb deleted file mode 100644 index 52ef6126..00000000 --- a/app/views/balloons/index.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

<%= t '.title' -%>

- diff --git a/app/views/balloons/list.html.erb b/app/views/balloons/list.html.erb deleted file mode 100644 index 826e51f1..00000000 --- a/app/views/balloons/list.html.erb +++ /dev/null @@ -1,33 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - - - <% @balloons.each do |balloon| %> - - - - - - - - - - - - - - <% end %> -
<%= t_m 'Balloon.id' -%><%= t_m 'Balloon.speech_balloon_id' -%><%= t_m 'Balloon.system_picture_id' -%><%= t_m 'Balloon.x' -%><%= t_m 'Balloon.y' -%><%= t_m 'Balloon.width' -%><%= t_m 'Balloon.height' -%><%= t_m 'Balloon.r' -%><%= t_m 'Balloon.settings' -%><%= t_m 'Balloon.created_at' -%><%= t_m 'Balloon.updated_at' -%>
<%= link_to balloon.id, browse_balloon_path(balloon) %><%= link_to balloon.speech_balloon_id, browse_speech_balloon_path(balloon.speech_balloon) %><%= link_to tag(:img, balloon.system_picture.tmb_opt_img_tag), browse_system_picture_path(balloon.system_picture) %><%= balloon.x %><%= balloon.y %><%= balloon.width %><%= balloon.height %><%= balloon.r %><%= h(truncate(balloon.settings, :length => 12)) %><%= l balloon.created_at %><%= l balloon.updated_at %>
diff --git a/app/views/comics/_list_item.html.erb b/app/views/comics/_list_item.html.erb deleted file mode 100644 index 73ff51ef..00000000 --- a/app/views/comics/_list_item.html.erb +++ /dev/null @@ -1,26 +0,0 @@ - - - <%= link_to item_tag, comic_path(comic, :format => :prof) %> - <%= link_to comic_icon(:object => comic, :size => 25), comic_path(comic) %> - <%= link_to h(truncate(comic.title, :length => 40)), comic_path(comic) %> - (<%= comic.stories.size -%>) - - - <%= distance_of_time_in_words_to_now comic.updated_at %> - - - <%= link_to author_icon(:object => comic.author, :size => 25), author_path(comic.author) %> - <%= link_to h(truncate(comic.author.name, :length => 12)), author_path(comic.author) %> - - - <% if comic.own? author %> - <%= link_to t('link.edit'), edit_comic_path(comic) %> - <%= link_to t('link.destroy'), comic_path(comic), :method => :delete %> - <% end %> - - - - - <%= h(truncate(comic.description, :length => 40)) %> - - diff --git a/app/views/comics/browse.html.erb b/app/views/comics/browse.html.erb deleted file mode 100644 index c93e6224..00000000 --- a/app/views/comics/browse.html.erb +++ /dev/null @@ -1,34 +0,0 @@ -

<%= t '.title' -%>

-

- <%= t_m 'Comic.id' -%>: - <%= h @comic.id %> -

- -

- <%= t_m 'Comic.title' -%>: - <%= h @comic.title %> -

- -

- <%= t_m 'Comic.visible' -%>: - <%= @comic.visible %> - <%= t_selected_item('comic_visible_items', @comic.visible) %> -

- -

- <%= t_m 'Comic.author_id' -%>: - <%= @comic.author_id %> - <%= link_to h(@comic.author.name), browse_author_path(@comic.author) %> -

- -

- <%= t_m 'Comic.created_at' -%>: - <%= l @comic.created_at %> -

- -

- <%= t_m 'Comic.updated_at' -%>: - <%= l @comic.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/comics/edit.js.erb b/app/views/comics/edit.js.erb deleted file mode 100644 index ab2a7d24..00000000 --- a/app/views/comics/edit.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#newcomic").html("<%= escape_javascript(render('form')) -%>"); diff --git a/app/views/comics/index.html.erb b/app/views/comics/index.html.erb deleted file mode 100644 index cef2ab93..00000000 --- a/app/views/comics/index.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @comics.each do |comic| %> - <%= render 'list_item', :comic => comic, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('comics.new.title'), new_comic_path %> diff --git a/app/views/comics/list.html.erb b/app/views/comics/list.html.erb deleted file mode 100644 index 43fdf7e5..00000000 --- a/app/views/comics/list.html.erb +++ /dev/null @@ -1,24 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - -<% @comics.each do |comic| %> - - - - - - - - -<% end %> -
<%= t_m 'Comic.id' -%><%= t_m 'Comic.title' -%><%= t_m 'Comic.visible' -%><%= t_m 'Comic.author_id' -%><%= t_m 'Comic.created_at' -%><%= t_m 'Comic.updated_at' -%>
<%= link_to comic.id, browse_comic_path(comic) %><%= h(truncate(comic.title, :length => 12)) %><%= comic.visible %><%= link_to comic.author_id, browse_author_path(comic.author) %><%= l comic.created_at %><%= l comic.updated_at %>
- diff --git a/app/views/comics/new.js.erb b/app/views/comics/new.js.erb deleted file mode 100644 index ab2a7d24..00000000 --- a/app/views/comics/new.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#newcomic").html("<%= escape_javascript(render('form')) -%>"); diff --git a/app/views/comics/show.prof.erb b/app/views/comics/show.prof.erb deleted file mode 100644 index b38609fc..00000000 --- a/app/views/comics/show.prof.erb +++ /dev/null @@ -1,53 +0,0 @@ -<% @page_title = t('.title') + ':' + @comic.title %> -

<%= t('.title') %>

-

<%= notice %>

- -

- <%= t_m 'Comic.title' -%>: - <%= link_to h(@comic.title), comic_path(@comic) %> -

- -

- <%= t_m 'Comic.description' -%>: - <%= h(@comic.description) %> -

- -

- <%= t_m 'Comic.visible' -%>: - <%= t_selected_item('comic_visible_items', @comic.visible) %> -

- -

- <%= t_m 'Comic.author_id' -%>: - <%= link_to h(@comic.author.name), author_path(@comic.author) %> -

- -<% @comic.stories.each do |story| %> - <% if story.visible? @author -%> -
- <%= link_to t('stories.show.t', :t => story.disp_t), story_path(story) %> - <%= link_to h(story.title), play_story_path(story) %> -
- <% end %> -<% end %> -

- <%= t_m 'Comic.created_at' -%>: - <%= l @comic.created_at %> -

- -

- <%= t_m 'Comic.updated_at' -%>: - <%= l @comic.updated_at %> -

- -<% if @comic.own? @author -%> - <%= link_to t('link.edit'), edit_comic_path(@comic) %> - <%= link_to t('link.destroy'), comic_path(@comic), :method => :delete %> - -

- <%= t('stories.index.new') %> -

- <% @story = Story.new -%> - <% @story.supply_default -%> - <% @story.attributes = {:comic_id => @comic.id} -%> -<% end %> diff --git a/app/views/ground_colors/_list_item.html.erb b/app/views/ground_colors/_list_item.html.erb deleted file mode 100644 index b1d1b714..00000000 --- a/app/views/ground_colors/_list_item.html.erb +++ /dev/null @@ -1,22 +0,0 @@ - - - <%= link_to ground_color.id, ground_color_path(ground_color) %> - - - <%= link_to(h(truncate(ground_color.caption, :length => 12)), ground_color_path(ground_color)) %> - - ; background-color: #<%= format("%06x", ground_color.code) -%>;"> - <%= format("%06x", ground_color.code ^ 0xffffff) %> - - - - <%= link_to panel_icon(:object => ground_color.panel, :size => 25), panel_path(ground_color.panel) %> - <%= link_to h(truncate((ground_color.panel.caption), :length => 12)), panel_path(ground_color.panel) %> - - - <%= ground_color.z %> - - - <%= distance_of_time_in_words_to_now ground_color.updated_at %> - - diff --git a/app/views/ground_colors/index.html.erb b/app/views/ground_colors/index.html.erb deleted file mode 100644 index 0bbb9986..00000000 --- a/app/views/ground_colors/index.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - <% @ground_colors.each do |gc| %> - <%= render 'list_item', :ground_color => gc %> - <% end -%> -
<%= t_m 'GroundColor.id' -%><%= t_m 'GroundColor.caption' -%><%= t_m 'GroundColor.code' -%><%= t_m 'GroundColor.panel_id' -%><%= t_m 'GroundColor.z' -%><%= t_m 'GroundColor.updated_at' -%>
-<%= paginate(@paginate) %> -<%= link_to t('ground_colors.new.title'), new_ground_color_path %> diff --git a/app/views/ground_colors/show.html.erb b/app/views/ground_colors/show.html.erb index bbd11a03..a2bc17dd 100644 --- a/app/views/ground_colors/show.html.erb +++ b/app/views/ground_colors/show.html.erb @@ -8,46 +8,6 @@ <%= h @ground_color.caption %>

-

- <%= t_m 'GroundColor.orientation' -%>: - <%= t_selected_item('ground_color_orientation_items', @ground_color.orientation) %> -

- -

- <%= t_m 'GroundColor.xy' -%>: - <%= @ground_color.xy %> -

- -

- <%= t_m 'GroundColor.wh' -%>: - <%= @ground_color.wh %> -

- -

- <%= t_m 'GroundColor.z' -%>: - <%= @ground_color.z %> -

- -

- <%= t_m 'GroundColor.t' -%>: - <%= @ground_color.t %> -

- -

- <%= t_m 'GroundColor.code' -%>: - <%= @ground_color.code %> -

- -

- <%= t_m 'GroundColor.created_at' -%>: - <%= l @ground_color.created_at %> -

- -

- <%= t_m 'GroundColor.updated_at' -%>: - <%= l @ground_color.updated_at %> -

- <%= link_to t('link.edit'), edit_ground_color_path(@ground_color) %> <%= link_to t('link.destroy'), ground_color_path(@ground_color), :method => :delete %> diff --git a/app/views/ground_pictures/_list_item.html.erb b/app/views/ground_pictures/_list_item.html.erb deleted file mode 100644 index 891ff87b..00000000 --- a/app/views/ground_pictures/_list_item.html.erb +++ /dev/null @@ -1,32 +0,0 @@ - - - <%= link_to(h(ground_picture.id.to_s), ground_picture_path(ground_picture)) %> - - - <%= link_to(h(truncate(ground_picture.caption, :length => 12)), ground_picture_path(ground_picture)) %> - - <% if ground_picture.picture.showable? @author %> - - <%= link_to(tag(:img, ground_picture.picture.tmb_opt_img_tag), ground_picture.picture) -%> - - <%= render ground_picture.picture.credit_template, :picture => ground_picture.picture %> - <% else %> - - <%= link_to(tag(:img, ground_picture.picture.tail_tmb_opt_img_tag(asset_path('error.png'))), ground_picture) -%> - - - <% end %> - - <%= link_to panel_icon(:object => ground_picture.panel, :size => 25), panel_path(ground_picture.panel) %> - <%= link_to h(truncate((ground_picture.panel.caption), :length => 12)), panel_path(ground_picture.panel) %> - - - <%= ground_picture.z %> - - - <%= ground_picture.repeat_text %> - - <%= ground_picture.x %> - <%= ground_picture.y %> - <%= distance_of_time_in_words_to_now ground_picture.updated_at %> - diff --git a/app/views/ground_pictures/index.html.erb b/app/views/ground_pictures/index.html.erb deleted file mode 100644 index 113187c9..00000000 --- a/app/views/ground_pictures/index.html.erb +++ /dev/null @@ -1,21 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - - <% @ground_pictures.each do |gp| %> - <%= render 'list_item', :ground_picture => gp %> - <% end -%> -
<%= t_m 'GroundPicture.id' -%><%= t_m 'GroundPicture.caption' -%><%= t_m 'GroundPicture.picture_id' -%><%= -%><%= t_m 'GroundPicture.panel_id' -%><%= t_m 'GroundPicture.z' -%><%= t_m 'GroundPicture.repeat' -%><%= t_m 'GroundPicture.x' -%><%= t_m 'GroundPicture.y' -%><%= t_m 'GroundPicture.updated_at' -%>
-<%= paginate(@paginate) %> diff --git a/app/views/home/comics.html.erb b/app/views/home/comics.html.erb deleted file mode 100644 index 9d0287d7..00000000 --- a/app/views/home/comics.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- - - <% @comics.each do |comic| %> - <%= render 'comics/list_item', :comic => comic, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('comics.new.title'), new_comic_path %> diff --git a/app/views/home/ground_colors.html.erb b/app/views/home/ground_colors.html.erb deleted file mode 100644 index 44aadfbd..00000000 --- a/app/views/home/ground_colors.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - <% @ground_colors.each do |gc| %> - <%= render 'ground_colors/list_item', :ground_color => gc, :author => @author %> - <% end -%> -
<%= t_m 'GroundColor.id' -%><%= t_m 'GroundColor.caption' -%><%= t_m 'GroundColor.code' -%><%= t_m 'GroundColor.panel_id' -%><%= t_m 'GroundColor.z' -%><%= t_m 'GroundColor.updated_at' -%>
-<%= paginate(@paginate) %> -<%= link_to t('ground_colors.new.title'), new_ground_color_path %> diff --git a/app/views/home/ground_pictures.html.erb b/app/views/home/ground_pictures.html.erb deleted file mode 100644 index adc460f9..00000000 --- a/app/views/home/ground_pictures.html.erb +++ /dev/null @@ -1,21 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - - <% @ground_pictures.each do |gp| %> - <%= render 'ground_pictures/list_item', :ground_picture => gp %> - <% end -%> -
<%= t_m 'GroundPicture.id' -%><%= t_m 'GroundPicture.caption' -%><%= t_m 'GroundPicture.picture_id' -%><%= -%><%= t_m 'GroundPicture.panel_id' -%><%= t_m 'GroundPicture.z' -%><%= t_m 'GroundPicture.repeat' -%><%= t_m 'GroundPicture.x' -%><%= t_m 'GroundPicture.y' -%><%= t_m 'GroundPicture.updated_at' -%>
-<%= paginate(@paginate) %> diff --git a/app/views/home/panel_pictures.html.erb b/app/views/home/panel_pictures.html.erb deleted file mode 100644 index 0a704e77..00000000 --- a/app/views/home/panel_pictures.html.erb +++ /dev/null @@ -1,19 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - -<% @panel_pictures.each do |panel_picture| %> - <%= render 'panel_pictures/list_item', :panel_picture => panel_picture %> -<% end %> -
<%= t_m 'PanelPicture.id' -%><%= t_m 'PanelPicture.caption' -%><%= t_m 'PanelPicture.picture_id' -%><%= -%><%= t_m 'PanelPicture.panel_id' -%><%= t_m 'PanelPicture.link' -%><%= t_m 'PanelPicture.z' -%><%= t_m 'PanelPicture.updated_at' -%>
-<%= paginate(@paginate) %> diff --git a/app/views/home/panels.html.erb b/app/views/home/panels.html.erb deleted file mode 100644 index 0dbe1ce1..00000000 --- a/app/views/home/panels.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- -<% @panels.each do |panel| %> -
- <%= render 'panels/standard', :panel => panel, :author => @author %> -
-<% end %> -<%= paginate(@paginate) %> -<%= link_to t('panels.new.title'), new_panel_path %> diff --git a/app/views/home/resource_pictures.html.erb b/app/views/home/resource_pictures.html.erb deleted file mode 100644 index f3ee0702..00000000 --- a/app/views/home/resource_pictures.html.erb +++ /dev/null @@ -1,39 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - -<% @resource_pictures.each do |resource_picture| %> - - - - - - - - - -<% end %> -
<%= t_m 'ResourcePicture.artist_id' -%><%= t_m 'ResourcePicture.ext' -%><%= t_m 'ResourcePicture.width' -%><%= t_m 'ResourcePicture.height' -%><%= t_m 'ResourcePicture.filesize' -%>
- <%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture_path(resource_picture) %> - - <%= render resource_picture.credit_template, :picture => resource_picture %> - - <%= link_to(h(truncate(resource_picture.artist.name, :length => 8)), artist_path(resource_picture.artist)) %> - - <%= h resource_picture.ext %> - - <%= resource_picture.width %>px - - <%= resource_picture.height %>px - - <%= resource_picture.filesize %>bytes -
-<%= paginate(@paginate) %> diff --git a/app/views/home/scroll_panels.html.erb b/app/views/home/scroll_panels.html.erb deleted file mode 100644 index 3d75a57d..00000000 --- a/app/views/home/scroll_panels.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @scroll_panels.each do |scroll_panel| %> - <%= render 'scroll_panels/list_item', :scroll_panel => scroll_panel, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('scroll_panels.new.title'), new_scroll_panel_path %> diff --git a/app/views/home/scrolls.html.erb b/app/views/home/scrolls.html.erb deleted file mode 100644 index bba50b74..00000000 --- a/app/views/home/scrolls.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- - - <% @scrolls.each do |scroll| %> - <%= render 'scrolls/list_item', :scroll => scroll, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('scrolls.new.title'), new_scroll_path %> diff --git a/app/views/home/sheet_panels.html.erb b/app/views/home/sheet_panels.html.erb deleted file mode 100644 index ce330100..00000000 --- a/app/views/home/sheet_panels.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @sheet_panels.each do |sheet_panel| %> - <%= render 'sheet_panels/list_item', :sheet_panel => sheet_panel, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('sheet_panels.new.title'), new_sheet_panel_path %> diff --git a/app/views/home/sheets.html.erb b/app/views/home/sheets.html.erb deleted file mode 100644 index 1ccf0d3d..00000000 --- a/app/views/home/sheets.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- - - <% @sheets.each do |sheet| %> - <%= render 'sheets/list_item', :sheet => sheet, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('sheets.new.title'), new_sheet_path %> diff --git a/app/views/home/speech_balloons.html.erb b/app/views/home/speech_balloons.html.erb deleted file mode 100644 index df748bfb..00000000 --- a/app/views/home/speech_balloons.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - <% @speech_balloons.each do |speech_balloon| %> - <%= render 'speech_balloons/list_item', :speech_balloon => speech_balloon %> - <% end %> -
<%= t_m 'SpeechBalloon.id' -%><%= t_m 'SpeechBalloon.caption' -%><%= t_m 'Speech.content' -%><%= t_m 'SpeechBalloonTemplate.caption' -%><%= t_m 'SpeechBalloon.panel_id' -%><%= t_m 'SpeechBalloon.z' -%><%= t_m 'SpeechBalloon.updated_at' -%>
-<%= paginate(@paginate) %> diff --git a/app/views/home/stories.html.erb b/app/views/home/stories.html.erb deleted file mode 100644 index a99f490f..00000000 --- a/app/views/home/stories.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @stories.each do |story| %> - <%= render 'stories/list_item', :story => story, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('stories.new.title'), new_story_path %> diff --git a/app/views/home/story_sheets.html.erb b/app/views/home/story_sheets.html.erb deleted file mode 100644 index 52af7226..00000000 --- a/app/views/home/story_sheets.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @story_sheets.each do |story_sheet| %> - <%= render 'story_sheets/list_item', :story_sheet => story_sheet, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('story_sheets.new.title'), new_story_sheet_path %> diff --git a/app/views/license_groups/browse.html.erb b/app/views/license_groups/browse.html.erb deleted file mode 100644 index 2cad490b..00000000 --- a/app/views/license_groups/browse.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -

<%= t '.title' -%>

- -

- <%= t_m 'LicenseGroup.id' -%>: - <%= @license_group.id %> -

-

- <%= t_m 'LicenseGroup.name' -%>: - <%= h @license_group.name %> -

-

- <%= t_m 'LicenseGroup.classname' -%>: - <%= h @license_group.classname %> -

-

- <%= t_m 'LicenseGroup.caption' -%>: - <%= h @license_group.caption %> -

-

- <%= t_m 'LicenseGroup.url' -%>: - <%= link_to h(@license_group.url), @license_group.url %> -

-

- <%= t_m 'LicenseGroup.created_at' -%>: - <%= l @license_group.created_at %> -

-

- <%= t_m 'LicenseGroup.updated_at' -%>: - <%= l @license_group.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/license_groups/index.html.erb b/app/views/license_groups/index.html.erb deleted file mode 100644 index 4e30c32d..00000000 --- a/app/views/license_groups/index.html.erb +++ /dev/null @@ -1,14 +0,0 @@ -

<%= t '.title' -%>

- - - - - <% @license_groups.each do |lg| %> - - - - <% end -%> -
<%= t_m 'LicenseGroup.caption' -%>
- <%= link_to t('link.marker'), license_group_path(lg) %> - <%= link_to h(lg.caption), lg.url %> -
diff --git a/app/views/license_groups/list.html.erb b/app/views/license_groups/list.html.erb deleted file mode 100644 index ef767bd9..00000000 --- a/app/views/license_groups/list.html.erb +++ /dev/null @@ -1,36 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - <% @license_groups.each do |lg| %> - - - - - - - - - - <% end -%> -
<%= t_m 'LicenseGroup.id' -%><%= t_m 'LicenseGroup.name' -%><%= t_m 'LicenseGroup.classname' -%><%= t_m 'LicenseGroup.caption' -%><%= t_m 'LicenseGroup.url' -%><%= t_m 'LicenseGroup.created_at' -%><%= t_m 'LicenseGroup.updated_at' -%>
<%= link_to lg.id, :action => :browse, :id => lg.id %> - <%= h(truncate(lg.name, :length => 16)) %> - - <%= h(truncate(lg.classname, :length => 16)) %> - - <%= h(truncate(lg.caption, :length => 16)) %> - - <%= h(truncate(lg.url, :length => 16)) %> - - <%= l lg.created_at %> - - <%= l lg.updated_at %> -
diff --git a/app/views/licenses/browse.html.erb b/app/views/licenses/browse.html.erb deleted file mode 100644 index b9282c34..00000000 --- a/app/views/licenses/browse.html.erb +++ /dev/null @@ -1,43 +0,0 @@ -

<%= t '.title' -%>

- -

- <%= t_m 'License.id' -%>: - <%= @license.id %> -

-

- <%= t_m 'License.license_group_id' -%>: - <%= link_to @license.license_group_id, :controller => 'license_groups', :action => :browse, :id => @license.license_group_id %> -

-

- <%= t_m 'License.name' -%>: - <%= h @license.name %> -

-

- <%= t_m 'License.caption' -%>: - <%= h @license.caption %> -

-

- <%= t_m 'License.url' -%>: - <%= link_to h(@license.url), @license.url %> -

-

- <%= t_m 'License.system_picture_id' -%>: - <%= link_to @license.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => @license.system_picture_id %> -

-

- <%= t_m 'License.credit_pictures' -%>: - <%= @license.credit_pictures %> -

- <%= t_m 'License.settings' -%>: - <%= h @license.settings %> -

-

- <%= t_m 'License.created_at' -%>: - <%= l @license.created_at %> -

-

- <%= t_m 'License.updated_at' -%>: - <%= l @license.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/licenses/index.html.erb b/app/views/licenses/index.html.erb deleted file mode 100644 index 1347bfa9..00000000 --- a/app/views/licenses/index.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

<%= t '.title' -%>

- - - - - - <% @licenses.each do |license| %> - - - - - <% end -%> -
<%= t_m 'License.caption' -%><%= t_m 'License.license_group_id' -%>
- <%= link_to t('link.marker'), license_path(license) %> - <%= link_to h(license.caption), license.url %> - - <%= link_to h(license.license_group.caption), license_group_path(license.license_group) %> -
diff --git a/app/views/licenses/list.html.erb b/app/views/licenses/list.html.erb deleted file mode 100644 index 7aa88111..00000000 --- a/app/views/licenses/list.html.erb +++ /dev/null @@ -1,45 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - - <% @licenses.each do |license| %> - - - - - - - - - - - - - <% end -%> -
<%= t_m 'License.id' -%><%= t_m 'License.license_group_id' -%><%= t_m 'License.name' -%><%= t_m 'License.caption' -%><%= t_m 'License.url' -%><%= t_m 'License.system_picture_id' -%><%= t_m 'License.credit_pictures' -%><%= t_m 'License.settings' -%><%= t_m 'License.created_at' -%><%= t_m 'License.updated_at' -%>
<%= link_to license.id, :action => :browse, :id => license.id %><%= link_to license.license_group_id, :controller => 'license_groups', :action => :browse, :id => license.license_group_id %> - <%= h(truncate(license.name, :length => 16)) %> - - <%= h(truncate(license.caption, :length => 16)) %> - - <%= h(truncate(license.url, :length => 16)) %> - <%= link_to license.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => license.system_picture_id %> - <%= h(truncate(license.credit_pictures, :length => 6)) %> - - <%= h(truncate(license.settings, :length => 6)) %> - - <%= l license.created_at %> - - <%= l license.updated_at %> -
diff --git a/app/views/original_pictures/browse.html.erb b/app/views/original_pictures/browse.html.erb deleted file mode 100644 index e1cf771f..00000000 --- a/app/views/original_pictures/browse.html.erb +++ /dev/null @@ -1,65 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- -<%= link_to tag(:img, @original_picture.opt_img_tag), @original_picture.url %> - -

- <%= t_m 'OriginalPicture.id' -%>: - <%= @original_picture.id %> -

- -

- <%= t_m 'OriginalPicture.ext' -%>: - <%= @original_picture.ext %> -

- -

- <%= t_m 'OriginalPicture.width' -%>: - <%= @original_picture.width %> -

- -

- <%= t_m 'OriginalPicture.height' -%>: - <%= @original_picture.height %> -

- -

- <%= t_m 'OriginalPicture.filesize' -%>: - <%= @original_picture.filesize %> -

- -

- <%= t_m 'OriginalPicture.md5' -%>: - <%= @original_picture.md5 %> -

- -

- <%= t_m 'OriginalPicture.artist_id' -%>: - <%= link_to h(@original_picture.artist.name), browse_artist_path(@original_picture.artist) %> -

- -

- <%= t_m 'OriginalPicture.published_at' -%>: - <% if @original_picture.published_at %> - <%= l @original_picture.published_at %> - <% end %> -

- -

- <%= t_m 'OriginalPicture.stopped_at' -%>: - <% if @original_picture.stopped_at %> - <%= l @original_picture.stopped_at %> - <% end %> -

- -

- <%= t_m 'OriginalPicture.created_at' -%>: - <%= l @original_picture.created_at %> -

- -

- <%= t_m 'OriginalPicture.updated_at' -%>: - <%= l @original_picture.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/original_pictures/edit.js.erb b/app/views/original_pictures/edit.js.erb deleted file mode 100644 index 13e23526..00000000 --- a/app/views/original_pictures/edit.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#uploader").html("<%= escape_javascript(render('form')) -%>"); diff --git a/app/views/original_pictures/index.html.erb b/app/views/original_pictures/index.html.erb deleted file mode 100644 index 9d809ad3..00000000 --- a/app/views/original_pictures/index.html.erb +++ /dev/null @@ -1,55 +0,0 @@ -

<%= t '.title' -%>

- -<%= render 'form' %> - - - - - - - - - - <% @original_pictures.each do |original_picture| %> - - - - - - - - - <% end %> -
<%= t_m 'OriginalPicture' -%><%= t 'original_pictures.index.history' -%><%= t 'original_pictures.index.status' -%><%= t_m 'ResourcePicture' -%><%= -%><%= -%>
- <%= link_to tag(:img, original_picture.tmb_opt_img_tag), original_picture %> - - <% if original_picture.pictures.empty? %> - - - <% else %> - <%= link_to original_picture.history.first.revision, history_original_picture_path(original_picture) %> - <% end %> - - <% case true %> - <% when original_picture.unpublished? %> - <%= t('original_pictures.unpublished') %> - <% when original_picture.unlicensed? %> - <%= t('original_pictures.unlicensed') %> - <% when original_picture.stopped? %> - <%= t('original_pictures.stopped') %> - <% when original_picture.published? %> - <%= t('original_pictures.published') %> - <% end %> - - <% if original_picture.resource_picture %> - <%= link_to tag(:img, original_picture.resource_picture.tmb_opt_img_tag), original_picture.resource_picture %> - <% else %> - <% end %> - - <% if original_picture.resource_picture %> - <%= link_to t('original_pictures.index.stop'), original_picture.resource_picture, confirm: 'Are you sure?', method: :delete %> - <% else %> - <% end %> - - <%= link_to t('original_pictures.index.destroy'), original_picture, confirm: 'Are you sure?', method: :delete %> -
-<%= paginate(@paginate) %> diff --git a/app/views/original_pictures/list.html.erb b/app/views/original_pictures/list.html.erb deleted file mode 100644 index 4af41b58..00000000 --- a/app/views/original_pictures/list.html.erb +++ /dev/null @@ -1,43 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - - - - <% @original_pictures.each do |original_picture| %> - - - - - - - - - - - - - - - <% end %> -
<%= t_m 'OriginalPicture.id' -%><%= t_m 'OriginalPicture.ext' -%><%= t_m 'OriginalPicture.width' -%><%= t_m 'OriginalPicture.height' -%><%= t_m 'OriginalPicture.filesize' -%><%= t_m 'OriginalPicture.md5' -%><%= t_m 'OriginalPicture.artist_id' -%><%= t_m 'OriginalPicture.published_at' -%><%= t_m 'OriginalPicture.stopped_at' -%><%= t_m 'OriginalPicture.created_at' -%><%= t_m 'OriginalPicture.updated_at' -%>
<%= link_to tag(:img, original_picture.tmb_opt_img_tag), original_picture.url %><%= link_to original_picture.id, browse_original_picture_path(original_picture) %><%= h original_picture.ext %><%= original_picture.width %><%= original_picture.height %><%= original_picture.filesize %><%= h(truncate(original_picture.md5, :length => 8)) %><%= link_to original_picture.artist_id, browse_artist_path(original_picture.artist) %> - <% if original_picture.published_at %> - <%= distance_of_time_in_words_to_now original_picture.published_at %> - <% end %> - - <% if original_picture.stopped_at %> - <%= distance_of_time_in_words_to_now original_picture.stopped_at %> - <% end %> - <%= l original_picture.created_at %><%= l original_picture.updated_at %>
diff --git a/app/views/original_pictures/new.js.erb b/app/views/original_pictures/new.js.erb deleted file mode 100644 index 13e23526..00000000 --- a/app/views/original_pictures/new.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#uploader").html("<%= escape_javascript(render('form')) -%>"); diff --git a/app/views/panel_pictures/_list_item.html.erb b/app/views/panel_pictures/_list_item.html.erb deleted file mode 100644 index 7201de22..00000000 --- a/app/views/panel_pictures/_list_item.html.erb +++ /dev/null @@ -1,32 +0,0 @@ - - - <%= link_to(h(panel_picture.id.to_s), panel_picture_path(panel_picture)) %> - - - <%= link_to(h(truncate(panel_picture.caption, :length => 12)), panel_picture_path(panel_picture)) %> - - <% if panel_picture.picture.showable? @author %> - - <%= link_to(tag(:img, panel_picture.tmb_opt_img_tag), panel_picture) %> - - <%= render panel_picture.picture.credit_template, :picture => panel_picture.picture %> - <% else %> - - <%= link_to(tag(:img, panel_picture.picture.tail_tmb_opt_img_tag(asset_path('error.png'))), panel_picture) -%> - - - <% end %> - - <%= link_to panel_icon(:object => panel_picture.panel, :size => 25), panel_path(panel_picture.panel) %> - <%= link_to h(truncate((panel_picture.panel.caption), :length => 12)), panel_path(panel_picture.panel) %> - - - <%= link_to h(truncate(panel_picture.link, :length => 12)), panel_picture.link %> - - - <%= panel_picture.z %> - - - <%= distance_of_time_in_words_to_now panel_picture.updated_at %> - - diff --git a/app/views/panel_pictures/browse.html.erb b/app/views/panel_pictures/browse.html.erb deleted file mode 100644 index bab1d7fc..00000000 --- a/app/views/panel_pictures/browse.html.erb +++ /dev/null @@ -1,69 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- -

- <%= t_m 'PanelPicture.id' -%>: - <%= @panel_picture.id %> -

- -

- <%= t_m 'PanelPicture.panel_id' -%>: - <%= link_to @panel_picture.panel_id, browse_panel_path(@panel_picture.panel) %> -

- -

- <%= t_m 'PanelPicture.picture_id' -%>: - <%= link_to tag(:img, @panel_picture.opt_img_tag), browse_picture_path(@panel_picture.picture) %> -

- -

- <%= t_m 'PanelPicture.link' -%>: - <%= link_to h(@panel_picture.link), @panel_picture.link %> -

- -

- <%= t_m 'PanelPicture.x' -%>: - <%= @panel_picture.x %> -

- -

- <%= t_m 'PanelPicture.y' -%>: - <%= @panel_picture.y %> -

- -

- <%= t_m 'PanelPicture.z' -%>: - <%= @panel_picture.z %> -

- -

- <%= t_m 'PanelPicture.t' -%>: - <%= @panel_picture.t %> -

- -

- <%= t_m 'PanelPicture.width' -%>: - <%= @panel_picture.width %> -

- -

- <%= t_m 'PanelPicture.height' -%>: - <%= @panel_picture.height %> -

- -

- <%= t_m 'PanelPicture.caption' -%>: - <%= h @panel_picture.caption %> -

- -

- <%= t_m 'PanelPicture.created_at' -%>: - <%= l @panel_picture.created_at %> -

- -

- <%= t_m 'PanelPicture.updated_at' -%>: - <%= l @panel_picture.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/panel_pictures/index.html.erb b/app/views/panel_pictures/index.html.erb deleted file mode 100644 index aa5ecb18..00000000 --- a/app/views/panel_pictures/index.html.erb +++ /dev/null @@ -1,19 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - <% @panel_pictures.each do |panel_picture| %> - <%= render 'list_item', :panel_picture => panel_picture %> - <% end %> -
<%= t_m 'PanelPicture.id' -%><%= t_m 'PanelPicture.caption' -%><%= t_m 'PanelPicture.picture_id' -%><%= -%><%= t_m 'PanelPicture.panel_id' -%><%= t_m 'PanelPicture.link' -%><%= t_m 'PanelPicture.z' -%><%= t_m 'PanelPicture.updated_at' -%>
-<%= paginate(@paginate) %> diff --git a/app/views/panel_pictures/list.html.erb b/app/views/panel_pictures/list.html.erb deleted file mode 100644 index e413bf64..00000000 --- a/app/views/panel_pictures/list.html.erb +++ /dev/null @@ -1,36 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - - - - <% @panel_pictures.each do |panel_picture| %> - - - - - - - - - - - - - - - - <% end %> -
<%= t_m 'PanelPicture.id' -%><%= t_m 'PanelPicture.panel_id' -%><%= t_m 'PanelPicture.picture_id' -%><%= t_m 'PanelPicture.link' -%><%= t_m 'PanelPicture.x' -%><%= t_m 'PanelPicture.y' -%><%= t_m 'PanelPicture.z' -%><%= t_m 'PanelPicture.t' -%><%= t_m 'PanelPicture.width' -%><%= t_m 'PanelPicture.height' -%><%= t_m 'PanelPicture.caption' -%><%= t_m 'PanelPicture.created_at' -%><%= t_m 'PanelPicture.updated_at' -%>
<%= link_to panel_picture.id, browse_panel_picture_path(panel_picture) %><%= link_to panel_picture.panel_id, browse_panel_path(panel_picture.panel) %><%= link_to tag(:img, panel_picture.picture.tmb_opt_img_tag), browse_picture_path(panel_picture.picture) %><%= link_to h(truncate(panel_picture.link, :length => 12)), panel_picture.link %><%= panel_picture.x %><%= panel_picture.y %><%= panel_picture.z %><%= panel_picture.t %><%= panel_picture.width %><%= panel_picture.height %><%= h(truncate(panel_picture.caption, :length => 12)) %><%= l panel_picture.created_at %><%= l panel_picture.updated_at %>
diff --git a/app/views/panels/_form.html.erb b/app/views/panels/_form.html.erb index a7433cbf..63a1b4e3 100644 --- a/app/views/panels/_form.html.erb +++ b/app/views/panels/_form.html.erb @@ -53,7 +53,7 @@ <%= render 'element_tab', :elm => elm %> <% end %> - <% mounted = 0 %> + <% mounted = true %> <% @panel.panel_elements.each do |element| %>
>
@@ -117,6 +117,7 @@ <% end %> <% i = 0 %> + <% mounted = false %> <% Panel.each_element_classes do |k| %>
@@ -153,9 +154,11 @@ <% end %> <% when 'GroundPicture' %> <% when 'GroundColor' %> - <% elm = GroundColor.new :panel_id => @panel.id %> - <% elm.new_panel = @panel ; elm.boost ; elm.supply_default %> - <%# render elm.form_template, :elm => elm, :no_attr => 1 %> + <% element = GroundColor.new :panel_id => @panel.id %> + <% element.new_panel = @panel ; element.boost ; element.supply_default %> + <% form_manager = Pettanr::Application::manifest.form_managers[element.form_name] %> + <% form = form_manager.open element, @operators, mounted %> + <%= render 'element_form', :form => form %> <% end %>
diff --git a/app/views/panels/browse.html.erb b/app/views/panels/browse.html.erb deleted file mode 100644 index cad6acfd..00000000 --- a/app/views/panels/browse.html.erb +++ /dev/null @@ -1,15 +0,0 @@ - <% if @panel.errors.any? %> -
-

<%= pluralize(@panel.errors.count, "error") %> prohibited this panel from being saved:

- -
    - <% @panel.errors.full_messages.each do |msg| %> -
  • <%= msg %>
  • - <% end %> -
-
- <% end %> -

<%= notice %>

-<%= render 'standard' %> - -<%= link_to 'Back', :action => :list %> diff --git a/app/views/panels/edit.js.erb b/app/views/panels/edit.js.erb deleted file mode 100644 index 1b751ead..00000000 --- a/app/views/panels/edit.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#newpanel").html("<%= escape_javascript(render('form')) -%>"); diff --git a/app/views/panels/index.html.erb b/app/views/panels/index.html.erb deleted file mode 100644 index 46cf3f3b..00000000 --- a/app/views/panels/index.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -

<%= t '.title' -%>

-<% @panels.each do |panel| %> - <%= render 'standard', :panel => panel, :author => @author %> -<% end %> -<%= paginate(@paginate) %> -<%= link_to t('panels.new.title'), new_panel_path %> diff --git a/app/views/panels/list.html.erb b/app/views/panels/list.html.erb deleted file mode 100644 index f67cd813..00000000 --- a/app/views/panels/list.html.erb +++ /dev/null @@ -1,37 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - - - -<% @panels.each do |panel| %> - - - - - - - - - - - - - - -<% end %> -
idWidthHeightBorderxyzpublishauthor_idcreated_atupdated_at
<%= link_to panel.id, :action => :browse, :id => panel.id %><%= panel.width %><%= panel.height %><%= panel.border %><%= panel.x %><%= panel.y %><%= panel.z %><%= panel.publish %><%= link_to panel.author_id, :controller => '/authors', :action => :browse, :id => panel.author_id %><%= panel.created_at %><%= panel.updated_at %> - <%= link_to 'Destroy', panel, confirm: 'Are you sure?', method: :delete %> -
diff --git a/app/views/panels/new.js.erb b/app/views/panels/new.js.erb deleted file mode 100644 index 5f653e52..00000000 --- a/app/views/panels/new.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#newpanel").html("<%= escape_javascript(render('metroform')) -%>"); diff --git a/app/views/resource_pictures/_list_item.html.erb b/app/views/resource_pictures/_list_item.html.erb deleted file mode 100644 index 77239cbb..00000000 --- a/app/views/resource_pictures/_list_item.html.erb +++ /dev/null @@ -1,23 +0,0 @@ - - - <%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture_path(resource_picture) %> - - - <%= render resource_picture.credit_template, :picture => resource_picture %> - - - <%= link_to(h(truncate(resource_picture.artist.name, :length => 8)), artist_path(resource_picture.artist)) %> - - - <%= h resource_picture.ext %> - - - <%= resource_picture.width %>px - - - <%= resource_picture.height %>px - - - <%= resource_picture.filesize %>bytes - - diff --git a/app/views/resource_pictures/browse.html.erb b/app/views/resource_pictures/browse.html.erb deleted file mode 100644 index 9d4e2fab..00000000 --- a/app/views/resource_pictures/browse.html.erb +++ /dev/null @@ -1,87 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- -<%= link_to tag(:img, @resource_picture.opt_img_tag), @resource_picture.url %> -<%= render @resource_picture.credit_template, :picture => @resource_picture %> - -

- <%= t_m 'ResourcePicture.id' -%>: - <%= @resource_picture.id %> -

- -

- <%= t_m 'ResourcePicture.original_picture_id' -%>: - <%= link_to @resource_picture.original_picture_id, browse_original_picture_path(@resource_picture.original_picture) %> -

- -

- <%= t_m 'ResourcePicture.ext' -%>: - <%= @resource_picture.ext %> -

- -

- <%= t_m 'ResourcePicture.width' -%>: - <%= @resource_picture.width %> -

- -

- <%= t_m 'ResourcePicture.height' -%>: - <%= @resource_picture.height %> -

- -

- <%= t_m 'ResourcePicture.filesize' -%>: - <%= @resource_picture.filesize %> -

- -

- <%= t_m 'ResourcePicture.md5' -%>: - <%= @resource_picture.md5 %> -

- -

- <%= t_m 'ResourcePicture.license_id' -%>: - <%= link_to @resource_picture.license_id, browse_license_path(@resource_picture.license) %> -

- -

- <%= t_m 'ResourcePicture.artist_id' -%>: - <%= link_to @resource_picture.artist_id, browse_artist_path(@resource_picture.artist) %> -

- -

- <%= t_m 'ResourcePicture.artist_name' -%>: - <%= h @resource_picture.artist_name %> -

- -

- <%= t_m 'ResourcePicture.classname' -%>: - <%= h @resource_picture.classname %> -

- -

- <%= t_m 'ResourcePicture.credit' -%>: - <%= h @resource_picture.credit %> -

- -

- <%= t_m 'ResourcePicture.settings' -%>: - <%= h @resource_picture.settings %> -

- -

- <%= t_m 'ResourcePicture.picture_id' -%>: - <%= link_to @resource_picture.picture_id, browse_picture_path(@resource_picture.picture) %> -

- -

- <%= t_m 'ResourcePicture.created_at' -%>: - <%= l @resource_picture.created_at %> -

- -

- <%= t_m 'ResourcePicture.updated_at' -%>: - <%= l @resource_picture.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/resource_pictures/index.html.erb b/app/views/resource_pictures/index.html.erb deleted file mode 100644 index f2554893..00000000 --- a/app/views/resource_pictures/index.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - <% @resource_pictures.each do |resource_picture| %> - <%= render 'list_item', :resource_picture => resource_picture %> - <% end %> -
<%= t_m 'ResourcePicture.artist_id' -%><%= t_m 'ResourcePicture.ext' -%><%= t_m 'ResourcePicture.width' -%><%= t_m 'ResourcePicture.height' -%><%= t_m 'ResourcePicture.filesize' -%>
-<%= paginate(@paginate) %> diff --git a/app/views/resource_pictures/list.html.erb b/app/views/resource_pictures/list.html.erb deleted file mode 100644 index eac212c8..00000000 --- a/app/views/resource_pictures/list.html.erb +++ /dev/null @@ -1,44 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - - - - - - - - <% @resource_pictures.each do |resource_picture| %> - - - - - - - - - - - - - - - - - - - - <% end %> -
<%= t_m 'ResourcePicture.id' -%><%= t_m 'ResourcePicture.original_picture_id' -%><%= t_m 'ResourcePicture.ext' -%><%= t_m 'ResourcePicture.width' -%><%= t_m 'ResourcePicture.height' -%><%= t_m 'ResourcePicture.filesize' -%><%= t_m 'ResourcePicture.md5' -%><%= t_m 'ResourcePicture.artist_id' -%><%= t_m 'ResourcePicture.license_id' -%><%= t_m 'ResourcePicture.artist_name' -%><%= t_m 'ResourcePicture.classname' -%><%= t_m 'ResourcePicture.credit' -%><%= t_m 'ResourcePicture.settings' -%><%= t_m 'ResourcePicture.picture_id' -%><%= t_m 'ResourcePicture.created_at' -%><%= t_m 'ResourcePicture.updated_at' -%>
<%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture.url %><%= link_to resource_picture.id, browse_resource_picture_path(resource_picture.id) %><%= link_to resource_picture.original_picture_id, browse_original_picture_path(resource_picture.original_picture) %><%= h resource_picture.ext %><%= resource_picture.width %><%= resource_picture.height %><%= resource_picture.filesize %><%= h(truncate(resource_picture.md5, :length => 8)) %><%= link_to resource_picture.artist_id, browse_artist_path(resource_picture.artist) %><%= link_to resource_picture.license_id, browse_license_path(resource_picture.license) %><%= h(truncate(resource_picture.artist_name, :length => 8)) %><%= h(truncate(resource_picture.classname, :length => 8)) %><%= h(truncate(resource_picture.credit, :length => 8)) %><%= h(truncate(resource_picture.settings, :length => 8)) %><%= link_to resource_picture.picture_id, main_app.browse_picture_path(resource_picture.picture) %><%= l resource_picture.created_at %><%= l resource_picture.updated_at %>
diff --git a/app/views/resource_pictures/new.js.erb b/app/views/resource_pictures/new.js.erb deleted file mode 100644 index ed93c2b1..00000000 --- a/app/views/resource_pictures/new.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#oplg").html("<%= escape_javascript(render('form')) -%>"); diff --git a/app/views/scroll_panels/_list_item.html.erb b/app/views/scroll_panels/_list_item.html.erb deleted file mode 100644 index 96125c57..00000000 --- a/app/views/scroll_panels/_list_item.html.erb +++ /dev/null @@ -1,28 +0,0 @@ - - - <%= link_to scroll_icon(:object => scroll_panel.scroll, :size => 25), scroll_path(scroll_panel.scroll) %> - - - <%= link_to h(scroll_panel.scroll.title), play_scroll_path(scroll_panel.scroll) %> - - - <%= link_to author_icon(:object => scroll_panel.scroll.author, :size => 17), author_path(scroll_panel.scroll.author) %> - - - <%= link_to scroll_panel_icon(:object => scroll_panel, :size => 25), scroll_panel_path(scroll_panel) %> - - - <%= link_to author_icon(:object => scroll_panel.author, :size => 17), author_path(scroll_panel.author) %> - - - No.<%= scroll_panel.t %> - - - <%= l scroll_panel.updated_at %> - - - <% if scroll_panel.panel %> - <%= h scroll_panel.panel.caption %> - <% end %> - - diff --git a/app/views/scroll_panels/browse.html.erb b/app/views/scroll_panels/browse.html.erb deleted file mode 100644 index b4083f67..00000000 --- a/app/views/scroll_panels/browse.html.erb +++ /dev/null @@ -1,28 +0,0 @@ -

<%= notice %>

- -

- scroll_id: - <%= @scroll_panel.scroll_id %> -

- -

- panel_id: - <%= @scroll_panel.panel_id %> -

- -

- t: - <%= @scroll_panel.t %> -

- -

- author_id: - <%= @scroll_panel.author_id %> -

- -

- updated_at: - <%= @scroll_panel.updated_at %> -

- -<%= link_to 'Back', :action => :list %> diff --git a/app/views/scroll_panels/edit.js.erb b/app/views/scroll_panels/edit.js.erb deleted file mode 100644 index 65bc52a8..00000000 --- a/app/views/scroll_panels/edit.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#scroll_panel-update-<%= @scroll_panel.id -%>").html("<%= escape_javascript(render('editform')) -%>"); diff --git a/app/views/scroll_panels/index.html.erb b/app/views/scroll_panels/index.html.erb deleted file mode 100644 index 74213ffd..00000000 --- a/app/views/scroll_panels/index.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -

<%= t '.title' -%>

- - <% @scroll_panels.each do |scroll_panel| %> - <%= render 'list_item', :scroll_panel => scroll_panel, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('scroll_panels.new.title'), new_scroll_panel_path %> diff --git a/app/views/scroll_panels/list.html.erb b/app/views/scroll_panels/list.html.erb deleted file mode 100644 index 9606beff..00000000 --- a/app/views/scroll_panels/list.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

Listing ScrollPanel

- - - - - - - - - - - - - -<% @scroll_panels.each do |scroll_panel| %> - - - - - - - - - - -<% end %> -
idscroll_idpanel_idtauthor_idcreated_atupdated_at
<%= link_to scroll_panel.id, :action => :browse, :id => scroll_panel.id %><%= scroll_panel.scroll_id %><%= scroll_panel.panel_id %><%= scroll_panel.t %><%= link_to scroll_panel.author_id, :controller => '/authors', :action => :browse, :id => scroll_panel.author_id %><%= scroll_panel.created_at %><%= scroll_panel.updated_at %> -
- diff --git a/app/views/scrolls/_list_item.html.erb b/app/views/scrolls/_list_item.html.erb deleted file mode 100644 index 0bae33af..00000000 --- a/app/views/scrolls/_list_item.html.erb +++ /dev/null @@ -1,25 +0,0 @@ - - - <%= link_to scroll_icon(:object => scroll, :size => 25), scroll_path(scroll) %> - <%= link_to h(truncate(scroll.title, :length => 40)), play_scroll_path(scroll) %> - (<%= scroll.scroll_panels.size -%>) - - - <%= distance_of_time_in_words_to_now scroll.updated_at %> - - - <%= link_to author_icon(:object => scroll.author, :size => 25), author_path(scroll.author) %> - <%= link_to h(truncate(scroll.author.name, :length => 12)), author_path(scroll.author) %> - - - <% if scroll.own? author %> - <%= link_to t('link.edit'), edit_scroll_path(scroll) %> - <%= link_to t('link.destroy'), scroll_path(scroll), :method => :delete %> - <% end %> - - - - - <%= h(truncate(scroll.description, :length => 40)) %> - - diff --git a/app/views/scrolls/browse.html.erb b/app/views/scrolls/browse.html.erb deleted file mode 100644 index 62e9f5e1..00000000 --- a/app/views/scrolls/browse.html.erb +++ /dev/null @@ -1,34 +0,0 @@ -

<%= t '.title' -%>

-

- <%= t_m 'Scroll.id' -%>: - <%= h @scroll.id %> -

- -

- <%= t_m 'Scroll.title' -%>: - <%= h @scroll.title %> -

- -

- <%= t_m 'Scroll.visible' -%>: - <%= @scroll.visible %> - <%= t_selected_item('scroll_visible_items', @scroll.visible) %> -

- -

- <%= t_m 'Scroll.author_id' -%>: - <%= @scroll.author_id %> - <%= link_to h(@scroll.author.name), browse_author_path(@scroll.author) %> -

- -

- <%= t_m 'Scroll.created_at' -%>: - <%= l @scroll.created_at %> -

- -

- <%= t_m 'Scroll.updated_at' -%>: - <%= l @scroll.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/scrolls/edit.js.erb b/app/views/scrolls/edit.js.erb deleted file mode 100644 index 830c4f59..00000000 --- a/app/views/scrolls/edit.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#newscroll").html("<%= escape_javascript(render('form')) -%>"); diff --git a/app/views/scrolls/index.html.erb b/app/views/scrolls/index.html.erb deleted file mode 100644 index df40c94c..00000000 --- a/app/views/scrolls/index.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @scrolls.each do |scroll| %> - <%= render 'list_item', :scroll => scroll, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('scrolls.new.title'), new_scroll_path %> diff --git a/app/views/scrolls/list.html.erb b/app/views/scrolls/list.html.erb deleted file mode 100644 index 557736ea..00000000 --- a/app/views/scrolls/list.html.erb +++ /dev/null @@ -1,24 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - -<% @scrolls.each do |scroll| %> - - - - - - - - -<% end %> -
<%= t_m 'Scroll.id' -%><%= t_m 'Scroll.title' -%><%= t_m 'Scroll.visible' -%><%= t_m 'Scroll.author_id' -%><%= t_m 'Scroll.created_at' -%><%= t_m 'Scroll.updated_at' -%>
<%= link_to scroll.id, browse_scroll_path(scroll) %><%= h(truncate(scroll.title, :length => 12)) %><%= scroll.visible %><%= link_to scroll.author_id, browse_author_path(scroll.author) %><%= l scroll.created_at %><%= l scroll.updated_at %>
- diff --git a/app/views/scrolls/new.js.erb b/app/views/scrolls/new.js.erb deleted file mode 100644 index 830c4f59..00000000 --- a/app/views/scrolls/new.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#newscroll").html("<%= escape_javascript(render('form')) -%>"); diff --git a/app/views/sheet_panels/_list_item.html.erb b/app/views/sheet_panels/_list_item.html.erb deleted file mode 100644 index 3879017d..00000000 --- a/app/views/sheet_panels/_list_item.html.erb +++ /dev/null @@ -1,28 +0,0 @@ - - - <%= link_to sheet_icon(:object => sheet_panel.sheet, :size => 25), sheet_path(sheet_panel.sheet) %> - - - <%= link_to h(sheet_panel.sheet.caption), play_sheet_path(sheet_panel.sheet) %> - - - <%= link_to author_icon(:object => sheet_panel.sheet.author, :size => 17), author_path(sheet_panel.sheet.author) %> - - - <%= link_to sheet_panel_icon(:object => sheet_panel, :size => 25), sheet_panel_path(sheet_panel) %> - - - <%= link_to author_icon(:object => sheet_panel.author, :size => 17), author_path(sheet_panel.author) %> - - - No.<%= sheet_panel.t %> - - - <%= l sheet_panel.updated_at %> - - - <% if sheet_panel.panel %> - <%= h sheet_panel.panel.caption %> - <% end %> - - diff --git a/app/views/sheet_panels/browse.html.erb b/app/views/sheet_panels/browse.html.erb deleted file mode 100644 index 67725793..00000000 --- a/app/views/sheet_panels/browse.html.erb +++ /dev/null @@ -1,28 +0,0 @@ -

<%= notice %>

- -

- sheet_id: - <%= @sheet_panel.sheet_id %> -

- -

- panel_id: - <%= @sheet_panel.panel_id %> -

- -

- t: - <%= @sheet_panel.t %> -

- -

- author_id: - <%= @sheet_panel.author_id %> -

- -

- updated_at: - <%= @sheet_panel.updated_at %> -

- -<%= link_to 'Back', :action => :list %> diff --git a/app/views/sheet_panels/edit.js.erb b/app/views/sheet_panels/edit.js.erb deleted file mode 100644 index d7bfe9fe..00000000 --- a/app/views/sheet_panels/edit.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#sheet_panel-update-<%= @sheet_panel.id -%>").html("<%= escape_javascript(render('editform')) -%>"); diff --git a/app/views/sheet_panels/index.html.erb b/app/views/sheet_panels/index.html.erb deleted file mode 100644 index 24da3885..00000000 --- a/app/views/sheet_panels/index.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -

<%= t '.title' -%>

- - <% @sheet_panels.each do |sheet_panel| %> - <%= render 'list_item', :sheet_panel => sheet_panel, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('sheet_panels.new.title'), new_sheet_panel_path %> diff --git a/app/views/sheet_panels/list.html.erb b/app/views/sheet_panels/list.html.erb deleted file mode 100644 index 7790abcb..00000000 --- a/app/views/sheet_panels/list.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

Listing SheetPanel

- - - - - - - - - - - - - -<% @sheet_panels.each do |sheet_panel| %> - - - - - - - - - - -<% end %> -
idsheet_idpanel_idtauthor_idcreated_atupdated_at
<%= link_to sheet_panel.id, :action => :browse, :id => sheet_panel.id %><%= sheet_panel.sheet_id %><%= sheet_panel.panel_id %><%= sheet_panel.t %><%= link_to sheet_panel.author_id, :controller => '/authors', :action => :browse, :id => sheet_panel.author_id %><%= sheet_panel.created_at %><%= sheet_panel.updated_at %> -
- diff --git a/app/views/sheets/_list_item.html.erb b/app/views/sheets/_list_item.html.erb deleted file mode 100644 index c7c9b2ff..00000000 --- a/app/views/sheets/_list_item.html.erb +++ /dev/null @@ -1,20 +0,0 @@ - - - <%= link_to sheet_icon(:object => sheet, :size => 25), sheet_path(sheet) %> - <%= link_to h(truncate(sheet.caption, :length => 40)), play_sheet_path(sheet) %> - (<%= sheet.sheet_panels.size -%>) - - - <%= distance_of_time_in_words_to_now sheet.updated_at %> - - - <%= link_to author_icon(:object => sheet.author, :size => 25), author_path(sheet.author) %> - <%= link_to h(truncate(sheet.author.name, :length => 12)), author_path(sheet.author) %> - - - <% if sheet.own? author %> - <%= link_to t('link.edit'), edit_sheet_path(sheet) %> - <%= link_to t('link.destroy'), sheet_path(sheet), :method => :delete %> - <% end %> - - diff --git a/app/views/sheets/browse.html.erb b/app/views/sheets/browse.html.erb deleted file mode 100644 index bd6dea1f..00000000 --- a/app/views/sheets/browse.html.erb +++ /dev/null @@ -1,44 +0,0 @@ -

<%= t '.title' -%>

-

- <%= t_m 'Sheet.id' -%>: - <%= h @sheet.id %> -

- -

- <%= t_m 'Sheet.caption' -%>: - <%= h @sheet.caption %> -

- -

- <%= t_m 'Sheet.width' -%>: - <%= h(@sheet.width) %> -

- -

- <%= t_m 'Sheet.height' -%>: - <%= h(@sheet.height) %> -

- -

- <%= t_m 'Sheet.visible' -%>: - <%= @sheet.visible %> - <%= t_selected_item('sheet_visible_items', @sheet.visible) %> -

- -

- <%= t_m 'Sheet.author_id' -%>: - <%= @sheet.author_id %> - <%= link_to h(@sheet.author.name), browse_author_path(@sheet.author) %> -

- -

- <%= t_m 'Sheet.created_at' -%>: - <%= l @sheet.created_at %> -

- -

- <%= t_m 'Sheet.updated_at' -%>: - <%= l @sheet.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/sheets/edit.js.erb b/app/views/sheets/edit.js.erb deleted file mode 100644 index 61e9f00a..00000000 --- a/app/views/sheets/edit.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#newsheet").html("<%= escape_javascript(render('form')) -%>"); diff --git a/app/views/sheets/index.html.erb b/app/views/sheets/index.html.erb deleted file mode 100644 index 327a355d..00000000 --- a/app/views/sheets/index.html.erb +++ /dev/null @@ -1,9 +0,0 @@ -

<%= t '.title' -%>

- - - <% @sheets.each do |sheet| %> - <%= render 'list_item', :sheet => sheet, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('sheets.new.title'), new_sheet_path %> diff --git a/app/views/sheets/list.html.erb b/app/views/sheets/list.html.erb deleted file mode 100644 index 550c5be2..00000000 --- a/app/views/sheets/list.html.erb +++ /dev/null @@ -1,28 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - -<% @sheets.each do |sheet| %> - - - - - - - - - - -<% end %> -
<%= t_m 'Sheet.id' -%><%= t_m 'Sheet.caption' -%><%= t_m 'Sheet.width' -%><%= t_m 'Sheet.height' -%><%= t_m 'Sheet.visible' -%><%= t_m 'Sheet.author_id' -%><%= t_m 'Sheet.created_at' -%><%= t_m 'Sheet.updated_at' -%>
<%= link_to sheet.id, browse_sheet_path(sheet) %><%= h(truncate(sheet.caption, :length => 12)) %><%= sheet.width %><%= sheet.height %><%= sheet.visible %><%= link_to sheet.author_id, browse_author_path(sheet.author) %><%= l sheet.created_at %><%= l sheet.updated_at %>
- diff --git a/app/views/sheets/new.js.erb b/app/views/sheets/new.js.erb deleted file mode 100644 index 61e9f00a..00000000 --- a/app/views/sheets/new.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#newsheet").html("<%= escape_javascript(render('form')) -%>"); diff --git a/app/views/speech_balloon_templates/browse.html.erb b/app/views/speech_balloon_templates/browse.html.erb deleted file mode 100644 index ebc97da0..00000000 --- a/app/views/speech_balloon_templates/browse.html.erb +++ /dev/null @@ -1,49 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- -

- <%= t_m 'SpeechBalloonTemplate.id' -%>: - <%= h @speech_balloon_template.id %> -

- -

- <%= t_m 'SpeechBalloonTemplate.name' -%>: - <%= h @speech_balloon_template.name %> -

- -

- <%= t_m 'SpeechBalloonTemplate.classname' -%>: - <%= h @speech_balloon_template.classname %> -

- -

- <%= t_m 'SpeechBalloonTemplate.caption' -%>: - <%= h @speech_balloon_template.caption %> -

- -

- <%= t_m 'SpeechBalloonTemplate.t' -%>: - <%= @speech_balloon_template.t %> -

- -

- <%= t_m 'SpeechBalloonTemplate.system_picture_id' -%>: - <%= @speech_balloon_template.system_picture_id %> -

- -

- <%= t_m 'SpeechBalloonTemplate.settings' -%>: - <%= h @speech_balloon_template.settings %> -

- -

- <%= t_m 'SpeechBalloonTemplate.created_at' -%>: - <%= l @speech_balloon_template.created_at %> -

- -

- <%= t_m 'SpeechBalloonTemplate.updated_at' -%>: - <%= l @speech_balloon_template.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/speech_balloon_templates/index.html.erb b/app/views/speech_balloon_templates/index.html.erb deleted file mode 100644 index 48afbe65..00000000 --- a/app/views/speech_balloon_templates/index.html.erb +++ /dev/null @@ -1,21 +0,0 @@ -

<%= t '.title' -%>

- -
    - <% @speech_balloon_templates.each do |st| %> -
  • -
    - <%= link_to tag(:img, st.system_picture.tmb_opt_img_tag), speech_balloon_template_path(st) %> -
    - <%= link_to h(st.caption), speech_balloon_template_path(st) %> -
    -
    -
    - <% if @operators.author and @operators.author.working? -%> - <%= link_to t('speech_balloon_templates.add_to_panel'), main_app.new_speech_balloon_path(:speech_balloon_template_id => st.id) %> - <% end -%> -
    -
    -
    -
  • - <% end %> -
diff --git a/app/views/speech_balloon_templates/list.html.erb b/app/views/speech_balloon_templates/list.html.erb deleted file mode 100644 index 94c6cdf6..00000000 --- a/app/views/speech_balloon_templates/list.html.erb +++ /dev/null @@ -1,44 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - <% @speech_balloon_templates.each do |speech_balloon_template| %> - - - - - - - - - - - - <% end -%> -
<%= t_m 'SpeechBalloonTemplate.id' -%><%= t_m 'SpeechBalloonTemplate.name' -%><%= t_m 'SpeechBalloonTemplate.classname' -%><%= t_m 'SpeechBalloonTemplate.caption' -%><%= t_m 'SpeechBalloonTemplate.t' -%><%= t_m 'SpeechBalloonTemplate.system_picture_id' -%><%= t_m 'SpeechBalloonTemplate.settings' -%><%= t_m 'SpeechBalloonTemplate.created_at' -%><%= t_m 'SpeechBalloonTemplate.updated_at' -%>
<%= link_to speech_balloon_template.id, browse_speech_balloon_template_path(speech_balloon_template) %> - <%= h(truncate(speech_balloon_template.name, :length => 16)) %> - - <%= h(truncate(speech_balloon_template.classname, :length => 16)) %> - - <%= h(truncate(speech_balloon_template.caption, :length => 16)) %> - - <%= speech_balloon_template.t %> - - <%= link_to tag(:img, speech_balloon_template.system_picture.tmb_opt_img_tag), speech_balloon_template_path(speech_balloon_template.system_picture) %> - - <%= h(truncate(speech_balloon_template.settings, :length => 10)) %> - - <%= l speech_balloon_template.created_at %> - - <%= l speech_balloon_template.updated_at %> -
diff --git a/app/views/speech_balloons/_list_item.html.erb b/app/views/speech_balloons/_list_item.html.erb deleted file mode 100644 index fba2ddc7..00000000 --- a/app/views/speech_balloons/_list_item.html.erb +++ /dev/null @@ -1,25 +0,0 @@ - - - <%= link_to(h(speech_balloon.id.to_s), speech_balloon_path(speech_balloon)) %> - - - <%= link_to(h(truncate(speech_balloon.caption, :length => 12)), speech_balloon_path(speech_balloon)) %> - - - <%= h(truncate(speech_balloon.speech.content, :length => 12)) if speech_balloon.speech %> - - - <%= tag(:img, speech_balloon.balloon.system_picture.tmb_opt_img_tag) if speech_balloon.balloon %> - <%= link_to(h(truncate(speech_balloon.speech_balloon_template.caption, :length => 12)), speech_balloon_template_path(speech_balloon.speech_balloon_template)) %> - - - <%= link_to panel_icon(:object => speech_balloon.panel, :size => 25), panel_path(speech_balloon.panel) %> - <%= link_to h(truncate((speech_balloon.panel.caption), :length => 12)), panel_path(speech_balloon.panel) %> - - - <%= speech_balloon.z %> - - - <%= distance_of_time_in_words_to_now speech_balloon.updated_at %> - - diff --git a/app/views/speech_balloons/browse.html.erb b/app/views/speech_balloons/browse.html.erb deleted file mode 100644 index 7cf8828d..00000000 --- a/app/views/speech_balloons/browse.html.erb +++ /dev/null @@ -1,49 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- -

- <%= t_m 'SpeechBalloon.id' -%>: - <%= @speech_balloon.id %> -

- -

- <%= t_m 'SpeechBalloon.panel_id' -%>: - <%= link_to @speech_balloon.panel_id, browse_panel_path(@speech_balloon.panel) %> -

- -

- <%= t_m 'SpeechBalloon.speech_balloon_template_id' -%>: - <%= link_to @speech_balloon.speech_balloon_template_id, browse_speech_balloon_template_path(@speech_balloon.speech_balloon_template) %> -

- -

- <%= t_m 'SpeechBalloon.classname' -%>: - <%= h @speech_balloon.classname %> -

- -

- <%= t_m 'SpeechBalloon.z' -%>: - <%= @speech_balloon.z %> -

- -

- <%= t_m 'SpeechBalloon.t' -%>: - <%= @speech_balloon.t %> -

- -

- <%= t_m 'SpeechBalloon.settings' -%>: - <%= h @speech_balloon.settings %> -

- -

- <%= t_m 'SpeechBalloon.created_at' -%>: - <%= l @speech_balloon.created_at %> -

- -

- <%= t_m 'SpeechBalloon.updated_at' -%>: - <%= l @speech_balloon.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/speech_balloons/index.html.erb b/app/views/speech_balloons/index.html.erb deleted file mode 100644 index f83a7360..00000000 --- a/app/views/speech_balloons/index.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - <% @speech_balloons.each do |speech_balloon| %> - <%= render 'list_item', :speech_balloon => speech_balloon %> - <% end %> -
<%= t_m 'SpeechBalloon.id' -%><%= t_m 'SpeechBalloon.caption' -%><%= t_m 'Speech.content' -%><%= t_m 'SpeechBalloonTemplate.caption' -%><%= t_m 'SpeechBalloon.panel_id' -%><%= t_m 'SpeechBalloon.z' -%><%= t_m 'SpeechBalloon.updated_at' -%>
-<%= paginate(@paginate) %> diff --git a/app/views/speech_balloons/list.html.erb b/app/views/speech_balloons/list.html.erb deleted file mode 100644 index 501123ae..00000000 --- a/app/views/speech_balloons/list.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - - <% @speech_balloons.each do |speech_balloon| %> - - - - - - - - - - - - - <% end %> -
<%= t_m 'SpeechBalloon.id' -%><%= t_m 'SpeechBalloon.panel_id' -%><%= t_m 'SpeechBalloon.speech_balloon_template_id' -%><%= t_m 'SpeechBalloon.classname' -%><%= t_m 'SpeechBalloon.z' -%><%= t_m 'SpeechBalloon.t' -%><%= t_m 'SpeechBalloon.caption' -%><%= t_m 'SpeechBalloon.settings' -%><%= t_m 'SpeechBalloon.created_at' -%><%= t_m 'SpeechBalloon.updated_at' -%>
<%= link_to speech_balloon.id, browse_speech_balloon_path(speech_balloon) %><%= link_to speech_balloon.panel_id, browse_panel_path(speech_balloon.panel) %><%= link_to speech_balloon.speech_balloon_template_id, browse_speech_balloon_template_path(speech_balloon.speech_balloon_template) %><%= h(truncate(speech_balloon.classname, :length => 12)) %><%= speech_balloon.z %><%= speech_balloon.t %><%= h(truncate(speech_balloon.caption, :length => 12)) %><%= h(truncate(speech_balloon.settings, :length => 12)) %><%= l speech_balloon.created_at %><%= l speech_balloon.updated_at %>
diff --git a/app/views/speech_balloons/show.html.erb b/app/views/speech_balloons/show.html.erb index f7f0755c..b16e2216 100644 --- a/app/views/speech_balloons/show.html.erb +++ b/app/views/speech_balloons/show.html.erb @@ -8,90 +8,6 @@ <%= h @speech_balloon.caption %>

-

- <%= t_m 'SpeechBalloon.speech_balloon_template_id' -%>: - <%= link_to h(@speech_balloon.speech_balloon_template.caption), @speech_balloon.speech_balloon_template %> -

- -

- <%= t_m 'SpeechBalloon.classname' -%>: - <%= @speech_balloon.classname %> -

- -

- <%= t_m 'SpeechBalloon.z' -%>: - <%= @speech_balloon.z %> -

- -

- <%= t_m 'SpeechBalloon.t' -%>: - <%= @speech_balloon.t %> -

- -<% if @speech_balloon.balloon %> -

- <%= t_m 'Balloon.x' -%>: - <%= @speech_balloon.balloon.x %> -

- -

- <%= t_m 'Balloon.y' -%>: - <%= @speech_balloon.balloon.y %> -

- -

- <%= t_m 'Balloon.width' -%>: - <%= @speech_balloon.balloon.width %> -

- -

- <%= t_m 'Balloon.height' -%>: - <%= @speech_balloon.balloon.height %> -

- -

- <%= t_m 'Balloon.r' -%>: - <%= @speech_balloon.balloon.r %> -

-<% end %> - -<% if @speech_balloon.speech %> -

- <%= t_m 'Speech.content' -%>: - <%= @speech_balloon.speech.content %> -

- -

- <%= t_m 'Speech.x' -%>: - <%= @speech_balloon.speech.x %> -

- -

- <%= t_m 'Speech.y' -%>: - <%= @speech_balloon.speech.y %> -

- -

- <%= t_m 'Speech.width' -%>: - <%= @speech_balloon.speech.width %> -

- -

- <%= t_m 'Speech.height' -%>: - <%= @speech_balloon.speech.height %> -

-<% end %> - -

- <%= t_m 'SpeechBalloon.created_at' -%>: - <%= l @speech_balloon.created_at %> -

- -

- <%= t_m 'SpeechBalloon.updated_at' -%>: - <%= l @speech_balloon.updated_at %> -

- <%= link_to t('link.edit'), edit_speech_balloon_path(@speech_balloon) %> <%= link_to t('link.destroy'), speech_balloon_path(@speech_balloon), :method => :delete %> diff --git a/app/views/speeches/browse.html.erb b/app/views/speeches/browse.html.erb deleted file mode 100644 index fb0f29ec..00000000 --- a/app/views/speeches/browse.html.erb +++ /dev/null @@ -1,54 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- -

- <%= t_m 'Speech.id' -%>: - <%= @speech.id %> -

- -

- <%= t_m 'Speech.speech_balloon_id' -%>: - <%= link_to @speech.speech_balloon_id, browse_speech_balloon_path(@speech.speech_balloon) %> -

- -

- <%= t_m 'Speech.content' -%>: - <%= h @speech.content %> -

- -

- <%= t_m 'Speech.x' -%>: - <%= @speech.x %> -

- -

- <%= t_m 'Speech.y' -%>: - <%= @speech.y %> -

- -

- <%= t_m 'Speech.width' -%>: - <%= @speech.width %> -

- -

- <%= t_m 'Speech.height' -%>: - <%= @speech.height %> -

- -

- <%= t_m 'Speech.settings' -%>: - <%= h @speech.settings %> -

- -

- <%= t_m 'Speech.created_at' -%>: - <%= l @speech.created_at %> -

- -

- <%= t_m 'Speech.updated_at' -%>: - <%= l @speech.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/speeches/index.html.erb b/app/views/speeches/index.html.erb deleted file mode 100644 index 52ef6126..00000000 --- a/app/views/speeches/index.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

<%= t '.title' -%>

- diff --git a/app/views/speeches/list.html.erb b/app/views/speeches/list.html.erb deleted file mode 100644 index db466523..00000000 --- a/app/views/speeches/list.html.erb +++ /dev/null @@ -1,33 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - - - - <% @speeches.each do |speech| %> - - - - - - - - - - - - - - <% end %> -
<%= t_m 'Speech.id' -%><%= t_m 'Speech.speech_balloon_id' -%><%= t_m 'Speech.content' -%><%= t_m 'Speech.x' -%><%= t_m 'Speech.y' -%><%= t_m 'Speech.width' -%><%= t_m 'Speech.height' -%><%= t_m 'Speech.quotes' -%><%= t_m 'Speech.settings' -%><%= t_m 'Speech.created_at' -%><%= t_m 'Speech.updated_at' -%>
<%= link_to speech.id, browse_speech_path(speech) %><%= link_to speech.speech_balloon_id, browse_speech_balloon_path(speech.speech_balloon) %><%= h(truncate(speech.content, :length => 20)) %><%= speech.x %><%= speech.y %><%= speech.width %><%= speech.height %><%= h speech.quotes %><%= h(truncate(speech.settings, :length => 12)) %><%= l speech.created_at %><%= l speech.updated_at %>
diff --git a/app/views/stories/_list_item.html.erb b/app/views/stories/_list_item.html.erb deleted file mode 100644 index 4e9e7f49..00000000 --- a/app/views/stories/_list_item.html.erb +++ /dev/null @@ -1,23 +0,0 @@ - - - <%= link_to comic_icon(:object => story.comic, :size => 25), comic_path(story.comic) %> - - - <%= link_to h(story.comic.title), comic_path(story.comic) %> - - - <%= link_to author_icon(:object => story.comic.author, :size => 17), author_path(story.comic.author) %> - - - <%= link_to story_icon(:object => story, :size => 25), story_path(story) %> - - - <%= link_to h(story.title), play_story_path(story) %> - - - No.<%= story.t %> - - - <%= l story.updated_at %> - - diff --git a/app/views/stories/browse.html.erb b/app/views/stories/browse.html.erb deleted file mode 100644 index c9a07a2c..00000000 --- a/app/views/stories/browse.html.erb +++ /dev/null @@ -1,38 +0,0 @@ -

<%= notice %>

- -

- comic_id: - <%= @story.comic_id %> -

- -

- title - <%= link_to h(@story.title), story_path(@story) %> -

- -

- description - <%= h(@story.description) %> -

- -

- visible - <%= @story.visible %> -

- -

- t: - <%= @story.t %> -

- -

- author_id: - <%= @story.author_id %> -

- -

- updated_at: - <%= @story.updated_at %> -

- -<%= link_to 'Back', :action => :list %> diff --git a/app/views/stories/edit.js.erb b/app/views/stories/edit.js.erb deleted file mode 100644 index 29c687f7..00000000 --- a/app/views/stories/edit.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#story-update-<%= @story.id -%>").html("<%= escape_javascript(render('editform')) -%>"); diff --git a/app/views/stories/index.html.erb b/app/views/stories/index.html.erb deleted file mode 100644 index 7b61ab84..00000000 --- a/app/views/stories/index.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -

<%= t '.title' -%>

- - <% @stories.each do |story| %> - <%= render 'list_item', :story => story, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('stories.new.title'), new_story_path %> diff --git a/app/views/stories/list.html.erb b/app/views/stories/list.html.erb deleted file mode 100644 index 99d5442c..00000000 --- a/app/views/stories/list.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

Listing Story

- - - - - - - - - - - - - -<% @stories.each do |story| %> - - - - - - - - - - -<% end %> -
idcomic_idtitletauthor_idcreated_atupdated_at
<%= link_to story.id, :action => :browse, :id => story.id %><%= story.comic_id %><%= h(truncate(h(story.title), :length => 10)) %><%= story.t %><%= link_to story.author_id, :controller => '/authors', :action => :browse, :id => story.author_id %><%= story.created_at %><%= story.updated_at %> -
- diff --git a/app/views/story_sheets/_list_item.html.erb b/app/views/story_sheets/_list_item.html.erb deleted file mode 100644 index 8c5f8373..00000000 --- a/app/views/story_sheets/_list_item.html.erb +++ /dev/null @@ -1,25 +0,0 @@ - - - <%= link_to story_icon(:object => story_sheet.story, :size => 25), story_path(story_sheet.story) %> - - - <%= link_to h(story_sheet.story.title), play_story_path(story_sheet.story) %> - - - <%= link_to story_sheet_icon(:object => story_sheet, :size => 25), story_sheet_path(story_sheet) %> - - - <%= link_to author_icon(:object => story_sheet.author, :size => 17), author_path(story_sheet.author) %> - - - No.<%= story_sheet.t %> - - - <%= l story_sheet.updated_at %> - - - <% if story_sheet.sheet %> - <%= h story_sheet.sheet.caption %> - <% end %> - - diff --git a/app/views/story_sheets/browse.html.erb b/app/views/story_sheets/browse.html.erb deleted file mode 100644 index 67725793..00000000 --- a/app/views/story_sheets/browse.html.erb +++ /dev/null @@ -1,28 +0,0 @@ -

<%= notice %>

- -

- sheet_id: - <%= @sheet_panel.sheet_id %> -

- -

- panel_id: - <%= @sheet_panel.panel_id %> -

- -

- t: - <%= @sheet_panel.t %> -

- -

- author_id: - <%= @sheet_panel.author_id %> -

- -

- updated_at: - <%= @sheet_panel.updated_at %> -

- -<%= link_to 'Back', :action => :list %> diff --git a/app/views/story_sheets/edit.js.erb b/app/views/story_sheets/edit.js.erb deleted file mode 100644 index d7bfe9fe..00000000 --- a/app/views/story_sheets/edit.js.erb +++ /dev/null @@ -1 +0,0 @@ -$("#sheet_panel-update-<%= @sheet_panel.id -%>").html("<%= escape_javascript(render('editform')) -%>"); diff --git a/app/views/story_sheets/index.html.erb b/app/views/story_sheets/index.html.erb deleted file mode 100644 index 23065cd5..00000000 --- a/app/views/story_sheets/index.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -

<%= t '.title' -%>

- - <% @story_sheets.each do |story_sheet| %> - <%= render 'list_item', :story_sheet => story_sheet, :author => @author %> - <% end %> -
-<%= paginate(@paginate) %> -<%= link_to t('story_sheets.new.title'), new_story_sheet_path %> diff --git a/app/views/story_sheets/list.html.erb b/app/views/story_sheets/list.html.erb deleted file mode 100644 index 7790abcb..00000000 --- a/app/views/story_sheets/list.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

Listing SheetPanel

- - - - - - - - - - - - - -<% @sheet_panels.each do |sheet_panel| %> - - - - - - - - - - -<% end %> -
idsheet_idpanel_idtauthor_idcreated_atupdated_at
<%= link_to sheet_panel.id, :action => :browse, :id => sheet_panel.id %><%= sheet_panel.sheet_id %><%= sheet_panel.panel_id %><%= sheet_panel.t %><%= link_to sheet_panel.author_id, :controller => '/authors', :action => :browse, :id => sheet_panel.author_id %><%= sheet_panel.created_at %><%= sheet_panel.updated_at %> -
- diff --git a/app/views/system/index.html.erb b/app/views/system/index.html.erb index a61db68d..6be92245 100644 --- a/app/views/system/index.html.erb +++ b/app/views/system/index.html.erb @@ -20,4 +20,7 @@
システム画像の管理
+
+ <%= link_to 'reload_manifest', :action => :reload_manifest %> +
<%= text_area_tag "json", '', :id => 'pettanr-configurations' %> diff --git a/app/views/system_pictures/browse.html.erb b/app/views/system_pictures/browse.html.erb deleted file mode 100644 index 509a9d46..00000000 --- a/app/views/system_pictures/browse.html.erb +++ /dev/null @@ -1,45 +0,0 @@ -

<%= t '.title' -%>

-

<%= notice %>

- -<%= link_to tag(:img, @system_picture.opt_img_tag), @system_picture.url %> -

- <%= t_m 'SystemPicture.id' -%>: - <%= @system_picture.id %> -

- -

- <%= t_m 'SystemPicture.ext' -%>: - <%= @system_picture.ext %> -

- -

- <%= t_m 'SystemPicture.width' -%>: - <%= @system_picture.width %> -

- -

- <%= t_m 'SystemPicture.height' -%>: - <%= @system_picture.height %> -

- -

- <%= t_m 'SystemPicture.filesize' -%>: - <%= @system_picture.filesize %> -

- -

- <%= t_m 'SystemPicture.md5' -%>: - <%= @system_picture.md5 %> -

- -

- <%= t_m 'SystemPicture.created_at' -%>: - <%= @system_picture.created_at %> -

- -

- <%= t_m 'SystemPicture.updated_at' -%>: - <%= @system_picture.updated_at %> -

- -<%= link_to t('link.back'), :action => :list %> diff --git a/app/views/system_pictures/index.html.erb b/app/views/system_pictures/index.html.erb deleted file mode 100644 index 7cf491d3..00000000 --- a/app/views/system_pictures/index.html.erb +++ /dev/null @@ -1,19 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - -<% @system_pictures.each do |system_picture| %> - - - - - - -<% end %> -
<%= t_m 'SystemPicture.ext' -%><%= t_m 'SystemPicture.width' -%>x<%= t_m 'SystemPicture.height' -%><%= t_m 'SystemPicture.filesize' -%>
<%= link_to tag(:img, system_picture.tmb_opt_img_tag), system_picture.url %>(<%= link_to system_picture.id, system_picture_path(system_picture) %>)<%= h system_picture.ext %><%= system_picture.width %>x<%= system_picture.height %><%= system_picture.filesize %>
diff --git a/app/views/system_pictures/list.html.erb b/app/views/system_pictures/list.html.erb deleted file mode 100644 index ce983f66..00000000 --- a/app/views/system_pictures/list.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

<%= t '.title' -%>

- - - - - - - - - - - - - - -<% @system_pictures.each do |system_picture| %> - - - - - - - - - - - -<% end %> -
<%= t_m 'SystemPicture.id' -%><%= t_m 'SystemPicture.ext' -%><%= t_m 'SystemPicture.width' -%><%= t_m 'SystemPicture.height' -%><%= t_m 'SystemPicture.filesize' -%><%= t_m 'SystemPicture.md5' -%><%= t_m 'SystemPicture.created_at' -%><%= t_m 'SystemPicture.updated_at' -%>
<%= link_to tag(:img, system_picture.tmb_opt_img_tag), system_picture.url %><%= link_to system_picture.id, browse_system_picture_path(system_picture) %><%= h system_picture.ext %><%= system_picture.width %><%= system_picture.height %><%= system_picture.filesize %><%= h system_picture.md5 %><%= l system_picture.created_at %><%= l system_picture.updated_at %>
diff --git a/config/application.rb b/config/application.rb index dee52ea7..c31348bd 100644 --- a/config/application.rb +++ b/config/application.rb @@ -56,43 +56,9 @@ config.assets.initialize_on_precompile = false config.assets.version = '1.0' config.autoload_paths += %W(#{config.root}/lib/validators) -=begin - - def self.licenses=(ary) - @@licenses = ary - end - - def self.licenses - @@licenses || {} - end - - def self.speech_balloons=(ary) - @@speech_balloons = ary - end - - def self.speech_balloons - @@speech_balloons || {} - end - - def self.writing_formats=(ary) - @@writing_formats = ary - end - - def self.writing_formats - @@writing_formats || {} - end - - def self.elements=(ary) - @@elements = ary - end - - def self.elements - @@elements || {} - end -=end def self.manifest=(arg) - @@manifest = Pettanr::Manifest.new arg + @@manifest = arg end def self.manifest @@ -106,13 +72,7 @@ config.assets.initialize_on_precompile = false end -=begin -Pettanr::Application.licenses = YAML.load(open(Rails.root + 'config/license.yml').read) -Pettanr::Application.speech_balloons = YAML.load(open(Rails.root + 'config/speech_balloon.yml').read) -Pettanr::Application.writing_formats = YAML.load(open(Rails.root + 'config/writing_format.yml').read) -Pettanr::Application.elements = YAML.load(open(Rails.root + 'config/element.yml').read) -=end -Pettanr::Application.manifest = JSON.parse(open(Rails.root + 'public/manifest.json').read) +Pettanr::Application.manifest = Pettanr::Manifest.new JSON.parse(open(Rails.root + 'public/manifest.json').read) MagicNumber = Pettanr::Application.manifest.magic_numbers MagicNumber.merge! Pettanr::Application.manifest.select_items MagicNumber['test_layout'] = if File.exist? Rails.root + 'config/test_layout' diff --git a/config/magic_number.yml b/config/magic_number.yml deleted file mode 100644 index 418e7c33..00000000 --- a/config/magic_number.yml +++ /dev/null @@ -1,57 +0,0 @@ - run_mode: 1 - - thumbnail_width: 64 - thumbnail_height: 64 - - provider_status_status_items: [['select_items.provider_status.status.waiting', 0], ['select_items.provider_status.status.receiving', 1]] - demander_status_status_items: [['select_items.demander_status.status.waiting', 0], ['select_items.demander_status.status.rejected', 1], ['select_items.demander_status.status.requesting', 2], ['select_items.demander_status.status.approved', 3]] - - scroll_visible_items: [ - ['select_items.scroll.visible.private', 0], - ['select_items.scroll.visible.public', 1] - ] - comic_visible_items: [ - ['select_items.comic.visible.private', 0], - ['select_items.comic.visible.public', 1] - ] - story_visible_items: [ - ['select_items.story.visible.private', 0], - ['select_items.story.visible.public', 1] - ] - sheet_visible_items: [ - ['select_items.sheet.visible.private', 0], - ['select_items.sheet.visible.public', 1] - ] - panel_visible_items: [ - ['select_items.panel.visible.private', 0], - ['select_items.panel.visible.public', 1] - ] - ground_picture_repeat_items: [ - ['select_items.ground_pictures.repeat.repeat', 0], - ['select_items.ground_pictures.repeat.repeat-x', 1], - ['select_items.ground_pictures.repeat.repeat-y', 2], - ['select_items.ground_pictures.repeat.no-repeat', 3] - ] - ground_color_orientation_items: [ - ['select_items.ground_color.orientation.horizontal', 0], - ['select_items.ground_color.orientation.vertical', 1] - ] - speech_font_size_items: [ - ['select_items.speeches.font_size.ultra_small', 0.2], - ['select_items.speeches.font_size.very_small', 0.4], - ['select_items.speeches.font_size.small', 0.6], - ['select_items.speeches.font_size.semi_small', 0.8], - ['select_items.speeches.font_size.normal', 1.0], - ['select_items.speeches.font_size.semi_large', 1.5], - ['select_items.speeches.font_size.large', 2.0], - ['select_items.speeches.font_size.very_large', 3.5], - ['select_items.speeches.font_size.ultra_large', 5.0] - ] - speech_text_align_items: [ - ['select_items.speeches.text_align.none', 0], - ['select_items.speeches.text_align.left', 1], - ['select_items.speeches.text_align.right', 2], - ['select_items.speeches.text_align.center', 3] - ] - - provider_sources: ['http://sourceforge.jp/projects/pettanr/wiki/ProviderSource/attach/provider_source.json'] diff --git a/lib/manifest/form.rb b/lib/manifest/form.rb index 787e4589..4dde25d0 100644 --- a/lib/manifest/form.rb +++ b/lib/manifest/form.rb @@ -11,7 +11,7 @@ module Pettanr def tag_options opt = @field.tag_options.merge(@conf['options'] || {}) - @field.element.field_tag_attributes(@field.column, @field.mounted, opt) + @field.element.field_tag_attributes(@field.column, @field.tag_mounted, opt) end def render view @@ -54,7 +54,7 @@ module Pettanr def render view view.select_tag @field.tag_name, - view.options_for_select(view.t_select_items(self.items), @field.tag_value), self.tag_options + view.options_for_select(view.t_select_items(self.items), :selected => @field.tag_value.to_s ), self.tag_options end end @@ -150,6 +150,10 @@ module Pettanr self.element.attributes[self.column] end + def tag_mounted + self.mounted ? 0 : 1 + end + def field @field ||= @@type[@field_conf['type']].new @field_conf, self end @@ -167,14 +171,15 @@ module Pettanr attr :element, :mounted, :attributes, :fields, :model_name def initialize element, operators, mounted, manifest @element = element - @manifest = manifest + @operators = operators @mounted = mounted + @manifest = manifest @base = @manifest.base @model_name = @base || element.model_name base_field_confs = if @base - base_form = Pettanr::Application::manifest.form_managers[@base] + base_form = Pettanr::Application::manifest.form(@base) base_form.fields else {} diff --git a/lib/manifest/manifest.rb b/lib/manifest/manifest.rb index 8ba98cf7..bf0c08d5 100644 --- a/lib/manifest/manifest.rb +++ b/lib/manifest/manifest.rb @@ -153,6 +153,17 @@ module Pettanr def init select_items_loader + select_items_font_size + end + + #oh my ... + #JSON.stringify couldn't print 1.0 + # 1 == 1.0 ? + #change class + def select_items_font_size + (@select_items['magic_number']['speech_font_size_items']).each {|conf| + conf[1] = conf[1].to_f + } end def select_items_loader diff --git a/public/manifest.json b/public/manifest.json index 6efe81e9..157097c2 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -5229,8 +5229,7 @@ } } }, - "CircleSpeechBalloon": "circle_speech_balloon", - "circle_speech_balloon": { + "CircleSpeechBalloon": { "base": "speech_balloon", "fields": {}, "field_names": [ @@ -5266,8 +5265,7 @@ "speech_balloon.settings" ] }, - "PlainSpeechBalloon": "plain_speech_balloon", - "plain_speech_balloon": { + "PlainSpeechBalloon": { "base": "speech_balloon", "fields": { "balloon.r": { @@ -5315,8 +5313,7 @@ "speech_balloon.settings" ] }, - "SquareSpeechBalloon": "square_speech_balloon", - "square_speech_balloon": { + "SquareSpeechBalloon": { "base": "speech_balloon", "fields": { "balloon.r": { -- 2.11.0