OSDN Git Service

t#:
authoryasushiito <yas@pen-chan.jp>
Mon, 23 Dec 2013 10:06:55 +0000 (19:06 +0900)
committeryasushiito <yas@pen-chan.jp>
Mon, 23 Dec 2013 10:06:55 +0000 (19:06 +0900)
129 files changed:
app/assets/javascripts/manifest/work/forms.js.coffee.erb
app/controllers/system_controller.rb
app/views/artists/browse.html.erb [deleted file]
app/views/artists/index.html.erb [deleted file]
app/views/artists/list.html.erb [deleted file]
app/views/artists/resource_pictures.html.erb [deleted file]
app/views/authors/_list_item.html.erb [deleted file]
app/views/authors/browse.html.erb [deleted file]
app/views/authors/comics.html.erb [deleted file]
app/views/authors/edit.js.erb [deleted file]
app/views/authors/ground_colors.html.erb [deleted file]
app/views/authors/ground_pictures.html.erb [deleted file]
app/views/authors/index.html.erb [deleted file]
app/views/authors/list.html.erb [deleted file]
app/views/authors/panel_pictures.html.erb [deleted file]
app/views/authors/panels.html.erb [deleted file]
app/views/authors/scroll_panels.html.erb [deleted file]
app/views/authors/scrolls.html.erb [deleted file]
app/views/authors/sheet_panels.html.erb [deleted file]
app/views/authors/sheets.html.erb [deleted file]
app/views/authors/speech_balloons.html.erb [deleted file]
app/views/authors/stories.html.erb [deleted file]
app/views/authors/story_sheets.html.erb [deleted file]
app/views/balloons/browse.html.erb [deleted file]
app/views/balloons/index.html.erb [deleted file]
app/views/balloons/list.html.erb [deleted file]
app/views/comics/_list_item.html.erb [deleted file]
app/views/comics/browse.html.erb [deleted file]
app/views/comics/edit.js.erb [deleted file]
app/views/comics/index.html.erb [deleted file]
app/views/comics/list.html.erb [deleted file]
app/views/comics/new.js.erb [deleted file]
app/views/comics/show.prof.erb [deleted file]
app/views/ground_colors/_list_item.html.erb [deleted file]
app/views/ground_colors/index.html.erb [deleted file]
app/views/ground_colors/show.html.erb
app/views/ground_pictures/_list_item.html.erb [deleted file]
app/views/ground_pictures/index.html.erb [deleted file]
app/views/home/comics.html.erb [deleted file]
app/views/home/ground_colors.html.erb [deleted file]
app/views/home/ground_pictures.html.erb [deleted file]
app/views/home/panel_pictures.html.erb [deleted file]
app/views/home/panels.html.erb [deleted file]
app/views/home/resource_pictures.html.erb [deleted file]
app/views/home/scroll_panels.html.erb [deleted file]
app/views/home/scrolls.html.erb [deleted file]
app/views/home/sheet_panels.html.erb [deleted file]
app/views/home/sheets.html.erb [deleted file]
app/views/home/speech_balloons.html.erb [deleted file]
app/views/home/stories.html.erb [deleted file]
app/views/home/story_sheets.html.erb [deleted file]
app/views/license_groups/browse.html.erb [deleted file]
app/views/license_groups/index.html.erb [deleted file]
app/views/license_groups/list.html.erb [deleted file]
app/views/licenses/browse.html.erb [deleted file]
app/views/licenses/index.html.erb [deleted file]
app/views/licenses/list.html.erb [deleted file]
app/views/original_pictures/browse.html.erb [deleted file]
app/views/original_pictures/edit.js.erb [deleted file]
app/views/original_pictures/index.html.erb [deleted file]
app/views/original_pictures/list.html.erb [deleted file]
app/views/original_pictures/new.js.erb [deleted file]
app/views/panel_pictures/_list_item.html.erb [deleted file]
app/views/panel_pictures/browse.html.erb [deleted file]
app/views/panel_pictures/index.html.erb [deleted file]
app/views/panel_pictures/list.html.erb [deleted file]
app/views/panels/_form.html.erb
app/views/panels/browse.html.erb [deleted file]
app/views/panels/edit.js.erb [deleted file]
app/views/panels/index.html.erb [deleted file]
app/views/panels/list.html.erb [deleted file]
app/views/panels/new.js.erb [deleted file]
app/views/resource_pictures/_list_item.html.erb [deleted file]
app/views/resource_pictures/browse.html.erb [deleted file]
app/views/resource_pictures/index.html.erb [deleted file]
app/views/resource_pictures/list.html.erb [deleted file]
app/views/resource_pictures/new.js.erb [deleted file]
app/views/scroll_panels/_list_item.html.erb [deleted file]
app/views/scroll_panels/browse.html.erb [deleted file]
app/views/scroll_panels/edit.js.erb [deleted file]
app/views/scroll_panels/index.html.erb [deleted file]
app/views/scroll_panels/list.html.erb [deleted file]
app/views/scrolls/_list_item.html.erb [deleted file]
app/views/scrolls/browse.html.erb [deleted file]
app/views/scrolls/edit.js.erb [deleted file]
app/views/scrolls/index.html.erb [deleted file]
app/views/scrolls/list.html.erb [deleted file]
app/views/scrolls/new.js.erb [deleted file]
app/views/sheet_panels/_list_item.html.erb [deleted file]
app/views/sheet_panels/browse.html.erb [deleted file]
app/views/sheet_panels/edit.js.erb [deleted file]
app/views/sheet_panels/index.html.erb [deleted file]
app/views/sheet_panels/list.html.erb [deleted file]
app/views/sheets/_list_item.html.erb [deleted file]
app/views/sheets/browse.html.erb [deleted file]
app/views/sheets/edit.js.erb [deleted file]
app/views/sheets/index.html.erb [deleted file]
app/views/sheets/list.html.erb [deleted file]
app/views/sheets/new.js.erb [deleted file]
app/views/speech_balloon_templates/browse.html.erb [deleted file]
app/views/speech_balloon_templates/index.html.erb [deleted file]
app/views/speech_balloon_templates/list.html.erb [deleted file]
app/views/speech_balloons/_list_item.html.erb [deleted file]
app/views/speech_balloons/browse.html.erb [deleted file]
app/views/speech_balloons/index.html.erb [deleted file]
app/views/speech_balloons/list.html.erb [deleted file]
app/views/speech_balloons/show.html.erb
app/views/speeches/browse.html.erb [deleted file]
app/views/speeches/index.html.erb [deleted file]
app/views/speeches/list.html.erb [deleted file]
app/views/stories/_list_item.html.erb [deleted file]
app/views/stories/browse.html.erb [deleted file]
app/views/stories/edit.js.erb [deleted file]
app/views/stories/index.html.erb [deleted file]
app/views/stories/list.html.erb [deleted file]
app/views/story_sheets/_list_item.html.erb [deleted file]
app/views/story_sheets/browse.html.erb [deleted file]
app/views/story_sheets/edit.js.erb [deleted file]
app/views/story_sheets/index.html.erb [deleted file]
app/views/story_sheets/list.html.erb [deleted file]
app/views/system/index.html.erb
app/views/system_pictures/browse.html.erb [deleted file]
app/views/system_pictures/index.html.erb [deleted file]
app/views/system_pictures/list.html.erb [deleted file]
config/application.rb
config/magic_number.yml [deleted file]
lib/manifest/form.rb
lib/manifest/manifest.rb
public/manifest.json

index 1ffef84..828dd89 100644 (file)
       },\r
     },\r
   },\r
-  CircleSpeechBalloon: 'circle_speech_balloon',\r
-  circle_speech_balloon: {\r
+  CircleSpeechBalloon: {\r
     base: 'speech_balloon',\r
     fields: {\r
     },\r
       'speech_balloon.settings',\r
     ]\r
   },\r
-  PlainSpeechBalloon: 'plain_speech_balloon',\r
-  plain_speech_balloon: {\r
+  PlainSpeechBalloon: {\r
     base: 'speech_balloon',\r
     fields: {\r
       'balloon.r': {\r
       'speech_balloon.settings',\r
     ]\r
   },\r
-  SquareSpeechBalloon: 'square_speech_balloon',\r
-  square_speech_balloon: {\r
+  SquareSpeechBalloon: {\r
     base: 'speech_balloon',\r
     fields: {\r
       'balloon.r': {\r
index 778c9c9..ed74a00 100644 (file)
@@ -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 (file)
index 17c920e..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b><%= t_m 'Artist.id' -%>:</b>
-  <%= h @ar.id %>
-</p>
-
-<p>
-  <b><%= t_m 'Artist.name' -%>:</b>
-  <%= h @ar.name %>
-</p>
-
-<p>
-  <b><%= t_m 'Artist.author_id' -%>:</b>
-  <% if @ar.author_id %>
-    <%= link_to @ar.author_id, browse_author_path(@ar.author) %>
-  <% end %>
-</p>
-
-<p>
-  <b><%= t_m 'Artist.created_at' -%>:</b>
-  <%= l @ar.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'Artist.updated_at' -%>:</b>
-  <%= l @ar.updated_at %>
-</p>
-
-<%= 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 (file)
index 992d51d..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'Artist.name' -%></th>
-    <th><%= t_m 'Artist.created_at' -%></th>
-    <th><%= t_m 'Artist.updated_at' -%></th>
-  </tr>
-
-  <% @artists.each do |artist| %>
-    <tr>
-      <td><%= link_to h(truncate(artist.name, :length => 12)), artist_path(artist) %></td>
-      <td><%= distance_of_time_in_words_to_now artist.created_at %></td>
-      <td><%= distance_of_time_in_words_to_now artist.updated_at %></td>
-    </tr>
-  <% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/artists/list.html.erb b/app/views/artists/list.html.erb
deleted file mode 100644 (file)
index 124816e..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'Artist.id' -%></th>
-    <th><%= t_m 'Artist.author_id' -%></th>
-    <th><%= t_m 'Artist.name' -%></th>
-    <th><%= t_m 'Artist.author_id' -%></th>
-    <th><%= t_m 'Artist.created_at' -%></th>
-    <th><%= t_m 'Artist.updated_at' -%></th>
-  </tr>
-  
-  <% @artists.each do |artist| %>
-    <tr>
-      <td><%= link_to artist.id, browse_artist_path(artist) %></td>
-      <td><%= h(truncate(artist.name, :length => 12)) %></td>
-      <td>
-        <% if artist.author_id %>
-          <%= link_to artist.author_id, browse_author_path(artist.author) %>
-        <% end %>
-      </td>
-      <td><%= l artist.created_at %></td>
-      <td><%= l artist.updated_at %></td>
-    </tr>
-  <% end %>
-</table>
diff --git a/app/views/artists/resource_pictures.html.erb b/app/views/artists/resource_pictures.html.erb
deleted file mode 100644 (file)
index f3ee070..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th></th>
-    <th></th>
-    <th><%= t_m 'ResourcePicture.artist_id' -%></th>
-    <th><%= t_m 'ResourcePicture.ext' -%></th>
-    <th><%= t_m 'ResourcePicture.width' -%></th>
-    <th><%= t_m 'ResourcePicture.height' -%></th>
-    <th><%= t_m 'ResourcePicture.filesize' -%></th>
-  </tr>
-<% @resource_pictures.each do |resource_picture| %>
-  <tr>
-    <td>
-      <%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture_path(resource_picture) %>
-    </td>
-    <td>
-      <%= render resource_picture.credit_template, :picture => resource_picture %>
-    </td>
-    <td>
-      <%= link_to(h(truncate(resource_picture.artist.name, :length => 8)), artist_path(resource_picture.artist)) %>
-    </td>
-    <td>
-      <%= h resource_picture.ext %>
-    </td>
-    <td>
-      <%= resource_picture.width %>px
-    </td>
-    <td>
-      <%= resource_picture.height %>px
-    </td>
-    <td>
-      <%= resource_picture.filesize %>bytes
-    </td>
-  </tr>
-<% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/authors/_list_item.html.erb b/app/views/authors/_list_item.html.erb
deleted file mode 100644 (file)
index db101bf..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<tr>
-  <td>
-    <%= 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 -%>)
-  </td>
-  <td>
-    <%= distance_of_time_in_words_to_now scroll.updated_at %>
-  </td>
-  <td>
-    <%= 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) %>
-  </td>
-  <td>
-    <% if scroll.own? author %>
-      <%= link_to t('link.edit'), edit_scroll_path(scroll) %>
-      <%= link_to t('link.destroy'), scroll_path(scroll), :method => :delete %>
-    <% end %>
-  </td>
-</tr>
diff --git a/app/views/authors/browse.html.erb b/app/views/authors/browse.html.erb
deleted file mode 100644 (file)
index a197a07..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b><%= t_m 'Author.id' -%>:</b>
-  <%= h @au.id %>
-</p>
-
-<p>
-  <b><%= t_m 'Author.name' -%>:</b>
-  <%= h @au.name %>
-</p>
-
-<p>
-  <b><%= t_m 'Author.created_at' -%>:</b>
-  <%= l @au.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'Author.updated_at' -%>:</b>
-  <%= l @au.updated_at %>
-</p>
-
-<%= 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 (file)
index 0d1c9b3..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @comics.each do |comic| %>
-    <%= render 'comics/list_item', :comic => comic, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index b363b59..0000000
+++ /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 (file)
index d8d16ed..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'GroundColor.id' -%></th>
-    <th><%= t_m 'GroundColor.caption' -%></th>
-    <th><%= t_m 'GroundColor.code' -%></th>
-    <th><%= t_m 'GroundColor.panel_id' -%></th>
-    <th><%= t_m 'GroundColor.z' -%></th>
-    <th><%= t_m 'GroundColor.updated_at' -%></th>
-  </tr>
-
-  <% @ground_colors.each do |ground_color| %>
-    <%= render 'ground_colors/list_item', :ground_color => ground_color, :author => @author %>
-  <% end -%>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/authors/ground_pictures.html.erb b/app/views/authors/ground_pictures.html.erb
deleted file mode 100644 (file)
index 726c337..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'GroundPicture.id' -%></th>
-    <th><%= t_m 'GroundPicture.caption' -%></th>
-    <th><%= t_m 'GroundPicture.picture_id' -%></th>
-    <th><%=   -%></th>
-    <th><%= t_m 'GroundPicture.panel_id' -%></th>
-    <th><%= t_m 'GroundPicture.z' -%></th>
-    <th><%= t_m 'GroundPicture.repeat' -%></th>
-    <th><%= t_m 'GroundPicture.x' -%></th>
-    <th><%= t_m 'GroundPicture.y' -%></th>
-    <th><%= t_m 'GroundPicture.updated_at' -%></th>
-  </tr>
-
-  <% @ground_pictures.each do |gp| %>
-    <%= render 'ground_pictures/list_item', :ground_picture => gp %>
-  <% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/authors/index.html.erb b/app/views/authors/index.html.erb
deleted file mode 100644 (file)
index 71c9482..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'Author.name' -%></th>
-    <th><%= t_m 'Author.created_at' -%></th>
-    <th><%= t_m 'Author.updated_at' -%></th>
-  </tr>
-
-  <% @authors.each do |author| %>
-    <tr>
-      <td><%= link_to h(truncate(author.name, :length => 12)), author_path(author) %></td>
-      <td><%= distance_of_time_in_words_to_now author.created_at %></td>
-      <td><%= distance_of_time_in_words_to_now author.updated_at %></td>
-    </tr>
-  <% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/authors/list.html.erb b/app/views/authors/list.html.erb
deleted file mode 100644 (file)
index b190ff6..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'Author.id' -%></th>
-    <th><%= t_m 'Author.name' -%></th>
-    <th><%= t_m 'Author.created_at' -%></th>
-    <th><%= t_m 'Author.updated_at' -%></th>
-  </tr>
-
-  <% @authors.each do |author| %>
-    <tr>
-      <td><%= link_to author.id, browse_author_path(author) %></td>
-      <td><%= h(truncate(author.name, :length => 12)) %></td>
-      <td><%= l author.created_at %></td>
-      <td><%= l author.updated_at %></td>
-    </tr>
-  <% end %>
-</table>
diff --git a/app/views/authors/panel_pictures.html.erb b/app/views/authors/panel_pictures.html.erb
deleted file mode 100644 (file)
index 884baeb..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-
-<table>
-  <tr>
-    <th><%= t_m 'PanelPicture.id' -%></th>
-    <th><%= t_m 'PanelPicture.caption' -%></th>
-    <th><%= t_m 'PanelPicture.picture_id' -%></th>
-    <th><%=  -%></th>
-    <th><%= t_m 'PanelPicture.panel_id' -%></th>
-    <th><%= t_m 'PanelPicture.link' -%></th>
-    <th><%= t_m 'PanelPicture.z' -%></th>
-    <th><%= t_m 'PanelPicture.updated_at' -%></th>
-  </tr>
-
-  <% @panel_pictures.each do |panel_picture| %>
-    <%= render 'panel_pictures/list_item', :panel_picture => panel_picture %>
-  <% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/authors/panels.html.erb b/app/views/authors/panels.html.erb
deleted file mode 100644 (file)
index d88611c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<% @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 (file)
index 3d75a57..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @scroll_panels.each do |scroll_panel| %>
-    <%= render 'scroll_panels/list_item', :scroll_panel => scroll_panel, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 73db7bf..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @scrolls.each do |scroll| %>
-    <tr>
-      <td>
-        <%= 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 -%>)
-      </td>
-      <td>
-        <%= distance_of_time_in_words_to_now scroll.updated_at %>
-      </td>
-      <td>
-        <%= 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) %>
-      </td>
-      <td>
-        <% if scroll.own? @author %>
-          <%= link_to t('link.edit'), edit_scroll_path(scroll) %>
-          <%= link_to t('link.destroy'), scroll_path(scroll), :method => :delete %>
-        <% end %>
-      </td>
-    </tr>
-  <% end %>
-</table>
-<%= 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 (file)
index ce33010..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @sheet_panels.each do |sheet_panel| %>
-    <%= render 'sheet_panels/list_item', :sheet_panel => sheet_panel, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index fbc5851..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @sheets.each do |sheet| %>
-    <%= render 'sheets/list_item', :sheet => sheet, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index df748bf..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'SpeechBalloon.id' -%></th>
-    <th><%= t_m 'SpeechBalloon.caption' -%></th>
-    <th><%= t_m 'Speech.content' -%></th>
-    <th><%= t_m 'SpeechBalloonTemplate.caption' -%></th>
-    <th><%= t_m 'SpeechBalloon.panel_id' -%></th>
-    <th><%= t_m 'SpeechBalloon.z' -%></th>
-    <th><%= t_m 'SpeechBalloon.updated_at' -%></th>
-  </tr>
-
-  <% @speech_balloons.each do |speech_balloon| %>
-    <%= render 'speech_balloons/list_item', :speech_balloon => speech_balloon %>
-  <% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/authors/stories.html.erb b/app/views/authors/stories.html.erb
deleted file mode 100644 (file)
index a99f490..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @stories.each do |story| %>
-    <%= render 'stories/list_item', :story => story, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 52af722..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @story_sheets.each do |story_sheet| %>
-    <%= render 'story_sheets/list_item', :story_sheet => story_sheet, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index d34d61c..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b><%= t_m 'Balloon.id' -%>:</b>
-  <%= @balloon.id %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.speech_balloon_id' -%>:</b>
-  <%= link_to @balloon.speech_balloon_id, browse_speech_balloon_path(@balloon.speech_balloon) %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.system_picture_id' -%>:</b>
-  <%= link_to tag(:img, @balloon.system_picture.tmb_opt_img_tag), browse_system_picture_path(@balloon.system_picture) %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.x' -%>:</b>
-  <%= @balloon.x %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.y' -%>:</b>
-  <%= @balloon.y %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.width' -%>:</b>
-  <%= @balloon.width %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.height' -%>:</b>
-  <%= @balloon.height %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.r' -%>:</b>
-  <%= @balloon.r %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.caption' -%>:</b>
-  <%= h @balloon.caption %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.settings' -%>:</b>
-  <%= h @balloon.settings %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.created_at' -%>:</b>
-  <%= l @balloon.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'Balloon.updated_at' -%>:</b>
-  <%= l @balloon.updated_at %>
-</p>
-
-<%= 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 (file)
index 52ef612..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
diff --git a/app/views/balloons/list.html.erb b/app/views/balloons/list.html.erb
deleted file mode 100644 (file)
index 826e51f..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'Balloon.id' -%></th>
-    <th><%= t_m 'Balloon.speech_balloon_id' -%></th>
-    <th><%= t_m 'Balloon.system_picture_id' -%></th>
-    <th><%= t_m 'Balloon.x' -%></th>
-    <th><%= t_m 'Balloon.y' -%></th>
-    <th><%= t_m 'Balloon.width' -%></th>
-    <th><%= t_m 'Balloon.height' -%></th>
-    <th><%= t_m 'Balloon.r' -%></th>
-    <th><%= t_m 'Balloon.settings' -%></th>
-    <th><%= t_m 'Balloon.created_at' -%></th>
-    <th><%= t_m 'Balloon.updated_at' -%></th>
-  </tr>
-  
-  <% @balloons.each do |balloon| %>
-    <tr>
-      <td><%= link_to balloon.id, browse_balloon_path(balloon) %></td>
-      <td><%= link_to balloon.speech_balloon_id, browse_speech_balloon_path(balloon.speech_balloon) %></td>
-      <td><%= link_to tag(:img, balloon.system_picture.tmb_opt_img_tag), browse_system_picture_path(balloon.system_picture) %></td>
-      <td><%= balloon.x %></td>
-      <td><%= balloon.y %></td>
-      <td><%= balloon.width %></td>
-      <td><%= balloon.height %></td>
-      <td><%= balloon.r %></td>
-      <td><%= h(truncate(balloon.settings, :length => 12)) %></td>
-      <td><%= l balloon.created_at %></td>
-      <td><%= l balloon.updated_at %></td>
-    </tr>
-  <% end %>
-</table>
diff --git a/app/views/comics/_list_item.html.erb b/app/views/comics/_list_item.html.erb
deleted file mode 100644 (file)
index 73ff51e..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<tr>
-  <td>
-    <%= 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 -%>)
-  </td>
-  <td>
-    <%= distance_of_time_in_words_to_now comic.updated_at %>
-  </td>
-  <td>
-    <%= 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) %>
-  </td>
-  <td>
-    <% if comic.own? author %>
-      <%= link_to t('link.edit'), edit_comic_path(comic) %>
-      <%= link_to t('link.destroy'), comic_path(comic), :method => :delete %>
-    <% end %>
-  </td>
-</tr>
-<tr>
-  <td colspan="4">
-    <%= h(truncate(comic.description, :length => 40)) %>
-  </td>
-</tr>
diff --git a/app/views/comics/browse.html.erb b/app/views/comics/browse.html.erb
deleted file mode 100644 (file)
index c93e622..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p>
-  <b><%= t_m 'Comic.id' -%>:</b>
-  <%= h @comic.id %>
-</p>
-
-<p>
-  <b><%= t_m 'Comic.title' -%>:</b>
-  <%= h @comic.title %>
-</p>
-
-<p>
-  <b><%= t_m 'Comic.visible' -%>:</b>
-  <%= @comic.visible %>
-  <%= t_selected_item('comic_visible_items', @comic.visible) %>
-</p>
-
-<p>
-  <b><%= t_m 'Comic.author_id' -%>:</b>
-  <%= @comic.author_id %>
-  <%= link_to h(@comic.author.name), browse_author_path(@comic.author) %>
-</p>
-
-<p>
-  <b><%= t_m 'Comic.created_at' -%>:</b>
-  <%= l @comic.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'Comic.updated_at' -%>:</b>
-  <%= l @comic.updated_at %>
-</p>
-
-<%= 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 (file)
index ab2a7d2..0000000
+++ /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 (file)
index cef2ab9..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @comics.each do |comic| %>
-    <%= render 'list_item', :comic => comic, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 43fdf7e..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'Comic.id' -%></th>
-    <th><%= t_m 'Comic.title' -%></th>
-    <th><%= t_m 'Comic.visible' -%></th>
-    <th><%= t_m 'Comic.author_id' -%></th>
-    <th><%= t_m 'Comic.created_at' -%></th>
-    <th><%= t_m 'Comic.updated_at' -%></th>
-  </tr>
-
-<% @comics.each do |comic| %>
-  <tr>
-    <td><%= link_to comic.id, browse_comic_path(comic) %></td>
-    <td><%= h(truncate(comic.title, :length => 12)) %></td>
-    <td><%= comic.visible %></td>
-    <td><%= link_to comic.author_id, browse_author_path(comic.author) %></td>
-    <td><%= l comic.created_at %></td>
-    <td><%= l comic.updated_at %></td>
-  </tr>
-<% end %>
-</table>
-
diff --git a/app/views/comics/new.js.erb b/app/views/comics/new.js.erb
deleted file mode 100644 (file)
index ab2a7d2..0000000
+++ /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 (file)
index b38609f..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-<% @page_title = t('.title') + ':' + @comic.title %>
-<h1><%= t('.title') %></h1>
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b><%= t_m 'Comic.title' -%>:</b>
-  <%= link_to h(@comic.title), comic_path(@comic) %>
-</p>
-
-<p>
-  <b><%= t_m 'Comic.description' -%>:</b>
-  <%= h(@comic.description) %>
-</p>
-
-<p>
-  <b><%= t_m 'Comic.visible' -%>:</b>
-  <%= t_selected_item('comic_visible_items', @comic.visible) %>
-</p>
-
-<p>
-  <b><%= t_m 'Comic.author_id' -%>:</b>
-  <%= link_to h(@comic.author.name), author_path(@comic.author) %>
-</p>
-
-<% @comic.stories.each do |story| %>
-  <% if story.visible? @author -%>
-    <div>
-      <%= link_to t('stories.show.t', :t => story.disp_t), story_path(story) %>
-      <%= link_to h(story.title), play_story_path(story) %>
-    </div>
-  <% end %>
-<% end %>
-<p>
-  <b><%= t_m 'Comic.created_at' -%>:</b>
-  <%= l @comic.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'Comic.updated_at' -%>:</b>
-  <%= l @comic.updated_at %>
-</p>
-
-<% if @comic.own? @author -%>
-  <%= link_to t('link.edit'), edit_comic_path(@comic) %>
-  <%= link_to t('link.destroy'), comic_path(@comic), :method => :delete %>
-
-  <h2>
-    <%= t('stories.index.new') %>
-  </h2>
-  <% @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 (file)
index b1d1b71..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<tr>
-  <td>
-    <%= link_to ground_color.id, ground_color_path(ground_color) %>
-  </td>
-  <td>
-    <%= link_to(h(truncate(ground_color.caption, :length => 12)), ground_color_path(ground_color)) %>
-  </td>
-  <td style="color: #<%= format("%06x", ground_color.code ^ 0xffffff) -%>; background-color: #<%= format("%06x", ground_color.code) -%>;">
-    <%= format("%06x", ground_color.code ^ 0xffffff) %>
-  </td>
-  </td>
-  <td>
-    <%= 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) %>
-  </td>
-  <td>
-    <%= ground_color.z %>
-  </td>
-  <td>
-    <%= distance_of_time_in_words_to_now ground_color.updated_at %>
-  </td>
-</tr>
diff --git a/app/views/ground_colors/index.html.erb b/app/views/ground_colors/index.html.erb
deleted file mode 100644 (file)
index 0bbb998..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'GroundColor.id' -%></th>
-    <th><%= t_m 'GroundColor.caption' -%></th>
-    <th><%= t_m 'GroundColor.code' -%></th>
-    <th><%= t_m 'GroundColor.panel_id' -%></th>
-    <th><%= t_m 'GroundColor.z' -%></th>
-    <th><%= t_m 'GroundColor.updated_at' -%></th>
-  </tr>
-
-  <% @ground_colors.each do |gc| %>
-    <%= render 'list_item', :ground_color => gc %>
-  <% end -%>
-</table>
-<%= paginate(@paginate) %>
-<%= link_to t('ground_colors.new.title'), new_ground_color_path %>
index bbd11a0..a2bc17d 100644 (file)
@@ -8,46 +8,6 @@
   <%= h @ground_color.caption %>
 </p>
 
-<p>
-  <b><%= t_m 'GroundColor.orientation' -%>:</b>
-  <%= t_selected_item('ground_color_orientation_items', @ground_color.orientation) %>
-</p>
-
-<p>
-  <b><%= t_m 'GroundColor.xy' -%>:</b>
-  <%= @ground_color.xy %>
-</p>
-
-<p>
-  <b><%= t_m 'GroundColor.wh' -%>:</b>
-  <%= @ground_color.wh %>
-</p>
-
-<p>
-  <b><%= t_m 'GroundColor.z' -%>:</b>
-  <%= @ground_color.z %>
-</p>
-
-<p>
-  <b><%= t_m 'GroundColor.t' -%>:</b>
-  <%= @ground_color.t %>
-</p>
-
-<p>
-  <b><%= t_m 'GroundColor.code' -%>:</b>
-  <%= @ground_color.code %>
-</p>
-
-<p>
-  <b><%= t_m 'GroundColor.created_at' -%>:</b>
-  <%= l @ground_color.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'GroundColor.updated_at' -%>:</b>
-  <%= l @ground_color.updated_at %>
-</p>
-
 <%= 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 (file)
index 891ff87..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<tr>
-  <td>
-    <%= link_to(h(ground_picture.id.to_s), ground_picture_path(ground_picture)) %>
-  </td>
-  <td>
-    <%= link_to(h(truncate(ground_picture.caption, :length => 12)), ground_picture_path(ground_picture)) %>
-  </td>
-  <% if ground_picture.picture.showable? @author %>
-    <td>
-      <%= link_to(tag(:img, ground_picture.picture.tmb_opt_img_tag), ground_picture.picture) -%>
-    </td>
-    <td><%= render ground_picture.picture.credit_template, :picture => ground_picture.picture %></td>
-  <% else %>
-    <td>
-      <%= link_to(tag(:img, ground_picture.picture.tail_tmb_opt_img_tag(asset_path('error.png'))), ground_picture) -%>
-    </td>
-    <td></td>
-  <% end %>
-  <td>
-    <%= 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) %>
-  </td>
-  <td>
-    <%= ground_picture.z %>
-  </td>
-  <td>
-    <%= ground_picture.repeat_text %>
-  </td>
-  <td><%= ground_picture.x %></td>
-  <td><%= ground_picture.y %></td>
-  <td><%= distance_of_time_in_words_to_now ground_picture.updated_at %></td>
-</tr>
diff --git a/app/views/ground_pictures/index.html.erb b/app/views/ground_pictures/index.html.erb
deleted file mode 100644 (file)
index 113187c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'GroundPicture.id' -%></th>
-    <th><%= t_m 'GroundPicture.caption' -%></th>
-    <th><%= t_m 'GroundPicture.picture_id' -%></th>
-    <th><%=   -%></th>
-    <th><%= t_m 'GroundPicture.panel_id' -%></th>
-    <th><%= t_m 'GroundPicture.z' -%></th>
-    <th><%= t_m 'GroundPicture.repeat' -%></th>
-    <th><%= t_m 'GroundPicture.x' -%></th>
-    <th><%= t_m 'GroundPicture.y' -%></th>
-    <th><%= t_m 'GroundPicture.updated_at' -%></th>
-  </tr>
-
-  <% @ground_pictures.each do |gp| %>
-    <%= render 'list_item', :ground_picture => gp %>
-  <% end -%>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/home/comics.html.erb b/app/views/home/comics.html.erb
deleted file mode 100644 (file)
index 9d0287d..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<table>
-  <% @comics.each do |comic| %>
-    <%= render 'comics/list_item', :comic => comic, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 44aadfb..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'GroundColor.id' -%></th>
-    <th><%= t_m 'GroundColor.caption' -%></th>
-    <th><%= t_m 'GroundColor.code' -%></th>
-    <th><%= t_m 'GroundColor.panel_id' -%></th>
-    <th><%= t_m 'GroundColor.z' -%></th>
-    <th><%= t_m 'GroundColor.updated_at' -%></th>
-  </tr>
-
-  <% @ground_colors.each do |gc| %>
-    <%= render 'ground_colors/list_item', :ground_color => gc, :author => @author %>
-  <% end -%>
-</table>
-<%= 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 (file)
index adc460f..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'GroundPicture.id' -%></th>
-    <th><%= t_m 'GroundPicture.caption' -%></th>
-    <th><%= t_m 'GroundPicture.picture_id' -%></th>
-    <th><%=   -%></th>
-    <th><%= t_m 'GroundPicture.panel_id' -%></th>
-    <th><%= t_m 'GroundPicture.z' -%></th>
-    <th><%= t_m 'GroundPicture.repeat' -%></th>
-    <th><%= t_m 'GroundPicture.x' -%></th>
-    <th><%= t_m 'GroundPicture.y' -%></th>
-    <th><%= t_m 'GroundPicture.updated_at' -%></th>
-  </tr>
-
-  <% @ground_pictures.each do |gp| %>
-    <%= render 'ground_pictures/list_item', :ground_picture => gp %>
-  <% end -%>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/home/panel_pictures.html.erb b/app/views/home/panel_pictures.html.erb
deleted file mode 100644 (file)
index 0a704e7..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'PanelPicture.id' -%></th>
-    <th><%= t_m 'PanelPicture.caption' -%></th>
-    <th><%= t_m 'PanelPicture.picture_id' -%></th>
-    <th><%=  -%></th>
-    <th><%= t_m 'PanelPicture.panel_id' -%></th>
-    <th><%= t_m 'PanelPicture.link' -%></th>
-    <th><%= t_m 'PanelPicture.z' -%></th>
-    <th><%= t_m 'PanelPicture.updated_at' -%></th>
-  </tr>
-
-<% @panel_pictures.each do |panel_picture| %>
-  <%= render 'panel_pictures/list_item', :panel_picture => panel_picture %>
-<% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/home/panels.html.erb b/app/views/home/panels.html.erb
deleted file mode 100644 (file)
index 0dbe1ce..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<% @panels.each do |panel| %>
-  <div>
-    <%= render 'panels/standard', :panel => panel, :author => @author %>
-  </div>
-<% 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 (file)
index f3ee070..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th></th>
-    <th></th>
-    <th><%= t_m 'ResourcePicture.artist_id' -%></th>
-    <th><%= t_m 'ResourcePicture.ext' -%></th>
-    <th><%= t_m 'ResourcePicture.width' -%></th>
-    <th><%= t_m 'ResourcePicture.height' -%></th>
-    <th><%= t_m 'ResourcePicture.filesize' -%></th>
-  </tr>
-<% @resource_pictures.each do |resource_picture| %>
-  <tr>
-    <td>
-      <%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture_path(resource_picture) %>
-    </td>
-    <td>
-      <%= render resource_picture.credit_template, :picture => resource_picture %>
-    </td>
-    <td>
-      <%= link_to(h(truncate(resource_picture.artist.name, :length => 8)), artist_path(resource_picture.artist)) %>
-    </td>
-    <td>
-      <%= h resource_picture.ext %>
-    </td>
-    <td>
-      <%= resource_picture.width %>px
-    </td>
-    <td>
-      <%= resource_picture.height %>px
-    </td>
-    <td>
-      <%= resource_picture.filesize %>bytes
-    </td>
-  </tr>
-<% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/home/scroll_panels.html.erb b/app/views/home/scroll_panels.html.erb
deleted file mode 100644 (file)
index 3d75a57..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @scroll_panels.each do |scroll_panel| %>
-    <%= render 'scroll_panels/list_item', :scroll_panel => scroll_panel, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index bba50b7..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<table>
-  <% @scrolls.each do |scroll| %>
-    <%= render 'scrolls/list_item', :scroll => scroll, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index ce33010..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @sheet_panels.each do |sheet_panel| %>
-    <%= render 'sheet_panels/list_item', :sheet_panel => sheet_panel, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 1ccf0d3..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<table>
-  <% @sheets.each do |sheet| %>
-    <%= render 'sheets/list_item', :sheet => sheet, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index df748bf..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'SpeechBalloon.id' -%></th>
-    <th><%= t_m 'SpeechBalloon.caption' -%></th>
-    <th><%= t_m 'Speech.content' -%></th>
-    <th><%= t_m 'SpeechBalloonTemplate.caption' -%></th>
-    <th><%= t_m 'SpeechBalloon.panel_id' -%></th>
-    <th><%= t_m 'SpeechBalloon.z' -%></th>
-    <th><%= t_m 'SpeechBalloon.updated_at' -%></th>
-  </tr>
-
-  <% @speech_balloons.each do |speech_balloon| %>
-    <%= render 'speech_balloons/list_item', :speech_balloon => speech_balloon %>
-  <% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/home/stories.html.erb b/app/views/home/stories.html.erb
deleted file mode 100644 (file)
index a99f490..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @stories.each do |story| %>
-    <%= render 'stories/list_item', :story => story, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 52af722..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @story_sheets.each do |story_sheet| %>
-    <%= render 'story_sheets/list_item', :story_sheet => story_sheet, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 2cad490..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<p>
-  <b><%= t_m 'LicenseGroup.id' -%>:</b>
-  <%= @license_group.id %>
-</p>
-<p>
-  <b><%= t_m 'LicenseGroup.name' -%>:</b>
-  <%= h @license_group.name %>
-</p>
-<p>
-  <b><%= t_m 'LicenseGroup.classname' -%>:</b>
-  <%= h @license_group.classname %>
-</p>
-<p>
-  <b><%= t_m 'LicenseGroup.caption' -%>:</b>
-  <%= h @license_group.caption %>
-</p>
-<p>
-  <b><%= t_m 'LicenseGroup.url' -%>:</b>
-  <%= link_to h(@license_group.url), @license_group.url %>
-</p>
-<p>
-  <b><%= t_m 'LicenseGroup.created_at' -%>:</b>
-  <%= l @license_group.created_at %>
-</p>
-<p>
-  <b><%= t_m 'LicenseGroup.updated_at' -%>:</b>
-  <%= l @license_group.updated_at %>
-</p>
-
-<%= 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 (file)
index 4e30c32..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<table>
-  <tr>
-    <th><%= t_m 'LicenseGroup.caption' -%></th>
-  </tr>
-  <% @license_groups.each do |lg| %>
-    <tr>
-      <td>
-        <%= link_to t('link.marker'), license_group_path(lg) %>
-        <%= link_to h(lg.caption), lg.url %>
-      </td>
-    </tr>
-  <% end -%>
-</table>
diff --git a/app/views/license_groups/list.html.erb b/app/views/license_groups/list.html.erb
deleted file mode 100644 (file)
index ef767bd..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'LicenseGroup.id' -%></th>
-    <th><%= t_m 'LicenseGroup.name' -%></th>
-    <th><%= t_m 'LicenseGroup.classname' -%></th>
-    <th><%= t_m 'LicenseGroup.caption' -%></th>
-    <th><%= t_m 'LicenseGroup.url' -%></th>
-    <th><%= t_m 'LicenseGroup.created_at' -%></th>
-    <th><%= t_m 'LicenseGroup.updated_at' -%></th>
-  </tr>
-  <% @license_groups.each do |lg| %>
-    <tr>
-      <td><%= link_to lg.id, :action => :browse, :id => lg.id %></td>
-      <td>
-        <%= h(truncate(lg.name, :length => 16)) %>
-      </td>
-      <td>
-        <%= h(truncate(lg.classname, :length => 16)) %>
-      </td>
-      <td>
-        <%= h(truncate(lg.caption, :length => 16)) %>
-      </td>
-      <td>
-        <%= h(truncate(lg.url, :length => 16)) %>
-      </td>
-      <td>
-        <%= l lg.created_at %>
-      </td>
-      <td>
-        <%= l lg.updated_at %>
-      </td>
-    </tr>
-  <% end -%>
-</table>
diff --git a/app/views/licenses/browse.html.erb b/app/views/licenses/browse.html.erb
deleted file mode 100644 (file)
index b9282c3..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<p>
-  <b><%= t_m 'License.id' -%>:</b>
-  <%= @license.id %>
-</p>
-<p>
-  <b><%= t_m 'License.license_group_id' -%>:</b>
-  <%= link_to @license.license_group_id, :controller => 'license_groups', :action => :browse, :id => @license.license_group_id %>
-</p>
-<p>
-  <b><%= t_m 'License.name' -%>:</b>
-  <%= h @license.name %>
-</p>
-<p>
-  <b><%= t_m 'License.caption' -%>:</b>
-  <%= h @license.caption %>
-</p>
-<p>
-  <b><%= t_m 'License.url' -%>:</b>
-  <%= link_to h(@license.url), @license.url %>
-</p>
-<p>
-  <b><%= t_m 'License.system_picture_id' -%>:</b>
-  <%= link_to @license.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => @license.system_picture_id %>
-</p>
-<p>
-  <b><%= t_m 'License.credit_pictures' -%>:</b>
-  <%= @license.credit_pictures %>
-</p>
-  <b><%= t_m 'License.settings' -%>:</b>
-  <%= h @license.settings %>
-</p>
-<p>
-  <b><%= t_m 'License.created_at' -%>:</b>
-  <%= l @license.created_at %>
-</p>
-<p>
-  <b><%= t_m 'License.updated_at' -%>:</b>
-  <%= l @license.updated_at %>
-</p>
-
-<%= 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 (file)
index 1347bfa..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<table>
-  <tr>
-    <th><%= t_m 'License.caption' -%></th>
-    <th><%= t_m 'License.license_group_id' -%></th>
-  </tr>
-  <% @licenses.each do |license| %>
-    <tr>
-      <td>
-        <%= link_to t('link.marker'), license_path(license) %>
-        <%= link_to h(license.caption), license.url %>
-      </td>
-      <td>
-        <%= link_to h(license.license_group.caption), license_group_path(license.license_group) %>
-      </td>
-    </tr>
-  <% end -%>
-</table>
diff --git a/app/views/licenses/list.html.erb b/app/views/licenses/list.html.erb
deleted file mode 100644 (file)
index 7aa8811..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'License.id' -%></th>
-    <th><%= t_m 'License.license_group_id' -%></th>
-    <th><%= t_m 'License.name' -%></th>
-    <th><%= t_m 'License.caption' -%></th>
-    <th><%= t_m 'License.url' -%></th>
-    <th><%= t_m 'License.system_picture_id' -%></th>
-    <th><%= t_m 'License.credit_pictures' -%></th>
-    <th><%= t_m 'License.settings' -%></th>
-    <th><%= t_m 'License.created_at' -%></th>
-    <th><%= t_m 'License.updated_at' -%></th>
-  </tr>
-
-  <% @licenses.each do |license| %>
-    <tr>
-      <td><%= link_to license.id, :action => :browse, :id => license.id %></td>
-      <td><%= link_to license.license_group_id, :controller => 'license_groups', :action => :browse, :id => license.license_group_id %></td>
-      <td>
-        <%= h(truncate(license.name, :length => 16)) %>
-      </td>
-      <td>
-        <%= h(truncate(license.caption, :length => 16)) %>
-      </td>
-      <td>
-        <%= h(truncate(license.url, :length => 16)) %>
-      </td>
-      <td><%= link_to license.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => license.system_picture_id %></td>
-      <td>
-        <%= h(truncate(license.credit_pictures, :length => 6)) %>
-      </td>
-      <td>
-        <%= h(truncate(license.settings, :length => 6)) %>
-      </td>
-      <td>
-        <%= l license.created_at %>
-      </td>
-      <td>
-        <%= l license.updated_at %>
-      </td>
-    </tr>
-  <% end -%>
-</table>
diff --git a/app/views/original_pictures/browse.html.erb b/app/views/original_pictures/browse.html.erb
deleted file mode 100644 (file)
index e1cf771..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<%= link_to tag(:img, @original_picture.opt_img_tag), @original_picture.url %>
-
-<p><p>
-  <b><%= t_m 'OriginalPicture.id' -%>:</b>
-  <%= @original_picture.id %>
-</p>
-
-<p>
-  <b><%= t_m 'OriginalPicture.ext' -%>:</b>
-  <%= @original_picture.ext %>
-</p>
-
-<p>
-  <b><%= t_m 'OriginalPicture.width' -%>:</b>
-  <%= @original_picture.width %>
-</p>
-
-<p>
-  <b><%= t_m 'OriginalPicture.height' -%>:</b>
-  <%= @original_picture.height %>
-</p>
-
-<p>
-  <b><%= t_m 'OriginalPicture.filesize' -%>:</b>
-  <%= @original_picture.filesize %>
-</p>
-
-<p>
-  <b><%= t_m 'OriginalPicture.md5' -%>:</b>
-  <%= @original_picture.md5 %>
-</p>
-
-<p>
-  <b><%= t_m 'OriginalPicture.artist_id' -%>:</b>
-  <%= link_to h(@original_picture.artist.name), browse_artist_path(@original_picture.artist) %>
-</p>
-
-<p>
-  <b><%= t_m 'OriginalPicture.published_at' -%>:</b>
-  <% if @original_picture.published_at %>
-    <%= l @original_picture.published_at %>
-  <% end %>
-</p>
-
-<p>
-  <b><%= t_m 'OriginalPicture.stopped_at' -%>:</b>
-  <% if @original_picture.stopped_at %>
-    <%= l @original_picture.stopped_at %>
-  <% end %>
-</p>
-
-<p>
-  <b><%= t_m 'OriginalPicture.created_at' -%>:</b>
-  <%= l @original_picture.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'OriginalPicture.updated_at' -%>:</b>
-  <%= l @original_picture.updated_at %>
-</p>
-
-<%= 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 (file)
index 13e2352..0000000
+++ /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 (file)
index 9d809ad..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<%= render 'form' %>
-<table>
-  <tr>
-    <th><%= t_m 'OriginalPicture' -%></th>
-    <th><%= t 'original_pictures.index.history' -%></th>
-    <th><%= t 'original_pictures.index.status' -%></th>
-    <th><%= t_m 'ResourcePicture' -%></th>
-    <th><%=  -%></th>
-    <th><%=  -%></th>
-  </tr>
-  <% @original_pictures.each do |original_picture| %>
-    <tr>
-      <td>
-        <%= link_to tag(:img, original_picture.tmb_opt_img_tag), original_picture %>
-      </td>
-      <td>
-        <% if original_picture.pictures.empty? %>
-          -
-        <% else %>
-          <%= link_to original_picture.history.first.revision, history_original_picture_path(original_picture) %>
-        <% end %>
-      </td>
-      <td>
-        <% 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 %>
-      </td>
-      <td>
-        <% if original_picture.resource_picture %>
-          <%= link_to tag(:img, original_picture.resource_picture.tmb_opt_img_tag), original_picture.resource_picture %>
-        <% else %>
-        <% end %>
-      </td>
-      <td>
-        <% if original_picture.resource_picture %>
-          <%= link_to t('original_pictures.index.stop'), original_picture.resource_picture, confirm: 'Are you sure?', method: :delete %>
-        <% else %>
-        <% end %>
-      </td>
-      <td>
-        <%= link_to t('original_pictures.index.destroy'), original_picture, confirm: 'Are you sure?', method: :delete %>
-      </td>
-    </tr>
-  <% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/original_pictures/list.html.erb b/app/views/original_pictures/list.html.erb
deleted file mode 100644 (file)
index 4af41b5..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th></th>
-    <th><%= t_m 'OriginalPicture.id' -%></th>
-    <th><%= t_m 'OriginalPicture.ext' -%></th>
-    <th><%= t_m 'OriginalPicture.width' -%></th>
-    <th><%= t_m 'OriginalPicture.height' -%></th>
-    <th><%= t_m 'OriginalPicture.filesize' -%></th>
-    <th><%= t_m 'OriginalPicture.md5' -%></th>
-    <th><%= t_m 'OriginalPicture.artist_id' -%></th>
-    <th><%= t_m 'OriginalPicture.published_at' -%></th>
-    <th><%= t_m 'OriginalPicture.stopped_at' -%></th>
-    <th><%= t_m 'OriginalPicture.created_at' -%></th>
-    <th><%= t_m 'OriginalPicture.updated_at' -%></th>
-  </tr>
-
-  <% @original_pictures.each do |original_picture| %>
-    <tr>
-      <td><%= link_to tag(:img, original_picture.tmb_opt_img_tag), original_picture.url %></td>
-      <td><%= link_to original_picture.id,  browse_original_picture_path(original_picture) %></td>
-      <td><%= h original_picture.ext %></td>
-      <td><%= original_picture.width %></td>
-      <td><%= original_picture.height %></td>
-      <td><%= original_picture.filesize %></td>
-      <td><%= h(truncate(original_picture.md5, :length => 8)) %></td>
-      <td><%= link_to original_picture.artist_id, browse_artist_path(original_picture.artist) %></td>
-      <td>
-        <% if original_picture.published_at %>
-          <%= distance_of_time_in_words_to_now original_picture.published_at %>
-        <% end %>
-      </td>
-      <td>
-        <% if original_picture.stopped_at %>
-          <%= distance_of_time_in_words_to_now original_picture.stopped_at %>
-        <% end %>
-      </td>
-      <td><%= l original_picture.created_at %></td>
-      <td><%= l original_picture.updated_at %></td>
-    </tr>
-  <% end %>
-</table>
diff --git a/app/views/original_pictures/new.js.erb b/app/views/original_pictures/new.js.erb
deleted file mode 100644 (file)
index 13e2352..0000000
+++ /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 (file)
index 7201de2..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<tr>
-  <td>
-    <%= link_to(h(panel_picture.id.to_s), panel_picture_path(panel_picture)) %>
-  </td>
-  <td>
-    <%= link_to(h(truncate(panel_picture.caption, :length => 12)), panel_picture_path(panel_picture)) %>
-  </td>
-  <% if panel_picture.picture.showable? @author %>
-    <td>
-      <%= link_to(tag(:img, panel_picture.tmb_opt_img_tag), panel_picture) %>
-    </td>
-    <td><%= render panel_picture.picture.credit_template, :picture => panel_picture.picture %></td>
-  <% else %>
-    <td>
-      <%= link_to(tag(:img, panel_picture.picture.tail_tmb_opt_img_tag(asset_path('error.png'))), panel_picture) -%>
-    </td>
-    <td></td>
-  <% end %>
-  <td>
-    <%= 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) %>
-  </td>
-  <td>
-    <%= link_to h(truncate(panel_picture.link, :length => 12)), panel_picture.link %>
-  </td>
-  <td>
-    <%= panel_picture.z %>
-  </td>
-  <td>
-    <%= distance_of_time_in_words_to_now panel_picture.updated_at %>
-  </td>
-</tr>
diff --git a/app/views/panel_pictures/browse.html.erb b/app/views/panel_pictures/browse.html.erb
deleted file mode 100644 (file)
index bab1d7f..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b><%= t_m 'PanelPicture.id' -%>:</b>
-  <%= @panel_picture.id %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.panel_id' -%>:</b>
-  <%= link_to @panel_picture.panel_id, browse_panel_path(@panel_picture.panel) %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.picture_id' -%>:</b>
-  <%= link_to tag(:img, @panel_picture.opt_img_tag), browse_picture_path(@panel_picture.picture) %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.link' -%>:</b>
-  <%= link_to h(@panel_picture.link), @panel_picture.link %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.x' -%>:</b>
-  <%= @panel_picture.x %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.y' -%>:</b>
-  <%= @panel_picture.y %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.z' -%>:</b>
-  <%= @panel_picture.z %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.t' -%>:</b>
-  <%= @panel_picture.t %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.width' -%>:</b>
-  <%= @panel_picture.width %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.height' -%>:</b>
-  <%= @panel_picture.height %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.caption' -%>:</b>
-  <%= h @panel_picture.caption %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.created_at' -%>:</b>
-  <%= l @panel_picture.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'PanelPicture.updated_at' -%>:</b>
-  <%= l @panel_picture.updated_at %>
-</p>
-
-<%= 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 (file)
index aa5ecb1..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'PanelPicture.id' -%></th>
-    <th><%= t_m 'PanelPicture.caption' -%></th>
-    <th><%= t_m 'PanelPicture.picture_id' -%></th>
-    <th><%=  -%></th>
-    <th><%= t_m 'PanelPicture.panel_id' -%></th>
-    <th><%= t_m 'PanelPicture.link' -%></th>
-    <th><%= t_m 'PanelPicture.z' -%></th>
-    <th><%= t_m 'PanelPicture.updated_at' -%></th>
-  </tr>
-
-  <% @panel_pictures.each do |panel_picture| %>
-    <%= render 'list_item', :panel_picture => panel_picture %>
-  <% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/panel_pictures/list.html.erb b/app/views/panel_pictures/list.html.erb
deleted file mode 100644 (file)
index e413bf6..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'PanelPicture.id' -%></th>
-    <th><%= t_m 'PanelPicture.panel_id' -%></th>
-    <th><%= t_m 'PanelPicture.picture_id' -%></th>
-    <th><%= t_m 'PanelPicture.link' -%></th>
-    <th><%= t_m 'PanelPicture.x' -%></th>
-    <th><%= t_m 'PanelPicture.y' -%></th>
-    <th><%= t_m 'PanelPicture.z' -%></th>
-    <th><%= t_m 'PanelPicture.t' -%></th>
-    <th><%= t_m 'PanelPicture.width' -%></th>
-    <th><%= t_m 'PanelPicture.height' -%></th>
-    <th><%= t_m 'PanelPicture.caption' -%></th>
-    <th><%= t_m 'PanelPicture.created_at' -%></th>
-    <th><%= t_m 'PanelPicture.updated_at' -%></th>
-  </tr>
-  <% @panel_pictures.each do |panel_picture| %>
-    <tr>
-      <td><%= link_to panel_picture.id, browse_panel_picture_path(panel_picture) %></td>
-      <td><%= link_to panel_picture.panel_id, browse_panel_path(panel_picture.panel) %></td>
-      <td><%= link_to tag(:img, panel_picture.picture.tmb_opt_img_tag), browse_picture_path(panel_picture.picture) %></td>
-      <td><%= link_to h(truncate(panel_picture.link, :length => 12)), panel_picture.link %></td>
-      <td><%= panel_picture.x %></td>
-      <td><%= panel_picture.y %></td>
-      <td><%= panel_picture.z %></td>
-      <td><%= panel_picture.t %></td>
-      <td><%= panel_picture.width %></td>
-      <td><%= panel_picture.height %></td>
-      <td><%= h(truncate(panel_picture.caption, :length => 12)) %></td>
-      <td><%= l panel_picture.created_at %></td>
-      <td><%= l panel_picture.updated_at %></td>
-    </tr>
-  <% end %>
-</table>
index a7433cb..63a1b4e 100644 (file)
@@ -53,7 +53,7 @@
           <%= render 'element_tab', :elm => elm %>
         <% end %>
       </ul>
-      <% mounted = 0 %>
+      <% mounted = true %>
       <% @panel.panel_elements.each do |element| %>
         <div <%= raw element.tag_attr(:tab_panel) -%>>
           <div id="elements-tabs-<%= element.t -%>">
         <% end %>
       </ul>
       <% i = 0 %>
+      <% mounted = false %>
       <% Panel.each_element_classes do |k| %>
         <div>
           <div id="new-element-tabs-<%= i -%>">
                 <% 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 %>
           </div>
         </div>
diff --git a/app/views/panels/browse.html.erb b/app/views/panels/browse.html.erb
deleted file mode 100644 (file)
index cad6acf..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-  <% if @panel.errors.any? %>
-    <div id="error_explanation">
-      <h2><%= pluralize(@panel.errors.count, "error") %> prohibited this panel from being saved:</h2>
-
-      <ul>
-      <% @panel.errors.full_messages.each do |msg| %>
-        <li><%= msg %></li>
-      <% end %>
-      </ul>
-    </div>
-  <% end %>
-<p id="notice"><%= notice %></p>
-<%= 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 (file)
index 1b751ea..0000000
+++ /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 (file)
index 46cf3f3..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<% @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 (file)
index f67cd81..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th>id</th>
-    <th>Width</th>
-    <th>Height</th>
-    <th>Border</th>
-    <th>x</th>
-    <th>y</th>
-    <th>z</th>
-    <th>publish</th>
-    <th>author_id</th>
-    <th>created_at</th>
-    <th>updated_at</th>
-    <th></th>
-  </tr>
-
-<% @panels.each do |panel| %>
-  <tr>
-    <td><%= link_to panel.id, :action => :browse, :id => panel.id %></td>
-    <td><%= panel.width %></td>
-    <td><%= panel.height %></td>
-    <td><%= panel.border %></td>
-    <td><%= panel.x %></td>
-    <td><%= panel.y %></td>
-    <td><%= panel.z %></td>
-    <td><%= panel.publish %></td>
-    <td><%= link_to panel.author_id, :controller => '/authors', :action => :browse, :id => panel.author_id %></td>
-    <td><%= panel.created_at %></td>
-    <td><%= panel.updated_at %></td>
-    <td>
-      <%= link_to 'Destroy', panel, confirm: 'Are you sure?', method: :delete %>
-    </td>
-  </tr>
-<% end %>
-</table>
diff --git a/app/views/panels/new.js.erb b/app/views/panels/new.js.erb
deleted file mode 100644 (file)
index 5f653e5..0000000
+++ /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 (file)
index 77239cb..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-  <tr>
-    <td>
-      <%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture_path(resource_picture) %>
-    </td>
-    <td>
-      <%= render resource_picture.credit_template, :picture => resource_picture %>
-    </td>
-    <td>
-      <%= link_to(h(truncate(resource_picture.artist.name, :length => 8)), artist_path(resource_picture.artist)) %>
-    </td>
-    <td>
-      <%= h resource_picture.ext %>
-    </td>
-    <td>
-      <%= resource_picture.width %>px
-    </td>
-    <td>
-      <%= resource_picture.height %>px
-    </td>
-    <td>
-      <%= resource_picture.filesize %>bytes
-    </td>
-  </tr>
diff --git a/app/views/resource_pictures/browse.html.erb b/app/views/resource_pictures/browse.html.erb
deleted file mode 100644 (file)
index 9d4e2fa..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<%= link_to tag(:img, @resource_picture.opt_img_tag), @resource_picture.url %>
-<%= render @resource_picture.credit_template, :picture => @resource_picture %>
-
-<p>
-  <b><%= t_m 'ResourcePicture.id' -%>:</b>
-  <%= @resource_picture.id %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.original_picture_id' -%>:</b>
-  <%= link_to @resource_picture.original_picture_id, browse_original_picture_path(@resource_picture.original_picture) %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.ext' -%>:</b>
-  <%= @resource_picture.ext %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.width' -%>:</b>
-  <%= @resource_picture.width %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.height' -%>:</b>
-  <%= @resource_picture.height %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.filesize' -%>:</b>
-  <%= @resource_picture.filesize %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.md5' -%>:</b>
-  <%= @resource_picture.md5 %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.license_id' -%>:</b>
-  <%= link_to @resource_picture.license_id, browse_license_path(@resource_picture.license) %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.artist_id' -%>:</b>
-  <%= link_to @resource_picture.artist_id, browse_artist_path(@resource_picture.artist) %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.artist_name' -%>:</b>
-  <%= h @resource_picture.artist_name %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.classname' -%>:</b>
-  <%= h @resource_picture.classname %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.credit' -%>:</b>
-  <%= h @resource_picture.credit %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.settings' -%>:</b>
-  <%= h @resource_picture.settings %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.picture_id' -%>:</b>
-  <%= link_to @resource_picture.picture_id, browse_picture_path(@resource_picture.picture) %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.created_at' -%>:</b>
-  <%= l @resource_picture.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'ResourcePicture.updated_at' -%>:</b>
-  <%= l @resource_picture.updated_at %>
-</p>
-
-<%= 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 (file)
index f255489..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<table>
-  <tr>
-    <th></th>
-    <th></th>
-    <th><%= t_m 'ResourcePicture.artist_id' -%></th>
-    <th><%= t_m 'ResourcePicture.ext' -%></th>
-    <th><%= t_m 'ResourcePicture.width' -%></th>
-    <th><%= t_m 'ResourcePicture.height' -%></th>
-    <th><%= t_m 'ResourcePicture.filesize' -%></th>
-  </tr>
-
-  <% @resource_pictures.each do |resource_picture| %>
-    <%= render 'list_item', :resource_picture => resource_picture %>
-  <% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/resource_pictures/list.html.erb b/app/views/resource_pictures/list.html.erb
deleted file mode 100644 (file)
index eac212c..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th></th>
-    <th><%= t_m 'ResourcePicture.id' -%></th>
-    <th><%= t_m 'ResourcePicture.original_picture_id' -%></th>
-    <th><%= t_m 'ResourcePicture.ext' -%></th>
-    <th><%= t_m 'ResourcePicture.width' -%></th>
-    <th><%= t_m 'ResourcePicture.height' -%></th>
-    <th><%= t_m 'ResourcePicture.filesize' -%></th>
-    <th><%= t_m 'ResourcePicture.md5' -%></th>
-    <th><%= t_m 'ResourcePicture.artist_id' -%></th>
-    <th><%= t_m 'ResourcePicture.license_id' -%></th>
-    <th><%= t_m 'ResourcePicture.artist_name' -%></th>
-    <th><%= t_m 'ResourcePicture.classname' -%></th>
-    <th><%= t_m 'ResourcePicture.credit' -%></th>
-    <th><%= t_m 'ResourcePicture.settings' -%></th>
-    <th><%= t_m 'ResourcePicture.picture_id' -%></th>
-    <th><%= t_m 'ResourcePicture.created_at' -%></th>
-    <th><%= t_m 'ResourcePicture.updated_at' -%></th>
-  </tr>
-  <% @resource_pictures.each do |resource_picture| %>
-    <tr>
-      <td><%= link_to tag(:img, resource_picture.tmb_opt_img_tag), resource_picture.url %></td>
-      <td><%= link_to resource_picture.id, browse_resource_picture_path(resource_picture.id) %></td>
-      <td><%= link_to resource_picture.original_picture_id, browse_original_picture_path(resource_picture.original_picture) %></td>
-      <td><%= h resource_picture.ext %></td>
-      <td><%= resource_picture.width %></td>
-      <td><%= resource_picture.height %></td>
-      <td><%= resource_picture.filesize %></td>
-      <td><%= h(truncate(resource_picture.md5, :length => 8)) %></td>
-      <td><%= link_to resource_picture.artist_id, browse_artist_path(resource_picture.artist) %></td>
-      <td><%= link_to resource_picture.license_id, browse_license_path(resource_picture.license) %></td>
-      <td><%= h(truncate(resource_picture.artist_name, :length => 8)) %></td>
-      <td><%= h(truncate(resource_picture.classname, :length => 8)) %></td>
-      <td><%= h(truncate(resource_picture.credit, :length => 8)) %></td>
-      <td><%= h(truncate(resource_picture.settings, :length => 8)) %></td>
-      <td><%= link_to resource_picture.picture_id, main_app.browse_picture_path(resource_picture.picture) %></td>
-      <td><%= l resource_picture.created_at %></td>
-      <td><%= l resource_picture.updated_at %></td>
-    </tr>
-  <% end %>
-</table>
diff --git a/app/views/resource_pictures/new.js.erb b/app/views/resource_pictures/new.js.erb
deleted file mode 100644 (file)
index ed93c2b..0000000
+++ /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 (file)
index 96125c5..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-  <tr>
-    <td>
-      <%= link_to scroll_icon(:object => scroll_panel.scroll, :size => 25), scroll_path(scroll_panel.scroll) %>
-    </td>
-    <td>
-      <%= link_to h(scroll_panel.scroll.title), play_scroll_path(scroll_panel.scroll) %>
-    </td>
-    <td>
-      <%= link_to author_icon(:object => scroll_panel.scroll.author, :size => 17), author_path(scroll_panel.scroll.author) %>
-    </td>
-    <td>
-      <%= link_to scroll_panel_icon(:object => scroll_panel, :size => 25), scroll_panel_path(scroll_panel) %>
-    </td>
-    <td>
-      <%= link_to author_icon(:object => scroll_panel.author, :size => 17), author_path(scroll_panel.author) %>
-    </td>
-    <td>
-      No.<%= scroll_panel.t %>
-    </td>
-    <td>
-      <%= l scroll_panel.updated_at %>
-    </td>
-    <td>
-      <% if scroll_panel.panel %>
-        <%= h scroll_panel.panel.caption %>
-      <% end %>
-    </td>
-  </tr>
diff --git a/app/views/scroll_panels/browse.html.erb b/app/views/scroll_panels/browse.html.erb
deleted file mode 100644 (file)
index b4083f6..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b>scroll_id:</b>
-  <%= @scroll_panel.scroll_id %>
-</p>
-
-<p>
-  <b>panel_id:</b>
-  <%= @scroll_panel.panel_id %>
-</p>
-
-<p>
-  <b>t:</b>
-  <%= @scroll_panel.t %>
-</p>
-
-<p>
-  <b>author_id:</b>
-  <%= @scroll_panel.author_id %>
-</p>
-
-<p>
-  <b>updated_at:</b>
-  <%= @scroll_panel.updated_at %>
-</p>
-
-<%= 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 (file)
index 65bc52a..0000000
+++ /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 (file)
index 74213ff..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<table>
-  <% @scroll_panels.each do |scroll_panel| %>
-    <%= render 'list_item', :scroll_panel => scroll_panel, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 9606bef..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<h1>Listing ScrollPanel</h1>
-
-<table>
-  <tr>
-    <th>id</th>
-    <th>scroll_id</th>
-    <th>panel_id</th>
-    <th>t</th>
-    <th>author_id</th>
-    <th>created_at</th>
-    <th>updated_at</th>
-    <th></th>
-  </tr>
-
-<%  @scroll_panels.each do |scroll_panel| %>
-  <tr>
-    <td><%= link_to scroll_panel.id, :action => :browse, :id => scroll_panel.id %></td>
-    <td><%= scroll_panel.scroll_id %></td>
-    <td><%= scroll_panel.panel_id %></td>
-    <td><%= scroll_panel.t %></td>
-    <td><%= link_to scroll_panel.author_id, :controller => '/authors', :action => :browse, :id => scroll_panel.author_id %></td>
-    <td><%= scroll_panel.created_at %></td>
-    <td><%= scroll_panel.updated_at %></td>
-    <td>
-    </td>
-  </tr>
-<% end %>
-</table>
-
diff --git a/app/views/scrolls/_list_item.html.erb b/app/views/scrolls/_list_item.html.erb
deleted file mode 100644 (file)
index 0bae33a..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<tr>
-  <td>
-    <%= 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 -%>)
-  </td>
-  <td>
-    <%= distance_of_time_in_words_to_now scroll.updated_at %>
-  </td>
-  <td>
-    <%= 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) %>
-  </td>
-  <td>
-    <% if scroll.own? author %>
-      <%= link_to t('link.edit'), edit_scroll_path(scroll) %>
-      <%= link_to t('link.destroy'), scroll_path(scroll), :method => :delete %>
-    <% end %>
-  </td>
-</tr>
-<tr>
-  <td colspan="4">
-    <%= h(truncate(scroll.description, :length => 40)) %>
-  </td>
-</tr>
diff --git a/app/views/scrolls/browse.html.erb b/app/views/scrolls/browse.html.erb
deleted file mode 100644 (file)
index 62e9f5e..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p>
-  <b><%= t_m 'Scroll.id' -%>:</b>
-  <%= h @scroll.id %>
-</p>
-
-<p>
-  <b><%= t_m 'Scroll.title' -%>:</b>
-  <%= h @scroll.title %>
-</p>
-
-<p>
-  <b><%= t_m 'Scroll.visible' -%>:</b>
-  <%= @scroll.visible %>
-  <%= t_selected_item('scroll_visible_items', @scroll.visible) %>
-</p>
-
-<p>
-  <b><%= t_m 'Scroll.author_id' -%>:</b>
-  <%= @scroll.author_id %>
-  <%= link_to h(@scroll.author.name), browse_author_path(@scroll.author) %>
-</p>
-
-<p>
-  <b><%= t_m 'Scroll.created_at' -%>:</b>
-  <%= l @scroll.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'Scroll.updated_at' -%>:</b>
-  <%= l @scroll.updated_at %>
-</p>
-
-<%= 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 (file)
index 830c4f5..0000000
+++ /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 (file)
index df40c94..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @scrolls.each do |scroll| %>
-    <%= render 'list_item', :scroll => scroll, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 557736e..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'Scroll.id' -%></th>
-    <th><%= t_m 'Scroll.title' -%></th>
-    <th><%= t_m 'Scroll.visible' -%></th>
-    <th><%= t_m 'Scroll.author_id' -%></th>
-    <th><%= t_m 'Scroll.created_at' -%></th>
-    <th><%= t_m 'Scroll.updated_at' -%></th>
-  </tr>
-
-<% @scrolls.each do |scroll| %>
-  <tr>
-    <td><%= link_to scroll.id, browse_scroll_path(scroll) %></td>
-    <td><%= h(truncate(scroll.title, :length => 12)) %></td>
-    <td><%= scroll.visible %></td>
-    <td><%= link_to scroll.author_id, browse_author_path(scroll.author) %></td>
-    <td><%= l scroll.created_at %></td>
-    <td><%= l scroll.updated_at %></td>
-  </tr>
-<% end %>
-</table>
-
diff --git a/app/views/scrolls/new.js.erb b/app/views/scrolls/new.js.erb
deleted file mode 100644 (file)
index 830c4f5..0000000
+++ /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 (file)
index 3879017..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-  <tr>
-    <td>
-      <%= link_to sheet_icon(:object => sheet_panel.sheet, :size => 25), sheet_path(sheet_panel.sheet) %>
-    </td>
-    <td>
-      <%= link_to h(sheet_panel.sheet.caption), play_sheet_path(sheet_panel.sheet) %>
-    </td>
-    <td>
-      <%= link_to author_icon(:object => sheet_panel.sheet.author, :size => 17), author_path(sheet_panel.sheet.author) %>
-    </td>
-    <td>
-      <%= link_to sheet_panel_icon(:object => sheet_panel, :size => 25), sheet_panel_path(sheet_panel) %>
-    </td>
-    <td>
-      <%= link_to author_icon(:object => sheet_panel.author, :size => 17), author_path(sheet_panel.author) %>
-    </td>
-    <td>
-      No.<%= sheet_panel.t %>
-    </td>
-    <td>
-      <%= l sheet_panel.updated_at %>
-    </td>
-    <td>
-      <% if sheet_panel.panel %>
-        <%= h sheet_panel.panel.caption %>
-      <% end %>
-    </td>
-  </tr>
diff --git a/app/views/sheet_panels/browse.html.erb b/app/views/sheet_panels/browse.html.erb
deleted file mode 100644 (file)
index 6772579..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b>sheet_id:</b>
-  <%= @sheet_panel.sheet_id %>
-</p>
-
-<p>
-  <b>panel_id:</b>
-  <%= @sheet_panel.panel_id %>
-</p>
-
-<p>
-  <b>t:</b>
-  <%= @sheet_panel.t %>
-</p>
-
-<p>
-  <b>author_id:</b>
-  <%= @sheet_panel.author_id %>
-</p>
-
-<p>
-  <b>updated_at:</b>
-  <%= @sheet_panel.updated_at %>
-</p>
-
-<%= 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 (file)
index d7bfe9f..0000000
+++ /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 (file)
index 24da388..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<table>
-  <% @sheet_panels.each do |sheet_panel| %>
-    <%= render 'list_item', :sheet_panel => sheet_panel, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 7790abc..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<h1>Listing SheetPanel</h1>
-
-<table>
-  <tr>
-    <th>id</th>
-    <th>sheet_id</th>
-    <th>panel_id</th>
-    <th>t</th>
-    <th>author_id</th>
-    <th>created_at</th>
-    <th>updated_at</th>
-    <th></th>
-  </tr>
-
-<%  @sheet_panels.each do |sheet_panel| %>
-  <tr>
-    <td><%= link_to sheet_panel.id, :action => :browse, :id => sheet_panel.id %></td>
-    <td><%= sheet_panel.sheet_id %></td>
-    <td><%= sheet_panel.panel_id %></td>
-    <td><%= sheet_panel.t %></td>
-    <td><%= link_to sheet_panel.author_id, :controller => '/authors', :action => :browse, :id => sheet_panel.author_id %></td>
-    <td><%= sheet_panel.created_at %></td>
-    <td><%= sheet_panel.updated_at %></td>
-    <td>
-    </td>
-  </tr>
-<% end %>
-</table>
-
diff --git a/app/views/sheets/_list_item.html.erb b/app/views/sheets/_list_item.html.erb
deleted file mode 100644 (file)
index c7c9b2f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<tr>
-  <td>
-    <%= 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 -%>)
-  </td>
-  <td>
-    <%= distance_of_time_in_words_to_now sheet.updated_at %>
-  </td>
-  <td>
-    <%= 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) %>
-  </td>
-  <td>
-    <% if sheet.own? author %>
-      <%= link_to t('link.edit'), edit_sheet_path(sheet) %>
-      <%= link_to t('link.destroy'), sheet_path(sheet), :method => :delete %>
-    <% end %>
-  </td>
-</tr>
diff --git a/app/views/sheets/browse.html.erb b/app/views/sheets/browse.html.erb
deleted file mode 100644 (file)
index bd6dea1..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p>
-  <b><%= t_m 'Sheet.id' -%>:</b>
-  <%= h @sheet.id %>
-</p>
-
-<p>
-  <b><%= t_m 'Sheet.caption' -%>:</b>
-  <%= h @sheet.caption %>
-</p>
-
-<p>
-  <b><%= t_m 'Sheet.width' -%>:</b>
-  <%= h(@sheet.width) %>
-</p>
-
-<p>
-  <b><%= t_m 'Sheet.height' -%>:</b>
-  <%= h(@sheet.height) %>
-</p>
-
-<p>
-  <b><%= t_m 'Sheet.visible' -%>:</b>
-  <%= @sheet.visible %>
-  <%= t_selected_item('sheet_visible_items', @sheet.visible) %>
-</p>
-
-<p>
-  <b><%= t_m 'Sheet.author_id' -%>:</b>
-  <%= @sheet.author_id %>
-  <%= link_to h(@sheet.author.name), browse_author_path(@sheet.author) %>
-</p>
-
-<p>
-  <b><%= t_m 'Sheet.created_at' -%>:</b>
-  <%= l @sheet.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'Sheet.updated_at' -%>:</b>
-  <%= l @sheet.updated_at %>
-</p>
-
-<%= 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 (file)
index 61e9f00..0000000
+++ /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 (file)
index 327a355..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <% @sheets.each do |sheet| %>
-    <%= render 'list_item', :sheet => sheet, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 550c5be..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'Sheet.id' -%></th>
-    <th><%= t_m 'Sheet.caption' -%></th>
-    <th><%= t_m 'Sheet.width' -%></th>
-    <th><%= t_m 'Sheet.height' -%></th>
-    <th><%= t_m 'Sheet.visible' -%></th>
-    <th><%= t_m 'Sheet.author_id' -%></th>
-    <th><%= t_m 'Sheet.created_at' -%></th>
-    <th><%= t_m 'Sheet.updated_at' -%></th>
-  </tr>
-
-<% @sheets.each do |sheet| %>
-  <tr>
-    <td><%= link_to sheet.id, browse_sheet_path(sheet) %></td>
-    <td><%= h(truncate(sheet.caption, :length => 12)) %></td>
-    <td><%= sheet.width %></td>
-    <td><%= sheet.height %></td>
-    <td><%= sheet.visible %></td>
-    <td><%= link_to sheet.author_id, browse_author_path(sheet.author) %></td>
-    <td><%= l sheet.created_at %></td>
-    <td><%= l sheet.updated_at %></td>
-  </tr>
-<% end %>
-</table>
-
diff --git a/app/views/sheets/new.js.erb b/app/views/sheets/new.js.erb
deleted file mode 100644 (file)
index 61e9f00..0000000
+++ /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 (file)
index ebc97da..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b><%= t_m 'SpeechBalloonTemplate.id' -%>:</b>
-  <%= h @speech_balloon_template.id %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloonTemplate.name' -%>:</b>
-  <%= h @speech_balloon_template.name %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloonTemplate.classname' -%>:</b>
-  <%= h @speech_balloon_template.classname %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloonTemplate.caption' -%>:</b>
-  <%= h @speech_balloon_template.caption %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloonTemplate.t' -%>:</b>
-  <%= @speech_balloon_template.t %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloonTemplate.system_picture_id' -%>:</b>
-  <%= @speech_balloon_template.system_picture_id %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloonTemplate.settings' -%>:</b>
-  <%= h @speech_balloon_template.settings %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloonTemplate.created_at' -%>:</b>
-  <%= l @speech_balloon_template.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloonTemplate.updated_at' -%>:</b>
-  <%= l @speech_balloon_template.updated_at %>
-</p>
-
-<%= 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 (file)
index 48afbe6..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<ul>
-  <% @speech_balloon_templates.each do |st| %>
-    <li>
-      <div class="speech_balloon_template_item">
-        <%= link_to tag(:img, st.system_picture.tmb_opt_img_tag), speech_balloon_template_path(st) %>
-        <div>
-          <%= link_to h(st.caption), speech_balloon_template_path(st) %>
-        </div>
-      </div>
-      <div class="speech_balloon_template_item">
-        <% 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 -%>
-      </div>
-      <div class="speech_balloon_template_item-row-break">
-      </div>
-    </li>
-  <% end %>
-</ul>
diff --git a/app/views/speech_balloon_templates/list.html.erb b/app/views/speech_balloon_templates/list.html.erb
deleted file mode 100644 (file)
index 94c6cdf..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'SpeechBalloonTemplate.id' -%></th>
-    <th><%= t_m 'SpeechBalloonTemplate.name' -%></th>
-    <th><%= t_m 'SpeechBalloonTemplate.classname' -%></th>
-    <th><%= t_m 'SpeechBalloonTemplate.caption' -%></th>
-    <th><%= t_m 'SpeechBalloonTemplate.t' -%></th>
-    <th><%= t_m 'SpeechBalloonTemplate.system_picture_id' -%></th>
-    <th><%= t_m 'SpeechBalloonTemplate.settings' -%></th>
-    <th><%= t_m 'SpeechBalloonTemplate.created_at' -%></th>
-    <th><%= t_m 'SpeechBalloonTemplate.updated_at' -%></th>
-  </tr>
-  <% @speech_balloon_templates.each do |speech_balloon_template| %>
-    <tr>
-      <td><%= link_to speech_balloon_template.id, browse_speech_balloon_template_path(speech_balloon_template) %></td>
-      <td>
-        <%= h(truncate(speech_balloon_template.name, :length => 16)) %>
-      </td>
-      <td>
-        <%= h(truncate(speech_balloon_template.classname, :length => 16)) %>
-      </td>
-      <td>
-        <%= h(truncate(speech_balloon_template.caption, :length => 16)) %>
-      </td>
-      <td>
-        <%= speech_balloon_template.t %>
-      </td>
-      <td>
-        <%= link_to tag(:img, speech_balloon_template.system_picture.tmb_opt_img_tag), speech_balloon_template_path(speech_balloon_template.system_picture) %>
-      </td>
-      <td>
-        <%= h(truncate(speech_balloon_template.settings, :length => 10)) %>
-      </td>
-      <td>
-        <%= l speech_balloon_template.created_at %>
-      </td>
-      <td>
-        <%= l speech_balloon_template.updated_at %>
-      </td>
-    </tr>
-  <% end -%>
-</table>
diff --git a/app/views/speech_balloons/_list_item.html.erb b/app/views/speech_balloons/_list_item.html.erb
deleted file mode 100644 (file)
index fba2ddc..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<tr>
-  <td>
-    <%= link_to(h(speech_balloon.id.to_s), speech_balloon_path(speech_balloon)) %>
-  </td>
-  <td>
-    <%= link_to(h(truncate(speech_balloon.caption, :length => 12)), speech_balloon_path(speech_balloon)) %>
-  </td>
-  <td>
-    <%= h(truncate(speech_balloon.speech.content, :length => 12)) if speech_balloon.speech %>
-  </td>
-  <td>
-    <%= 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)) %>
-  </td>
-  <td>
-    <%= 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) %>
-  </td>
-  <td>
-    <%= speech_balloon.z %>
-  </td>
-  <td>
-    <%= distance_of_time_in_words_to_now speech_balloon.updated_at %>
-  </td>
-</tr>
diff --git a/app/views/speech_balloons/browse.html.erb b/app/views/speech_balloons/browse.html.erb
deleted file mode 100644 (file)
index 7cf8828..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.id' -%>:</b>
-  <%= @speech_balloon.id %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.panel_id' -%>:</b>
-  <%= link_to @speech_balloon.panel_id, browse_panel_path(@speech_balloon.panel) %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.speech_balloon_template_id' -%>:</b>
-  <%= link_to @speech_balloon.speech_balloon_template_id, browse_speech_balloon_template_path(@speech_balloon.speech_balloon_template) %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.classname' -%>:</b>
-  <%= h @speech_balloon.classname %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.z' -%>:</b>
-  <%= @speech_balloon.z %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.t' -%>:</b>
-  <%= @speech_balloon.t %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.settings' -%>:</b>
-  <%= h @speech_balloon.settings %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.created_at' -%>:</b>
-  <%= l @speech_balloon.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.updated_at' -%>:</b>
-  <%= l @speech_balloon.updated_at %>
-</p>
-
-<%= 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 (file)
index f83a736..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'SpeechBalloon.id' -%></th>
-    <th><%= t_m 'SpeechBalloon.caption' -%></th>
-    <th><%= t_m 'Speech.content' -%></th>
-    <th><%= t_m 'SpeechBalloonTemplate.caption' -%></th>
-    <th><%= t_m 'SpeechBalloon.panel_id' -%></th>
-    <th><%= t_m 'SpeechBalloon.z' -%></th>
-    <th><%= t_m 'SpeechBalloon.updated_at' -%></th>
-  </tr>
-
-  <% @speech_balloons.each do |speech_balloon| %>
-    <%= render 'list_item', :speech_balloon => speech_balloon %>
-  <% end %>
-</table>
-<%= paginate(@paginate) %>
diff --git a/app/views/speech_balloons/list.html.erb b/app/views/speech_balloons/list.html.erb
deleted file mode 100644 (file)
index 501123a..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'SpeechBalloon.id' -%></th>
-    <th><%= t_m 'SpeechBalloon.panel_id' -%></th>
-    <th><%= t_m 'SpeechBalloon.speech_balloon_template_id' -%></th>
-    <th><%= t_m 'SpeechBalloon.classname' -%></th>
-    <th><%= t_m 'SpeechBalloon.z' -%></th>
-    <th><%= t_m 'SpeechBalloon.t' -%></th>
-    <th><%= t_m 'SpeechBalloon.caption' -%></th>
-    <th><%= t_m 'SpeechBalloon.settings' -%></th>
-    <th><%= t_m 'SpeechBalloon.created_at' -%></th>
-    <th><%= t_m 'SpeechBalloon.updated_at' -%></th>
-  </tr>
-  
-  <% @speech_balloons.each do |speech_balloon| %>
-    <tr>
-      <td><%= link_to speech_balloon.id, browse_speech_balloon_path(speech_balloon) %></td>
-      <td><%= link_to speech_balloon.panel_id, browse_panel_path(speech_balloon.panel) %></td>
-      <td><%= link_to speech_balloon.speech_balloon_template_id, browse_speech_balloon_template_path(speech_balloon.speech_balloon_template) %></td>
-      <td><%= h(truncate(speech_balloon.classname, :length => 12)) %></td>
-      <td><%= speech_balloon.z %></td>
-      <td><%= speech_balloon.t %></td>
-      <td><%= h(truncate(speech_balloon.caption, :length => 12)) %></td>
-      <td><%= h(truncate(speech_balloon.settings, :length => 12)) %></td>
-      <td><%= l speech_balloon.created_at %></td>
-      <td><%= l speech_balloon.updated_at %></td>
-    </tr>
-  <% end %>
-</table>
index f7f0755..b16e221 100644 (file)
@@ -8,90 +8,6 @@
   <%= h @speech_balloon.caption %>
 </p>
 
-<p>
-  <b><%= t_m 'SpeechBalloon.speech_balloon_template_id' -%>:</b>
-  <%= link_to h(@speech_balloon.speech_balloon_template.caption), @speech_balloon.speech_balloon_template %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.classname' -%>:</b>
-  <%= @speech_balloon.classname %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.z' -%>:</b>
-  <%= @speech_balloon.z %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.t' -%>:</b>
-  <%= @speech_balloon.t %>
-</p>
-
-<% if @speech_balloon.balloon %>
-  <p>
-    <b><%= t_m 'Balloon.x' -%>:</b>
-    <%= @speech_balloon.balloon.x %>
-  </p>
-
-  <p>
-    <b><%= t_m 'Balloon.y' -%>:</b>
-    <%= @speech_balloon.balloon.y %>
-  </p>
-
-  <p>
-    <b><%= t_m 'Balloon.width' -%>:</b>
-    <%= @speech_balloon.balloon.width %>
-  </p>
-
-  <p>
-    <b><%= t_m 'Balloon.height' -%>:</b>
-    <%= @speech_balloon.balloon.height %>
-  </p>
-
-  <p>
-    <b><%= t_m 'Balloon.r' -%>:</b>
-    <%= @speech_balloon.balloon.r %>
-  </p>
-<% end %>
-
-<% if @speech_balloon.speech %>
-  <p>
-    <b><%= t_m 'Speech.content' -%>:</b>
-    <%= @speech_balloon.speech.content %>
-  </p>
-
-  <p>
-    <b><%= t_m 'Speech.x' -%>:</b>
-    <%= @speech_balloon.speech.x %>
-  </p>
-
-  <p>
-    <b><%= t_m 'Speech.y' -%>:</b>
-    <%= @speech_balloon.speech.y %>
-  </p>
-
-  <p>
-    <b><%= t_m 'Speech.width' -%>:</b>
-    <%= @speech_balloon.speech.width %>
-  </p>
-
-  <p>
-    <b><%= t_m 'Speech.height' -%>:</b>
-    <%= @speech_balloon.speech.height %>
-  </p>
-<% end %>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.created_at' -%>:</b>
-  <%= l @speech_balloon.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'SpeechBalloon.updated_at' -%>:</b>
-  <%= l @speech_balloon.updated_at %>
-</p>
-
 <%= 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 (file)
index fb0f29e..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b><%= t_m 'Speech.id' -%>:</b>
-  <%= @speech.id %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.speech_balloon_id' -%>:</b>
-  <%= link_to @speech.speech_balloon_id, browse_speech_balloon_path(@speech.speech_balloon) %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.content' -%>:</b>
-  <%= h @speech.content %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.x' -%>:</b>
-  <%= @speech.x %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.y' -%>:</b>
-  <%= @speech.y %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.width' -%>:</b>
-  <%= @speech.width %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.height' -%>:</b>
-  <%= @speech.height %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.settings' -%>:</b>
-  <%= h @speech.settings %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.created_at' -%>:</b>
-  <%= l @speech.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'Speech.updated_at' -%>:</b>
-  <%= l @speech.updated_at %>
-</p>
-
-<%= 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 (file)
index 52ef612..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
diff --git a/app/views/speeches/list.html.erb b/app/views/speeches/list.html.erb
deleted file mode 100644 (file)
index db46652..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th><%= t_m 'Speech.id' -%></th>
-    <th><%= t_m 'Speech.speech_balloon_id' -%></th>
-    <th><%= t_m 'Speech.content' -%></th>
-    <th><%= t_m 'Speech.x' -%></th>
-    <th><%= t_m 'Speech.y' -%></th>
-    <th><%= t_m 'Speech.width' -%></th>
-    <th><%= t_m 'Speech.height' -%></th>
-    <th><%= t_m 'Speech.quotes' -%></th>
-    <th><%= t_m 'Speech.settings' -%></th>
-    <th><%= t_m 'Speech.created_at' -%></th>
-    <th><%= t_m 'Speech.updated_at' -%></th>
-  </tr>
-  
-  <% @speeches.each do |speech| %>
-    <tr>
-      <td><%= link_to speech.id, browse_speech_path(speech) %></td>
-      <td><%= link_to speech.speech_balloon_id, browse_speech_balloon_path(speech.speech_balloon) %></td>
-      <td><%= h(truncate(speech.content, :length => 20)) %></td>
-      <td><%= speech.x %></td>
-      <td><%= speech.y %></td>
-      <td><%= speech.width %></td>
-      <td><%= speech.height %></td>
-      <td><%= h speech.quotes %></td>
-      <td><%= h(truncate(speech.settings, :length => 12)) %></td>
-      <td><%= l speech.created_at %></td>
-      <td><%= l speech.updated_at %></td>
-    </tr>
-  <% end %>
-</table>
diff --git a/app/views/stories/_list_item.html.erb b/app/views/stories/_list_item.html.erb
deleted file mode 100644 (file)
index 4e9e7f4..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-  <tr>
-    <td>
-      <%= link_to comic_icon(:object => story.comic, :size => 25), comic_path(story.comic) %>
-    </td>
-    <td>
-      <%= link_to h(story.comic.title), comic_path(story.comic) %>
-    </td>
-    <td>
-      <%= link_to author_icon(:object => story.comic.author, :size => 17), author_path(story.comic.author) %>
-    </td>
-    <td>
-      <%= link_to story_icon(:object => story, :size => 25), story_path(story) %>
-    </td>
-    <td>
-      <%= link_to h(story.title), play_story_path(story) %>
-    </td>
-    <td>
-      No.<%= story.t %>
-    </td>
-    <td>
-      <%= l story.updated_at %>
-    </td>
-  </tr>
diff --git a/app/views/stories/browse.html.erb b/app/views/stories/browse.html.erb
deleted file mode 100644 (file)
index c9a07a2..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b>comic_id:</b>
-  <%= @story.comic_id %>
-</p>
-
-<p>
-  <b>title</b>
-  <%= link_to h(@story.title), story_path(@story) %>
-</p>
-
-<p>
-  <b>description</b>
-  <%= h(@story.description) %>
-</p>
-
-<p>
-  <b>visible</b>
-  <%= @story.visible %>
-</p>
-
-<p>
-  <b>t:</b>
-  <%= @story.t %>
-</p>
-
-<p>
-  <b>author_id:</b>
-  <%= @story.author_id %>
-</p>
-
-<p>
-  <b>updated_at:</b>
-  <%= @story.updated_at %>
-</p>
-
-<%= 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 (file)
index 29c687f..0000000
+++ /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 (file)
index 7b61ab8..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<table>
-  <% @stories.each do |story| %>
-    <%= render 'list_item', :story => story, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 99d5442..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<h1>Listing Story</h1>
-
-<table>
-  <tr>
-    <th>id</th>
-    <th>comic_id</th>
-    <th>title</th>
-    <th>t</th>
-    <th>author_id</th>
-    <th>created_at</th>
-    <th>updated_at</th>
-    <th></th>
-  </tr>
-
-<%  @stories.each do |story| %>
-  <tr>
-    <td><%= link_to story.id, :action => :browse, :id => story.id %></td>
-    <td><%= story.comic_id %></td>
-    <td><%= h(truncate(h(story.title), :length => 10)) %></td>
-    <td><%= story.t %></td>
-    <td><%= link_to story.author_id, :controller => '/authors', :action => :browse, :id => story.author_id %></td>
-    <td><%= story.created_at %></td>
-    <td><%= story.updated_at %></td>
-    <td>
-    </td>
-  </tr>
-<% end %>
-</table>
-
diff --git a/app/views/story_sheets/_list_item.html.erb b/app/views/story_sheets/_list_item.html.erb
deleted file mode 100644 (file)
index 8c5f837..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-  <tr>
-    <td>
-      <%= link_to story_icon(:object => story_sheet.story, :size => 25), story_path(story_sheet.story) %>
-    </td>
-    <td>
-      <%= link_to h(story_sheet.story.title), play_story_path(story_sheet.story) %>
-    </td>
-    <td>
-      <%= link_to story_sheet_icon(:object => story_sheet, :size => 25), story_sheet_path(story_sheet) %>
-    </td>
-    <td>
-      <%= link_to author_icon(:object => story_sheet.author, :size => 17), author_path(story_sheet.author) %>
-    </td>
-    <td>
-      No.<%= story_sheet.t %>
-    </td>
-    <td>
-      <%= l story_sheet.updated_at %>
-    </td>
-    <td>
-      <% if story_sheet.sheet %>
-        <%= h story_sheet.sheet.caption %>
-      <% end %>
-    </td>
-  </tr>
diff --git a/app/views/story_sheets/browse.html.erb b/app/views/story_sheets/browse.html.erb
deleted file mode 100644 (file)
index 6772579..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
-  <b>sheet_id:</b>
-  <%= @sheet_panel.sheet_id %>
-</p>
-
-<p>
-  <b>panel_id:</b>
-  <%= @sheet_panel.panel_id %>
-</p>
-
-<p>
-  <b>t:</b>
-  <%= @sheet_panel.t %>
-</p>
-
-<p>
-  <b>author_id:</b>
-  <%= @sheet_panel.author_id %>
-</p>
-
-<p>
-  <b>updated_at:</b>
-  <%= @sheet_panel.updated_at %>
-</p>
-
-<%= 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 (file)
index d7bfe9f..0000000
+++ /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 (file)
index 23065cd..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<table>
-  <% @story_sheets.each do |story_sheet| %>
-    <%= render 'list_item', :story_sheet => story_sheet, :author => @author %>
-  <% end %>
-</table>
-<%= 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 (file)
index 7790abc..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<h1>Listing SheetPanel</h1>
-
-<table>
-  <tr>
-    <th>id</th>
-    <th>sheet_id</th>
-    <th>panel_id</th>
-    <th>t</th>
-    <th>author_id</th>
-    <th>created_at</th>
-    <th>updated_at</th>
-    <th></th>
-  </tr>
-
-<%  @sheet_panels.each do |sheet_panel| %>
-  <tr>
-    <td><%= link_to sheet_panel.id, :action => :browse, :id => sheet_panel.id %></td>
-    <td><%= sheet_panel.sheet_id %></td>
-    <td><%= sheet_panel.panel_id %></td>
-    <td><%= sheet_panel.t %></td>
-    <td><%= link_to sheet_panel.author_id, :controller => '/authors', :action => :browse, :id => sheet_panel.author_id %></td>
-    <td><%= sheet_panel.created_at %></td>
-    <td><%= sheet_panel.updated_at %></td>
-    <td>
-    </td>
-  </tr>
-<% end %>
-</table>
-
index a61db68..6be9224 100644 (file)
@@ -20,4 +20,7 @@
 <div>
 システム画像の管理
 </div>
+<div>
+  <%= link_to 'reload_manifest', :action => :reload_manifest %>
+</div>
   <%= 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 (file)
index 509a9d4..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<h1><%= t '.title' -%></h1>
-<p id="notice"><%= notice %></p>
-
-<%= link_to tag(:img, @system_picture.opt_img_tag), @system_picture.url %>
-<p>
-  <b><%= t_m 'SystemPicture.id' -%>:</b>
-  <%= @system_picture.id %>
-</p>
-
-<p>
-  <b><%= t_m 'SystemPicture.ext' -%>:</b>
-  <%= @system_picture.ext %>
-</p>
-
-<p>
-  <b><%= t_m 'SystemPicture.width' -%>:</b>
-  <%= @system_picture.width %>
-</p>
-
-<p>
-  <b><%= t_m 'SystemPicture.height' -%>:</b>
-  <%= @system_picture.height %>
-</p>
-
-<p>
-  <b><%= t_m 'SystemPicture.filesize' -%>:</b>
-  <%= @system_picture.filesize %>
-</p>
-
-<p>
-  <b><%= t_m 'SystemPicture.md5' -%>:</b>
-  <%= @system_picture.md5 %>
-</p>
-
-<p>
-  <b><%= t_m 'SystemPicture.created_at' -%>:</b>
-  <%= @system_picture.created_at %>
-</p>
-
-<p>
-  <b><%= t_m 'SystemPicture.updated_at' -%>:</b>
-  <%= @system_picture.updated_at %>
-</p>
-
-<%= 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 (file)
index 7cf491d..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th></th>
-    <th><%= t_m 'SystemPicture.ext' -%></th>
-    <th><%= t_m 'SystemPicture.width' -%>x<%= t_m 'SystemPicture.height' -%></th>
-    <th><%= t_m 'SystemPicture.filesize' -%></th>
-  </tr>
-
-<% @system_pictures.each do |system_picture| %>
-  <tr>
-    <td><%= link_to tag(:img, system_picture.tmb_opt_img_tag), system_picture.url %>(<%= link_to system_picture.id, system_picture_path(system_picture) %>)</td>
-    <td><%= h system_picture.ext %></td>
-    <td><%= system_picture.width %>x<%= system_picture.height %></td>
-    <td><%= system_picture.filesize %></td>
-  </tr>
-<% end %>
-</table>
diff --git a/app/views/system_pictures/list.html.erb b/app/views/system_pictures/list.html.erb
deleted file mode 100644 (file)
index ce983f6..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<h1><%= t '.title' -%></h1>
-
-<table>
-  <tr>
-    <th></th>
-    <th><%= t_m 'SystemPicture.id' -%></th>
-    <th><%= t_m 'SystemPicture.ext' -%></th>
-    <th><%= t_m 'SystemPicture.width' -%></th>
-    <th><%= t_m 'SystemPicture.height' -%></th>
-    <th><%= t_m 'SystemPicture.filesize' -%></th>
-    <th><%= t_m 'SystemPicture.md5' -%></th>
-    <th><%= t_m 'SystemPicture.created_at' -%></th>
-    <th><%= t_m 'SystemPicture.updated_at' -%></th>
-  </tr>
-
-<% @system_pictures.each do |system_picture| %>
-  <tr>
-    <td><%= link_to tag(:img, system_picture.tmb_opt_img_tag), system_picture.url %></td>
-    <td><%= link_to system_picture.id, browse_system_picture_path(system_picture) %></td>
-    <td><%= h system_picture.ext %></td>
-    <td><%= system_picture.width %></td>
-    <td><%= system_picture.height %></td>
-    <td><%= system_picture.filesize %></td>
-    <td><%= h system_picture.md5 %></td>
-    <td><%= l system_picture.created_at %></td>
-    <td><%= l system_picture.updated_at %></td>
-  </tr>
-<% end %>
-</table>
index dee52ea..c31348b 100644 (file)
@@ -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 (file)
index 418e7c3..0000000
+++ /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']
index 787e458..4dde25d 100644 (file)
@@ -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
           {}
index 8ba98cf..bf0c08d 100644 (file)
@@ -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
index 6efe81e..157097c 100644 (file)
           }\r
         }\r
       },\r
-      "CircleSpeechBalloon": "circle_speech_balloon",\r
-      "circle_speech_balloon": {\r
+      "CircleSpeechBalloon": {\r
         "base": "speech_balloon",\r
         "fields": {},\r
         "field_names": [\r
           "speech_balloon.settings"\r
         ]\r
       },\r
-      "PlainSpeechBalloon": "plain_speech_balloon",\r
-      "plain_speech_balloon": {\r
+      "PlainSpeechBalloon": {\r
         "base": "speech_balloon",\r
         "fields": {\r
           "balloon.r": {\r
           "speech_balloon.settings"\r
         ]\r
       },\r
-      "SquareSpeechBalloon": "square_speech_balloon",\r
-      "square_speech_balloon": {\r
+      "SquareSpeechBalloon": {\r
         "base": "speech_balloon",\r
         "fields": {\r
           "balloon.r": {\r