Sha256: b822bb614ed269b7632b52ad983a384ae8d3c3373df058521640c4be5eeb6b93
Contents?: true
Size: 1.21 KB
Versions: 76
Compression:
Stored size: 1.21 KB
Contents
<? file_path = if File.exist?("#{Dir.pwd}/mutx/screenshot/#{file_name}") and file_name.count(".") == 1 and ["jpeg","jpg","png"].include? file_name.split(".").last "#{Dir.pwd}/mutx/screenshot/#{file_name}" else nil end javascript = Mote.parse(File.read("#{Mutx::View.path}/javascript.mote"), self, []).call() ?> <html lang='en'> <head> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge'> <meta name='viewport' content='width=device-width, initial-scale=1'> <link rel='icon' href='../../favicon.ico'> <title>Screenshot</title> <!-- Bootstrap core CSS --> <link href='https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css' rel='stylesheet'> <!-- Custom styles for this template --> <link href='https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/jumbotron-narrow.css' rel='stylesheet'> {{javascript}} </head> <body> % if file_path <img src="{{file_path}}" alt="Que mirĂ¡s?" height="300" width="500"> % else <div class='jumbotron'> <h1>Screenshot does not exist</h1> <p><a class='btn btn-lg btn-success' href='#' onclick='javascript:window.history.back();' role='button'>Back</a></p> </div> % end </body> </html>
Version data entries
76 entries across 76 versions & 1 rubygems