},\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
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
+++ /dev/null
-<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 %>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-$("#newauthor").html("<%= escape_javascript(render('form')) -%>");
+++ /dev/null
-<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) %>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<h1><%= t '.title' -%></h1>
-
+++ /dev/null
-<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>
+++ /dev/null
-<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>
+++ /dev/null
-<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 %>
+++ /dev/null
-$("#newcomic").html("<%= escape_javascript(render('form')) -%>");
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
-
+++ /dev/null
-$("#newcomic").html("<%= escape_javascript(render('form')) -%>");
+++ /dev/null
-<% @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 %>
+++ /dev/null
-<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>
+++ /dev/null
-<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 %>
<%= 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 %>
+++ /dev/null
-<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>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
+++ /dev/null
-<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>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
+++ /dev/null
-<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>
+++ /dev/null
-<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 %>
+++ /dev/null
-$("#uploader").html("<%= escape_javascript(render('form')) -%>");
+++ /dev/null
-<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) %>
+++ /dev/null
-<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>
+++ /dev/null
-$("#uploader").html("<%= escape_javascript(render('form')) -%>");
+++ /dev/null
-<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>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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>
<%= 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>
+++ /dev/null
- <% 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 %>
+++ /dev/null
-$("#newpanel").html("<%= escape_javascript(render('form')) -%>");
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
+++ /dev/null
-$("#newpanel").html("<%= escape_javascript(render('metroform')) -%>");
+++ /dev/null
- <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>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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>
+++ /dev/null
-$("#oplg").html("<%= escape_javascript(render('form')) -%>");
+++ /dev/null
- <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>
+++ /dev/null
-<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 %>
+++ /dev/null
-$("#scroll_panel-update-<%= @scroll_panel.id -%>").html("<%= escape_javascript(render('editform')) -%>");
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
-
+++ /dev/null
-<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>
+++ /dev/null
-<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 %>
+++ /dev/null
-$("#newscroll").html("<%= escape_javascript(render('form')) -%>");
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
-
+++ /dev/null
-$("#newscroll").html("<%= escape_javascript(render('form')) -%>");
+++ /dev/null
- <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>
+++ /dev/null
-<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 %>
+++ /dev/null
-$("#sheet_panel-update-<%= @sheet_panel.id -%>").html("<%= escape_javascript(render('editform')) -%>");
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
-
+++ /dev/null
-<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>
+++ /dev/null
-<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 %>
+++ /dev/null
-$("#newsheet").html("<%= escape_javascript(render('form')) -%>");
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
-
+++ /dev/null
-$("#newsheet").html("<%= escape_javascript(render('form')) -%>");
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
+++ /dev/null
-<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>
+++ /dev/null
-<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>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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) %>
+++ /dev/null
-<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>
<%= 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 %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<h1><%= t '.title' -%></h1>
-
+++ /dev/null
-<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>
+++ /dev/null
- <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>
+++ /dev/null
-<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 %>
+++ /dev/null
-$("#story-update-<%= @story.id -%>").html("<%= escape_javascript(render('editform')) -%>");
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
-
+++ /dev/null
- <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>
+++ /dev/null
-<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 %>
+++ /dev/null
-$("#sheet_panel-update-<%= @sheet_panel.id -%>").html("<%= escape_javascript(render('editform')) -%>");
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
-
<div>
システム画像の管理
</div>
+<div>
+ <%= link_to 'reload_manifest', :action => :reload_manifest %>
+</div>
<%= text_area_tag "json", '', :id => 'pettanr-configurations' %>
+++ /dev/null
-<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 %>
+++ /dev/null
-<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>
+++ /dev/null
-<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>
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
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'
+++ /dev/null
- 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']
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
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
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
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
{}
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
}\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