Sha256: a6c620ab8b107a823b78c967bc14da751f6b1d0d5a414bcee0067563313953a8
Contents?: true
Size: 991 Bytes
Versions: 39
Compression:
Stored size: 991 Bytes
Contents
!!! 5 %html %head = render :partial => "layouts/head" %body = render :partial => "jinda/menu" %div{"data-id" => "main", "data-role" => "panel", "data-backbtn"=>"false"} - if @cache - cache = {} - else - cache = {"data-cache"=>"never"} - if @backbtn - backbtn= {"data-backbtn"=>"true"} - else - backbtn= {"data-backbtn"=>"false"} %div{{"data-role" => "page"}.merge(cache) } %div{{"data-role" => "header"}.merge(backbtn)} %h1= @title || DEFAULT_TITLE %div{"data-role" => "content"} = yield = render :partial => "jinda/static" / :javascript / $(document).on("pagehide", 'div', function(e,ui) { / var page = $(e.target); / if(page.attr('data-cache') == 'never') { / page.remove(); / } / }); / $( document ).on( "pagechange", function(){ / $.get("/jinda/ajax_notice", function(r) {$(r).appendTo('head').remove()}); / }); /= raw handle_ma_notice
Version data entries
39 entries across 35 versions & 3 rubygems