- content_for :title do → = t('.title') - content_for :script do :javascript $(document).ready(function() { new window.Domains('#content', {}); }); = link_to new_domain_path, :class => 'add-domain btn btn-large btn-inverse' do %span= t '.create' = link_to '#', :class => 'rm-domain btn btn-large btn-danger dn' do %span= t '.reset' %ul#domains.list - @domains.each do |domain| %li{:id => "domain_#{domain.id}"} .item .iconat @ .btn-group = link_to t(".delete"), domain_path(domain), :method => :delete, :confirm => t(".confirm"), :class => 'label label-warning delete' .item-content = link_to domain.name, domain_path(domain), :class => 'item-label' -#= link_to t(".edit"), edit_domain_path(domain), :class => 'label edit' = link_to t(".manage"), domain_path(domain), :class => 'label label-info manage', :'data-inverse' => t(".nomanage") #domains_JSON.dn= @domains.to_json(:include => [:virtual_users, :virtual_aliases]) #EJS.dn %script#domain_form_EJS{"type" => "text/ejs"} %li.empty .item .iconat @ = render :partial => 'form', :locals => { :domain => domain_ejs_object } .out %script#domain_edit_EJS{"type" => "text/ejs"} .iconat @ = render :partial => 'form', :locals => { :domain => domain_ejs_object } .out %script#domain_item_EJS{"type" => "text/ejs"} .iconat @ .btn-group = link_to t(".delete"), domain_path('{id}'), :method => :delete, :confirm => t(".confirm"), :class => 'label label-warning delete' .item-content %a{:href => "", :class => "item-label"} :plain <%= item.attr('name') %> = link_to t(".manage"), domain_path('{id}'), :class => 'label label-info manage', :'data-inverse' => t(".nomanage") %script#errors_EJS{"type" => "text/ejs"} .errors %h6= t('.errors') :plain <% for (attr in errors) { %> <% list (errors[attr], function(error) { %>
<%= error %>
<% }) %> <% } %> %script#manage_area_EJS{"type" => "text/ejs"} .item-content.out.row-fluid .span5.users %h4 %span.title= t('users.index.title') %span.dn.title_new= t('users.index.title_new') %span.dn.title_edit= t('users.index.title_edit') .label-info.label.new-user=t 'users.form.create' %table.table.table-condensed .span5.aliases %h4 %span.title= t('aliases.index.title') %span.dn.title_new= t('aliases.index.title_new') %span.dn.title_edit= t('aliases.index.title_edit') .label-info.label.new-alias=t 'aliases.form.create' %table.table.table-condensed %script#aliass_each_EJS{"type" => "text/ejs"} :plain <% list (items, function(item, index) { %>