Sha256: f9dda366f39af083f3685b5b9b7e35c3617fe55d03ffc847d6ce9fb91684060c
Contents?: true
Size: 993 Bytes
Versions: 1
Compression:
Stored size: 993 Bytes
Contents
#= require jquery #= require jquery_ujs #= require chr #= require loft #= require ants #= require tape #= require journal #= require formagic/inputs/ace-css #= require formagic/inputs/ace-js #= require_tree ./admin @redirectToSignIn = -> signinPath = "/admin/sign_in" if window.location.hash returnTo = window.location.hash.substring(1) signinPath = "#{signinPath}?return_to=#{returnTo}" window.location = signinPath @addWebsiteLink = -> $link =$ """<a href='/' target='_blank'> <i class='fa fa-home fa-fw'></i> View Site </a>""" chr.$mainMenu.prepend $link $ -> $.get("/admin/bootstrap.json", (response) -> chr.start 'Venice', modules: tape: new Tape('Reader') posts: new JournalPosts() pages: new JournalPages() loft: new Loft() settings: settingsConfig() new AntsProfile() addWebsiteLink() ).fail (response) -> if response.status == 401 redirectToSignIn(response)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
venice-chr-0.1.5 | app/assets/javascripts/admin.coffee |