+++ /dev/null
-class BalloonTemplatesController < ApplicationController
- before_filter :authenticate_user!, :only => [:index, :show]
- before_filter :authenticate_admin!, :only => [:list, :browse]
-
- # GET /balloon_templates
- # GET /balloon_templates.json
- def index
- @balloon_templates = BalloonTemplate.all
-
- respond_to do |format|
- format.html # index.html.erb
- format.json { render json: @balloon_templates }
- end
- end
-
- def list
- @balloon_templates = BalloonTemplate.all
-
- respond_to do |format|
- format.html { render layout: 'system' }
- format.json { render json: @balloon_templates }
- end
- end
-end
+++ /dev/null
-class SpeechTemplatesController < ApplicationController
- before_filter :authenticate_user!, :only => [:index, :show]
- before_filter :authenticate_admin!, :only => [:list, :browse]
-
- # GET /speech_templates
- # GET /speech_templates.json
- def index
- @speech_templates = SpeechTemplate.all
-
- respond_to do |format|
- format.html # index.html.erb
- format.json { render json: @speech_templates }
- end
- end
-
- def list
- @speech_templates = SpeechTemplate.all
-
- respond_to do |format|
- format.html { render layout: 'system' }
- format.json { render json: @speech_templates }
- end
- end
-
-end
+++ /dev/null
-module BalloonTemplatesHelper
-end
+++ /dev/null
-module BalloonTypesHelper
-end
+++ /dev/null
-module SpeechTemplatesHelper
-end
+++ /dev/null
-class BalloonTemplate < ActiveRecord::Base
- belongs_to :speech_balloon
- has_many :speech_templates, :dependent => :destroy
- belongs_to :system_picture
- accepts_nested_attributes_for :speech_templates
-end
+++ /dev/null
-class SpeechTemplate < ActiveRecord::Base
- belongs_to :balloon_template
-end
+++ /dev/null
-<h1>Listing balloon_templates</h1>
-
-<table>
- <tr>
- <th>speech balloon</th>
- <th>system_picture</th>
- <th>Tail</th>
- <th>size</th>
- <th>MinWidth</th>
- <th>MinHeight</th>
- <th>MaxWidth</th>
- <th>MaxHeight</th>
- </tr>
-
-<% @balloon_templates.each do |balloon_template| %>
- <tr>
- <td><%= balloon_template.speech_balloon_id %></td>
- <td><%= 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>
- </tr>
-<% end %>
-</table>
+++ /dev/null
-<h1>Listing balloon_templates</h1>
-
-<table>
- <tr>
- <th>id</th>
- <th>speech 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.speech_balloon_id, :controller => 'speech_balloons', :action => :browse, :id => balloon_template.speech_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>
<%= link_to 'original_pictures', original_pictures_path %>\r
<%= link_to 'resource_pictures', resource_pictures_path %>\r
<%= link_to 'panel_pictures', panel_pictures_path %>\r
+<%= link_to 'speech_balloons', speech_balloons_path %>\r
<%= link_to 'balloons', balloons_path %>\r
<%= link_to 'speeches', speeches_path %>\r
: \r
-<%= link_to 'speech_balloons', speech_balloons_path %>\r
-<%= link_to 'balloon_templates', balloon_templates_path %>\r
-<%= link_to 'speech_templates', speech_templates_path %>\r
+<%= link_to 'speech_balloon_templates', speech_balloon_templates_path %>\r
: \r
<%= link_to 'artists', artists_path %>\r
<%= link_to 'system_pictures', system_pictures_path %>\r
+++ /dev/null
-<h1>Listing speech_templates</h1>
-
-<table>
- <tr>
- <th>balloon template</th>
- <th>x</th>
- <th>y</th>
- <th>Width</th>
- <th>Height</th>
- </tr>
-
-<% @speech_templates.each do |speech_template| %>
- <tr>
- <td><%= speech_template.balloon_template_id %></td>
- <td><%= speech_template.x %></td>
- <td><%= speech_template.y %></td>
- <td><%= speech_template.width %></td>
- <td><%= speech_template.height %></td>
- </tr>
-<% end %>
-</table>
+++ /dev/null
-<h1>Listing speech_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>
-
-<% @speech_templates.each do |speech_template| %>
- <tr>
- <td><%= link_to speech_template.id, :action => :browse, :id => speech_template.id %></td>
- <td><%= link_to speech_template.balloon_template_id, :controller => 'balloon_templates', :action => :browse, :id => speech_template.balloon_template_id %></td>
- <td><%= speech_template.x %></td>
- <td><%= speech_template.y %></td>
- <td><%= speech_template.width %></td>
- <td><%= speech_template.height %></td>
- <td><%= speech_template.created_at %></td>
- <td><%= speech_template.updated_at %></td>
- </tr>
-<% end %>
-</table>
delete :destroy
end
end
- resources :speech_templates do
- collection do
- get :index
- get :show
- get :list
- get :browse
- end
- member do
- end
- end
- resources :balloon_templates do
- collection do
- get :index
- get :show
- get :list
- get :browse
- end
- member do
- end
- end
resources :speeches do
collection do
get :list
+++ /dev/null
-class CreateBalloonTemplates < ActiveRecord::Migration
- def change
- create_table :balloon_templates do |t|
- t.integer :speech_balloon_id, :null => false
- t.integer :system_picture_id, :null => false
- t.integer :tail, :null => false, :default => 1
- t.integer :size, :null => false, :default => 1
- t.integer :min_width, :null => false, :default => 0
- t.integer :max_width, :null => false, :default => 0
- t.integer :min_height, :null => false, :default => 0
- t.integer :max_height, :null => false, :default => 0
-
- t.timestamps
- end
- add_index :balloon_templates, [:speech_balloon_id]
- add_index :balloon_templates, [:speech_balloon_id, :tail, :size], :unique => true, :name => 'balloon_templates_idts'
- end
-end
+++ /dev/null
-class CreateSpeechTemplates < ActiveRecord::Migration
- def change
- create_table :speech_templates do |t|
- t.integer :balloon_template_id, :null => false
- t.integer :x, :null => false
- t.integer :y, :null => false
- t.integer :t, :null => false, :default => 1
- t.integer :width, :null => false
- t.integer :height, :null => false
-
- t.timestamps
- end
- add_index :speech_templates, [:balloon_template_id, :t], :unique => true, :name => 'speech_templates_idt'
- end
-end
\r
add_index "authors", ["user_id"], :name => "index_authors_on_user_id", :unique => true\r
\r
- create_table "balloon_templates", :force => true do |t|\r
- t.integer "speach_balloon_id", :null => false\r
- t.integer "system_picture_id", :null => false\r
- t.integer "tail", :default => 1, :null => false\r
- t.integer "size", :default => 1, :null => false\r
- t.integer "min_width", :default => 0, :null => false\r
- t.integer "max_width", :default => 0, :null => false\r
- t.integer "min_height", :default => 0, :null => false\r
- t.integer "max_height", :default => 0, :null => false\r
- t.datetime "created_at"\r
- t.datetime "updated_at"\r
- end\r
-\r
- add_index "balloon_templates", ["speach_balloon_id", "tail", "size"], :name => "balloon_templates_idts", :unique => true\r
- add_index "balloon_templates", ["speach_balloon_id"], :name => "index_balloon_templates_on_speach_balloon_id"\r
-\r
create_table "balloons", :force => true do |t|\r
t.integer "panel_id", :null => false\r
t.integer "balloon_template_id", :null => false\r
add_index "licenses", ["url"], :name => "index_licenses_on_url", :unique => true\r
\r
create_table "original_licenses", :force => true do |t|\r
- t.integer "artist_id", :null => false\r
t.integer "license_id", :null => false\r
t.string "name", :null => false\r
t.string "url", :null => false\r
t.integer "width", :default => 200, :null => false\r
t.integer "height", :default => 80, :null => false\r
t.integer "border", :default => 1, :null => false\r
- t.integer "x", :null => false\r
- t.integer "y", :null => false\r
- t.integer "z", :null => false\r
- t.integer "t", :default => 1, :null => false\r
- t.integer "author_id"\r
+ t.integer "x"\r
+ t.integer "y"\r
+ t.integer "z"\r
+ t.integer "t", :null => false\r
+ t.integer "author_id", :null => false\r
t.datetime "created_at"\r
t.datetime "updated_at"\r
end\r
t.datetime "updated_at"\r
end\r
\r
- add_index "speach_balloons", ["t"], :name => "speach_balloons_t", :unique => true\r
-\r
- create_table "speach_templates", :force => true do |t|\r
- t.integer "balloon_template_id", :null => false\r
- t.integer "x", :null => false\r
- t.integer "y", :null => false\r
- t.integer "t", :default => 1, :null => false\r
- t.integer "width", :null => false\r
- t.integer "height", :null => false\r
- t.datetime "created_at"\r
- t.datetime "updated_at"\r
- end\r
-\r
- add_index "speach_templates", ["balloon_template_id", "t"], :name => "speach_templates_idt", :unique => true\r
+ add_index "speech_balloons", ["t"], :name => "speech_balloons_t", :unique => true\r
\r
- create_table "speaches", :force => true do |t|\r
+ create_table "speeches", :force => true do |t|\r
t.integer "balloon_id", :null => false\r
- t.integer "speach_template_id", :null => false\r
+ t.integer "speech_template_id", :null => false\r
t.string "content"\r
t.integer "x", :null => false\r
t.integer "y", :null => false\r
t.datetime "updated_at"\r
end\r
\r
- add_index "speaches", ["balloon_id", "t"], :name => "speaches_bt", :unique => true\r
- add_index "speaches", ["balloon_id"], :name => "index_speaches_on_balloon_id"\r
+ add_index "speeches", ["balloon_id", "t"], :name => "speeches_bt", :unique => true\r
+ add_index "speeches", ["balloon_id"], :name => "index_speeches_on_balloon_id"\r
\r
create_table "system_pictures", :force => true do |t|\r
t.string "ext", :null => false\r
+++ /dev/null
-# -*- encoding: utf-8 -*-
-#フキダシ枠テンプレート
-require 'spec_helper'
-
-describe BalloonTemplatesController do
- #データはすべてSpeechBalloonsControllerから管理するので、ここから何かを要求することはない。
-end
+++ /dev/null
-# -*- encoding: utf-8 -*-
-#セリフテンプレート
-require 'spec_helper'
-
-describe SpeechTemplatesController do
- #データはすべてSpeechBalloonsControllerから管理するので、ここから何かを要求することはない。
-end
+++ /dev/null
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the BaloonTemplatesHelper. For example:
-#
-# describe BaloonTemplatesHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe BalloonTemplatesHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
+++ /dev/null
-require 'spec_helper'
-
-# Specs in this file have access to a helper object that includes
-# the SpeechTemplatesHelper. For example:
-#
-# describe SpeechTemplatesHelper do
-# describe "string concat" do
-# it "concats two strings with spaces" do
-# helper.concat_strings("this","that").should == "this that"
-# end
-# end
-# end
-describe SpeechTemplatesHelper do
- pending "add some examples to (or delete) #{__FILE__}"
-end
{\r
"square@pettan.com": {\r
"classname": "Square",\r
- "caption": "\92·\95û\8c`",\r
+ "caption": "長方形",\r
"default_width": 150,\r
"default_height": 150,\r
"templates": {\r
},\r
"square@pettan.com": {\r
"classname": "Square",\r
- "caption": "\92·\95û\8c`",\r
+ "caption": "長方形",\r
"default_width": 150,\r
"default_height": 150,\r
"templates": {\r
},\r
"square@pettan.com": {\r
"classname": "Square",\r
- "caption": "\92·\95û\8c`",\r
+ "caption": "長方形",\r
"default_width": 150,\r
"default_height": 150,\r
"templates": {\r
{\r
"square@pettan.com": {\r
"classname": "Square",\r
- "caption": "\92·\95û\8c`",\r
+ "caption": "長方形",\r
"default_width": 150,\r
"default_height": 150,\r
"templates": {\r
},\r
"square with size@pettan.com": {\r
"classname": "SquareWithSize",\r
- "caption": "\92·\95û\8c`\89ü",\r
+ "caption": "長方形改",\r
"default_width": 150,\r
"default_height": 100,\r
"size_count": 3,\r
+++ /dev/null
-require 'spec_helper'
-
-describe BalloonTemplate do
- pending "add some examples to (or delete) #{__FILE__}"
-end
+++ /dev/null
-require 'spec_helper'
-
-describe SpeechTemplate do
- pending "add some examples to (or delete) #{__FILE__}"
-end