OSDN Git Service

add files
authoryasushiito <yas@pen-chan.jp>
Fri, 13 Jan 2012 23:41:49 +0000 (08:41 +0900)
committeryasushiito <yas@pen-chan.jp>
Fri, 13 Jan 2012 23:41:49 +0000 (08:41 +0900)
28 files changed:
app/views/artists/browse.html.erb [new file with mode: 0644]
app/views/artists/list.html.erb [new file with mode: 0644]
app/views/balloon_templates/list.html.erb [new file with mode: 0644]
app/views/balloons/list.html.erb [new file with mode: 0644]
app/views/comics/browse.html.erb [new file with mode: 0644]
app/views/comics/list.html.erb [new file with mode: 0644]
app/views/common_lisences/browse.html.erb [new file with mode: 0644]
app/views/common_lisences/list.html.erb [new file with mode: 0644]
app/views/layouts/system.html.erb [new file with mode: 0644]
app/views/lisences/browse.html.erb [new file with mode: 0644]
app/views/lisences/list.html.erb [new file with mode: 0644]
app/views/original_lisences/browse.html.erb [new file with mode: 0644]
app/views/original_lisences/list.html.erb [new file with mode: 0644]
app/views/original_pictures/browse.html.erb [new file with mode: 0644]
app/views/original_pictures/list.html.erb [new file with mode: 0644]
app/views/panel_pictures/list.html.erb [new file with mode: 0644]
app/views/panels/browse.html.erb [new file with mode: 0644]
app/views/panels/list.html.erb [new file with mode: 0644]
app/views/resource_pictures/browse.html.erb [new file with mode: 0644]
app/views/resource_pictures/list.html.erb [new file with mode: 0644]
app/views/speach_balloons/browse.html.erb [new file with mode: 0644]
app/views/speach_balloons/list.html.erb [new file with mode: 0644]
app/views/speach_templates/list.html.erb [new file with mode: 0644]
app/views/speaches/list.html.erb [new file with mode: 0644]
app/views/system/auth_token.html.erb [new file with mode: 0644]
app/views/system/browse.html.erb [new file with mode: 0644]
app/views/system_pictures/browse.html.erb [new file with mode: 0644]
app/views/system_pictures/list.html.erb [new file with mode: 0644]

diff --git a/app/views/artists/browse.html.erb b/app/views/artists/browse.html.erb
new file mode 100644 (file)
index 0000000..aed21d2
--- /dev/null
@@ -0,0 +1,5 @@
+<p id="notice"><%= notice %></p>
+
+投稿された素材
+
+<%= link_to 'Back', :action => :list %>
diff --git a/app/views/artists/list.html.erb b/app/views/artists/list.html.erb
new file mode 100644 (file)
index 0000000..cf81c73
--- /dev/null
@@ -0,0 +1,31 @@
+<h1>Listing artists</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>email</th>
+    <th>name</th>
+    <th>homepage_url</th>
+    <th>api_url</th>
+    <th>default_lisence</th>
+    <th>crowled_at</th>
+    <th>author_id</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+  </tr>
+
+<% @artists.each do |artist| %>
+  <tr>
+    <td><%= link_to artist.id, :action => :browse, :id => artist.id %></td>
+    <td><%= h artist.email %></td>
+    <td><%= h artist.name %></td>
+    <td><%= h artist.homepage_url %></td>
+    <td><%= link_to artist.default_lisence_id, :controller => 'lisences', :action => :browse, :id => artist.default_lisence_id %></td>
+    <td><%= artist.crowled_at %></td>
+    <td><%= h artist.api_url %></td>
+    <td><%= link_to artist.author_id, :controller => 'authors', :action => :browse, :id => artist.author_id %></td>
+    <td><%= artist.created_at %></td>
+    <td><%= artist.updated_at %></td>
+  </tr>
+<% end %>
+</table>
diff --git a/app/views/balloon_templates/list.html.erb b/app/views/balloon_templates/list.html.erb
new file mode 100644 (file)
index 0000000..2091351
--- /dev/null
@@ -0,0 +1,33 @@
+<h1>Listing balloon_templates</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>speach balloon</th>
+    <th>system_picture</th>
+    <th>Tail</th>
+    <th>size</th>
+    <th>MinWidth</th>
+    <th>MinHeight</th>
+    <th>MaxWidth</th>
+    <th>MaxHeight</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+  </tr>
+
+<% @balloon_templates.each do |balloon_template| %>
+  <tr>
+    <td><%= link_to balloon_template.id, :action => :browse, :id => balloon_template.id %></td>
+    <td><%= link_to balloon_template.speach_balloon_id, :controller => 'speach_balloons', :action => :browse, :id => balloon_template.speach_balloon_id %></td>
+    <td><%= link_to balloon_template.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => balloon_template.system_picture_id %></td>
+    <td><%= balloon_template.tail %></td>
+    <td><%= balloon_template.size %></td>
+    <td><%= balloon_template.min_width %></td>
+    <td><%= balloon_template.min_height %></td>
+    <td><%= balloon_template.max_width %></td>
+    <td><%= balloon_template.max_height %></td>
+    <td><%= balloon_template.created_at %></td>
+    <td><%= balloon_template.updated_at %></td>
+  </tr>
+<% end %>
+</table>
diff --git a/app/views/balloons/list.html.erb b/app/views/balloons/list.html.erb
new file mode 100644 (file)
index 0000000..15cce34
--- /dev/null
@@ -0,0 +1,38 @@
+<h1>Listing balloons</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>panel</th>
+    <th>balloonTemplate</th>
+    <th>system_picture</th>
+    <th>Tail</th>
+    <th>size</th>
+    <th>x</th>
+    <th>y</th>
+    <th>z</th>
+    <th>t</th>
+    <th>Width</th>
+    <th>Height</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+  </tr>
+
+<% @balloons.each do |balloon| %>
+  <tr>
+    <td><%= balloon.id %></td>
+    <td><%= link_to balloon.panel_id, :controller => 'panels', :action => :browse, :id => balloon.panel_id %></td>
+    <td><%= link_to balloon.balloon_template_id, :controller => 'balloon_templates', :action => :browse, :id => balloon.balloon_template_id %></td>
+    <td><%= link_to balloon.system_picture_id, :controller => 'system_pictures', :action => :browse, :id => balloon.system_picture_id %></td>
+    <td><%= balloon.tail %></td>
+    <td><%= balloon.size %></td>
+    <td><%= balloon.x %></td>
+    <td><%= balloon.y %></td>
+    <td><%= balloon.z %></td>
+    <td><%= balloon.width %></td>
+    <td><%= balloon.height %></td>
+    <td><%= balloon.created_at %></td>
+    <td><%= balloon.updated_at %></td>
+  </tr>
+<% end %>
+</table>
diff --git a/app/views/comics/browse.html.erb b/app/views/comics/browse.html.erb
new file mode 100644 (file)
index 0000000..f963352
--- /dev/null
@@ -0,0 +1,38 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+  <b>Title:</b>
+  <%= h @comic.title %>
+</p>
+
+<p>
+  <b>width:</b>
+  <%= @comic.width %>
+</p>
+
+<p>
+  <b>height:</b>
+  <%= @comic.height %>
+</p>
+
+<p>
+  <b>visible:</b>
+  <%= @comic.visible %>
+</p>
+
+<p>
+  <b>editable:</b>
+  <%= @comic.editable %>
+</p>
+
+<p>
+  <b>author_id:</b>
+  <%= @comic.author_id %>
+</p>
+
+<p>
+  <b>updated_at:</b>
+  <%= @comic.updated_at %>
+</p>
+
+<%= link_to 'Back', :action => :list %>
diff --git a/app/views/comics/list.html.erb b/app/views/comics/list.html.erb
new file mode 100644 (file)
index 0000000..33f07bf
--- /dev/null
@@ -0,0 +1,34 @@
+<h1>Listing comics</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>Title</th>
+    <th>width</th>
+    <th>height</th>
+    <th>visible</th>
+    <th>editable</th>
+    <th>author_id</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+    <th></th>
+  </tr>
+
+<% @comics.each do |comic| %>
+  <tr>
+    <td><%= link_to comic.id, :action => :browse, :id => comic.id %></td>
+    <td><%= h comic.title %></td>
+    <td><%= comic.width %></td>
+    <td><%= comic.height %></td>
+    <td><%= comic.visible %></td>
+    <td><%= comic.editable %></td>
+    <td><%= link_to comic.author_id, :controller => '/comics', :action => :browse, :id => comic.author_id %></td>
+    <td><%= comic.created_at %></td>
+    <td><%= comic.updated_at %></td>
+    <td>
+      <%= link_to 'Destroy', comic, confirm: 'Are you sure?', method: :delete %>
+    </td>
+  </tr>
+<% end %>
+</table>
+
diff --git a/app/views/common_lisences/browse.html.erb b/app/views/common_lisences/browse.html.erb
new file mode 100644 (file)
index 0000000..af229c1
--- /dev/null
@@ -0,0 +1,54 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+  <b>name:</b>
+  <%= h @common_lisence.name %>
+</p>
+
+<p>
+  <b>url:</b>
+  <%= h @common_lisence.url %>
+</p>
+
+<p>
+  <b>cc_by:</b>
+  <%= @common_lisence.cc_by %>
+</p>
+
+<p>
+  <b>cc_sa:</b>
+  <%= @common_lisence.cc_sa %>
+</p>
+
+<p>
+  <b>cc_nd:</b>
+  <%= @common_lisence.cc_nd %>
+</p>
+
+<p>
+  <b>cc_nc:</b>
+  <%= @common_lisence.cc_nc %>
+</p>
+
+<p>
+  <b>no_resize:</b>
+  <%= @common_lisence.no_resize %>
+</p>
+
+<p>
+  <b>no_flip:</b>
+  <%= @common_lisence.no_flip %>
+</p>
+
+<p>
+  <b>no_convert:</b>
+  <%= @common_lisence.no_convert %>
+</p>
+
+<p>
+  <b>keep_aspect_ratio:</b>
+  <%= @common_lisence.keep_aspect_ratio %>
+</p>
+
+<%= link_to 'Edit', edit_common_lisence_path(@common_lisence) %> |
+<%= link_to 'Back', :action => :list %>
diff --git a/app/views/common_lisences/list.html.erb b/app/views/common_lisences/list.html.erb
new file mode 100644 (file)
index 0000000..f1f475b
--- /dev/null
@@ -0,0 +1,46 @@
+<h1>Listing common_lisences</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>lisence_id</th>
+    <th>name</th>
+    <th>url</th>
+    <th>cc_by</th>
+    <th>cc_sa</th>
+    <th>cc_nd</th>
+    <th>cc_nc</th>
+    <th>no_resize</th>
+    <th>no_flip</th>
+    <th>no_convert</th>
+    <th>keep_aspect_ratio</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+    <th></th>
+    <th></th>
+  </tr>
+
+<% @common_lisences.each do |common_lisence| %>
+  <tr>
+    <td><%= link_to common_lisence.id, :action => :browse, :id => common_lisence.id %></td>
+    <td><%= h common_lisence.name %></td>
+    <td><%= h common_lisence.url %></td>
+    <td><%= common_lisence.cc_by %></td>
+    <td><%= common_lisence.cc_sa %></td>
+    <td><%= common_lisence.cc_nd %></td>
+    <td><%= common_lisence.cc_nc %></td>
+    <td><%= common_lisence.no_resize %></td>
+    <td><%= common_lisence.no_flip %></td>
+    <td><%= common_lisence.no_convert %></td>
+    <td><%= common_lisence.keep_aspect_ratio %></td>
+    <td><%= common_lisence.created_at %></td>
+    <td><%= common_lisence.updated_at %></td>
+    <td><%= link_to 'Edit', edit_common_lisence_path(common_lisence) %></td>
+    <td><%= link_to 'Destroy', common_lisence, confirm: 'Are you sure?', method: :delete %></td>
+  </tr>
+<% end %>
+</table>
+
+<br />
+
+<%= link_to 'New Common_lisence', new_common_lisence_path %>
diff --git a/app/views/layouts/system.html.erb b/app/views/layouts/system.html.erb
new file mode 100644 (file)
index 0000000..8424da2
--- /dev/null
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <title>Pettanr</title>
+  <%= stylesheet_link_tag    "application" %>
+  <%= javascript_include_tag "application" %>
+  <%= csrf_meta_tags %>
+</head>
+<body>
+
+<a href="/">ぺったんR</a>
+<div>
+<% if author_signed_in? %>
+  <%= link_to "my home", :controller => '/home' %>
+  <%= link_to "ログアウト", destroy_author_session_path, :method => :delete %>
+<% else %>
+  <%= link_to "ログイン", new_author_session_path %>
+<% end %>
+</div>
+<div>
+<% if admin_signed_in? %>
+  <%= link_to "system", :controller => '/system' %>
+  <%= link_to "ログアウト", destroy_admin_session_path, :method => :delete %>
+<% else %>
+  <%= link_to "管理者", new_admin_session_path %>
+<% end %>
+</div>
+<div>
+ <p class="notice"><%= notice %></p>
+ <p class="alert"><%= alert %></p>
+</div>
+<div>
+  <%= link_to "browse", :controller => '/system', :action => :browse%>
+  <%= link_to "approbe", :controller => '/system', :action => :approbe%>
+  <%= link_to "token", :controller => '/system', :action => :auth_token%>
+</div>
+<%= yield %>
+
+</body>
+</html>
diff --git a/app/views/lisences/browse.html.erb b/app/views/lisences/browse.html.erb
new file mode 100644 (file)
index 0000000..a95e4fc
--- /dev/null
@@ -0,0 +1,9 @@
+<div>
+<% if @lisence.common_lisence -%>
+  <%= link_to 'to common_lisences', :controller => 'common_lisences', :action => :browse, :id => @lisence.common_lisence.id %>
+<% else -%>
+  <%= link_to 'to original_lisences', :controller => 'original_lisences', :action => :browse, :id => @lisence.original_lisence.id %>
+<% end -%>
+</div>
+
+<%= link_to 'Back', :action => :list %>
diff --git a/app/views/lisences/list.html.erb b/app/views/lisences/list.html.erb
new file mode 100644 (file)
index 0000000..6d21835
--- /dev/null
@@ -0,0 +1,39 @@
+<h1>Listing lisences</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>name</th>
+    <th>url</th>
+    <th>cc_by</th>
+    <th>cc_sa</th>
+    <th>cc_nd</th>
+    <th>cc_nc</th>
+    <th>no_resize</th>
+    <th>no_flip</th>
+    <th>no_convert</th>
+    <th>keep_aspect_ratio</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+    <th></th>
+  </tr>
+
+<% @lisences.each do |lisence| %>
+  <tr>
+    <td><%= link_to lisence.id, :action => :browse, :id => lisence.id %></td>
+    <td><%= h lisence.name %></td>
+    <td><%= h lisence.url %></td>
+    <td><%= lisence.cc_by %></td>
+    <td><%= lisence.cc_sa %></td>
+    <td><%= lisence.cc_nd %></td>
+    <td><%= lisence.cc_nc %></td>
+    <td><%= lisence.no_resize %></td>
+    <td><%= lisence.no_flip %></td>
+    <td><%= lisence.no_convert %></td>
+    <td><%= lisence.keep_aspect_ratio %></td>
+    <td><%= lisence.created_at %></td>
+    <td><%= lisence.updated_at %></td>
+  </tr>
+<% end -%>
+</table>
+<%= link_to 'new original lisence', new_original_lisence_path %>
diff --git a/app/views/original_lisences/browse.html.erb b/app/views/original_lisences/browse.html.erb
new file mode 100644 (file)
index 0000000..ecc0f36
--- /dev/null
@@ -0,0 +1,57 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+  <b>name:</b>
+  <%= h @original_lisence.name %>
+</p>
+
+<p>
+  <b>url:</b>
+  <%= h @original_lisence.url %>
+</p>
+
+<p>
+  <b>artist:</b>
+  <%= @original_lisence.artist_id %>
+</p>
+<p>
+  <b>cc_by:</b>
+  <%= @original_lisence.cc_by %>
+</p>
+
+<p>
+  <b>cc_sa:</b>
+  <%= @original_lisence.cc_sa %>
+</p>
+
+<p>
+  <b>cc_nd:</b>
+  <%= @original_lisence.cc_nd %>
+</p>
+
+<p>
+  <b>cc_nc:</b>
+  <%= @original_lisence.cc_nc %>
+</p>
+
+<p>
+  <b>no_resize:</b>
+  <%= @original_lisence.no_resize %>
+</p>
+
+<p>
+  <b>no_flip:</b>
+  <%= @original_lisence.no_flip %>
+</p>
+
+<p>
+  <b>no_convert:</b>
+  <%= @original_lisence.no_convert %>
+</p>
+
+<p>
+  <b>keep_aspect_ratio:</b>
+  <%= @original_lisence.keep_aspect_ratio %>
+</p>
+
+<%= link_to 'Back', :action => :list %>
diff --git a/app/views/original_lisences/list.html.erb b/app/views/original_lisences/list.html.erb
new file mode 100644 (file)
index 0000000..3584f5b
--- /dev/null
@@ -0,0 +1,45 @@
+<h1>Listing original_lisences</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>artist_id</th>
+    <th>lisence_id</th>
+    <th>name</th>
+    <th>url</th>
+    <th>cc_by</th>
+    <th>cc_sa</th>
+    <th>cc_nd</th>
+    <th>cc_nc</th>
+    <th>no_resize</th>
+    <th>no_flip</th>
+    <th>no_convert</th>
+    <th>keep_aspect_ratio</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+    <th></th>
+    <th></th>
+  </tr>
+
+<% @original_lisences.each do |original_lisence| %>
+  <tr>
+    <td><%= link_to original_lisence.id, :action => :browse, :id => original_lisence.id %></td>
+    <td><%= link_to original_lisence.artist_id, :controller => 'artists', :action => :browse, :id => original_lisence.artist_id %></td>
+    <td><%= h original_lisence.name %></td>
+    <td><%= h original_lisence.url %></td>
+    <td><%= original_lisence.cc_by %></td>
+    <td><%= original_lisence.cc_sa %></td>
+    <td><%= original_lisence.cc_nd %></td>
+    <td><%= original_lisence.cc_nc %></td>
+    <td><%= original_lisence.no_resize %></td>
+    <td><%= original_lisence.no_flip %></td>
+    <td><%= original_lisence.no_convert %></td>
+    <td><%= original_lisence.keep_aspect_ratio %></td>
+    <td><%= original_lisence.created_at %></td>
+    <td><%= original_lisence.updated_at %></td>
+    <td><%= link_to 'Edit', edit_original_lisence_path(original_lisence) %></td>
+    <td><%= link_to 'Destroy', original_lisence, confirm: 'Are you sure?', method: :delete %></td>
+  </tr>
+<% end %>
+</table>
+
diff --git a/app/views/original_pictures/browse.html.erb b/app/views/original_pictures/browse.html.erb
new file mode 100644 (file)
index 0000000..2c71650
--- /dev/null
@@ -0,0 +1,53 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+  <b>Ext:</b>
+  <%= @original_picture.ext %>
+</p>
+
+<p>
+  <b>Width:</b>
+  <%= @original_picture.width %>
+</p>
+
+<p>
+  <b>Height:</b>
+  <%= @original_picture.height %>
+</p>
+
+<p>
+  <b>filesize:</b>
+  <%= @original_picture.filesize %>
+</p>
+
+<p>
+  <b>artist:</b>
+  <%= @original_picture.artist_id %>
+</p>
+
+<p>
+  <b>lisence_id:</b>
+  <%= @original_picture.lisence_id %>
+</p>
+
+<img src="<%= @original_picture.url -%>">
+
+<p>
+<a href="<%= @original_picture.url %>">browse picture</a> 
+</p>
+<p>
+<%= link_to '再生成', :action => :refresh, :id => @original_picture.id %>
+</p>
+<% if @original_picture.own? current_author -%>
+<p>
+Replace picture
+</p>
+  <%= form_for(@original_picture, :html => { :multipart => true }) do |f| %>
+    <label for="file">File to Upload</label> <%= f.file_field "file" %>
+    <div class="actions">
+      <%= f.submit 'replace' %>
+    </div>
+  <% end %>
+<% end -%>
+
+<%= link_to 'Back', :action => :list %>
diff --git a/app/views/original_pictures/list.html.erb b/app/views/original_pictures/list.html.erb
new file mode 100644 (file)
index 0000000..7859ddb
--- /dev/null
@@ -0,0 +1,34 @@
+<h1>Listing original_pictures</h1>
+
+<%= render 'uploader' %>
+<table>
+  <tr>
+    <th>id</th>
+    <th>Ext</th>
+    <th>Width</th>
+    <th>Height</th>
+    <th>filesize</th>
+    <th>artist</th>
+    <th>lisence_id</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+    <th></th>
+  </tr>
+
+<% @original_pictures.each do |original_picture| %>
+  <tr>
+    <td><%= link_to original_picture.id, :action => :browse, :id => original_picture.id %></td>
+    <td><%= original_picture.ext %></td>
+    <td><%= original_picture.width %></td>
+    <td><%= original_picture.height %></td>
+    <td><%= original_picture.filesize %></td>
+    <td><%= link_to original_picture.artist_id, :controller => 'artists', :action => :browse, :id => original_picture.artist_id %></td>
+    <td><%= link_to original_picture.lisence_id, :controller => 'lisences', :action => :browse, :id => original_picture.lisence_id %></td>
+    <td><%= original_picture.created_at %></td>
+    <td><%= original_picture.updated_at %></td>
+    <td>
+      <%= link_to 'Destroy', original_picture, confirm: 'Are you sure?', method: :delete %>
+    </td>
+  </tr>
+<% end %>
+</table>
diff --git a/app/views/panel_pictures/list.html.erb b/app/views/panel_pictures/list.html.erb
new file mode 100644 (file)
index 0000000..1edf398
--- /dev/null
@@ -0,0 +1,39 @@
+<h1>Listing panel_pictures</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>panel</th>
+    <th>resource_picture</th>
+    <th>link</th>
+    <th>x</th>
+    <th>y</th>
+    <th>z</th>
+    <th>t</th>
+    <th>Width</th>
+    <th>Height</th>
+    <th>flipv</th>
+    <th>fliph</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+  </tr>
+
+<% @panel_pictures.each do |panel_picture| %>
+  <tr>
+    <td><%= panel_picture.id %></td>
+    <td><%= link_to panel_picture.panel_id, :controller => 'panels', :action => :browse, :id => panel_picture.panel_id%></td>
+    <td><%= link_to panel_picture.resource_picture_id, :controller => 'resource_pictures', :action => :browse, :id => panel_picture.resource_picture_id %></td>
+    <td><%= h 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><%= panel_picture.flipv %></td>
+    <td><%= panel_picture.fliph %></td>
+    <td><%= panel_picture.created_at %></td>
+    <td><%= panel_picture.updated_at %></td>
+  </tr>
+<% end %>
+</table>
diff --git a/app/views/panels/browse.html.erb b/app/views/panels/browse.html.erb
new file mode 100644 (file)
index 0000000..cad6acf
--- /dev/null
@@ -0,0 +1,15 @@
+  <% 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/list.html.erb b/app/views/panels/list.html.erb
new file mode 100644 (file)
index 0000000..46b7b9a
--- /dev/null
@@ -0,0 +1,41 @@
+<h1>Listing panels</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>Comic</th>
+    <th>bg</th>
+    <th>Width</th>
+    <th>Height</th>
+    <th>Border</th>
+    <th>x</th>
+    <th>y</th>
+    <th>z</th>
+    <th>t</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><%= link_to panel.comic_id, :controller => 'comics', :action => :browse, :id => panel.comic_id %></td>
+    <td><%= link_to panel.resource_picture_id, :controller => 'resource_pictures', :action => :browse, :id => panel.resource_picture_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.t %></td>
+    <td><%= 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/resource_pictures/browse.html.erb b/app/views/resource_pictures/browse.html.erb
new file mode 100644 (file)
index 0000000..76b4094
--- /dev/null
@@ -0,0 +1,23 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+  <a href="<%= @resource_picture.url %>">ノーマル</a> 
+  <img src="<%= @resource_picture.url -%>">
+</p>
+<p>
+  <a href="<%= @resource_picture.url :v %>">垂直反転</a> 
+  <img src="<%= @resource_picture.url :v -%>">
+</p>
+<p>
+  <a href="<%= @resource_picture.url :h %>">水平反転</a> 
+  <img src="<%= @resource_picture.url :h -%>">
+</p>
+<p>
+  <a href="<%= @resource_picture.url :vh%>">垂直水平反転</a> 
+  <img src="<%= @resource_picture.url :vh -%>">
+</p>
+<p>
+  <a href="<%= @resource_picture.url :thumbnail%>">サムネ</a> 
+  <img src="<%= @resource_picture.url :thumbnail -%>">
+</p>
+<%= link_to 'Back', :action => :list %>
diff --git a/app/views/resource_pictures/list.html.erb b/app/views/resource_pictures/list.html.erb
new file mode 100644 (file)
index 0000000..87fc3a9
--- /dev/null
@@ -0,0 +1,31 @@
+<h1>Listing resource_pictures</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>Ext</th>
+    <th>Width</th>
+    <th>Height</th>
+    <th>filesize</th>
+    <th>artist</th>
+    <th>lisence_id</th>
+    <th>original_picture_id</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+  </tr>
+
+<% @resource_pictures.each do |resource_picture| %>
+  <tr>
+    <td><%= link_to resource_picture.id, :action => :browse, :id => resource_picture.id%></td>
+    <td><%= resource_picture.ext %></td>
+    <td><%= resource_picture.width %></td>
+    <td><%= resource_picture.height %></td>
+    <td><%= resource_picture.filesize %></td>
+    <td><%= link_to resource_picture.artist_id, :controller => 'artists', :action => :browse, :id => resource_picture.artist_id %></td>
+    <td><%= link_to resource_picture.lisence_id, :controller => 'lisences', :action => :browse, :id => resource_picture.lisence_id %></td>
+    <td><%= link_to resource_picture.original_picture_id, :controller => 'original_pictures', :action => :browse, :id => resource_picture.original_picture_id%></td>
+    <td><%= resource_picture.created_at %></td>
+    <td><%= resource_picture.updated_at %></td>
+  </tr>
+<% end %>
+</table>
diff --git a/app/views/speach_balloons/browse.html.erb b/app/views/speach_balloons/browse.html.erb
new file mode 100644 (file)
index 0000000..f6e2392
--- /dev/null
@@ -0,0 +1,31 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+  <b>Name:</b>
+  <%= h @speach_balloon.name %>
+</p>
+
+<p>
+  <b>Tail count:</b>
+  <%= @speach_balloon.tail_count %>
+</p>
+
+<p>
+  <b>size count:</b>
+  <%= @speach_balloon.size_count %>
+</p>
+
+<p>
+  <b>t:</b>
+  <%= @speach_balloon.t %>
+</p>
+<% @speach_balloon.balloon_templates.each do |balloon_template| -%>\r
+  <div>\r
+    <p>\r
+      Tail:<%= balloon_template.tail -%>\r
+      Size:<%= balloon_template.size -%>\r
+    </p>\r
+    <img src="<%= balloon_template.system_picture.url -%>" />\r
+  </div>\r
+<% end -%>\r
+<%= link_to 'Back', :action => :list %>
diff --git a/app/views/speach_balloons/list.html.erb b/app/views/speach_balloons/list.html.erb
new file mode 100644 (file)
index 0000000..d3e2e48
--- /dev/null
@@ -0,0 +1,28 @@
+<h1>Listing speach_balloons</h1>
+<table>
+  <tr>
+    <th>id</th>
+    <th>Name</th>
+    <th>Tail count</th>
+    <th>size count</th>
+    <th>t</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+    <th></th>
+  </tr>
+
+<% @speach_balloons.each do |speach_balloon| %>
+  <tr>
+    <td><%= link_to speach_balloon.id, :action => :browse, :id => speach_balloon.id %></td>
+    <td><%= h speach_balloon.name %></td>
+    <td><%= speach_balloon.tail_count %></td>
+    <td><%= speach_balloon.size_count %></td>
+    <td><%= speach_balloon.t %></td>
+    <td><%= speach_balloon.created_at %></td>
+    <td><%= speach_balloon.updated_at %></td>
+    <td>
+      <%= link_to 'Destroy', speach_balloon, confirm: 'Are you sure?', method: :delete %>
+    </td>
+  </tr>
+<% end %>
+</table>
diff --git a/app/views/speach_templates/list.html.erb b/app/views/speach_templates/list.html.erb
new file mode 100644 (file)
index 0000000..4577d04
--- /dev/null
@@ -0,0 +1,27 @@
+<h1>Listing speach_templates</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>balloon template</th>
+    <th>x</th>
+    <th>y</th>
+    <th>Width</th>
+    <th>Height</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+  </tr>
+
+<% @speach_templates.each do |speach_template| %>
+  <tr>
+    <td><%= link_to speach_template.id, :action => :browse, :id => speach_template.id %></td>
+    <td><%= link_to speach_template.balloon_template_id, :controller => 'balloon_templates', :action => :browse, :id => speach_template.balloon_template_id %></td>
+    <td><%= speach_template.x %></td>
+    <td><%= speach_template.y %></td>
+    <td><%= speach_template.width %></td>
+    <td><%= speach_template.height %></td>
+    <td><%= speach_template.created_at %></td>
+    <td><%= speach_template.updated_at %></td>
+  </tr>
+<% end %>
+</table>
diff --git a/app/views/speaches/list.html.erb b/app/views/speaches/list.html.erb
new file mode 100644 (file)
index 0000000..928b135
--- /dev/null
@@ -0,0 +1,31 @@
+<h1>Listing speaches</h1>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>balloon</th>
+    <th>content</th>
+    <th>x</th>
+    <th>y</th>
+    <th>t</th>
+    <th>Width</th>
+    <th>Height</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+  </tr>
+
+<% @speaches.each do |speach| %>
+  <tr>
+    <td><%= speach.id %></td>
+    <td><%= link_to speach.balloon_id, :controller => 'balloons', :action => :browse, :id => speach.balloon_id %></td>
+    <td><%= h speach.content %></td>
+    <td><%= speach.x %></td>
+    <td><%= speach.y %></td>
+    <td><%= speach.t %></td>
+    <td><%= speach.width %></td>
+    <td><%= speach.height %></td>
+    <td><%= speach.created_at %></td>
+    <td><%= speach.updated_at %></td>
+  </tr>
+<% end %>
+</table>
diff --git a/app/views/system/auth_token.html.erb b/app/views/system/auth_token.html.erb
new file mode 100644 (file)
index 0000000..08e1178
--- /dev/null
@@ -0,0 +1,8 @@
+<div>
+ <p class="notice"><%= notice %></p>
+ <p class="alert"><%= alert %></p>
+</div>
+authentication_token:<%= current_admin.authentication_token %>
+
+<%= link_to 'generate token', :action => :create_token %>
+<%= link_to 'delete token', :action => :delete_token %>
diff --git a/app/views/system/browse.html.erb b/app/views/system/browse.html.erb
new file mode 100644 (file)
index 0000000..e70fb5d
--- /dev/null
@@ -0,0 +1,88 @@
+<div>
+ <p class="notice"><%= notice %></p>
+ <p class="alert"><%= alert %></p>
+コミック関連
+<table>
+  <tr>
+    <td>
+      <%= link_to 'comics', :controller => 'comics', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'panels', :controller => 'panels', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'original_pictures', :controller => 'original_pictures', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'resource_pictures', :controller => 'resource_pictures', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'panel_pictures', :controller => 'panel_pictures', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'balloons', :controller => 'balloons', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'speaches', :controller => 'speaches', :action => :list %>
+    </td>
+  </tr>
+</table>
+フキダシテンプレート関連
+<table>
+  <tr>
+    <td>
+      <%= link_to 'speach_balloons', :controller => 'speach_balloons', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'balloon_templates', :controller => 'balloon_templates', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'speach_templates', :controller => 'speach_templates', :action => :list %>
+    </td>
+  </tr>
+</table>
+その他
+<table>
+  <tr>
+    <td>
+      <%= link_to 'artists', :controller => 'artists', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'lesences', :controller => 'lisences', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'common lesences', :controller => 'common_lisences', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'original lesences', :controller => 'original_lisences', :action => :list %>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <%= link_to 'system_pictures', :controller => 'system_pictures', :action => :list %>
+    </td>
+  </tr>
+</table>
+</div>
diff --git a/app/views/system_pictures/browse.html.erb b/app/views/system_pictures/browse.html.erb
new file mode 100644 (file)
index 0000000..8954245
--- /dev/null
@@ -0,0 +1,40 @@
+<p id="notice"><%= notice %></p>
+
+<p>
+  <b>Ext:</b>
+  <%= @system_picture.ext %>
+</p>
+
+<p>
+  <b>Width:</b>
+  <%= @system_picture.width %>
+</p>
+
+<p>
+  <b>Height:</b>
+  <%= @system_picture.height %>
+</p>
+
+<p>
+  <b>filesize:</b>
+  <%= @system_picture.filesize %>
+</p>
+
+<img src="<%= @system_picture.url -%>">
+
+<p>
+<a href="<%= @system_picture.url %>">browse picture</a> 
+</p>
+<% if admin_signed_in? -%>
+<p>
+Replace picture
+</p>
+  <%= form_for(@system_picture, :html => { :multipart => true }) do |f| %>
+    <label for="file">File to Upload</label> <%= f.file_field "file" %>
+    <div class="actions">
+      <%= f.submit 'replace' %>
+    </div>
+  <% end %>
+<% end -%>
+
+<%= link_to 'Back', :action => :list %>
diff --git a/app/views/system_pictures/list.html.erb b/app/views/system_pictures/list.html.erb
new file mode 100644 (file)
index 0000000..42eaf5d
--- /dev/null
@@ -0,0 +1,34 @@
+<h1>Listing system_pictures</h1>
+
+<%= form_tag( {:action => "create"} , { :multipart => true }) do %>
+  <label for="file">File to Upload</label> <%= file_field_tag "system_picture[file]" %>
+  <%= submit_tag 'upload' -%>
+<% end -%>
+
+<table>
+  <tr>
+    <th>id</th>
+    <th>Ext</th>
+    <th>Width</th>
+    <th>Height</th>
+    <th>filesize</th>
+    <th>created_at</th>
+    <th>updated_at</th>
+    <th></th>
+  </tr>
+
+<% @system_pictures.each do |system_picture| %>
+  <tr>
+    <td><%= link_to system_picture.id, :action => :browse, :id => system_picture.id %></td>
+    <td><%= system_picture.ext %></td>
+    <td><%= system_picture.width %></td>
+    <td><%= system_picture.height %></td>
+    <td><%= system_picture.filesize %></td>
+    <td><%= system_picture.created_at %></td>
+    <td><%= system_picture.updated_at %></td>
+    <td>
+      <%= link_to 'Destroy', system_picture, confirm: 'Are you sure?', method: :delete %>
+    </td>
+  </tr>
+<% end %>
+</table>