1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/outfits/edit.html.haml

270 lines
12 KiB
Text
Raw Normal View History

2010-11-08 17:40:03 -08:00
- add_body_class 'fullscreen'
- localized_cache do
2010-12-11 07:11:56 -08:00
#pet-type-not-found.possible-error
= t '.pet_type.not_found'
2010-12-11 07:11:56 -08:00
#preview-toolbar
%form#pet-type-form
%select{:name => "color"}
%select{:name => "species"}
%input{:type => "submit", :value => t('.pet_type.form.submit')}
2010-12-11 07:11:56 -08:00
%form#pet-state-form
= t '.pet_state_form.header'
%select
2011-02-09 16:29:31 -08:00
#save-outfit-wrapper
2011-02-09 17:29:43 -08:00
%a#current-outfit-permalink{:target => '_blank'}
= image_tag 'link_go.png', :alt => t('.outfit.permalink.name'),
:title => t('.outfit.permalink.description')
%button#save-outfit= t '.outfit.save'
%button#save-outfit-not-signed-in= t '.outfit.sign_in_to_save'
%button#save-outfit-copy= t '.outfit.save_copy'
%button#save-current-outfit
= t '.outfit.save_current_outfit.main_html',
:outfit_name => content_tag(:span, t('.outfit.save_current_outfit.default_outfit_name'))
2011-02-07 09:54:20 -08:00
%form#save-outfit-form
.outfit-star
%input#save-outfit-name{:type => 'text', :placeholder => t('.outfit.form.name_placeholder')}
%button#save-outfit-finish{:type => 'submit'}= t '.outfit.form.submit'
%button#save-outfit-cancel{:type => 'button'}= t '.outfit.form.cancel'
2010-12-11 07:11:56 -08:00
#preview
#preview-swf
#preview-swf-container
%p= t '.preview.requirements'
#preview-image-container
2011-06-27 12:33:34 -07:00
#preview-mode
%ul#preview-mode-toggle
%li#preview-mode-flash.active= t '.preview.mode.flash.name'
%li#preview-mode-image= t '.preview.mode.image.name'
2014-04-04 12:36:35 -07:00
= link_to t('.preview.big_picture'), 'javascript:void(0)',
id: 'toggle-big-picture'
2015-05-03 14:01:08 -07:00
= link_to t('.preview.download'), 'javascript:void(0)', id: 'preview-mode-download'
2015-05-03 14:57:42 -07:00
= link_to t('.preview.swf_links'), 'javascript:void(0)', id: 'swf-links',
target: '_blank', 'data-base-url' => links_swf_assets_path
2010-12-11 07:11:56 -08:00
#preview-sidebar
%nav#preview-sidebar-navbar
#preview-sidebar-navbar-closet= t '.sidebar.nav.closet'
#preview-sidebar-navbar-sharing= t '.sidebar.nav.sharing'
#preview-sidebar-navbar-outfits= t '.sidebar.nav.outfits'
#preview-sidebar-content
#outfit-not-found= t '.sidebar.notifications.outfits.not_found'
#save-success= t '.sidebar.notifications.outfits.save.success'
#save-error
#preview-closet.sidebar-view
2014-03-31 19:05:28 -07:00
= prank_color_message('<span class="prank-color-message-name"></span>'.html_safe, '$artist-name', '$artist-url')
%ul
#preview-outfits.sidebar-view
%ul#preview-outfits-list
#preview-outfits-not-logged-in
%figure
= image_tag 'outfits_welcome.png'
%figcaption= t '.sidebar.outfits.not_signed_in.header'
= tmd '.sidebar.outfits.not_signed_in.pitch'
= link_to t('.sidebar.outfits.not_signed_in.sign_in'),
auth_user_sign_in_path_with_return_to, :id => 'preview-outfits-log-in'
#preview-sharing.sidebar-view
#preview-sharing-thumbnail-wrapper
#preview-sharing-thumbnail-loading
= image_tag 'outfits/small_loading.gif'
%span#preview-sharing-thumbnail-saving
= t '.sidebar.sharing.thumbnail.saving'
%span#preview-sharing-thumbnail-generating
= t '.sidebar.sharing.thumbnail.generating'
%img#preview-sharing-thumbnail
%ul#preview-sharing-urls
%li
%label{:for => 'preview-sharing-permalink-url'}
= t '.sidebar.sharing.links.permalink'
%input#preview-sharing-permalink-url.outfit-url{:type => 'text'}
%li
%label{:for => 'preview-sharing-large-image-url'}
= t '.sidebar.sharing.links.images.large'
2015-05-03 14:37:24 -07:00
%a#preview-sharing-download-large-image{download: true}= t '.sidebar.sharing.download'
%a#preview-sharing-copy-large-image-url.preview-sharing-copy-url{href: 'javascript:void(0)'}= t '.sidebar.sharing.copy_url'
%input#preview-sharing-large-image-url.outfit-url{:type => 'text'}
%li
%label{:for => 'preview-sharing-medium-image-url'}
= t '.sidebar.sharing.links.images.medium'
2015-05-03 14:37:24 -07:00
%a#preview-sharing-download-medium-image{download: true}= t '.sidebar.sharing.download'
%a#preview-sharing-copy-medium-image-url.preview-sharing-copy-url{href: 'javascript:void(0)'}= t '.sidebar.sharing.copy_url'
%input#preview-sharing-medium-image-url.outfit-url{:type => 'text'}
%li
%label{:for => 'preview-sharing-small-image-url'}
= t '.sidebar.sharing.links.images.small'
2015-05-03 14:37:24 -07:00
%a#preview-sharing-download-small-image{download: true}= t '.sidebar.sharing.download'
%a#preview-sharing-copy-small-image-url.preview-sharing-copy-url{href: 'javascript:void(0)'}= t '.sidebar.sharing.copy_url'
%input#preview-sharing-small-image-url.outfit-url{:type => 'text'}
%ul#preview-sharing-url-formats
%li.active{'data-format' => 'plain'}
= t '.sidebar.sharing.formats.plain'
%li{'data-format' => 'html'}
= t '.sidebar.sharing.formats.html'
%li{'data-format' => 'bbcode'}
=t '.sidebar.sharing.formats.bbcode'
#preview-search
%form#preview-search-basic.item-search
%header
%h2= t '.search.header'
%input{:name => "query", :type => "search", autofocus: true}/
%input{:type => "submit", :value => t('.search.form.submit')}/
2014-04-02 20:06:45 -07:00
%a#preview-search-advanced-link{href: 'javascript:void(0)'}= t '.search.advanced.header'
%label{for: 'preview-search-autofilter'}
%input#preview-search-autofilter{type: 'checkbox', checked: true}
= t('.search.autofilter_html',
color: content_tag('span', '', :class => 'color'),
species: content_tag('span', '', :class => 'species'))
#preview-search-form-pagination
2014-04-02 21:00:50 -07:00
#preview-search-basic-main
#preview-search-form-loading= t '.search.loading'
#preview-search-form-error.possible-error
#preview-search-form-no-results
= t '.search.no_results_html', :query => content_tag(:span)
%ul#preview-search-results
%form#preview-search-advanced
%header
2014-04-02 20:06:45 -07:00
%h2= t '.search.advanced.header'
%button{type: 'submit'}= t '.search.advanced.submit'
%a#preview-search-basic-link{href: 'javascript:void(0)'}= t '.search.advanced.back'
2014-04-02 17:25:51 -07:00
%div#preview-search-advanced-main
%div
%ul
%li.text
2014-04-02 20:06:45 -07:00
%label{for: 'advanced-search-name-require'}= t '.search.advanced.name.require'
2014-04-02 17:25:51 -07:00
%input{type: 'text', id: 'advanced-search-name-require'}
%li.text
2014-04-02 20:06:45 -07:00
%label{for: 'advanced-search-name-exclude'}= t '.search.advanced.name.exclude'
2014-04-02 17:25:51 -07:00
%input{type: 'text', id: 'advanced-search-name-exclude'}
%div
%ul
%li.select
2014-04-02 20:06:45 -07:00
%label{for: 'advanced-search-nc'}= t '.search.advanced.nc.label'
2014-04-02 17:25:51 -07:00
%select{id: 'advanced-search-nc'}
2014-04-02 20:06:45 -07:00
%option{value: ''}= t '.search.advanced.nc.any'
%option{value: 'nc'}= t '.search.advanced.nc.nc'
%option{value: 'np'}= t '.search.advanced.nc.np'
2014-04-02 17:25:51 -07:00
%li.select
2014-04-02 20:06:45 -07:00
%label{for: 'advanced-search-occupies'}= t '.search.advanced.occupies.label'
2014-04-02 17:25:51 -07:00
%select{id: 'advanced-search-occupies'}
2014-04-02 20:06:45 -07:00
%option{value: ''}= t '.search.advanced.occupies.any'
2014-04-02 17:25:51 -07:00
%li.select
2014-04-02 20:06:45 -07:00
%label{for: 'advanced-search-restricts'}= t '.search.advanced.restricts.label'
2014-04-02 17:25:51 -07:00
%select{id: 'advanced-search-restricts'}
2014-04-02 20:06:45 -07:00
%option{value: ''}= t '.search.advanced.restricts.any'
2014-04-02 17:25:51 -07:00
%div
%ul
%li.checkbox
2014-04-05 16:48:20 -07:00
%input{type: 'checkbox', id: 'advanced-search-autofilter',
checked: true}
%label{for: 'advanced-search-autofilter'}
= t '.search.autofilter_html',
species: content_tag('span', '', {:class => 'species'}),
color: content_tag('span', '', {:class => 'color'})
2014-04-02 17:25:51 -07:00
%li.checkbox.must-log-in
%input{type: 'checkbox', id: 'advanced-search-owns', disabled: true}
2014-04-02 20:06:45 -07:00
%label{for: 'advanced-search-owns'}= t '.search.advanced.owns'
2014-04-02 17:25:51 -07:00
%li.checkbox.must-log-in
%input{type: 'checkbox', id: 'advanced-search-wants', disabled: true}
2014-04-02 20:06:45 -07:00
%label{for: 'advanced-search-wants'}= t '.search.advanced.wants'
= link_to t('.search.advanced.login'), auth_user_sign_in_path_with_return_to,
2014-04-02 19:08:35 -07:00
id: 'advanced-search-log-in-link'
#no-assets-full-message= t '.sidebar.closet.no_data.description'
2013-01-04 17:48:47 -08:00
%script#sharing-html-image-template{:type => 'text/x-jquery-tmpl'}
= link_to '${permalink}' do
%img{:src => '${image_url}'}
2013-01-04 17:48:47 -08:00
%script#sharing-html-text-template{:type => 'text/x-jquery-tmpl'}
= link_to t('app_name'), '${permalink}'
2013-01-04 17:48:47 -08:00
%script#sharing-bbcode-image-template{:type => 'text/x-jquery-tmpl'}
[URL=${permalink}][IMG]${image_url}[/IMG][/URL]
2013-01-04 17:48:47 -08:00
%script#sharing-bbcode-text-template{:type => 'text/x-jquery-tmpl'}
[URL=${permalink}]#{t('app_name')}[/URL]
2010-12-11 07:11:56 -08:00
%script#outfit-template{:type => 'text/x-jquery-tmpl'}
<li class="outfit-${id}{{if starred}} starred{{/if}}">
%header
.outfit-star
2012-07-27 00:21:22 -07:00
%span.outfit-name ${name}
2010-12-11 07:11:56 -08:00
%form.outfit-rename-form
%input.outfit-rename-field{:type => 'text'}
2012-07-27 00:21:22 -07:00
%footer
%a.outfit-rename-button{:href => '#'}
= t '.sidebar.outfits.outfit.rename'
%a.outfit-delete{:href => '#'}
= t '.sidebar.outfits.outfit.delete'
.outfit-thumbnail-wrapper
%img.outfit-thumbnail
2010-12-11 07:11:56 -08:00
.outfit-delete-confirmation
%span= t '.sidebar.outfits.outfit.delete_confirmation.header'
%a.outfit-delete-confirmation-yes{:href => '#'}
= t '.sidebar.outfits.outfit.delete_confirmation.delete'
2010-12-11 07:11:56 -08:00
\/
%a.outfit-delete-confirmation-no{:href => '#'}
= t '.sidebar.outfits.outfit.delete_confirmation.cancel'
2010-12-11 07:11:56 -08:00
</li>
%script#item-template{:type => 'text/x-jquery-tmpl'}
%li{:class => 'object object-${id}'}
%img{:src => '${thumbnail_url}', :title => '${description}', :alt => ''}
${name}
%ul
= link_to '${url}', :target => '_blank', :class => 'object-info' do
%span i
{{if nc}}
= nc_icon
{{/if}}
{{if owned || wanted}}
.closeted-icons
{{if owned}}
= owned_icon
{{/if}}
{{if wanted}}
= wanted_icon
{{/if}}
{{/if}}
%span.no-assets-message= t '.sidebar.closet.no_data.summary'
%ul
%li.wear-item
= link_to t('.item.controls.worn_items.add'), '#'
%li.unwear-item
= link_to t('.item.controls.worn_items.remove'), '#'
%li.closet-item
= link_to t('.item.controls.closet.add'), '#'
%li.uncloset-item
= link_to t('.item.controls.closet.remove'), '#'
%script#pagination-template{:type => 'text/x-jquery-tmpl'}
{{if current_page > 1}}
= link_to t('will_paginate.previous_label').html_safe, '#', :rel => 'prev',
'data-page' => '${current_page - 1}'
{{/if}}
{{each pages}}
{{if $value == 'gap'}}
%span.gap= t('will_paginate.page_gap').html_safe
{{else $value == current_page}}
%em.current ${$value}
{{else}}
= link_to '${$value}', '#', 'data-page' => '${$value}'
{{/if}}
{{/each}}
{{if current_page < total_pages}}
= link_to t('will_paginate.next_label').html_safe, '#', :rel => 'next',
'data-page' => '${current_page + 1}'
{{/if}}
%span#userbar-session-message
- if user_signed_in?
= t '.userbar.session_message.signed_in'
- else
= t '.userbar.session_message.not_signed_in'
- content_for :javascripts do
= include_javascript_libraries :jquery, :swfobject, :jquery_tmpl
= javascript_include_tag 'ajax_auth', 'jquery.jgrowl', 'wardrobe',
'ZeroClipboard.min', 'outfits/edit'
= javascript_include_tag 'wardrobe-2020-page', defer: true