Sha256: 27ea3d924f9045e7dc9c06a9156fece970f637c459786a92710c913182e4ec1a
Contents?: true
Size: 1.96 KB
Versions: 7
Compression:
Stored size: 1.96 KB
Contents
!!! %html{:lang => "en"} %head = cms %meta{:charset => "utf-8"}/ %title Bootstrap, from Twitter %meta{:content => "", :name => "description"}/ %meta{:content => "", :name => "author"}/ /[if lt IE 9] <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> %link{:href => "/admin/bootstrap/css/bootstrap.css", :rel => "stylesheet"}/ %link{:href => "/admin/datatables/css/demo_table.css", :rel => "stylesheet"}/ %script{:language => "javascript", :src => "/admin/datatables/js/jquery.js", :type => "text/javascript"} %script{:language => "javascript", :src => "/admin/datatables/js/jquery.dataTables.js", :type => "text/javascript"} %script{:language => "javascript", :src => "/admin/index.js", :type => "text/javascript"} %body .navbar .navbar-inner .container %a.brand{:href => '/'} Website %ul.nav - Classiccms::CONFIG[:admin].each do |model| %li{class: @model.to_s == model ? 'active' : ''} %a{:href => "/admin/#{model}"}= model .topbar .fill .container - if @model != nil %a{:href => "/admin/destroy/#{@model}"} Destroy All! %br %br #demo %table#example.display{:border => "0", :cellpadding => "0", :cellspacing => "0"} %thead %tr - fields = [] - @model.fields.each do |key, info| - if !["_type", "_id", "created_at", "updated_at", "version", "deleted_at"].include? key - fields << key %th= key %th %tbody - @records.each do |record| %tr - fields.each do |field| %td{:id => record.id}= record[field].to_s %td= edit record.id .dataTables_info= add @model
Version data entries
7 entries across 7 versions & 1 rubygems