<!DOCTYPE html> %meta{:charset => "UTF-8"} %title=h title %link{:href => "http://ssig33.com/common.css", :media => "screen", :rel => "stylesheet", :type => "text/css"} %link{:href => "http://ssig33.com/sh_style.css", :media => "screen", :rel => "stylesheet", :type => "text/css"} %link{:href => "http://ssig33.com/metro.css", :media => "screen", :rel => "stylesheet", :type => "text/css"} %meta{:name => "viewport", :content => "width=320, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"} %link{:href => '/feed', :rel => 'alternate', :title => 'feed', :type => "application/rss+xml"} %script{:src => "http://ssig33.com/sh_main.min.js"} %script{:src => "http://ssig33.com/sh_ext.js"} %script{:src => "http://ssig33.com/jquery.js"} %div#all ~@page.html(request) %div %ul %li %b Updated histories of this content -Page.where(name: @page.name).order('id desc').eachwithindex do |p,i| - if i == 0 %li %a{href: "/#{URI.encode(@page.name)}"} #{p.createdat.gmtime} (Latest) - else %li %a{href: "/#{URI.encode(@page.name)}?historyid=#{p.id}"}=p.created_at.gmtime

:javascript $.each($("pre code"), function(){ var code = $(this); var text = code.text(); var pre = $(code.parent()); var lang = code.attr('class'); code.remove(); pre.text(text); if(lang != undefined){ pre.addClass("sh"+lang); } }) shhighlightDocument();

if($("#createdat").length == 1){ $.getJSON("http://ssig33.com/api.ssig33.com/timestamp?name="+encodeURI('#{@page.name}') , function(data){ var date date = new Date(Date.parse(data["createdat"])) var createdat = date.toGMTString() date = new Date(Date.parse(data["updatedat"])) var updatedat = date.toGMTString() if(createdat == updatedat){ $("#createdat").html("created at: "+createdat) }else{ $("#createdat").html("created at: "+createdat+" updated at: "+updatedat) }

}) } <!-- layout from Database -->


Site Search

Update History of this content