cirandas.net

ref: master

app/views/profile_themes/edit.html.erb


<%# FIXME %>

<%= _('Editing theme "%s"') % @theme.name %> <%= button(:eyes, _('Preview this theme'), :action => 'start_test', :id => @theme.id) %> <%= button(:back, _('Back'), :action => 'index') %>

<%= _('CSS files') %>

    <% for css in @css_files %>
  • <%= link_to_remote(css, :url => { :action => 'css_editor', :id => @theme.id, :css => css }, :update => { :success => 'css-code' }) %>
  • <% end %>
<%= button_bar do %> <%= modal_button :add, _('New CSS'), :action => 'add_css', :id => @theme.id %> <% end %>

<%= _('Images') %>

    <% for image in @image_files %>
  • <%= image_tag("/user_themes/#{@theme.id}/images/#{image}") %>
  • <% end %>
<%= button_bar do %> <%= modal_button :add, _('Add image'), :action => 'add_image', :id => @theme.id %> <% end %>
<%= _('Select a CSS file to edit') %>
<%# javascript_include_tag 'codepress/codepress' %>