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

Version Path
mutx-0.2.9 lib/mutx/view/screenshot.mote
mutx-0.2.8 lib/mutx/view/screenshot.mote
mutx-0.2.7 lib/mutx/view/screenshot.mote
mutx-0.2.6 lib/mutx/view/screenshot.mote
mutx-0.2.5 lib/mutx/view/screenshot.mote
mutx-0.2.4 lib/mutx/view/screenshot.mote
mutx-0.2.3 lib/mutx/view/screenshot.mote
mutx-0.2.2 lib/mutx/view/screenshot.mote
mutx-0.2.1 lib/mutx/view/screenshot.mote
mutx-0.2.0 lib/mutx/view/screenshot.mote
mutx-0.1.69 lib/mutx/view/screenshot.mote
mutx-0.1.68 lib/mutx/view/screenshot.mote
mutx-0.1.67 lib/mutx/view/screenshot.mote
mutx-0.1.66 lib/mutx/view/screenshot.mote
mutx-0.1.65 lib/mutx/view/screenshot.mote
mutx-0.1.64 lib/mutx/view/screenshot.mote
mutx-0.1.63 lib/mutx/view/screenshot.mote
mutx-0.1.62 lib/mutx/view/screenshot.mote
mutx-0.1.61 lib/mutx/view/screenshot.mote
mutx-0.1.60 lib/mutx/view/screenshot.mote